Module: useCases/analytics/calculateOverView

Methods

calculateSamProducedAndMachineMinutes(GroupedData)

Parameters:
Name Type Description
GroupedData Array.<efficiencyGroupedData> The data to be grouped
Returns:
([])

calculateSamProducedAndMachineMinutes(GroupedData)

Parameters:
Name Type Description
GroupedData Array.<efficiencyGroupedData> The data to be grouped
Returns:
([])

DHUDataGroupByLocationAndBatch(DHUDetails)

Parameters:
Name Type Description
DHUDetails Array.<DHUOverViewData> The data to be grouped
Returns:
([])

DHUDataGroupByLocationAndBatch(DHUDetails)

Parameters:
Name Type Description
DHUDetails Array.<DHUOverViewData> The data to be grouped
Returns:
([])

efficiencyDataGroupByLocationAndBatch(efficiencyData, DHUData, locationsWorkDaysList, batchWorkDaysList)

Parameters:
Name Type Description
efficiencyData Array.<efficiencyOverViewData> The data to be grouped
DHUData Array.<overViewDHUData> The DHU data to be included in grouped
locationsWorkDaysList Array.<locationWorkDays> The locations workdays to be included in grouped
batchWorkDaysList Array.<batchWorkDays> The batch workdays to be included in grouped
Returns:
([])

efficiencyDataGroupByLocationAndBatch(efficiencyData, DHUData, locationsWorkDaysList, batchWorkDaysList, isDateRangeFiltered)

Parameters:
Name Type Description
efficiencyData Array.<efficiencyOverViewData> The data to be grouped
DHUData Array.<overViewDHUData> The DHU data to be included in grouped
locationsWorkDaysList Array.<locationWorkDays> The locations workdays to be included in grouped
batchWorkDaysList Array.<batchWorkDays> The batch workdays to be included in grouped
isDateRangeFiltered boolean The status of date range selection
Returns:
([])

efficiencyTrendDataGroupByLocationAndDate(efficiencyData)

Parameters:
Name Type Description
efficiencyData Array.<efficiencyOverViewData> The data to be grouped
Returns:
([])

filterBasedOnWorkingHours(batchOutputData, batchScheduleDetails, overTimeBatchesScheduleDetails)

This function is responsible for grouping the data by batchNumber, ocNumber, productCode and date
Parameters:
Name Type Description
batchOutputData Array.<BatchOuputDetails> The data to be grouped
batchScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details

filterBasedOnWorkingHours(batchOutputData, batchScheduleDetails, overTimeBatchesScheduleDetails)

This function is responsible for grouping the data by batchNumber, ocNumber, productCode and date
Parameters:
Name Type Description
batchOutputData Array.<BatchOuputDetails> The data to be grouped
batchScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details

filterSewingDataBasedOnWorkingHours(batchTargetData, batchDhuDetails)

This function is responsible for grouping the hourly data for 8 hours
Parameters:
Name Type Description
batchTargetData Array.<SewingProductionTragetDetailsList> The batch target data to be grouped
batchDhuDetails Array.<SewingProductionDHUDetailsList> The batch dhu details

groupEfficiencyData(efficiencyData, batchesScheduleDetails, ocProductSamsResult, overTimeBatchesScheduleDetails, batchesTargetDetails) → {Array.<efficiencyGroupedData>}

Parameters:
Name Type Description
efficiencyData Array.<efficiencyData> The data to be grouped
batchesScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSamsResult Array.<OCProductSAMS> The sam for oc and product combination
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
batchesTargetDetails Array.<batchTargetDetails> The batch target details
Returns:
Type
Array.<efficiencyGroupedData>

groupEfficiencyData(efficiencyData, batchesScheduleDetails, ocProductSamsResult, jobWorkSamsResult, overTimeBatchesScheduleDetails, batchesTargetDetails) → {Array.<efficiencyGroupedData>}

Parameters:
Name Type Description
efficiencyData Array.<efficiencyData> The data to be grouped
batchesScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSamsResult Array.<OCProductSAMS> The sam for oc and product combination
jobWorkSamsResult Array.<OCProductSamsFromJobwork> The sam for oc and product from job work
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
batchesTargetDetails Array.<batchTargetDetails> The batch target details
Returns:
Type
Array.<efficiencyGroupedData>

Type Definitions

BatchOuputDetails

Type:
  • Object
