@ricado/api-client 2.1.1 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
- package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +29 -1
- package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
- package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
- package/lib/Controllers/Packhouse/Site/index.js +12 -0
- package/lib/DataItems/PointValueItem.js +3 -3
- package/lib/Models/AccountPolicyModel.js +7 -7
- package/lib/Models/ApiAccountModel.js +7 -7
- package/lib/Models/CompanyModel.js +5 -5
- package/lib/Models/FirebaseTokenModel.js +8 -8
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -15
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
- package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
- package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
- package/lib/Models/Packhouse/Site/PackingLineModel.js +583 -16
- package/lib/Models/Packhouse/Site/PackrunModel.js +81 -15
- package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +204 -38
- package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
- package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
- package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
- package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
- package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
- package/lib/Models/Packhouse/Site/index.js +12 -0
- package/lib/Models/RTUModel.js +6 -6
- package/lib/Models/RTUPluginModel.js +5 -5
- package/lib/Models/Site/AlarmGroupModel.js +7 -7
- package/lib/Models/Site/AlarmModel.js +17 -17
- package/lib/Models/Site/DefinitionModel.js +6 -6
- package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
- package/lib/Models/Site/PermanentObjectModel.js +7 -7
- package/lib/Models/Site/PointModel.js +11 -11
- package/lib/Models/Site/TemporaryObjectModel.js +6 -6
- package/lib/Models/SiteModel.js +6 -6
- package/lib/Models/TokenModel.js +10 -10
- package/lib/Models/UserAccountActionTokenModel.js +11 -11
- package/lib/Models/UserAccountModel.js +10 -10
- package/lib/PackageVersion.js +1 -1
- package/lib/Points.js +22 -12
- package/lib/WebSocketHelper.js +29 -13
- package/lib/index.d.ts +2473 -348
- package/lib/index.js +3 -3
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
- package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
- package/src/Controllers/Packhouse/Site/PackingLineController.js +29 -1
- package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
- package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
- package/src/Controllers/Packhouse/Site/index.js +8 -0
- package/src/DataItems/PointValueItem.js +3 -3
- package/src/Models/AccountPolicyModel.js +7 -7
- package/src/Models/ApiAccountModel.js +7 -7
- package/src/Models/CompanyModel.js +5 -5
- package/src/Models/FirebaseTokenModel.js +8 -8
- package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
- package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
- package/src/Models/Packhouse/Site/CompacSizerModel.js +15 -15
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
- package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
- package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
- package/src/Models/Packhouse/Site/PackingLineModel.js +770 -16
- package/src/Models/Packhouse/Site/PackrunModel.js +90 -15
- package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +229 -38
- package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
- package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
- package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
- package/src/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
- package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
- package/src/Models/Packhouse/Site/index.js +8 -0
- package/src/Models/RTUModel.js +6 -6
- package/src/Models/RTUPluginModel.js +5 -5
- package/src/Models/Site/AlarmGroupModel.js +7 -7
- package/src/Models/Site/AlarmModel.js +17 -17
- package/src/Models/Site/DefinitionModel.js +6 -6
- package/src/Models/Site/PermanentObjectDataModel.js +8 -8
- package/src/Models/Site/PermanentObjectModel.js +7 -7
- package/src/Models/Site/PointModel.js +11 -11
- package/src/Models/Site/TemporaryObjectModel.js +6 -6
- package/src/Models/SiteModel.js +6 -6
- package/src/Models/TokenModel.js +10 -10
- package/src/Models/UserAccountActionTokenModel.js +11 -11
- package/src/Models/UserAccountModel.js +10 -10
- package/src/PackageVersion.js +1 -1
- package/src/Points.js +24 -12
- package/src/WebSocketHelper.js +34 -13
- package/src/index.js +3 -3
- package/types/tslint.json +2 -1
|
@@ -31,7 +31,7 @@ class PackingLineModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The RTU this Packing Line belongs to
|
|
@@ -39,7 +39,7 @@ class PackingLineModel extends BaseModel
|
|
|
39
39
|
* @type {?number}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.rtuId =
|
|
42
|
+
this.rtuId = null;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Packing Line Name
|
|
@@ -47,7 +47,7 @@ class PackingLineModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.name =
|
|
50
|
+
this.name = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Points used by this Packing Line
|
|
@@ -55,7 +55,7 @@ class PackingLineModel extends BaseModel
|
|
|
55
55
|
* @type {Object}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.points =
|
|
58
|
+
this.points = {}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Sizer Objects that belong to this Packing Line
|
|
@@ -63,7 +63,7 @@ class PackingLineModel extends BaseModel
|
|
|
63
63
|
* @type {Object[]}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.sizers =
|
|
66
|
+
this.sizers = [];
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Bin Tip Objects that belong to this this Packing Line
|
|
@@ -71,7 +71,7 @@ class PackingLineModel extends BaseModel
|
|
|
71
71
|
* @type {Object[]}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.binTips =
|
|
74
|
+
this.binTips = [];
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Reject Bin Scale Objects that belong to this Packing Line
|
|
@@ -79,7 +79,15 @@ class PackingLineModel extends BaseModel
|
|
|
79
79
|
* @type {Object[]}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.rejectBinScales =
|
|
82
|
+
this.rejectBinScales = [];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* An Optional Secondary Packing Line Reference
|
|
86
|
+
*
|
|
87
|
+
* @type {?Object}
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
this.secondaryPackingLine = null;
|
|
83
91
|
|
|
84
92
|
/**
|
|
85
93
|
* The Automation Object for this Packing Line
|
|
@@ -87,7 +95,7 @@ class PackingLineModel extends BaseModel
|
|
|
87
95
|
* @type {?Object}
|
|
88
96
|
* @public
|
|
89
97
|
*/
|
|
90
|
-
this.automation =
|
|
98
|
+
this.automation = null;
|
|
91
99
|
|
|
92
100
|
/**
|
|
93
101
|
* The Alarm Groups that are used by this Packing Line
|
|
@@ -95,7 +103,7 @@ class PackingLineModel extends BaseModel
|
|
|
95
103
|
* @type {string[]}
|
|
96
104
|
* @public
|
|
97
105
|
*/
|
|
98
|
-
this.alarmGroups =
|
|
106
|
+
this.alarmGroups = [];
|
|
99
107
|
|
|
100
108
|
/**
|
|
101
109
|
* The Class Types that are defined for this Packing Line
|
|
@@ -103,15 +111,31 @@ class PackingLineModel extends BaseModel
|
|
|
103
111
|
* @type {Object[]}
|
|
104
112
|
* @public
|
|
105
113
|
*/
|
|
106
|
-
this.classTypes =
|
|
114
|
+
this.classTypes = [];
|
|
107
115
|
|
|
108
116
|
/**
|
|
109
117
|
* The Optional Shift Management Object for this Packing Line
|
|
110
118
|
*
|
|
111
|
-
* @type {?{points: {currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, shiftSchedules: number}, enabled: boolean}}
|
|
119
|
+
* @type {?{points: {currentShiftId: number, createNewDayShiftRequest: number, createNewNightShiftRequest: number, startCurrentShiftRequest: number, finishCurrentShiftRequest: number, currentFocusMeetingId: number, startFocusMeetingRequest: number, finishFocusMeetingRequest: number, currentShiftStatus: number, currentShiftModifyHourlyEntryRequest: number, shiftSchedules: number, currentShiftClass1TraysPerHourTarget: number, currentShiftClass1TraysPerHourAdjustedTarget: number, currentShiftClass1TraysPerHour: number, currentShiftCostPerTrayTarget: number, currentShiftCostPerTrayAdjustedTarget: number, currentShiftCostPerTray: number, currentShiftManningTarget: number, currentShiftClass1Manning: number, currentShiftClass2Manning: number, currentShiftQualityR600IdealTarget: number, currentShiftQualityR600Ideal: number, currentShiftScorePercentage: number, class1TraysPerHourTargets: number, costPerTrayTargets: number, manningTargets: number, qualityR600IdealTargets: number, costPerManningUnitHour: number, class1TraysPerHourScoreWeighting: number, costPerTrayScoreWeighting: number, qualityR600IdealScoreWeighting: number}, customQualityConfiguration: Array<{id: string, name: string, type: string, points: {currentShiftCustomQualityTarget: number, currentShiftCustomQualityValue: number, customQualityTargets: number, customQualityScoreWeighting: number}}>, enabled: boolean, taskDefinitions: Array<{type: string, tags: Array<{id: string, name: string, color: string, deleted: boolean}>}>}}
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
this.shiftManagement = null;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The Advanced Packrun Management Configuration for this Packing Line
|
|
126
|
+
*
|
|
127
|
+
* @type {?Object}
|
|
112
128
|
* @public
|
|
113
129
|
*/
|
|
114
|
-
this.
|
|
130
|
+
this.advancedPackrunManagement = null;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The MAF Integration Configuration for this Packing Line
|
|
134
|
+
*
|
|
135
|
+
* @type {?Object}
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
this.mafIntegration = null;
|
|
115
139
|
|
|
116
140
|
/**
|
|
117
141
|
* The FreshPack Integration Configuration for this Packing Line
|
|
@@ -119,7 +143,7 @@ class PackingLineModel extends BaseModel
|
|
|
119
143
|
* @type {?Object}
|
|
120
144
|
* @public
|
|
121
145
|
*/
|
|
122
|
-
this.freshPackIntegration =
|
|
146
|
+
this.freshPackIntegration = null;
|
|
123
147
|
|
|
124
148
|
/**
|
|
125
149
|
* The FreshQuality Integration Configuration for this Packing Line
|
|
@@ -127,7 +151,7 @@ class PackingLineModel extends BaseModel
|
|
|
127
151
|
* @type {?Object}
|
|
128
152
|
* @public
|
|
129
153
|
*/
|
|
130
|
-
this.freshQualityIntegration =
|
|
154
|
+
this.freshQualityIntegration = null;
|
|
131
155
|
|
|
132
156
|
/**
|
|
133
157
|
* Whether the Packing Line has been deleted
|
|
@@ -135,7 +159,7 @@ class PackingLineModel extends BaseModel
|
|
|
135
159
|
* @type {boolean}
|
|
136
160
|
* @public
|
|
137
161
|
*/
|
|
138
|
-
this.deleted =
|
|
162
|
+
this.deleted = false;
|
|
139
163
|
|
|
140
164
|
/**
|
|
141
165
|
* When the Packing Line was last updated
|
|
@@ -143,7 +167,7 @@ class PackingLineModel extends BaseModel
|
|
|
143
167
|
* @type {Date}
|
|
144
168
|
* @public
|
|
145
169
|
*/
|
|
146
|
-
this.updateTimestamp =
|
|
170
|
+
this.updateTimestamp = new Date();
|
|
147
171
|
|
|
148
172
|
/**
|
|
149
173
|
* The Site ID associated with this Packing Line
|
|
@@ -299,6 +323,23 @@ class PackingLineModel extends BaseModel
|
|
|
299
323
|
}());
|
|
300
324
|
}
|
|
301
325
|
|
|
326
|
+
if('secondaryPackingLine' in jsonObject)
|
|
327
|
+
{
|
|
328
|
+
model.secondaryPackingLine = (function(){
|
|
329
|
+
if(jsonObject['secondaryPackingLine'] === null)
|
|
330
|
+
{
|
|
331
|
+
return null;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
if(typeof jsonObject['secondaryPackingLine'] !== 'object')
|
|
335
|
+
{
|
|
336
|
+
return Object(jsonObject['secondaryPackingLine']);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
return jsonObject['secondaryPackingLine'];
|
|
340
|
+
}());
|
|
341
|
+
}
|
|
342
|
+
|
|
302
343
|
if('automation' in jsonObject)
|
|
303
344
|
{
|
|
304
345
|
model.automation = (function(){
|
|
@@ -501,6 +542,38 @@ class PackingLineModel extends BaseModel
|
|
|
501
542
|
pointsObject.finishFocusMeetingRequest = 0;
|
|
502
543
|
}
|
|
503
544
|
|
|
545
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftStatus' in jsonObject['shiftManagement'].points)
|
|
546
|
+
{
|
|
547
|
+
pointsObject.currentShiftStatus = (function(){
|
|
548
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftStatus !== 'number')
|
|
549
|
+
{
|
|
550
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftStatus)) ? Number(jsonObject['shiftManagement'].points.currentShiftStatus) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftStatus));
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftStatus) ? jsonObject['shiftManagement'].points.currentShiftStatus : Math.floor(jsonObject['shiftManagement'].points.currentShiftStatus);
|
|
554
|
+
}());
|
|
555
|
+
}
|
|
556
|
+
else
|
|
557
|
+
{
|
|
558
|
+
pointsObject.currentShiftStatus = 0;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftModifyHourlyEntryRequest' in jsonObject['shiftManagement'].points)
|
|
562
|
+
{
|
|
563
|
+
pointsObject.currentShiftModifyHourlyEntryRequest = (function(){
|
|
564
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest !== 'number')
|
|
565
|
+
{
|
|
566
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest)) ? Number(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest));
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest) ? jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest : Math.floor(jsonObject['shiftManagement'].points.currentShiftModifyHourlyEntryRequest);
|
|
570
|
+
}());
|
|
571
|
+
}
|
|
572
|
+
else
|
|
573
|
+
{
|
|
574
|
+
pointsObject.currentShiftModifyHourlyEntryRequest = 0;
|
|
575
|
+
}
|
|
576
|
+
|
|
504
577
|
if(typeof jsonObject['shiftManagement'].points === 'object' && 'shiftSchedules' in jsonObject['shiftManagement'].points)
|
|
505
578
|
{
|
|
506
579
|
pointsObject.shiftSchedules = (function(){
|
|
@@ -516,6 +589,326 @@ class PackingLineModel extends BaseModel
|
|
|
516
589
|
{
|
|
517
590
|
pointsObject.shiftSchedules = 0;
|
|
518
591
|
}
|
|
592
|
+
|
|
593
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftClass1TraysPerHourTarget' in jsonObject['shiftManagement'].points)
|
|
594
|
+
{
|
|
595
|
+
pointsObject.currentShiftClass1TraysPerHourTarget = (function(){
|
|
596
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget !== 'number')
|
|
597
|
+
{
|
|
598
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget));
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget) ? jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourTarget);
|
|
602
|
+
}());
|
|
603
|
+
}
|
|
604
|
+
else
|
|
605
|
+
{
|
|
606
|
+
pointsObject.currentShiftClass1TraysPerHourTarget = 0;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftClass1TraysPerHourAdjustedTarget' in jsonObject['shiftManagement'].points)
|
|
610
|
+
{
|
|
611
|
+
pointsObject.currentShiftClass1TraysPerHourAdjustedTarget = (function(){
|
|
612
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget !== 'number')
|
|
613
|
+
{
|
|
614
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget));
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget) ? jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHourAdjustedTarget);
|
|
618
|
+
}());
|
|
619
|
+
}
|
|
620
|
+
else
|
|
621
|
+
{
|
|
622
|
+
pointsObject.currentShiftClass1TraysPerHourAdjustedTarget = 0;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftClass1TraysPerHour' in jsonObject['shiftManagement'].points)
|
|
626
|
+
{
|
|
627
|
+
pointsObject.currentShiftClass1TraysPerHour = (function(){
|
|
628
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour !== 'number')
|
|
629
|
+
{
|
|
630
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour));
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour) ? jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass1TraysPerHour);
|
|
634
|
+
}());
|
|
635
|
+
}
|
|
636
|
+
else
|
|
637
|
+
{
|
|
638
|
+
pointsObject.currentShiftClass1TraysPerHour = 0;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftCostPerTrayTarget' in jsonObject['shiftManagement'].points)
|
|
642
|
+
{
|
|
643
|
+
pointsObject.currentShiftCostPerTrayTarget = (function(){
|
|
644
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget !== 'number')
|
|
645
|
+
{
|
|
646
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget));
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget) ? jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftCostPerTrayTarget);
|
|
650
|
+
}());
|
|
651
|
+
}
|
|
652
|
+
else
|
|
653
|
+
{
|
|
654
|
+
pointsObject.currentShiftCostPerTrayTarget = 0;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftCostPerTrayAdjustedTarget' in jsonObject['shiftManagement'].points)
|
|
658
|
+
{
|
|
659
|
+
pointsObject.currentShiftCostPerTrayAdjustedTarget = (function(){
|
|
660
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget !== 'number')
|
|
661
|
+
{
|
|
662
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget));
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget) ? jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftCostPerTrayAdjustedTarget);
|
|
666
|
+
}());
|
|
667
|
+
}
|
|
668
|
+
else
|
|
669
|
+
{
|
|
670
|
+
pointsObject.currentShiftCostPerTrayAdjustedTarget = 0;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftCostPerTray' in jsonObject['shiftManagement'].points)
|
|
674
|
+
{
|
|
675
|
+
pointsObject.currentShiftCostPerTray = (function(){
|
|
676
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftCostPerTray !== 'number')
|
|
677
|
+
{
|
|
678
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTray)) ? Number(jsonObject['shiftManagement'].points.currentShiftCostPerTray) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftCostPerTray));
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftCostPerTray) ? jsonObject['shiftManagement'].points.currentShiftCostPerTray : Math.floor(jsonObject['shiftManagement'].points.currentShiftCostPerTray);
|
|
682
|
+
}());
|
|
683
|
+
}
|
|
684
|
+
else
|
|
685
|
+
{
|
|
686
|
+
pointsObject.currentShiftCostPerTray = 0;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftManningTarget' in jsonObject['shiftManagement'].points)
|
|
690
|
+
{
|
|
691
|
+
pointsObject.currentShiftManningTarget = (function(){
|
|
692
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftManningTarget !== 'number')
|
|
693
|
+
{
|
|
694
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftManningTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftManningTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftManningTarget));
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftManningTarget) ? jsonObject['shiftManagement'].points.currentShiftManningTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftManningTarget);
|
|
698
|
+
}());
|
|
699
|
+
}
|
|
700
|
+
else
|
|
701
|
+
{
|
|
702
|
+
pointsObject.currentShiftManningTarget = 0;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftClass1Manning' in jsonObject['shiftManagement'].points)
|
|
706
|
+
{
|
|
707
|
+
pointsObject.currentShiftClass1Manning = (function(){
|
|
708
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftClass1Manning !== 'number')
|
|
709
|
+
{
|
|
710
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass1Manning)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass1Manning) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass1Manning));
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass1Manning) ? jsonObject['shiftManagement'].points.currentShiftClass1Manning : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass1Manning);
|
|
714
|
+
}());
|
|
715
|
+
}
|
|
716
|
+
else
|
|
717
|
+
{
|
|
718
|
+
pointsObject.currentShiftClass1Manning = 0;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftClass2Manning' in jsonObject['shiftManagement'].points)
|
|
722
|
+
{
|
|
723
|
+
pointsObject.currentShiftClass2Manning = (function(){
|
|
724
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftClass2Manning !== 'number')
|
|
725
|
+
{
|
|
726
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftClass2Manning)) ? Number(jsonObject['shiftManagement'].points.currentShiftClass2Manning) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftClass2Manning));
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftClass2Manning) ? jsonObject['shiftManagement'].points.currentShiftClass2Manning : Math.floor(jsonObject['shiftManagement'].points.currentShiftClass2Manning);
|
|
730
|
+
}());
|
|
731
|
+
}
|
|
732
|
+
else
|
|
733
|
+
{
|
|
734
|
+
pointsObject.currentShiftClass2Manning = 0;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftQualityR600IdealTarget' in jsonObject['shiftManagement'].points)
|
|
738
|
+
{
|
|
739
|
+
pointsObject.currentShiftQualityR600IdealTarget = (function(){
|
|
740
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget !== 'number')
|
|
741
|
+
{
|
|
742
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget)) ? Number(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget));
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget) ? jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget : Math.floor(jsonObject['shiftManagement'].points.currentShiftQualityR600IdealTarget);
|
|
746
|
+
}());
|
|
747
|
+
}
|
|
748
|
+
else
|
|
749
|
+
{
|
|
750
|
+
pointsObject.currentShiftQualityR600IdealTarget = 0;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftQualityR600Ideal' in jsonObject['shiftManagement'].points)
|
|
754
|
+
{
|
|
755
|
+
pointsObject.currentShiftQualityR600Ideal = (function(){
|
|
756
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal !== 'number')
|
|
757
|
+
{
|
|
758
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal)) ? Number(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal));
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal) ? jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal : Math.floor(jsonObject['shiftManagement'].points.currentShiftQualityR600Ideal);
|
|
762
|
+
}());
|
|
763
|
+
}
|
|
764
|
+
else
|
|
765
|
+
{
|
|
766
|
+
pointsObject.currentShiftQualityR600Ideal = 0;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'currentShiftScorePercentage' in jsonObject['shiftManagement'].points)
|
|
770
|
+
{
|
|
771
|
+
pointsObject.currentShiftScorePercentage = (function(){
|
|
772
|
+
if(typeof jsonObject['shiftManagement'].points.currentShiftScorePercentage !== 'number')
|
|
773
|
+
{
|
|
774
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.currentShiftScorePercentage)) ? Number(jsonObject['shiftManagement'].points.currentShiftScorePercentage) : Math.floor(Number(jsonObject['shiftManagement'].points.currentShiftScorePercentage));
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.currentShiftScorePercentage) ? jsonObject['shiftManagement'].points.currentShiftScorePercentage : Math.floor(jsonObject['shiftManagement'].points.currentShiftScorePercentage);
|
|
778
|
+
}());
|
|
779
|
+
}
|
|
780
|
+
else
|
|
781
|
+
{
|
|
782
|
+
pointsObject.currentShiftScorePercentage = 0;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'class1TraysPerHourTargets' in jsonObject['shiftManagement'].points)
|
|
786
|
+
{
|
|
787
|
+
pointsObject.class1TraysPerHourTargets = (function(){
|
|
788
|
+
if(typeof jsonObject['shiftManagement'].points.class1TraysPerHourTargets !== 'number')
|
|
789
|
+
{
|
|
790
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.class1TraysPerHourTargets)) ? Number(jsonObject['shiftManagement'].points.class1TraysPerHourTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.class1TraysPerHourTargets));
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.class1TraysPerHourTargets) ? jsonObject['shiftManagement'].points.class1TraysPerHourTargets : Math.floor(jsonObject['shiftManagement'].points.class1TraysPerHourTargets);
|
|
794
|
+
}());
|
|
795
|
+
}
|
|
796
|
+
else
|
|
797
|
+
{
|
|
798
|
+
pointsObject.class1TraysPerHourTargets = 0;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'costPerTrayTargets' in jsonObject['shiftManagement'].points)
|
|
802
|
+
{
|
|
803
|
+
pointsObject.costPerTrayTargets = (function(){
|
|
804
|
+
if(typeof jsonObject['shiftManagement'].points.costPerTrayTargets !== 'number')
|
|
805
|
+
{
|
|
806
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.costPerTrayTargets)) ? Number(jsonObject['shiftManagement'].points.costPerTrayTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.costPerTrayTargets));
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.costPerTrayTargets) ? jsonObject['shiftManagement'].points.costPerTrayTargets : Math.floor(jsonObject['shiftManagement'].points.costPerTrayTargets);
|
|
810
|
+
}());
|
|
811
|
+
}
|
|
812
|
+
else
|
|
813
|
+
{
|
|
814
|
+
pointsObject.costPerTrayTargets = 0;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'manningTargets' in jsonObject['shiftManagement'].points)
|
|
818
|
+
{
|
|
819
|
+
pointsObject.manningTargets = (function(){
|
|
820
|
+
if(typeof jsonObject['shiftManagement'].points.manningTargets !== 'number')
|
|
821
|
+
{
|
|
822
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.manningTargets)) ? Number(jsonObject['shiftManagement'].points.manningTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.manningTargets));
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.manningTargets) ? jsonObject['shiftManagement'].points.manningTargets : Math.floor(jsonObject['shiftManagement'].points.manningTargets);
|
|
826
|
+
}());
|
|
827
|
+
}
|
|
828
|
+
else
|
|
829
|
+
{
|
|
830
|
+
pointsObject.manningTargets = 0;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'qualityR600IdealTargets' in jsonObject['shiftManagement'].points)
|
|
834
|
+
{
|
|
835
|
+
pointsObject.qualityR600IdealTargets = (function(){
|
|
836
|
+
if(typeof jsonObject['shiftManagement'].points.qualityR600IdealTargets !== 'number')
|
|
837
|
+
{
|
|
838
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.qualityR600IdealTargets)) ? Number(jsonObject['shiftManagement'].points.qualityR600IdealTargets) : Math.floor(Number(jsonObject['shiftManagement'].points.qualityR600IdealTargets));
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.qualityR600IdealTargets) ? jsonObject['shiftManagement'].points.qualityR600IdealTargets : Math.floor(jsonObject['shiftManagement'].points.qualityR600IdealTargets);
|
|
842
|
+
}());
|
|
843
|
+
}
|
|
844
|
+
else
|
|
845
|
+
{
|
|
846
|
+
pointsObject.qualityR600IdealTargets = 0;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'costPerManningUnitHour' in jsonObject['shiftManagement'].points)
|
|
850
|
+
{
|
|
851
|
+
pointsObject.costPerManningUnitHour = (function(){
|
|
852
|
+
if(typeof jsonObject['shiftManagement'].points.costPerManningUnitHour !== 'number')
|
|
853
|
+
{
|
|
854
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.costPerManningUnitHour)) ? Number(jsonObject['shiftManagement'].points.costPerManningUnitHour) : Math.floor(Number(jsonObject['shiftManagement'].points.costPerManningUnitHour));
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.costPerManningUnitHour) ? jsonObject['shiftManagement'].points.costPerManningUnitHour : Math.floor(jsonObject['shiftManagement'].points.costPerManningUnitHour);
|
|
858
|
+
}());
|
|
859
|
+
}
|
|
860
|
+
else
|
|
861
|
+
{
|
|
862
|
+
pointsObject.costPerManningUnitHour = 0;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'class1TraysPerHourScoreWeighting' in jsonObject['shiftManagement'].points)
|
|
866
|
+
{
|
|
867
|
+
pointsObject.class1TraysPerHourScoreWeighting = (function(){
|
|
868
|
+
if(typeof jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting !== 'number')
|
|
869
|
+
{
|
|
870
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting)) ? Number(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting) : Math.floor(Number(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting));
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting) ? jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting : Math.floor(jsonObject['shiftManagement'].points.class1TraysPerHourScoreWeighting);
|
|
874
|
+
}());
|
|
875
|
+
}
|
|
876
|
+
else
|
|
877
|
+
{
|
|
878
|
+
pointsObject.class1TraysPerHourScoreWeighting = 0;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'costPerTrayScoreWeighting' in jsonObject['shiftManagement'].points)
|
|
882
|
+
{
|
|
883
|
+
pointsObject.costPerTrayScoreWeighting = (function(){
|
|
884
|
+
if(typeof jsonObject['shiftManagement'].points.costPerTrayScoreWeighting !== 'number')
|
|
885
|
+
{
|
|
886
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting)) ? Number(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting) : Math.floor(Number(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting));
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting) ? jsonObject['shiftManagement'].points.costPerTrayScoreWeighting : Math.floor(jsonObject['shiftManagement'].points.costPerTrayScoreWeighting);
|
|
890
|
+
}());
|
|
891
|
+
}
|
|
892
|
+
else
|
|
893
|
+
{
|
|
894
|
+
pointsObject.costPerTrayScoreWeighting = 0;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
if(typeof jsonObject['shiftManagement'].points === 'object' && 'qualityR600IdealScoreWeighting' in jsonObject['shiftManagement'].points)
|
|
898
|
+
{
|
|
899
|
+
pointsObject.qualityR600IdealScoreWeighting = (function(){
|
|
900
|
+
if(typeof jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting !== 'number')
|
|
901
|
+
{
|
|
902
|
+
return Number.isInteger(Number(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting)) ? Number(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting) : Math.floor(Number(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting));
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
return Number.isInteger(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting) ? jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting : Math.floor(jsonObject['shiftManagement'].points.qualityR600IdealScoreWeighting);
|
|
906
|
+
}());
|
|
907
|
+
}
|
|
908
|
+
else
|
|
909
|
+
{
|
|
910
|
+
pointsObject.qualityR600IdealScoreWeighting = 0;
|
|
911
|
+
}
|
|
519
912
|
|
|
520
913
|
return pointsObject;
|
|
521
914
|
}());
|
|
@@ -541,12 +934,215 @@ class PackingLineModel extends BaseModel
|
|
|
541
934
|
|
|
542
935
|
pointsDefaultValue.finishFocusMeetingRequest = 0;
|
|
543
936
|
|
|
937
|
+
pointsDefaultValue.currentShiftStatus = 0;
|
|
938
|
+
|
|
939
|
+
pointsDefaultValue.currentShiftModifyHourlyEntryRequest = 0;
|
|
940
|
+
|
|
544
941
|
pointsDefaultValue.shiftSchedules = 0;
|
|
545
942
|
|
|
943
|
+
pointsDefaultValue.currentShiftClass1TraysPerHourTarget = 0;
|
|
944
|
+
|
|
945
|
+
pointsDefaultValue.currentShiftClass1TraysPerHourAdjustedTarget = 0;
|
|
946
|
+
|
|
947
|
+
pointsDefaultValue.currentShiftClass1TraysPerHour = 0;
|
|
948
|
+
|
|
949
|
+
pointsDefaultValue.currentShiftCostPerTrayTarget = 0;
|
|
950
|
+
|
|
951
|
+
pointsDefaultValue.currentShiftCostPerTrayAdjustedTarget = 0;
|
|
952
|
+
|
|
953
|
+
pointsDefaultValue.currentShiftCostPerTray = 0;
|
|
954
|
+
|
|
955
|
+
pointsDefaultValue.currentShiftManningTarget = 0;
|
|
956
|
+
|
|
957
|
+
pointsDefaultValue.currentShiftClass1Manning = 0;
|
|
958
|
+
|
|
959
|
+
pointsDefaultValue.currentShiftClass2Manning = 0;
|
|
960
|
+
|
|
961
|
+
pointsDefaultValue.currentShiftQualityR600IdealTarget = 0;
|
|
962
|
+
|
|
963
|
+
pointsDefaultValue.currentShiftQualityR600Ideal = 0;
|
|
964
|
+
|
|
965
|
+
pointsDefaultValue.currentShiftScorePercentage = 0;
|
|
966
|
+
|
|
967
|
+
pointsDefaultValue.class1TraysPerHourTargets = 0;
|
|
968
|
+
|
|
969
|
+
pointsDefaultValue.costPerTrayTargets = 0;
|
|
970
|
+
|
|
971
|
+
pointsDefaultValue.manningTargets = 0;
|
|
972
|
+
|
|
973
|
+
pointsDefaultValue.qualityR600IdealTargets = 0;
|
|
974
|
+
|
|
975
|
+
pointsDefaultValue.costPerManningUnitHour = 0;
|
|
976
|
+
|
|
977
|
+
pointsDefaultValue.class1TraysPerHourScoreWeighting = 0;
|
|
978
|
+
|
|
979
|
+
pointsDefaultValue.costPerTrayScoreWeighting = 0;
|
|
980
|
+
|
|
981
|
+
pointsDefaultValue.qualityR600IdealScoreWeighting = 0;
|
|
982
|
+
|
|
546
983
|
return pointsDefaultValue;
|
|
547
984
|
}());
|
|
548
985
|
}
|
|
549
986
|
|
|
987
|
+
if(typeof jsonObject['shiftManagement'] === 'object' && 'customQualityConfiguration' in jsonObject['shiftManagement'])
|
|
988
|
+
{
|
|
989
|
+
shiftManagementObject.customQualityConfiguration = (function(){
|
|
990
|
+
if(Array.isArray(jsonObject['shiftManagement'].customQualityConfiguration) !== true)
|
|
991
|
+
{
|
|
992
|
+
return [];
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
return jsonObject['shiftManagement'].customQualityConfiguration.map((customQualityConfigurationItem) => {
|
|
996
|
+
return (function(){
|
|
997
|
+
let customQualityConfigurationItemObject = {};
|
|
998
|
+
|
|
999
|
+
if(typeof customQualityConfigurationItem === 'object' && 'id' in customQualityConfigurationItem)
|
|
1000
|
+
{
|
|
1001
|
+
customQualityConfigurationItemObject.id = (function(){
|
|
1002
|
+
if(typeof customQualityConfigurationItem.id !== 'string')
|
|
1003
|
+
{
|
|
1004
|
+
return String(customQualityConfigurationItem.id);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
return customQualityConfigurationItem.id;
|
|
1008
|
+
}());
|
|
1009
|
+
}
|
|
1010
|
+
else
|
|
1011
|
+
{
|
|
1012
|
+
customQualityConfigurationItemObject.id = "";
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
if(typeof customQualityConfigurationItem === 'object' && 'name' in customQualityConfigurationItem)
|
|
1016
|
+
{
|
|
1017
|
+
customQualityConfigurationItemObject.name = (function(){
|
|
1018
|
+
if(typeof customQualityConfigurationItem.name !== 'string')
|
|
1019
|
+
{
|
|
1020
|
+
return String(customQualityConfigurationItem.name);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
return customQualityConfigurationItem.name;
|
|
1024
|
+
}());
|
|
1025
|
+
}
|
|
1026
|
+
else
|
|
1027
|
+
{
|
|
1028
|
+
customQualityConfigurationItemObject.name = "";
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
if(typeof customQualityConfigurationItem === 'object' && 'type' in customQualityConfigurationItem)
|
|
1032
|
+
{
|
|
1033
|
+
customQualityConfigurationItemObject.type = (function(){
|
|
1034
|
+
if(typeof customQualityConfigurationItem.type !== 'string')
|
|
1035
|
+
{
|
|
1036
|
+
return String(customQualityConfigurationItem.type);
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
return customQualityConfigurationItem.type;
|
|
1040
|
+
}());
|
|
1041
|
+
}
|
|
1042
|
+
else
|
|
1043
|
+
{
|
|
1044
|
+
customQualityConfigurationItemObject.type = "";
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
if(typeof customQualityConfigurationItem === 'object' && 'points' in customQualityConfigurationItem)
|
|
1048
|
+
{
|
|
1049
|
+
customQualityConfigurationItemObject.points = (function(){
|
|
1050
|
+
let pointsObject = {};
|
|
1051
|
+
|
|
1052
|
+
if(typeof customQualityConfigurationItem.points === 'object' && 'currentShiftCustomQualityTarget' in customQualityConfigurationItem.points)
|
|
1053
|
+
{
|
|
1054
|
+
pointsObject.currentShiftCustomQualityTarget = (function(){
|
|
1055
|
+
if(typeof customQualityConfigurationItem.points.currentShiftCustomQualityTarget !== 'number')
|
|
1056
|
+
{
|
|
1057
|
+
return Number.isInteger(Number(customQualityConfigurationItem.points.currentShiftCustomQualityTarget)) ? Number(customQualityConfigurationItem.points.currentShiftCustomQualityTarget) : Math.floor(Number(customQualityConfigurationItem.points.currentShiftCustomQualityTarget));
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
return Number.isInteger(customQualityConfigurationItem.points.currentShiftCustomQualityTarget) ? customQualityConfigurationItem.points.currentShiftCustomQualityTarget : Math.floor(customQualityConfigurationItem.points.currentShiftCustomQualityTarget);
|
|
1061
|
+
}());
|
|
1062
|
+
}
|
|
1063
|
+
else
|
|
1064
|
+
{
|
|
1065
|
+
pointsObject.currentShiftCustomQualityTarget = 0;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
if(typeof customQualityConfigurationItem.points === 'object' && 'currentShiftCustomQualityValue' in customQualityConfigurationItem.points)
|
|
1069
|
+
{
|
|
1070
|
+
pointsObject.currentShiftCustomQualityValue = (function(){
|
|
1071
|
+
if(typeof customQualityConfigurationItem.points.currentShiftCustomQualityValue !== 'number')
|
|
1072
|
+
{
|
|
1073
|
+
return Number.isInteger(Number(customQualityConfigurationItem.points.currentShiftCustomQualityValue)) ? Number(customQualityConfigurationItem.points.currentShiftCustomQualityValue) : Math.floor(Number(customQualityConfigurationItem.points.currentShiftCustomQualityValue));
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
return Number.isInteger(customQualityConfigurationItem.points.currentShiftCustomQualityValue) ? customQualityConfigurationItem.points.currentShiftCustomQualityValue : Math.floor(customQualityConfigurationItem.points.currentShiftCustomQualityValue);
|
|
1077
|
+
}());
|
|
1078
|
+
}
|
|
1079
|
+
else
|
|
1080
|
+
{
|
|
1081
|
+
pointsObject.currentShiftCustomQualityValue = 0;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
if(typeof customQualityConfigurationItem.points === 'object' && 'customQualityTargets' in customQualityConfigurationItem.points)
|
|
1085
|
+
{
|
|
1086
|
+
pointsObject.customQualityTargets = (function(){
|
|
1087
|
+
if(typeof customQualityConfigurationItem.points.customQualityTargets !== 'number')
|
|
1088
|
+
{
|
|
1089
|
+
return Number.isInteger(Number(customQualityConfigurationItem.points.customQualityTargets)) ? Number(customQualityConfigurationItem.points.customQualityTargets) : Math.floor(Number(customQualityConfigurationItem.points.customQualityTargets));
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
return Number.isInteger(customQualityConfigurationItem.points.customQualityTargets) ? customQualityConfigurationItem.points.customQualityTargets : Math.floor(customQualityConfigurationItem.points.customQualityTargets);
|
|
1093
|
+
}());
|
|
1094
|
+
}
|
|
1095
|
+
else
|
|
1096
|
+
{
|
|
1097
|
+
pointsObject.customQualityTargets = 0;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
if(typeof customQualityConfigurationItem.points === 'object' && 'customQualityScoreWeighting' in customQualityConfigurationItem.points)
|
|
1101
|
+
{
|
|
1102
|
+
pointsObject.customQualityScoreWeighting = (function(){
|
|
1103
|
+
if(typeof customQualityConfigurationItem.points.customQualityScoreWeighting !== 'number')
|
|
1104
|
+
{
|
|
1105
|
+
return Number.isInteger(Number(customQualityConfigurationItem.points.customQualityScoreWeighting)) ? Number(customQualityConfigurationItem.points.customQualityScoreWeighting) : Math.floor(Number(customQualityConfigurationItem.points.customQualityScoreWeighting));
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
return Number.isInteger(customQualityConfigurationItem.points.customQualityScoreWeighting) ? customQualityConfigurationItem.points.customQualityScoreWeighting : Math.floor(customQualityConfigurationItem.points.customQualityScoreWeighting);
|
|
1109
|
+
}());
|
|
1110
|
+
}
|
|
1111
|
+
else
|
|
1112
|
+
{
|
|
1113
|
+
pointsObject.customQualityScoreWeighting = 0;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
return pointsObject;
|
|
1117
|
+
}());
|
|
1118
|
+
}
|
|
1119
|
+
else
|
|
1120
|
+
{
|
|
1121
|
+
customQualityConfigurationItemObject.points = (function(){
|
|
1122
|
+
let pointsDefaultValue = {};
|
|
1123
|
+
|
|
1124
|
+
pointsDefaultValue.currentShiftCustomQualityTarget = 0;
|
|
1125
|
+
|
|
1126
|
+
pointsDefaultValue.currentShiftCustomQualityValue = 0;
|
|
1127
|
+
|
|
1128
|
+
pointsDefaultValue.customQualityTargets = 0;
|
|
1129
|
+
|
|
1130
|
+
pointsDefaultValue.customQualityScoreWeighting = 0;
|
|
1131
|
+
|
|
1132
|
+
return pointsDefaultValue;
|
|
1133
|
+
}());
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
return customQualityConfigurationItemObject;
|
|
1137
|
+
}());
|
|
1138
|
+
});
|
|
1139
|
+
}());
|
|
1140
|
+
}
|
|
1141
|
+
else
|
|
1142
|
+
{
|
|
1143
|
+
shiftManagementObject.customQualityConfiguration = [];
|
|
1144
|
+
}
|
|
1145
|
+
|
|
550
1146
|
if(typeof jsonObject['shiftManagement'] === 'object' && 'enabled' in jsonObject['shiftManagement'])
|
|
551
1147
|
{
|
|
552
1148
|
shiftManagementObject.enabled = (function(){
|
|
@@ -562,11 +1158,169 @@ class PackingLineModel extends BaseModel
|
|
|
562
1158
|
{
|
|
563
1159
|
shiftManagementObject.enabled = false;
|
|
564
1160
|
}
|
|
1161
|
+
|
|
1162
|
+
if(typeof jsonObject['shiftManagement'] === 'object' && 'taskDefinitions' in jsonObject['shiftManagement'])
|
|
1163
|
+
{
|
|
1164
|
+
shiftManagementObject.taskDefinitions = (function(){
|
|
1165
|
+
if(Array.isArray(jsonObject['shiftManagement'].taskDefinitions) !== true)
|
|
1166
|
+
{
|
|
1167
|
+
return [];
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
return jsonObject['shiftManagement'].taskDefinitions.map((taskDefinitionsItem) => {
|
|
1171
|
+
return (function(){
|
|
1172
|
+
let taskDefinitionsItemObject = {};
|
|
1173
|
+
|
|
1174
|
+
if(typeof taskDefinitionsItem === 'object' && 'type' in taskDefinitionsItem)
|
|
1175
|
+
{
|
|
1176
|
+
taskDefinitionsItemObject.type = (function(){
|
|
1177
|
+
if(typeof taskDefinitionsItem.type !== 'string')
|
|
1178
|
+
{
|
|
1179
|
+
return String(taskDefinitionsItem.type);
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
return taskDefinitionsItem.type;
|
|
1183
|
+
}());
|
|
1184
|
+
}
|
|
1185
|
+
else
|
|
1186
|
+
{
|
|
1187
|
+
taskDefinitionsItemObject.type = "";
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
if(typeof taskDefinitionsItem === 'object' && 'tags' in taskDefinitionsItem)
|
|
1191
|
+
{
|
|
1192
|
+
taskDefinitionsItemObject.tags = (function(){
|
|
1193
|
+
if(Array.isArray(taskDefinitionsItem.tags) !== true)
|
|
1194
|
+
{
|
|
1195
|
+
return [];
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
return taskDefinitionsItem.tags.map((tagsItem) => {
|
|
1199
|
+
return (function(){
|
|
1200
|
+
let tagsItemObject = {};
|
|
1201
|
+
|
|
1202
|
+
if(typeof tagsItem === 'object' && 'id' in tagsItem)
|
|
1203
|
+
{
|
|
1204
|
+
tagsItemObject.id = (function(){
|
|
1205
|
+
if(typeof tagsItem.id !== 'string')
|
|
1206
|
+
{
|
|
1207
|
+
return String(tagsItem.id);
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
return tagsItem.id;
|
|
1211
|
+
}());
|
|
1212
|
+
}
|
|
1213
|
+
else
|
|
1214
|
+
{
|
|
1215
|
+
tagsItemObject.id = "";
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
if(typeof tagsItem === 'object' && 'name' in tagsItem)
|
|
1219
|
+
{
|
|
1220
|
+
tagsItemObject.name = (function(){
|
|
1221
|
+
if(typeof tagsItem.name !== 'string')
|
|
1222
|
+
{
|
|
1223
|
+
return String(tagsItem.name);
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
return tagsItem.name;
|
|
1227
|
+
}());
|
|
1228
|
+
}
|
|
1229
|
+
else
|
|
1230
|
+
{
|
|
1231
|
+
tagsItemObject.name = "";
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
if(typeof tagsItem === 'object' && 'color' in tagsItem)
|
|
1235
|
+
{
|
|
1236
|
+
tagsItemObject.color = (function(){
|
|
1237
|
+
if(typeof tagsItem.color !== 'string')
|
|
1238
|
+
{
|
|
1239
|
+
return String(tagsItem.color);
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
return tagsItem.color;
|
|
1243
|
+
}());
|
|
1244
|
+
}
|
|
1245
|
+
else
|
|
1246
|
+
{
|
|
1247
|
+
tagsItemObject.color = "";
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
if(typeof tagsItem === 'object' && 'deleted' in tagsItem)
|
|
1251
|
+
{
|
|
1252
|
+
tagsItemObject.deleted = (function(){
|
|
1253
|
+
if(typeof tagsItem.deleted !== 'boolean')
|
|
1254
|
+
{
|
|
1255
|
+
return Boolean(tagsItem.deleted);
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
return tagsItem.deleted;
|
|
1259
|
+
}());
|
|
1260
|
+
}
|
|
1261
|
+
else
|
|
1262
|
+
{
|
|
1263
|
+
tagsItemObject.deleted = false;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
return tagsItemObject;
|
|
1267
|
+
}());
|
|
1268
|
+
});
|
|
1269
|
+
}());
|
|
1270
|
+
}
|
|
1271
|
+
else
|
|
1272
|
+
{
|
|
1273
|
+
taskDefinitionsItemObject.tags = [];
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
return taskDefinitionsItemObject;
|
|
1277
|
+
}());
|
|
1278
|
+
});
|
|
1279
|
+
}());
|
|
1280
|
+
}
|
|
1281
|
+
else
|
|
1282
|
+
{
|
|
1283
|
+
shiftManagementObject.taskDefinitions = [];
|
|
1284
|
+
}
|
|
565
1285
|
|
|
566
1286
|
return shiftManagementObject;
|
|
567
1287
|
}());
|
|
568
1288
|
}
|
|
569
1289
|
|
|
1290
|
+
if('advancedPackrunManagement' in jsonObject)
|
|
1291
|
+
{
|
|
1292
|
+
model.advancedPackrunManagement = (function(){
|
|
1293
|
+
if(jsonObject['advancedPackrunManagement'] === null)
|
|
1294
|
+
{
|
|
1295
|
+
return null;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
if(typeof jsonObject['advancedPackrunManagement'] !== 'object')
|
|
1299
|
+
{
|
|
1300
|
+
return Object(jsonObject['advancedPackrunManagement']);
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
return jsonObject['advancedPackrunManagement'];
|
|
1304
|
+
}());
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
if('mafIntegration' in jsonObject)
|
|
1308
|
+
{
|
|
1309
|
+
model.mafIntegration = (function(){
|
|
1310
|
+
if(jsonObject['mafIntegration'] === null)
|
|
1311
|
+
{
|
|
1312
|
+
return null;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
if(typeof jsonObject['mafIntegration'] !== 'object')
|
|
1316
|
+
{
|
|
1317
|
+
return Object(jsonObject['mafIntegration']);
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
return jsonObject['mafIntegration'];
|
|
1321
|
+
}());
|
|
1322
|
+
}
|
|
1323
|
+
|
|
570
1324
|
if('freshPackIntegration' in jsonObject)
|
|
571
1325
|
{
|
|
572
1326
|
model.freshPackIntegration = (function(){
|