Methods
(static) getSewingEfficiency()
Sewing Efficiency calculation:
Sewing Sam Produced = Production Output Quantity * Garment Sam(sam from sage)
Machine Minutes = (Total Machines * totalWorkMinutes) + Machine OT minutes(present not applicable)
Sewing Efficiency = Sewing Sam Produced / Machine Minutes
(static) getSewingEfficiency()
Sewing Efficiency calculation:
Sewing Sam Produced = Production Output Quantity * Garment Sam(sam from sage)
Machine Minutes = (Total Machines * totalWorkMinutes) + Machine OT minutes(present not applicable)
Sewing Efficiency = Sewing Sam Produced / Machine Minutes
addDefectTypeDataToGrouping(groupedBatchDefectData, batchDefectTypeData)
Parameters:
| Name |
Type |
Description |
groupedBatchDefectData |
Map.<string, Array.<GroupedBatchDefectDataWithStatusTimeAndQuantity>>
|
|
batchDefectTypeData |
Array.<BatchDefectTypeData>
|
|
addDefectTypeDataToGrouping(groupedBatchDefectData, batchDefectTypeData)
Parameters:
| Name |
Type |
Description |
groupedBatchDefectData |
Map.<string, Array.<GroupedBatchDefectDataWithStatusTimeAndQuantity>>
|
|
batchDefectTypeData |
Array.<BatchDefectTypeData>
|
|
calculateHourlyEfficiency(batchDefectDataWithHourlyGrouping)
Parameters:
| Name |
Type |
Description |
batchDefectDataWithHourlyGrouping |
Map.<string, Array.<GroupedBatchDefectDataWithHourlyDetails>>
|
|
calculateHourlyEfficiency(batchDefectDataWithHourlyGrouping)
Parameters:
| Name |
Type |
Description |
batchDefectDataWithHourlyGrouping |
Map.<string, Array.<GroupedBatchDefectDataWithHourlyDetails>>
|
|
calculateTotalQuantitiesAndEfficiency(batchDefectDataWithHourlyGrouping)
Parameters:
| Name |
Type |
Description |
batchDefectDataWithHourlyGrouping |
Map.<string, Array.<GroupedBatchDefectDataWithHourlyDetailsAndEfficiency>>
|
|
calculateTotalQuantitiesAndEfficiency(batchDefectDataWithHourlyGrouping)
Parameters:
| Name |
Type |
Description |
batchDefectDataWithHourlyGrouping |
Map.<string, Array.<GroupedBatchDefectDataWithHourlyDetailsAndEfficiency>>
|
|
createHourlyDetailsForEachGrouping(batchDefectData)
Parameters:
| Name |
Type |
Description |
batchDefectData |
Map.<string, (GroupedBatchDefectDataWithStatusTimeAndQuantity|GroupedDefectType)>
|
|
createHourlyDetailsForEachGrouping(batchDefectData)
Parameters:
| Name |
Type |
Description |
batchDefectData |
Map.<string, (GroupedBatchDefectDataWithStatusTimeAndQuantity|GroupedDefectType)>
|
|
createStatusAndTimeAndQuantityForEachGrouping(groupedBatchDefectData)
Parameters:
| Name |
Type |
Description |
groupedBatchDefectData |
Map.<string, Array.<GroupedBatchDefectData>>
|
|
createStatusAndTimeAndQuantityForEachGrouping(groupedBatchDefectData)
Parameters:
| Name |
Type |
Description |
groupedBatchDefectData |
Map.<string, Array.<GroupedBatchDefectData>>
|
|
filterBasedOnWorkingHours(groupedDefectDataWithDefectTypes)
Parameters:
| Name |
Type |
Description |
groupedDefectDataWithDefectTypes |
Map.<string, (GroupedBatchDefectDataWithStatusTimeAndQuantity|GroupedDefectType)>
|
|
filterBasedOnWorkingHours(groupedDefectDataWithDefectTypes)
Parameters:
| Name |
Type |
Description |
groupedDefectDataWithDefectTypes |
Map.<string, (GroupedBatchDefectDataWithStatusTimeAndQuantity|GroupedDefectType)>
|
|
groupDefectData(batchDefectData, batchDefectTypeData, batchScheduleDetails, overTimeBatchesScheduleDetails, ocBuyerList, ocProductSams)
Parameters:
| Name |
Type |
Description |
batchDefectData |
Array.<BatchDefectData>
|
|
batchDefectTypeData |
Array.<BatchDefectTypeData>
|
|
batchScheduleDetails |
Array.<BatchScheduleDetail>
|
|
overTimeBatchesScheduleDetails |
Array.<overTimeBatchScheduleDetail>
|
|
ocBuyerList |
Array.<ocBuyerList>
|
The list of buyer based on oc number |
ocProductSams |
Array.<OCProductSAMS>
|
|
groupDefectData(batchDefectData, batchDefectTypeData, batchScheduleDetails, overTimeBatchesScheduleDetails, ocProductSams)
Parameters:
| Name |
Type |
Description |
batchDefectData |
Array.<BatchDefectData>
|
|
batchDefectTypeData |
Array.<BatchDefectTypeData>
|
|
batchScheduleDetails |
Array.<BatchScheduleDetail>
|
|
overTimeBatchesScheduleDetails |
Array.<overTimeBatchScheduleDetail>
|
|
ocProductSams |
Array.<OCProductSAMS>
|
|
reduceHourlyDetailsForEachGrouping(batchDefectDataWithHourlyGrouping)
Parameters:
| Name |
Type |
Description |
batchDefectDataWithHourlyGrouping |
Map.<string, Array.<GroupedBatchDefectDataWithHourlyDetails>>
|
|
reduceHourlyDetailsForEachGrouping(batchDefectDataWithHourlyGrouping)
Parameters:
| Name |
Type |
Description |
batchDefectDataWithHourlyGrouping |
Map.<string, Array.<GroupedBatchDefectDataWithHourlyDetails>>
|
|
(inner) reduceHourlyDetailsForEachGrouping()
Properties:
| Name |
Type |
Description |
GroupedBatchDefectDataWithHourlyDetails |
Object
|
|
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
productDescription |
String
|
|
hourMinutes |
String
|
|
workStartTime |
String
|
|
workEndTime |
String
|
|
breakStartTime |
String
|
|
breakEndTime |
String
|
|
numberOfMachines |
Number
|
|
sam |
Number
|
|
overTimeStart |
String
|
|
overTimeEnd |
String
|
|
hourlyDetails |
Array.<HourlyDetail>
|
|
(inner) reduceHourlyDetailsForEachGrouping()
Properties:
| Name |
Type |
Description |
GroupedBatchDefectDataWithHourlyDetails |
Object
|
|
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
productDescription |
String
|
|
hourMinutes |
String
|
|
workStartTime |
String
|
|
workEndTime |
String
|
|
breakStartTime |
String
|
|
breakEndTime |
String
|
|
numberOfMachines |
Number
|
|
sam |
Number
|
|
overTimeStart |
String
|
|
overTimeEnd |
String
|
|
hourlyDetails |
Array.<HourlyDetail>
|
|
Type Definitions
BatchDefectData
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
productDescription |
String
|
|
status |
String
|
|
hourMinutes |
String
|
|
quantity |
Number
|
|
BatchDefectData
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
productDescription |
String
|
|
status |
String
|
|
hourMinutes |
String
|
|
quantity |
Number
|
|
BatchDefectTypeData
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
hourMinutes |
String
|
|
defectType |
String
|
|
quantity |
Number
|
|
BatchDefectTypeData
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
hourMinutes |
String
|
|
defectType |
String
|
|
quantity |
Number
|
|
BatchScheduleBreakUpTime
Type:
Properties:
| Name |
Type |
Description |
BatchScheduleBreakUpTime.startTime |
String
|
The break up start time |
BatchScheduleBreakUpTime.endTime |
String
|
The break up end time |
BatchScheduleBreakUpTime
Type:
Properties:
| Name |
Type |
Description |
BatchScheduleBreakUpTime.startTime |
String
|
The break up start time |
BatchScheduleBreakUpTime.endTime |
String
|
The break up end time |
BatchScheduleDetail
Type:
Properties:
| Name |
Type |
Description |
batchNumber |
String
|
|
location |
String
|
|
resourceDate |
String
|
|
numberOfMachines |
Number
|
|
numberOfHelpers |
Number
|
|
workStartTime |
String
|
|
workEndTime |
String
|
|
breakStartTime |
String
|
|
breakEndTime |
String
|
|
BatchScheduleDetail
Type:
Properties:
| Name |
Type |
Description |
batchNumber |
String
|
|
location |
String
|
|
resourceDate |
String
|
|
numberOfMachines |
Number
|
|
numberOfHelpers |
Number
|
|
workStartTime |
String
|
|
workEndTime |
String
|
|
breakStartTime |
String
|
|
breakEndTime |
String
|
|
DefectTypesObject
Type:
Properties:
| Name |
Type |
Description |
defectType |
String
|
|
quantity |
Number
|
|
DefectTypesObject
Type:
Properties:
| Name |
Type |
Description |
defectType |
String
|
|
quantity |
Number
|
|
DefectTypesObject
Type:
Properties:
| Name |
Type |
Description |
defectType |
String
|
|
quantity |
Number
|
|
DefectTypesObject
Type:
Properties:
| Name |
Type |
Description |
defectType |
String
|
|
quantity |
Number
|
|
GroupedBatchDefectData
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
productDescription |
String
|
|
status |
String
|
|
hourMinutes |
String
|
|
quantity |
Number
|
|
workStartTime |
String
|
|
workEndTime |
String
|
|
breakStartTime |
String
|
|
breakEndTime |
String
|
|
numberOfMachines |
Number
|
|
sam |
Number
|
|
overTimeStart |
String
|
|
overTimeEnd |
String
|
|
GroupedBatchDefectData
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
productDescription |
String
|
|
status |
String
|
|
hourMinutes |
String
|
|
quantity |
Number
|
|
workStartTime |
String
|
|
workEndTime |
String
|
|
breakStartTime |
String
|
|
breakEndTime |
String
|
|
numberOfMachines |
Number
|
|
sam |
Number
|
|
overTimeStart |
String
|
|
overTimeEnd |
String
|
|
GroupedBatchDefectDataWithHourlyDetails
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
productDescription |
String
|
|
hourMinutes |
String
|
|
workStartTime |
String
|
|
workEndTime |
String
|
|
breakStartTime |
String
|
|
breakEndTime |
String
|
|
numberOfMachines |
Number
|
|
sam |
Number
|
|
hourlyDetails |
Array.<HourlyDetailWithQuantitiesAndDefectTypes>
|
|
GroupedBatchDefectDataWithHourlyDetails
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
productDescription |
String
|
|
hourMinutes |
String
|
|
workStartTime |
String
|
|
workEndTime |
String
|
|
breakStartTime |
String
|
|
breakEndTime |
String
|
|
numberOfMachines |
Number
|
|
sam |
Number
|
|
hourlyDetails |
Array.<HourlyDetailWithQuantitiesAndDefectTypes>
|
|
GroupedBatchDefectDataWithHourlyDetailsAndEfficiency
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
productDescription |
String
|
|
hourMinutes |
String
|
|
workStartTime |
String
|
|
workEndTime |
String
|
|
breakStartTime |
String
|
|
breakEndTime |
String
|
|
numberOfMachines |
Number
|
|
sam |
Number
|
|
hourlyDetails |
Array.<HourlyDetailWithQuantitiesAndDefectTypes>
|
|
GroupedBatchDefectDataWithHourlyDetailsAndEfficiency
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
productDescription |
String
|
|
hourMinutes |
String
|
|
workStartTime |
String
|
|
workEndTime |
String
|
|
breakStartTime |
String
|
|
breakEndTime |
String
|
|
numberOfMachines |
Number
|
|
sam |
Number
|
|
hourlyDetails |
Array.<HourlyDetailWithQuantitiesAndDefectTypes>
|
|
GroupedBatchDefectDataWithStatusTimeAndQuantity
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
productDescription |
String
|
|
hourMinutes |
String
|
|
workStartTime |
String
|
|
workEndTime |
String
|
|
breakStartTime |
String
|
|
breakEndTime |
String
|
|
numberOfMachines |
Number
|
|
sam |
Number
|
|
overTimeStart |
String
|
|
overTimeEnd |
String
|
|
statusTimeAndQuantities |
Array.<StatusTimeAndQuantities>
|
|
GroupedBatchDefectDataWithStatusTimeAndQuantity
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
ocNumber |
String
|
|
productCode |
String
|
|
productDescription |
String
|
|
hourMinutes |
String
|
|
workStartTime |
String
|
|
workEndTime |
String
|
|
breakStartTime |
String
|
|
breakEndTime |
String
|
|
numberOfMachines |
Number
|
|
sam |
Number
|
|
overTimeStart |
String
|
|
overTimeEnd |
String
|
|
statusTimeAndQuantities |
Array.<StatusTimeAndQuantities>
|
|
GroupedDefectType
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
productCode |
String
|
|
GroupedDefectType
Type:
Properties:
| Name |
Type |
Description |
date |
String
|
|
batchNumber |
String
|
|
productCode |
String
|
|
HourlyDetail
Type:
Properties:
| Name |
Type |
Description |
startTime |
String
|
|
endTime |
String
|
|
hourlyGroupedStatusTimeAndQuantities |
Array.<HourlyGroupedStatusTimeAndQuantities>
|
|
hourlyGroupedDefectTypeData |
Array.<HourlyGroupedDefectTypeData>
|
|
HourlyDetail
Type:
Properties:
| Name |
Type |
Description |
startTime |
String
|
|
endTime |
String
|
|
hourlyGroupedStatusTimeAndQuantities |
Array.<HourlyGroupedStatusTimeAndQuantities>
|
|
hourlyGroupedDefectTypeData |
Array.<HourlyGroupedDefectTypeData>
|
|
HourlyDetailWithQuantitiesAndDefectTypes
Type:
Properties:
| Name |
Type |
Description |
startTime |
String
|
|
endTime |
String
|
|
passedQuantity |
Number
|
|
reworkedQuantity |
Number
|
|
rejectedQuantity |
Number
|
|
hourEfficiency |
Number
|
|
defectDetails |
Array.<DefectTypesObject>
|
|
HourlyDetailWithQuantitiesAndDefectTypes
Type:
Properties:
| Name |
Type |
Description |
startTime |
String
|
|
endTime |
String
|
|
passedQuantity |
Number
|
|
reworkedQuantity |
Number
|
|
rejectedQuantity |
Number
|
|
defectDetails |
Array.<DefectTypesObject>
|
|
HourlyDetailWithQuantitiesAndDefectTypes
Type:
Properties:
| Name |
Type |
Description |
startTime |
String
|
|
endTime |
String
|
|
passedQuantity |
Number
|
|
reworkedQuantity |
Number
|
|
rejectedQuantity |
Number
|
|
hourEfficiency |
Number
|
|
defectDetails |
Array.<DefectTypesObject>
|
|
HourlyDetailWithQuantitiesAndDefectTypes
Type:
Properties:
| Name |
Type |
Description |
startTime |
String
|
|
endTime |
String
|
|
passedQuantity |
Number
|
|
reworkedQuantity |
Number
|
|
rejectedQuantity |
Number
|
|
defectDetails |
Array.<DefectTypesObject>
|
|
HourlyGroupedDefectTypeData
Type:
Properties:
| Name |
Type |
Description |
defectType |
String
|
|
HourlyGroupedDefectTypeData
Type:
Properties:
| Name |
Type |
Description |
defectType |
String
|
|
HourlyGroupedStatusTimeAndQuantities
Type:
Properties:
| Name |
Type |
Description |
status |
String
|
|
quantity |
Number
|
|
HourlyGroupedStatusTimeAndQuantities
Type:
Properties:
| Name |
Type |
Description |
status |
String
|
|
quantity |
Number
|
|
ocBuyerList
Type:
Properties:
| Name |
Type |
Description |
ocNumber |
String
|
|
buyer |
String
|
|
OCProductSAMS
Type:
Properties:
| Name |
Type |
Description |
productCode |
String
|
|
sam |
Number
|
|
globalSam |
Number
|
|
OCProductSAMS
Type:
Properties:
| Name |
Type |
Description |
productCode |
String
|
|
sam |
Number
|
|
globalSam |
Number
|
|
overTimeBatchScheduleDetail
Type:
Properties:
| Name |
Type |
Description |
batchNumber |
String
|
|
location |
String
|
|
overTimeDate |
String
|
|
overTimeMachines |
Number
|
|
overTimeHelpers |
Number
|
|
overTimeStart |
String
|
|
overTimeEnd |
String
|
|
overTimeBatchScheduleDetail
Type:
Properties:
| Name |
Type |
Description |
batchNumber |
String
|
|
location |
String
|
|
overTimeDate |
String
|
|
overTimeMachines |
Number
|
|
overTimeHelpers |
Number
|
|
overTimeStart |
String
|
|
overTimeEnd |
String
|
|
StatusTimeAndQuantities
Type:
Properties:
| Name |
Type |
Description |
hourMinutes |
String
|
|
status |
String
|
|
quantity |
Number
|
|
StatusTimeAndQuantities
Type:
Properties:
| Name |
Type |
Description |
hourMinutes |
String
|
|
status |
String
|
|
quantity |
Number
|
|