Properties:
Name Type Description
BatchOuputDetails.location String The location
BatchOuputDetails.locationName String The location name
BatchOuputDetails.batchUnique number The oc number in batch output process
BatchOuputDetails.batchNumber String The batch number asscoiated with schedule and output quantity
BatchOuputDetails.ocNumber String The oc number in batch output process
BatchOuputDetails.productCode String The product code associated with OC number
BatchOuputDetails.date String The output entry date
BatchOuputDetails.hourMinutes String The hour for mentioned date for combination of batch/location
BatchOuputDetails.outputQuantity number The hourly output quantity for combination of batch/location

BatchOuputDetails

Type:
  • Object
Properties:
Name Type Description
dateWiseBatchScheduleAndQuantityDetail.location String The location
dateWiseBatchScheduleAndQuantityDetail.batchUnique number The oc number in batch output process
dateWiseBatchScheduleAndQuantityDetail.batchNumber String The batch number asscoiated with schedule and output quantity
dateWiseBatchScheduleAndQuantityDetail.ocNumber String The oc number in batch output process
dateWiseBatchScheduleAndQuantityDetail.productCode String The product code associated with OC number
dateWiseBatchScheduleAndQuantityDetail.date String The output entry date
dateWiseBatchScheduleAndQuantityDetail.hourMinutes String The hour for mentioned date for combination of batch/location
dateWiseBatchScheduleAndQuantityDetail.outputQuantity number The hourly output quantity for combination of batch/location

BatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
resourceDate String
numberOfMachines Number
numberOfHelpers Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String

BatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
resourceDate String
numberOfMachines Number
numberOfHelpers Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String

batchTargetDetails

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique Number
batchNumber String
resourceDate String
ocNumber String
productCode String
targetQuantity Number

batchTargetDetails

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique Number
batchNumber String
resourceDate String
ocNumber String
productCode String
targetQuantity Number

batchWorkDays

Type:
  • Object
Properties:
Name Type Description
location String
batchNumber String
workDays String

batchWorkDays

Type:
  • Object
Properties:
Name Type Description
location String
batchNumber String
workDays String

DHUOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
status String
quantity number

DHUOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
status String
quantity number

efficiencyData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
ocNumber String
productCode String
date String
hourMinutes String
outputQuantity number

efficiencyData

Type:
  • Object
Properties:
Name Type Description
location String
locationName String
batchUnique number
batchNumber String
ocNumber String
productCode String
date String
hourMinutes String
outputQuantity number

efficiencyGroupedData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines number
numberOfHelpers number
overTimeStart String
overTimeEnd String
overTimeMachines number
overTimeHelpers number
overTimeOutPutQuantity number
sam number
globalSam number

efficiencyGroupedData

Type:
  • Object
Properties:
Name Type Description
location String
locationName String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines number
numberOfHelpers number
overTimeStart String
overTimeEnd String
overTimeMachines number
overTimeHelpers number
overTimeOutPutQuantity number
sam number
globalSam number

efficiencyOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
locationName String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
sewingSamProduced number
sewingMachineMinutes number
globalSamProduced number
globalMachineMinutes number
totalWorkStation number
numberOfMachines number

efficiencyOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
sewingSamProduced number
sewingMachineMinutes number
globalSamProduced number
globalMachineMinutes number
totalWorkStation number
numberOfMachines number

efficiencyOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
sewingSamProduced number
sewingMachineMinutes number
globalSamProduced number
globalMachineMinutes number
totalWorkStation number
numberOfMachines number

locationWorkDays

Type:
  • Object
Properties:
Name Type Description
location String
workDays String

locationWorkDays

Type:
  • Object
Properties:
Name Type Description
location String
workDays String

OCProductSAMS

Type:
  • Object
Properties:
Name Type Description
productCode String
sam Number
globalSam Number

OCProductSAMS

Type:
  • Object
Properties:
Name Type Description
productCode String
sam Number
globalSam Number

OCProductSamsFromJobwork

Type:
  • Object
Properties:
Name Type Description
OCProductSamsFromJobwork.location String The location
OCProductSamsFromJobwork.productCode String The product Code
OCProductSamsFromJobwork.machineSam number The machine sam
OCProductSamsFromJobwork.globalSam number The global sam

overTimeBatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
overTimeDate String
overTimeMachines Number
overTimeHelpers Number
overTimeStart String
overTimeEnd String

overTimeBatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
overTimeDate String
overTimeMachines Number
overTimeHelpers Number
overTimeStart String
overTimeEnd String

overViewDHUData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
passedQuantity number
reworkedQuantity number
rejectedQuantity number

overViewDHUData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
passedQuantity number
reworkedQuantity number
rejectedQuantity number

Methods

calculateSamProducedAndMachineMinutes(GroupedData)

Parameters:
Name Type Description
GroupedData Array.<efficiencyGroupedData> The data to be grouped
Returns:
([])

calculateSamProducedAndMachineMinutes(GroupedData)

