@ricado/api-client 2.3.17 → 2.3.18
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/BinTipBarcodeScannerController.js +198 -0
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +14 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +186 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerBinWeightController.js +959 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +89 -15
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +1 -1
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +35 -4
- package/lib/Controllers/Packhouse/Site/MAFSizerController.js +101 -19
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +435 -23
- package/lib/Controllers/Packhouse/Site/PackrunController.js +11 -2
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +38 -2
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +52 -6
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +70 -4
- package/lib/Controllers/Packhouse/Site/ShiftController.js +1 -1
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +2 -2
- package/lib/Controllers/Packhouse/Site/SoftSortPackrunSummaryController.js +14 -2
- package/lib/Controllers/Packhouse/Site/index.js +6 -0
- package/lib/Models/Packhouse/Site/BinTipBarcodeScannerModel.js +263 -0
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +75 -5
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +1276 -5
- package/lib/Models/Packhouse/Site/CompacSizerBinWeightModel.js +627 -0
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +966 -72
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +260 -8
- package/lib/Models/Packhouse/Site/MAFSizerModel.js +660 -85
- package/lib/Models/Packhouse/Site/PackingLineModel.js +3860 -551
- package/lib/Models/Packhouse/Site/PackrunModel.js +26 -4
- package/lib/Models/Packhouse/Site/RejectBinModel.js +214 -4
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +576 -14
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +113 -9
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +98 -0
- package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +50 -5
- package/lib/Models/Packhouse/Site/SoftSortPackrunSummaryModel.js +75 -5
- package/lib/Models/Packhouse/Site/index.js +6 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +6132 -2165
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBarcodeScannerController.js +175 -0
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +14 -2
- package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +186 -2
- package/src/Controllers/Packhouse/Site/CompacSizerBinWeightController.js +1090 -0
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +89 -15
- package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +1 -1
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +35 -4
- package/src/Controllers/Packhouse/Site/MAFSizerController.js +101 -19
- package/src/Controllers/Packhouse/Site/PackingLineController.js +435 -23
- package/src/Controllers/Packhouse/Site/PackrunController.js +11 -2
- package/src/Controllers/Packhouse/Site/RejectBinController.js +38 -2
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +52 -6
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +70 -4
- package/src/Controllers/Packhouse/Site/ShiftController.js +1 -1
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +2 -2
- package/src/Controllers/Packhouse/Site/SoftSortPackrunSummaryController.js +14 -2
- package/src/Controllers/Packhouse/Site/index.js +4 -0
- package/src/Models/Packhouse/Site/BinTipBarcodeScannerModel.js +252 -0
- package/src/Models/Packhouse/Site/BinTipBinModel.js +97 -5
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +1682 -5
- package/src/Models/Packhouse/Site/CompacSizerBinWeightModel.js +715 -0
- package/src/Models/Packhouse/Site/CompacSizerModel.js +1319 -109
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +339 -8
- package/src/Models/Packhouse/Site/MAFSizerModel.js +869 -92
- package/src/Models/Packhouse/Site/PackingLineModel.js +5086 -671
- package/src/Models/Packhouse/Site/PackrunModel.js +33 -4
- package/src/Models/Packhouse/Site/RejectBinModel.js +280 -4
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +775 -15
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +147 -10
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +120 -0
- package/src/Models/Packhouse/Site/SoftSortBeltModel.js +65 -5
- package/src/Models/Packhouse/Site/SoftSortPackrunSummaryModel.js +97 -5
- package/src/Models/Packhouse/Site/index.js +4 -0
- package/src/PackageVersion.js +1 -1
|
@@ -52,10 +52,74 @@ class RejectBinScaleModel extends BaseModel
|
|
|
52
52
|
/**
|
|
53
53
|
* The Points used by this Reject Bin Scale
|
|
54
54
|
*
|
|
55
|
-
* @type {
|
|
55
|
+
* @type {{weighButton: ?number, packrunButton: ?number, manualInterventionButton: ?number, clearIndicator: ?number, busyIndicator: ?number, packrunIndicator: ?number, manualInterventionIndicator: ?number, sirenControl: ?number, scaleTareRequest: ?number, scaleClearTareRequest: ?number, scaleZeroRequest: ?number, scaleStableStatus: number, scaleWeight: ?number, scaleNetWeight: ?number, scaleGrossWeight: ?number, scaleTareWeight: ?number, targetGrossWeight: ?number, status: number, currentPackrunId: number, nextPackrunId: number, currentPackrunName: number, nextPackrunName: number, incorrectOperationStatus: ?number, currentPackrunIncorrectOperationsCount: ?number, totalIncorrectOperationsCount: ?number, manualInterventionStatus: ?number, currentPackrunManualInterventionsCount: ?number, totalManualInterventionsCount: ?number, currentPackrunBinsWeighedCount: number, totalBinsWeighedCount: number}}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.points = {
|
|
58
|
+
this.points = (function(){
|
|
59
|
+
let pointsDefaultValue = {};
|
|
60
|
+
|
|
61
|
+
pointsDefaultValue.weighButton = null;
|
|
62
|
+
|
|
63
|
+
pointsDefaultValue.packrunButton = null;
|
|
64
|
+
|
|
65
|
+
pointsDefaultValue.manualInterventionButton = null;
|
|
66
|
+
|
|
67
|
+
pointsDefaultValue.clearIndicator = null;
|
|
68
|
+
|
|
69
|
+
pointsDefaultValue.busyIndicator = null;
|
|
70
|
+
|
|
71
|
+
pointsDefaultValue.packrunIndicator = null;
|
|
72
|
+
|
|
73
|
+
pointsDefaultValue.manualInterventionIndicator = null;
|
|
74
|
+
|
|
75
|
+
pointsDefaultValue.sirenControl = null;
|
|
76
|
+
|
|
77
|
+
pointsDefaultValue.scaleTareRequest = null;
|
|
78
|
+
|
|
79
|
+
pointsDefaultValue.scaleClearTareRequest = null;
|
|
80
|
+
|
|
81
|
+
pointsDefaultValue.scaleZeroRequest = null;
|
|
82
|
+
|
|
83
|
+
pointsDefaultValue.scaleStableStatus = 0;
|
|
84
|
+
|
|
85
|
+
pointsDefaultValue.scaleWeight = null;
|
|
86
|
+
|
|
87
|
+
pointsDefaultValue.scaleNetWeight = null;
|
|
88
|
+
|
|
89
|
+
pointsDefaultValue.scaleGrossWeight = null;
|
|
90
|
+
|
|
91
|
+
pointsDefaultValue.scaleTareWeight = null;
|
|
92
|
+
|
|
93
|
+
pointsDefaultValue.targetGrossWeight = null;
|
|
94
|
+
|
|
95
|
+
pointsDefaultValue.status = 0;
|
|
96
|
+
|
|
97
|
+
pointsDefaultValue.currentPackrunId = 0;
|
|
98
|
+
|
|
99
|
+
pointsDefaultValue.nextPackrunId = 0;
|
|
100
|
+
|
|
101
|
+
pointsDefaultValue.currentPackrunName = 0;
|
|
102
|
+
|
|
103
|
+
pointsDefaultValue.nextPackrunName = 0;
|
|
104
|
+
|
|
105
|
+
pointsDefaultValue.incorrectOperationStatus = null;
|
|
106
|
+
|
|
107
|
+
pointsDefaultValue.currentPackrunIncorrectOperationsCount = null;
|
|
108
|
+
|
|
109
|
+
pointsDefaultValue.totalIncorrectOperationsCount = null;
|
|
110
|
+
|
|
111
|
+
pointsDefaultValue.manualInterventionStatus = null;
|
|
112
|
+
|
|
113
|
+
pointsDefaultValue.currentPackrunManualInterventionsCount = null;
|
|
114
|
+
|
|
115
|
+
pointsDefaultValue.totalManualInterventionsCount = null;
|
|
116
|
+
|
|
117
|
+
pointsDefaultValue.currentPackrunBinsWeighedCount = 0;
|
|
118
|
+
|
|
119
|
+
pointsDefaultValue.totalBinsWeighedCount = 0;
|
|
120
|
+
|
|
121
|
+
return pointsDefaultValue;
|
|
122
|
+
}());
|
|
59
123
|
|
|
60
124
|
/**
|
|
61
125
|
* The Packing Line that owns this Reject Bin Scale
|
|
@@ -84,7 +148,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
84
148
|
/**
|
|
85
149
|
* An Array of Sources that deliver Fruit to this Reject Bin Scale
|
|
86
150
|
*
|
|
87
|
-
* @type {
|
|
151
|
+
* @type {{type: string, sortingTableId: string, classType: string, varietyClassTypes: Array<{varietyId: string, classType: string}>}|{type: string, beltName: ?string, classType: string, varietyClassTypes: Array<{varietyId: string, classType: string}>}|{type: string, sizerId: string, outletNumber: number}[]}
|
|
88
152
|
* @public
|
|
89
153
|
*/
|
|
90
154
|
this.sources = [];
|
|
@@ -188,7 +252,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
188
252
|
/**
|
|
189
253
|
* The FreshPack Integration Configuration for this Reject Bin Scale
|
|
190
254
|
*
|
|
191
|
-
* @type {?Object}
|
|
255
|
+
* @type {?{points: Object, enabled: boolean, materialGroupId: number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean}}
|
|
192
256
|
* @public
|
|
193
257
|
*/
|
|
194
258
|
this.freshPackIntegration = null;
|
|
@@ -291,12 +355,599 @@ class RejectBinScaleModel extends BaseModel
|
|
|
291
355
|
if('points' in jsonObject)
|
|
292
356
|
{
|
|
293
357
|
model.points = (function(){
|
|
294
|
-
|
|
358
|
+
let pointsObject = {};
|
|
359
|
+
|
|
360
|
+
if(typeof jsonObject['points'] === 'object' && 'weighButton' in jsonObject['points'])
|
|
361
|
+
{
|
|
362
|
+
pointsObject.weighButton = (function(){
|
|
363
|
+
if(jsonObject['points'].weighButton === null)
|
|
364
|
+
{
|
|
365
|
+
return null;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
if(typeof jsonObject['points'].weighButton !== 'number')
|
|
369
|
+
{
|
|
370
|
+
return Number.isInteger(Number(jsonObject['points'].weighButton)) ? Number(jsonObject['points'].weighButton) : Math.floor(Number(jsonObject['points'].weighButton));
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
return Number.isInteger(jsonObject['points'].weighButton) ? jsonObject['points'].weighButton : Math.floor(jsonObject['points'].weighButton);
|
|
374
|
+
}());
|
|
375
|
+
}
|
|
376
|
+
else
|
|
377
|
+
{
|
|
378
|
+
pointsObject.weighButton = null;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
if(typeof jsonObject['points'] === 'object' && 'packrunButton' in jsonObject['points'])
|
|
382
|
+
{
|
|
383
|
+
pointsObject.packrunButton = (function(){
|
|
384
|
+
if(jsonObject['points'].packrunButton === null)
|
|
385
|
+
{
|
|
386
|
+
return null;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
if(typeof jsonObject['points'].packrunButton !== 'number')
|
|
390
|
+
{
|
|
391
|
+
return Number.isInteger(Number(jsonObject['points'].packrunButton)) ? Number(jsonObject['points'].packrunButton) : Math.floor(Number(jsonObject['points'].packrunButton));
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
return Number.isInteger(jsonObject['points'].packrunButton) ? jsonObject['points'].packrunButton : Math.floor(jsonObject['points'].packrunButton);
|
|
395
|
+
}());
|
|
396
|
+
}
|
|
397
|
+
else
|
|
398
|
+
{
|
|
399
|
+
pointsObject.packrunButton = null;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
if(typeof jsonObject['points'] === 'object' && 'manualInterventionButton' in jsonObject['points'])
|
|
403
|
+
{
|
|
404
|
+
pointsObject.manualInterventionButton = (function(){
|
|
405
|
+
if(jsonObject['points'].manualInterventionButton === null)
|
|
406
|
+
{
|
|
407
|
+
return null;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
if(typeof jsonObject['points'].manualInterventionButton !== 'number')
|
|
411
|
+
{
|
|
412
|
+
return Number.isInteger(Number(jsonObject['points'].manualInterventionButton)) ? Number(jsonObject['points'].manualInterventionButton) : Math.floor(Number(jsonObject['points'].manualInterventionButton));
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
return Number.isInteger(jsonObject['points'].manualInterventionButton) ? jsonObject['points'].manualInterventionButton : Math.floor(jsonObject['points'].manualInterventionButton);
|
|
416
|
+
}());
|
|
417
|
+
}
|
|
418
|
+
else
|
|
419
|
+
{
|
|
420
|
+
pointsObject.manualInterventionButton = null;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
if(typeof jsonObject['points'] === 'object' && 'clearIndicator' in jsonObject['points'])
|
|
424
|
+
{
|
|
425
|
+
pointsObject.clearIndicator = (function(){
|
|
426
|
+
if(jsonObject['points'].clearIndicator === null)
|
|
427
|
+
{
|
|
428
|
+
return null;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
if(typeof jsonObject['points'].clearIndicator !== 'number')
|
|
432
|
+
{
|
|
433
|
+
return Number.isInteger(Number(jsonObject['points'].clearIndicator)) ? Number(jsonObject['points'].clearIndicator) : Math.floor(Number(jsonObject['points'].clearIndicator));
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
return Number.isInteger(jsonObject['points'].clearIndicator) ? jsonObject['points'].clearIndicator : Math.floor(jsonObject['points'].clearIndicator);
|
|
437
|
+
}());
|
|
438
|
+
}
|
|
439
|
+
else
|
|
440
|
+
{
|
|
441
|
+
pointsObject.clearIndicator = null;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
if(typeof jsonObject['points'] === 'object' && 'busyIndicator' in jsonObject['points'])
|
|
445
|
+
{
|
|
446
|
+
pointsObject.busyIndicator = (function(){
|
|
447
|
+
if(jsonObject['points'].busyIndicator === null)
|
|
448
|
+
{
|
|
449
|
+
return null;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
if(typeof jsonObject['points'].busyIndicator !== 'number')
|
|
453
|
+
{
|
|
454
|
+
return Number.isInteger(Number(jsonObject['points'].busyIndicator)) ? Number(jsonObject['points'].busyIndicator) : Math.floor(Number(jsonObject['points'].busyIndicator));
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
return Number.isInteger(jsonObject['points'].busyIndicator) ? jsonObject['points'].busyIndicator : Math.floor(jsonObject['points'].busyIndicator);
|
|
458
|
+
}());
|
|
459
|
+
}
|
|
460
|
+
else
|
|
461
|
+
{
|
|
462
|
+
pointsObject.busyIndicator = null;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
if(typeof jsonObject['points'] === 'object' && 'packrunIndicator' in jsonObject['points'])
|
|
466
|
+
{
|
|
467
|
+
pointsObject.packrunIndicator = (function(){
|
|
468
|
+
if(jsonObject['points'].packrunIndicator === null)
|
|
469
|
+
{
|
|
470
|
+
return null;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
if(typeof jsonObject['points'].packrunIndicator !== 'number')
|
|
474
|
+
{
|
|
475
|
+
return Number.isInteger(Number(jsonObject['points'].packrunIndicator)) ? Number(jsonObject['points'].packrunIndicator) : Math.floor(Number(jsonObject['points'].packrunIndicator));
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
return Number.isInteger(jsonObject['points'].packrunIndicator) ? jsonObject['points'].packrunIndicator : Math.floor(jsonObject['points'].packrunIndicator);
|
|
479
|
+
}());
|
|
480
|
+
}
|
|
481
|
+
else
|
|
482
|
+
{
|
|
483
|
+
pointsObject.packrunIndicator = null;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
if(typeof jsonObject['points'] === 'object' && 'manualInterventionIndicator' in jsonObject['points'])
|
|
487
|
+
{
|
|
488
|
+
pointsObject.manualInterventionIndicator = (function(){
|
|
489
|
+
if(jsonObject['points'].manualInterventionIndicator === null)
|
|
490
|
+
{
|
|
491
|
+
return null;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
if(typeof jsonObject['points'].manualInterventionIndicator !== 'number')
|
|
495
|
+
{
|
|
496
|
+
return Number.isInteger(Number(jsonObject['points'].manualInterventionIndicator)) ? Number(jsonObject['points'].manualInterventionIndicator) : Math.floor(Number(jsonObject['points'].manualInterventionIndicator));
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
return Number.isInteger(jsonObject['points'].manualInterventionIndicator) ? jsonObject['points'].manualInterventionIndicator : Math.floor(jsonObject['points'].manualInterventionIndicator);
|
|
500
|
+
}());
|
|
501
|
+
}
|
|
502
|
+
else
|
|
295
503
|
{
|
|
296
|
-
|
|
504
|
+
pointsObject.manualInterventionIndicator = null;
|
|
297
505
|
}
|
|
506
|
+
|
|
507
|
+
if(typeof jsonObject['points'] === 'object' && 'sirenControl' in jsonObject['points'])
|
|
508
|
+
{
|
|
509
|
+
pointsObject.sirenControl = (function(){
|
|
510
|
+
if(jsonObject['points'].sirenControl === null)
|
|
511
|
+
{
|
|
512
|
+
return null;
|
|
513
|
+
}
|
|
298
514
|
|
|
299
|
-
|
|
515
|
+
if(typeof jsonObject['points'].sirenControl !== 'number')
|
|
516
|
+
{
|
|
517
|
+
return Number.isInteger(Number(jsonObject['points'].sirenControl)) ? Number(jsonObject['points'].sirenControl) : Math.floor(Number(jsonObject['points'].sirenControl));
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
return Number.isInteger(jsonObject['points'].sirenControl) ? jsonObject['points'].sirenControl : Math.floor(jsonObject['points'].sirenControl);
|
|
521
|
+
}());
|
|
522
|
+
}
|
|
523
|
+
else
|
|
524
|
+
{
|
|
525
|
+
pointsObject.sirenControl = null;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
if(typeof jsonObject['points'] === 'object' && 'scaleTareRequest' in jsonObject['points'])
|
|
529
|
+
{
|
|
530
|
+
pointsObject.scaleTareRequest = (function(){
|
|
531
|
+
if(jsonObject['points'].scaleTareRequest === null)
|
|
532
|
+
{
|
|
533
|
+
return null;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
if(typeof jsonObject['points'].scaleTareRequest !== 'number')
|
|
537
|
+
{
|
|
538
|
+
return Number.isInteger(Number(jsonObject['points'].scaleTareRequest)) ? Number(jsonObject['points'].scaleTareRequest) : Math.floor(Number(jsonObject['points'].scaleTareRequest));
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
return Number.isInteger(jsonObject['points'].scaleTareRequest) ? jsonObject['points'].scaleTareRequest : Math.floor(jsonObject['points'].scaleTareRequest);
|
|
542
|
+
}());
|
|
543
|
+
}
|
|
544
|
+
else
|
|
545
|
+
{
|
|
546
|
+
pointsObject.scaleTareRequest = null;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
if(typeof jsonObject['points'] === 'object' && 'scaleClearTareRequest' in jsonObject['points'])
|
|
550
|
+
{
|
|
551
|
+
pointsObject.scaleClearTareRequest = (function(){
|
|
552
|
+
if(jsonObject['points'].scaleClearTareRequest === null)
|
|
553
|
+
{
|
|
554
|
+
return null;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
if(typeof jsonObject['points'].scaleClearTareRequest !== 'number')
|
|
558
|
+
{
|
|
559
|
+
return Number.isInteger(Number(jsonObject['points'].scaleClearTareRequest)) ? Number(jsonObject['points'].scaleClearTareRequest) : Math.floor(Number(jsonObject['points'].scaleClearTareRequest));
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
return Number.isInteger(jsonObject['points'].scaleClearTareRequest) ? jsonObject['points'].scaleClearTareRequest : Math.floor(jsonObject['points'].scaleClearTareRequest);
|
|
563
|
+
}());
|
|
564
|
+
}
|
|
565
|
+
else
|
|
566
|
+
{
|
|
567
|
+
pointsObject.scaleClearTareRequest = null;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
if(typeof jsonObject['points'] === 'object' && 'scaleZeroRequest' in jsonObject['points'])
|
|
571
|
+
{
|
|
572
|
+
pointsObject.scaleZeroRequest = (function(){
|
|
573
|
+
if(jsonObject['points'].scaleZeroRequest === null)
|
|
574
|
+
{
|
|
575
|
+
return null;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
if(typeof jsonObject['points'].scaleZeroRequest !== 'number')
|
|
579
|
+
{
|
|
580
|
+
return Number.isInteger(Number(jsonObject['points'].scaleZeroRequest)) ? Number(jsonObject['points'].scaleZeroRequest) : Math.floor(Number(jsonObject['points'].scaleZeroRequest));
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
return Number.isInteger(jsonObject['points'].scaleZeroRequest) ? jsonObject['points'].scaleZeroRequest : Math.floor(jsonObject['points'].scaleZeroRequest);
|
|
584
|
+
}());
|
|
585
|
+
}
|
|
586
|
+
else
|
|
587
|
+
{
|
|
588
|
+
pointsObject.scaleZeroRequest = null;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
if(typeof jsonObject['points'] === 'object' && 'scaleStableStatus' in jsonObject['points'])
|
|
592
|
+
{
|
|
593
|
+
pointsObject.scaleStableStatus = (function(){
|
|
594
|
+
if(typeof jsonObject['points'].scaleStableStatus !== 'number')
|
|
595
|
+
{
|
|
596
|
+
return Number.isInteger(Number(jsonObject['points'].scaleStableStatus)) ? Number(jsonObject['points'].scaleStableStatus) : Math.floor(Number(jsonObject['points'].scaleStableStatus));
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
return Number.isInteger(jsonObject['points'].scaleStableStatus) ? jsonObject['points'].scaleStableStatus : Math.floor(jsonObject['points'].scaleStableStatus);
|
|
600
|
+
}());
|
|
601
|
+
}
|
|
602
|
+
else
|
|
603
|
+
{
|
|
604
|
+
pointsObject.scaleStableStatus = 0;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
if(typeof jsonObject['points'] === 'object' && 'scaleWeight' in jsonObject['points'])
|
|
608
|
+
{
|
|
609
|
+
pointsObject.scaleWeight = (function(){
|
|
610
|
+
if(jsonObject['points'].scaleWeight === null)
|
|
611
|
+
{
|
|
612
|
+
return null;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
if(typeof jsonObject['points'].scaleWeight !== 'number')
|
|
616
|
+
{
|
|
617
|
+
return Number.isInteger(Number(jsonObject['points'].scaleWeight)) ? Number(jsonObject['points'].scaleWeight) : Math.floor(Number(jsonObject['points'].scaleWeight));
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
return Number.isInteger(jsonObject['points'].scaleWeight) ? jsonObject['points'].scaleWeight : Math.floor(jsonObject['points'].scaleWeight);
|
|
621
|
+
}());
|
|
622
|
+
}
|
|
623
|
+
else
|
|
624
|
+
{
|
|
625
|
+
pointsObject.scaleWeight = null;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
if(typeof jsonObject['points'] === 'object' && 'scaleNetWeight' in jsonObject['points'])
|
|
629
|
+
{
|
|
630
|
+
pointsObject.scaleNetWeight = (function(){
|
|
631
|
+
if(jsonObject['points'].scaleNetWeight === null)
|
|
632
|
+
{
|
|
633
|
+
return null;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
if(typeof jsonObject['points'].scaleNetWeight !== 'number')
|
|
637
|
+
{
|
|
638
|
+
return Number.isInteger(Number(jsonObject['points'].scaleNetWeight)) ? Number(jsonObject['points'].scaleNetWeight) : Math.floor(Number(jsonObject['points'].scaleNetWeight));
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
return Number.isInteger(jsonObject['points'].scaleNetWeight) ? jsonObject['points'].scaleNetWeight : Math.floor(jsonObject['points'].scaleNetWeight);
|
|
642
|
+
}());
|
|
643
|
+
}
|
|
644
|
+
else
|
|
645
|
+
{
|
|
646
|
+
pointsObject.scaleNetWeight = null;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
if(typeof jsonObject['points'] === 'object' && 'scaleGrossWeight' in jsonObject['points'])
|
|
650
|
+
{
|
|
651
|
+
pointsObject.scaleGrossWeight = (function(){
|
|
652
|
+
if(jsonObject['points'].scaleGrossWeight === null)
|
|
653
|
+
{
|
|
654
|
+
return null;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
if(typeof jsonObject['points'].scaleGrossWeight !== 'number')
|
|
658
|
+
{
|
|
659
|
+
return Number.isInteger(Number(jsonObject['points'].scaleGrossWeight)) ? Number(jsonObject['points'].scaleGrossWeight) : Math.floor(Number(jsonObject['points'].scaleGrossWeight));
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
return Number.isInteger(jsonObject['points'].scaleGrossWeight) ? jsonObject['points'].scaleGrossWeight : Math.floor(jsonObject['points'].scaleGrossWeight);
|
|
663
|
+
}());
|
|
664
|
+
}
|
|
665
|
+
else
|
|
666
|
+
{
|
|
667
|
+
pointsObject.scaleGrossWeight = null;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
if(typeof jsonObject['points'] === 'object' && 'scaleTareWeight' in jsonObject['points'])
|
|
671
|
+
{
|
|
672
|
+
pointsObject.scaleTareWeight = (function(){
|
|
673
|
+
if(jsonObject['points'].scaleTareWeight === null)
|
|
674
|
+
{
|
|
675
|
+
return null;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
if(typeof jsonObject['points'].scaleTareWeight !== 'number')
|
|
679
|
+
{
|
|
680
|
+
return Number.isInteger(Number(jsonObject['points'].scaleTareWeight)) ? Number(jsonObject['points'].scaleTareWeight) : Math.floor(Number(jsonObject['points'].scaleTareWeight));
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
return Number.isInteger(jsonObject['points'].scaleTareWeight) ? jsonObject['points'].scaleTareWeight : Math.floor(jsonObject['points'].scaleTareWeight);
|
|
684
|
+
}());
|
|
685
|
+
}
|
|
686
|
+
else
|
|
687
|
+
{
|
|
688
|
+
pointsObject.scaleTareWeight = null;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
if(typeof jsonObject['points'] === 'object' && 'targetGrossWeight' in jsonObject['points'])
|
|
692
|
+
{
|
|
693
|
+
pointsObject.targetGrossWeight = (function(){
|
|
694
|
+
if(jsonObject['points'].targetGrossWeight === null)
|
|
695
|
+
{
|
|
696
|
+
return null;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
if(typeof jsonObject['points'].targetGrossWeight !== 'number')
|
|
700
|
+
{
|
|
701
|
+
return Number.isInteger(Number(jsonObject['points'].targetGrossWeight)) ? Number(jsonObject['points'].targetGrossWeight) : Math.floor(Number(jsonObject['points'].targetGrossWeight));
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
return Number.isInteger(jsonObject['points'].targetGrossWeight) ? jsonObject['points'].targetGrossWeight : Math.floor(jsonObject['points'].targetGrossWeight);
|
|
705
|
+
}());
|
|
706
|
+
}
|
|
707
|
+
else
|
|
708
|
+
{
|
|
709
|
+
pointsObject.targetGrossWeight = null;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
if(typeof jsonObject['points'] === 'object' && 'status' in jsonObject['points'])
|
|
713
|
+
{
|
|
714
|
+
pointsObject.status = (function(){
|
|
715
|
+
if(typeof jsonObject['points'].status !== 'number')
|
|
716
|
+
{
|
|
717
|
+
return Number.isInteger(Number(jsonObject['points'].status)) ? Number(jsonObject['points'].status) : Math.floor(Number(jsonObject['points'].status));
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
return Number.isInteger(jsonObject['points'].status) ? jsonObject['points'].status : Math.floor(jsonObject['points'].status);
|
|
721
|
+
}());
|
|
722
|
+
}
|
|
723
|
+
else
|
|
724
|
+
{
|
|
725
|
+
pointsObject.status = 0;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
if(typeof jsonObject['points'] === 'object' && 'currentPackrunId' in jsonObject['points'])
|
|
729
|
+
{
|
|
730
|
+
pointsObject.currentPackrunId = (function(){
|
|
731
|
+
if(typeof jsonObject['points'].currentPackrunId !== 'number')
|
|
732
|
+
{
|
|
733
|
+
return Number.isInteger(Number(jsonObject['points'].currentPackrunId)) ? Number(jsonObject['points'].currentPackrunId) : Math.floor(Number(jsonObject['points'].currentPackrunId));
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
return Number.isInteger(jsonObject['points'].currentPackrunId) ? jsonObject['points'].currentPackrunId : Math.floor(jsonObject['points'].currentPackrunId);
|
|
737
|
+
}());
|
|
738
|
+
}
|
|
739
|
+
else
|
|
740
|
+
{
|
|
741
|
+
pointsObject.currentPackrunId = 0;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
if(typeof jsonObject['points'] === 'object' && 'nextPackrunId' in jsonObject['points'])
|
|
745
|
+
{
|
|
746
|
+
pointsObject.nextPackrunId = (function(){
|
|
747
|
+
if(typeof jsonObject['points'].nextPackrunId !== 'number')
|
|
748
|
+
{
|
|
749
|
+
return Number.isInteger(Number(jsonObject['points'].nextPackrunId)) ? Number(jsonObject['points'].nextPackrunId) : Math.floor(Number(jsonObject['points'].nextPackrunId));
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
return Number.isInteger(jsonObject['points'].nextPackrunId) ? jsonObject['points'].nextPackrunId : Math.floor(jsonObject['points'].nextPackrunId);
|
|
753
|
+
}());
|
|
754
|
+
}
|
|
755
|
+
else
|
|
756
|
+
{
|
|
757
|
+
pointsObject.nextPackrunId = 0;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
if(typeof jsonObject['points'] === 'object' && 'currentPackrunName' in jsonObject['points'])
|
|
761
|
+
{
|
|
762
|
+
pointsObject.currentPackrunName = (function(){
|
|
763
|
+
if(typeof jsonObject['points'].currentPackrunName !== 'number')
|
|
764
|
+
{
|
|
765
|
+
return Number.isInteger(Number(jsonObject['points'].currentPackrunName)) ? Number(jsonObject['points'].currentPackrunName) : Math.floor(Number(jsonObject['points'].currentPackrunName));
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
return Number.isInteger(jsonObject['points'].currentPackrunName) ? jsonObject['points'].currentPackrunName : Math.floor(jsonObject['points'].currentPackrunName);
|
|
769
|
+
}());
|
|
770
|
+
}
|
|
771
|
+
else
|
|
772
|
+
{
|
|
773
|
+
pointsObject.currentPackrunName = 0;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
if(typeof jsonObject['points'] === 'object' && 'nextPackrunName' in jsonObject['points'])
|
|
777
|
+
{
|
|
778
|
+
pointsObject.nextPackrunName = (function(){
|
|
779
|
+
if(typeof jsonObject['points'].nextPackrunName !== 'number')
|
|
780
|
+
{
|
|
781
|
+
return Number.isInteger(Number(jsonObject['points'].nextPackrunName)) ? Number(jsonObject['points'].nextPackrunName) : Math.floor(Number(jsonObject['points'].nextPackrunName));
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
return Number.isInteger(jsonObject['points'].nextPackrunName) ? jsonObject['points'].nextPackrunName : Math.floor(jsonObject['points'].nextPackrunName);
|
|
785
|
+
}());
|
|
786
|
+
}
|
|
787
|
+
else
|
|
788
|
+
{
|
|
789
|
+
pointsObject.nextPackrunName = 0;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
if(typeof jsonObject['points'] === 'object' && 'incorrectOperationStatus' in jsonObject['points'])
|
|
793
|
+
{
|
|
794
|
+
pointsObject.incorrectOperationStatus = (function(){
|
|
795
|
+
if(jsonObject['points'].incorrectOperationStatus === null)
|
|
796
|
+
{
|
|
797
|
+
return null;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
if(typeof jsonObject['points'].incorrectOperationStatus !== 'number')
|
|
801
|
+
{
|
|
802
|
+
return Number.isInteger(Number(jsonObject['points'].incorrectOperationStatus)) ? Number(jsonObject['points'].incorrectOperationStatus) : Math.floor(Number(jsonObject['points'].incorrectOperationStatus));
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
return Number.isInteger(jsonObject['points'].incorrectOperationStatus) ? jsonObject['points'].incorrectOperationStatus : Math.floor(jsonObject['points'].incorrectOperationStatus);
|
|
806
|
+
}());
|
|
807
|
+
}
|
|
808
|
+
else
|
|
809
|
+
{
|
|
810
|
+
pointsObject.incorrectOperationStatus = null;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
if(typeof jsonObject['points'] === 'object' && 'currentPackrunIncorrectOperationsCount' in jsonObject['points'])
|
|
814
|
+
{
|
|
815
|
+
pointsObject.currentPackrunIncorrectOperationsCount = (function(){
|
|
816
|
+
if(jsonObject['points'].currentPackrunIncorrectOperationsCount === null)
|
|
817
|
+
{
|
|
818
|
+
return null;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
if(typeof jsonObject['points'].currentPackrunIncorrectOperationsCount !== 'number')
|
|
822
|
+
{
|
|
823
|
+
return Number.isInteger(Number(jsonObject['points'].currentPackrunIncorrectOperationsCount)) ? Number(jsonObject['points'].currentPackrunIncorrectOperationsCount) : Math.floor(Number(jsonObject['points'].currentPackrunIncorrectOperationsCount));
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
return Number.isInteger(jsonObject['points'].currentPackrunIncorrectOperationsCount) ? jsonObject['points'].currentPackrunIncorrectOperationsCount : Math.floor(jsonObject['points'].currentPackrunIncorrectOperationsCount);
|
|
827
|
+
}());
|
|
828
|
+
}
|
|
829
|
+
else
|
|
830
|
+
{
|
|
831
|
+
pointsObject.currentPackrunIncorrectOperationsCount = null;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
if(typeof jsonObject['points'] === 'object' && 'totalIncorrectOperationsCount' in jsonObject['points'])
|
|
835
|
+
{
|
|
836
|
+
pointsObject.totalIncorrectOperationsCount = (function(){
|
|
837
|
+
if(jsonObject['points'].totalIncorrectOperationsCount === null)
|
|
838
|
+
{
|
|
839
|
+
return null;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
if(typeof jsonObject['points'].totalIncorrectOperationsCount !== 'number')
|
|
843
|
+
{
|
|
844
|
+
return Number.isInteger(Number(jsonObject['points'].totalIncorrectOperationsCount)) ? Number(jsonObject['points'].totalIncorrectOperationsCount) : Math.floor(Number(jsonObject['points'].totalIncorrectOperationsCount));
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
return Number.isInteger(jsonObject['points'].totalIncorrectOperationsCount) ? jsonObject['points'].totalIncorrectOperationsCount : Math.floor(jsonObject['points'].totalIncorrectOperationsCount);
|
|
848
|
+
}());
|
|
849
|
+
}
|
|
850
|
+
else
|
|
851
|
+
{
|
|
852
|
+
pointsObject.totalIncorrectOperationsCount = null;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
if(typeof jsonObject['points'] === 'object' && 'manualInterventionStatus' in jsonObject['points'])
|
|
856
|
+
{
|
|
857
|
+
pointsObject.manualInterventionStatus = (function(){
|
|
858
|
+
if(jsonObject['points'].manualInterventionStatus === null)
|
|
859
|
+
{
|
|
860
|
+
return null;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
if(typeof jsonObject['points'].manualInterventionStatus !== 'number')
|
|
864
|
+
{
|
|
865
|
+
return Number.isInteger(Number(jsonObject['points'].manualInterventionStatus)) ? Number(jsonObject['points'].manualInterventionStatus) : Math.floor(Number(jsonObject['points'].manualInterventionStatus));
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
return Number.isInteger(jsonObject['points'].manualInterventionStatus) ? jsonObject['points'].manualInterventionStatus : Math.floor(jsonObject['points'].manualInterventionStatus);
|
|
869
|
+
}());
|
|
870
|
+
}
|
|
871
|
+
else
|
|
872
|
+
{
|
|
873
|
+
pointsObject.manualInterventionStatus = null;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
if(typeof jsonObject['points'] === 'object' && 'currentPackrunManualInterventionsCount' in jsonObject['points'])
|
|
877
|
+
{
|
|
878
|
+
pointsObject.currentPackrunManualInterventionsCount = (function(){
|
|
879
|
+
if(jsonObject['points'].currentPackrunManualInterventionsCount === null)
|
|
880
|
+
{
|
|
881
|
+
return null;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
if(typeof jsonObject['points'].currentPackrunManualInterventionsCount !== 'number')
|
|
885
|
+
{
|
|
886
|
+
return Number.isInteger(Number(jsonObject['points'].currentPackrunManualInterventionsCount)) ? Number(jsonObject['points'].currentPackrunManualInterventionsCount) : Math.floor(Number(jsonObject['points'].currentPackrunManualInterventionsCount));
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
return Number.isInteger(jsonObject['points'].currentPackrunManualInterventionsCount) ? jsonObject['points'].currentPackrunManualInterventionsCount : Math.floor(jsonObject['points'].currentPackrunManualInterventionsCount);
|
|
890
|
+
}());
|
|
891
|
+
}
|
|
892
|
+
else
|
|
893
|
+
{
|
|
894
|
+
pointsObject.currentPackrunManualInterventionsCount = null;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
if(typeof jsonObject['points'] === 'object' && 'totalManualInterventionsCount' in jsonObject['points'])
|
|
898
|
+
{
|
|
899
|
+
pointsObject.totalManualInterventionsCount = (function(){
|
|
900
|
+
if(jsonObject['points'].totalManualInterventionsCount === null)
|
|
901
|
+
{
|
|
902
|
+
return null;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
if(typeof jsonObject['points'].totalManualInterventionsCount !== 'number')
|
|
906
|
+
{
|
|
907
|
+
return Number.isInteger(Number(jsonObject['points'].totalManualInterventionsCount)) ? Number(jsonObject['points'].totalManualInterventionsCount) : Math.floor(Number(jsonObject['points'].totalManualInterventionsCount));
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
return Number.isInteger(jsonObject['points'].totalManualInterventionsCount) ? jsonObject['points'].totalManualInterventionsCount : Math.floor(jsonObject['points'].totalManualInterventionsCount);
|
|
911
|
+
}());
|
|
912
|
+
}
|
|
913
|
+
else
|
|
914
|
+
{
|
|
915
|
+
pointsObject.totalManualInterventionsCount = null;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
if(typeof jsonObject['points'] === 'object' && 'currentPackrunBinsWeighedCount' in jsonObject['points'])
|
|
919
|
+
{
|
|
920
|
+
pointsObject.currentPackrunBinsWeighedCount = (function(){
|
|
921
|
+
if(typeof jsonObject['points'].currentPackrunBinsWeighedCount !== 'number')
|
|
922
|
+
{
|
|
923
|
+
return Number.isInteger(Number(jsonObject['points'].currentPackrunBinsWeighedCount)) ? Number(jsonObject['points'].currentPackrunBinsWeighedCount) : Math.floor(Number(jsonObject['points'].currentPackrunBinsWeighedCount));
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
return Number.isInteger(jsonObject['points'].currentPackrunBinsWeighedCount) ? jsonObject['points'].currentPackrunBinsWeighedCount : Math.floor(jsonObject['points'].currentPackrunBinsWeighedCount);
|
|
927
|
+
}());
|
|
928
|
+
}
|
|
929
|
+
else
|
|
930
|
+
{
|
|
931
|
+
pointsObject.currentPackrunBinsWeighedCount = 0;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
if(typeof jsonObject['points'] === 'object' && 'totalBinsWeighedCount' in jsonObject['points'])
|
|
935
|
+
{
|
|
936
|
+
pointsObject.totalBinsWeighedCount = (function(){
|
|
937
|
+
if(typeof jsonObject['points'].totalBinsWeighedCount !== 'number')
|
|
938
|
+
{
|
|
939
|
+
return Number.isInteger(Number(jsonObject['points'].totalBinsWeighedCount)) ? Number(jsonObject['points'].totalBinsWeighedCount) : Math.floor(Number(jsonObject['points'].totalBinsWeighedCount));
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
return Number.isInteger(jsonObject['points'].totalBinsWeighedCount) ? jsonObject['points'].totalBinsWeighedCount : Math.floor(jsonObject['points'].totalBinsWeighedCount);
|
|
943
|
+
}());
|
|
944
|
+
}
|
|
945
|
+
else
|
|
946
|
+
{
|
|
947
|
+
pointsObject.totalBinsWeighedCount = 0;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
return pointsObject;
|
|
300
951
|
}());
|
|
301
952
|
}
|
|
302
953
|
|
|
@@ -356,11 +1007,6 @@ class RejectBinScaleModel extends BaseModel
|
|
|
356
1007
|
|
|
357
1008
|
return jsonObject['sources'].map((sourcesItem) => {
|
|
358
1009
|
return (function(){
|
|
359
|
-
if(typeof sourcesItem !== 'object')
|
|
360
|
-
{
|
|
361
|
-
return Object(sourcesItem);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
1010
|
return sourcesItem;
|
|
365
1011
|
}());
|
|
366
1012
|
});
|
|
@@ -597,12 +1243,126 @@ class RejectBinScaleModel extends BaseModel
|
|
|
597
1243
|
return null;
|
|
598
1244
|
}
|
|
599
1245
|
|
|
600
|
-
|
|
1246
|
+
let freshPackIntegrationObject = {};
|
|
1247
|
+
|
|
1248
|
+
if(typeof jsonObject['freshPackIntegration'] === 'object' && 'points' in jsonObject['freshPackIntegration'])
|
|
1249
|
+
{
|
|
1250
|
+
freshPackIntegrationObject.points = (function(){
|
|
1251
|
+
if(typeof jsonObject['freshPackIntegration'].points !== 'object')
|
|
1252
|
+
{
|
|
1253
|
+
return Object(jsonObject['freshPackIntegration'].points);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
return jsonObject['freshPackIntegration'].points;
|
|
1257
|
+
}());
|
|
1258
|
+
}
|
|
1259
|
+
else
|
|
1260
|
+
{
|
|
1261
|
+
freshPackIntegrationObject.points = {}
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
if(typeof jsonObject['freshPackIntegration'] === 'object' && 'enabled' in jsonObject['freshPackIntegration'])
|
|
1265
|
+
{
|
|
1266
|
+
freshPackIntegrationObject.enabled = (function(){
|
|
1267
|
+
if(typeof jsonObject['freshPackIntegration'].enabled !== 'boolean')
|
|
1268
|
+
{
|
|
1269
|
+
return Boolean(jsonObject['freshPackIntegration'].enabled);
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
return jsonObject['freshPackIntegration'].enabled;
|
|
1273
|
+
}());
|
|
1274
|
+
}
|
|
1275
|
+
else
|
|
1276
|
+
{
|
|
1277
|
+
freshPackIntegrationObject.enabled = false;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
if(typeof jsonObject['freshPackIntegration'] === 'object' && 'materialGroupId' in jsonObject['freshPackIntegration'])
|
|
1281
|
+
{
|
|
1282
|
+
freshPackIntegrationObject.materialGroupId = (function(){
|
|
1283
|
+
if(typeof jsonObject['freshPackIntegration'].materialGroupId !== 'number')
|
|
1284
|
+
{
|
|
1285
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].materialGroupId)) ? Number(jsonObject['freshPackIntegration'].materialGroupId) : Math.floor(Number(jsonObject['freshPackIntegration'].materialGroupId));
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].materialGroupId) ? jsonObject['freshPackIntegration'].materialGroupId : Math.floor(jsonObject['freshPackIntegration'].materialGroupId);
|
|
1289
|
+
}());
|
|
1290
|
+
}
|
|
1291
|
+
else
|
|
1292
|
+
{
|
|
1293
|
+
freshPackIntegrationObject.materialGroupId = 0;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
if(typeof jsonObject['freshPackIntegration'] === 'object' && 'binTypeId' in jsonObject['freshPackIntegration'])
|
|
1297
|
+
{
|
|
1298
|
+
freshPackIntegrationObject.binTypeId = (function(){
|
|
1299
|
+
if(typeof jsonObject['freshPackIntegration'].binTypeId !== 'number')
|
|
1300
|
+
{
|
|
1301
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].binTypeId)) ? Number(jsonObject['freshPackIntegration'].binTypeId) : Math.floor(Number(jsonObject['freshPackIntegration'].binTypeId));
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].binTypeId) ? jsonObject['freshPackIntegration'].binTypeId : Math.floor(jsonObject['freshPackIntegration'].binTypeId);
|
|
1305
|
+
}());
|
|
1306
|
+
}
|
|
1307
|
+
else
|
|
1308
|
+
{
|
|
1309
|
+
freshPackIntegrationObject.binTypeId = 0;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
if(typeof jsonObject['freshPackIntegration'] === 'object' && 'printerGroupId' in jsonObject['freshPackIntegration'])
|
|
1313
|
+
{
|
|
1314
|
+
freshPackIntegrationObject.printerGroupId = (function(){
|
|
1315
|
+
if(jsonObject['freshPackIntegration'].printerGroupId === null)
|
|
1316
|
+
{
|
|
1317
|
+
return null;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
if(typeof jsonObject['freshPackIntegration'].printerGroupId !== 'number')
|
|
1321
|
+
{
|
|
1322
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].printerGroupId)) ? Number(jsonObject['freshPackIntegration'].printerGroupId) : Math.floor(Number(jsonObject['freshPackIntegration'].printerGroupId));
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].printerGroupId) ? jsonObject['freshPackIntegration'].printerGroupId : Math.floor(jsonObject['freshPackIntegration'].printerGroupId);
|
|
1326
|
+
}());
|
|
1327
|
+
}
|
|
1328
|
+
else
|
|
1329
|
+
{
|
|
1330
|
+
freshPackIntegrationObject.printerGroupId = null;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
if(typeof jsonObject['freshPackIntegration'] === 'object' && 'binCardPrintingEnabled' in jsonObject['freshPackIntegration'])
|
|
1334
|
+
{
|
|
1335
|
+
freshPackIntegrationObject.binCardPrintingEnabled = (function(){
|
|
1336
|
+
if(typeof jsonObject['freshPackIntegration'].binCardPrintingEnabled !== 'boolean')
|
|
1337
|
+
{
|
|
1338
|
+
return Boolean(jsonObject['freshPackIntegration'].binCardPrintingEnabled);
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
return jsonObject['freshPackIntegration'].binCardPrintingEnabled;
|
|
1342
|
+
}());
|
|
1343
|
+
}
|
|
1344
|
+
else
|
|
1345
|
+
{
|
|
1346
|
+
freshPackIntegrationObject.binCardPrintingEnabled = false;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
if(typeof jsonObject['freshPackIntegration'] === 'object' && 'useWindowsDriverApi' in jsonObject['freshPackIntegration'])
|
|
1350
|
+
{
|
|
1351
|
+
freshPackIntegrationObject.useWindowsDriverApi = (function(){
|
|
1352
|
+
if(typeof jsonObject['freshPackIntegration'].useWindowsDriverApi !== 'boolean')
|
|
1353
|
+
{
|
|
1354
|
+
return Boolean(jsonObject['freshPackIntegration'].useWindowsDriverApi);
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
return jsonObject['freshPackIntegration'].useWindowsDriverApi;
|
|
1358
|
+
}());
|
|
1359
|
+
}
|
|
1360
|
+
else
|
|
601
1361
|
{
|
|
602
|
-
|
|
1362
|
+
freshPackIntegrationObject.useWindowsDriverApi = false;
|
|
603
1363
|
}
|
|
604
1364
|
|
|
605
|
-
return
|
|
1365
|
+
return freshPackIntegrationObject;
|
|
606
1366
|
}());
|
|
607
1367
|
}
|
|
608
1368
|
|