Parameters:
Name Type Description
GroupedData Array.<efficiencyGroupedData> The data to be grouped
Returns:
([])

DHUDataGroupByLocationAndBatch(DHUDetails)

Parameters:
Name Type Description
DHUDetails Array.<DHUOverViewData> The data to be grouped
Returns:
([])

DHUDataGroupByLocationAndBatch(DHUDetails)

Parameters:
Name Type Description
DHUDetails Array.<DHUOverViewData> The data to be grouped
Returns:
([])

efficiencyDataGroupByLocationAndBatch(efficiencyData, DHUData, locationsWorkDaysList, batchWorkDaysList)

Parameters:
Name Type Description
efficiencyData Array.<efficiencyOverViewData> The data to be grouped
DHUData Array.<overViewDHUData> The DHU data to be included in grouped
locationsWorkDaysList Array.<locationWorkDays> The locations workdays to be included in grouped
batchWorkDaysList Array.<batchWorkDays> The batch workdays to be included in grouped
Returns:
([])

efficiencyDataGroupByLocationAndBatch(efficiencyData, DHUData, locationsWorkDaysList, batchWorkDaysList, isDateRangeFiltered)

Parameters:
Name Type Description
efficiencyData Array.<efficiencyOverViewData> The data to be grouped
DHUData Array.<overViewDHUData> The DHU data to be included in grouped
locationsWorkDaysList Array.<locationWorkDays> The locations workdays to be included in grouped
batchWorkDaysList Array.<batchWorkDays> The batch workdays to be included in grouped
isDateRangeFiltered boolean The status of date range selection
Returns:
([])

efficiencyTrendDataGroupByLocationAndDate(efficiencyData)

Parameters:
Name Type Description
efficiencyData Array.<efficiencyOverViewData> The data to be grouped
Returns:
([])

filterBasedOnWorkingHours(batchOutputData, batchScheduleDetails, overTimeBatchesScheduleDetails)

This function is responsible for grouping the data by batchNumber, ocNumber, productCode and date
Parameters:
Name Type Description
batchOutputData Array.<BatchOuputDetails> The data to be grouped
batchScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details

filterBasedOnWorkingHours(batchOutputData, batchScheduleDetails, overTimeBatchesScheduleDetails)

This function is responsible for grouping the data by batchNumber, ocNumber, productCode and date
Parameters:
Name Type Description
batchOutputData Array.<BatchOuputDetails> The data to be grouped
batchScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details

filterSewingDataBasedOnWorkingHours(batchTargetData, batchDhuDetails)

This function is responsible for grouping the hourly data for 8 hours
Parameters:
Name Type Description
batchTargetData Array.<SewingProductionTragetDetailsList> The batch target data to be grouped
batchDhuDetails Array.<SewingProductionDHUDetailsList> The batch dhu details

groupEfficiencyData(efficiencyData, batchesScheduleDetails, ocProductSamsResult, overTimeBatchesScheduleDetails, batchesTargetDetails) → {Array.<efficiencyGroupedData>}

Parameters:
Name Type Description
efficiencyData Array.<efficiencyData> The data to be grouped
batchesScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSamsResult Array.<OCProductSAMS> The sam for oc and product combination
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
batchesTargetDetails Array.<batchTargetDetails> The batch target details
Returns:
Type
Array.<efficiencyGroupedData>

groupEfficiencyData(efficiencyData, batchesScheduleDetails, ocProductSamsResult, jobWorkSamsResult, overTimeBatchesScheduleDetails, batchesTargetDetails) → {Array.<efficiencyGroupedData>}

Parameters:
Name Type Description
efficiencyData Array.<efficiencyData> The data to be grouped
batchesScheduleDetails Array.<BatchScheduleDetail> The batch schedule details
ocProductSamsResult Array.<OCProductSAMS> The sam for oc and product combination
jobWorkSamsResult Array.<OCProductSamsFromJobwork> The sam for oc and product from job work
overTimeBatchesScheduleDetails Array.<overTimeBatchScheduleDetail> The batch over time schedule details
batchesTargetDetails Array.<batchTargetDetails> The batch target details
Returns:
Type
Array.<efficiencyGroupedData>

Type Definitions

BatchOuputDetails

Type:
  • Object
Properties:
Name Type Description
BatchOuputDetails.location String The location
BatchOuputDetails.locationName String The location name
BatchOuputDetails.batchUnique number The oc number in batch output process
BatchOuputDetails.batchNumber String The batch number asscoiated with schedule and output quantity
BatchOuputDetails.ocNumber String The oc number in batch output process
BatchOuputDetails.productCode String The product code associated with OC number
BatchOuputDetails.date String The output entry date
BatchOuputDetails.hourMinutes String The hour for mentioned date for combination of batch/location
BatchOuputDetails.outputQuantity number The hourly output quantity for combination of batch/location

BatchOuputDetails

Type:
  • Object
Properties:
Name Type Description
dateWiseBatchScheduleAndQuantityDetail.location String The location
dateWiseBatchScheduleAndQuantityDetail.batchUnique number The oc number in batch output process
dateWiseBatchScheduleAndQuantityDetail.batchNumber String The batch number asscoiated with schedule and output quantity
dateWiseBatchScheduleAndQuantityDetail.ocNumber String The oc number in batch output process
dateWiseBatchScheduleAndQuantityDetail.productCode String The product code associated with OC number
dateWiseBatchScheduleAndQuantityDetail.date String The output entry date
dateWiseBatchScheduleAndQuantityDetail.hourMinutes String The hour for mentioned date for combination of batch/location
dateWiseBatchScheduleAndQuantityDetail.outputQuantity number The hourly output quantity for combination of batch/location

BatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
resourceDate String
numberOfMachines Number
numberOfHelpers Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String

BatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
resourceDate String
numberOfMachines Number
numberOfHelpers Number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String

batchTargetDetails

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique Number
batchNumber String
resourceDate String
ocNumber String
productCode String
targetQuantity Number

batchTargetDetails

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique Number
batchNumber String
resourceDate String
ocNumber String
productCode String
targetQuantity Number

batchWorkDays

Type:
  • Object
Properties:
Name Type Description
location String
batchNumber String
workDays String

batchWorkDays

Type:
  • Object
Properties:
Name Type Description
location String
batchNumber String
workDays String

DHUOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
status String
quantity number

DHUOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
status String
quantity number

efficiencyData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
ocNumber String
productCode String
date String
hourMinutes String
outputQuantity number

efficiencyData

Type:
  • Object
Properties:
Name Type Description
location String
locationName String
batchUnique number
batchNumber String
ocNumber String
productCode String
date String
hourMinutes String
outputQuantity number

efficiencyGroupedData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines number
numberOfHelpers number
overTimeStart String
overTimeEnd String
overTimeMachines number
overTimeHelpers number
overTimeOutPutQuantity number
sam number
globalSam number

efficiencyGroupedData

Type:
  • Object
Properties:
Name Type Description
location String
locationName String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
workStartTime String
workEndTime String
breakStartTime String
breakEndTime String
numberOfMachines number
numberOfHelpers number
overTimeStart String
overTimeEnd String
overTimeMachines number
overTimeHelpers number
overTimeOutPutQuantity number
sam number
globalSam number

efficiencyOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
locationName String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
sewingSamProduced number
sewingMachineMinutes number
globalSamProduced number
globalMachineMinutes number
totalWorkStation number
numberOfMachines number

efficiencyOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
sewingSamProduced number
sewingMachineMinutes number
globalSamProduced number
globalMachineMinutes number
totalWorkStation number
numberOfMachines number

efficiencyOverViewData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
batchTargetQuantity number
ocNumber String
productCode String
date String
outputQuantity number
sewingSamProduced number
sewingMachineMinutes number
globalSamProduced number
globalMachineMinutes number
totalWorkStation number
numberOfMachines number

locationWorkDays

Type:
  • Object
Properties:
Name Type Description
location String
workDays String

locationWorkDays

Type:
  • Object
Properties:
Name Type Description
location String
workDays String

OCProductSAMS

Type:
  • Object
Properties:
Name Type Description
productCode String
sam Number
globalSam Number

OCProductSAMS

Type:
  • Object
Properties:
Name Type Description
productCode String
sam Number
globalSam Number

OCProductSamsFromJobwork

Type:
  • Object
Properties:
Name Type Description
OCProductSamsFromJobwork.location String The location
OCProductSamsFromJobwork.productCode String The product Code
OCProductSamsFromJobwork.machineSam number The machine sam
OCProductSamsFromJobwork.globalSam number The global sam

overTimeBatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
overTimeDate String
overTimeMachines Number
overTimeHelpers Number
overTimeStart String
overTimeEnd String

overTimeBatchScheduleDetail

Type:
  • Object
Properties:
Name Type Description
batchNumber String
location String
overTimeDate String
overTimeMachines Number
overTimeHelpers Number
overTimeStart String
overTimeEnd String

overViewDHUData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
passedQuantity number
reworkedQuantity number
rejectedQuantity number

overViewDHUData

Type:
  • Object
Properties:
Name Type Description
location String
batchUnique number
batchNumber String
passedQuantity number
reworkedQuantity number
rejectedQuantity number