From 7af0b2455262d8d4c6a21b6bae37be6b9ebeba08 Mon Sep 17 00:00:00 2001 From: rpm-mcarman <65228808+rpm-mcarman@users.noreply.github.com> Date: Mon, 18 Dec 2023 22:21:42 -0500 Subject: [PATCH] Part, dspec, bom save and update working --- .wappler/project.json | 2 +- .../Development/app/config/config.json | 3 + app/api/BOM/NewBomItem.json | 2 +- app/api/BOM/UpdateBomItem.json | 3 - app/api/DSpec/Create.json | 215 +- app/api/DSpec/SearchPID.json | 2 +- app/api/MaxPNs/Increase.json | 4 +- app/api/MaxPNs/MaxPN.json | 86 + app/api/PartCodes/All.json | 118 +- app/api/PartCodes/ByPartType.json | 314 + app/api/PartTypes/All.json | 154 +- app/api/PartTypes/GetAll.json | 274 + app/api/Parts/Create.json | 32 +- app/api/Parts/CreatePart.json | 165 + app/api/Parts/Seach.json | 2 +- app/config/config.json | 3 + app/config/routes.json | 5 + app/modules/global.json | 8 + public/dmxAppConnect/config.js | 5629 +++++++++++++++++ .../dmxDatastore/dmxDatastore.js | 8 + .../dmxDatePicker/bgthemes/dark-calendar.css | 60 + .../dmxDatePicker/daterangepicker.min.css | 8 + .../dmxDatePicker/daterangepicker.min.js | 8 + .../dmxDatePicker/dmxDatePicker.css | 33 + .../dmxDatePicker/dmxDatePicker.js | 8 + .../dmxDatePicker/themes/blue.css | 22 + .../dmxDatePicker/themes/cyan.css | 22 + .../dmxDatePicker/themes/dark-gray.css | 22 + .../dmxDatePicker/themes/gray.css | 22 + .../dmxDatePicker/themes/green.css | 22 + .../dmxDatePicker/themes/orange.css | 22 + .../dmxDatePicker/themes/pink.css | 22 + .../dmxDatePicker/themes/purple.css | 22 + .../dmxDatePicker/themes/red.css | 22 + .../dmxDatePicker/themes/teal.css | 22 + views/.wappler_folder.json | 4 + views/dspec.ejs | 14 +- views/dspec2.ejs | 294 + views/index.ejs | 8 +- views/layouts/main.ejs | 12 +- 40 files changed, 7574 insertions(+), 124 deletions(-) delete mode 100644 app/api/BOM/UpdateBomItem.json create mode 100644 app/api/MaxPNs/MaxPN.json create mode 100644 app/api/PartCodes/ByPartType.json create mode 100644 app/api/PartTypes/GetAll.json create mode 100644 app/api/Parts/CreatePart.json create mode 100644 public/dmxAppConnect/dmxDatastore/dmxDatastore.js create mode 100644 public/dmxAppConnect/dmxDatePicker/bgthemes/dark-calendar.css create mode 100644 public/dmxAppConnect/dmxDatePicker/daterangepicker.min.css create mode 100644 public/dmxAppConnect/dmxDatePicker/daterangepicker.min.js create mode 100644 public/dmxAppConnect/dmxDatePicker/dmxDatePicker.css create mode 100644 public/dmxAppConnect/dmxDatePicker/dmxDatePicker.js create mode 100644 public/dmxAppConnect/dmxDatePicker/themes/blue.css create mode 100644 public/dmxAppConnect/dmxDatePicker/themes/cyan.css create mode 100644 public/dmxAppConnect/dmxDatePicker/themes/dark-gray.css create mode 100644 public/dmxAppConnect/dmxDatePicker/themes/gray.css create mode 100644 public/dmxAppConnect/dmxDatePicker/themes/green.css create mode 100644 public/dmxAppConnect/dmxDatePicker/themes/orange.css create mode 100644 public/dmxAppConnect/dmxDatePicker/themes/pink.css create mode 100644 public/dmxAppConnect/dmxDatePicker/themes/purple.css create mode 100644 public/dmxAppConnect/dmxDatePicker/themes/red.css create mode 100644 public/dmxAppConnect/dmxDatePicker/themes/teal.css create mode 100644 views/dspec2.ejs diff --git a/.wappler/project.json b/.wappler/project.json index 6c5afe1..ab019d5 100644 --- a/.wappler/project.json +++ b/.wappler/project.json @@ -27,7 +27,7 @@ "targets": [ { "name": "Development", - "remoteURL": "http://localhost:3000/", + "remoteURL": "http://localhost:3000", "access": "local" } ], diff --git a/.wappler/targets/Development/app/config/config.json b/.wappler/targets/Development/app/config/config.json index db8d9ac..00bfe1c 100644 --- a/.wappler/targets/Development/app/config/config.json +++ b/.wappler/targets/Development/app/config/config.json @@ -4,5 +4,8 @@ "cors": { "origin": "*", "methods": "GET,POST,DELETE,PATCH,PUT" + }, + "env": { + "API_BASEURL": "http://vapor.prelub.com/api/v1.0/" } } \ No newline at end of file diff --git a/app/api/BOM/NewBomItem.json b/app/api/BOM/NewBomItem.json index 8c79b44..de3c8f3 100644 --- a/app/api/BOM/NewBomItem.json +++ b/app/api/BOM/NewBomItem.json @@ -60,7 +60,7 @@ "updateuserid": "-1", "partnumberid": "{{$_POST.newbompnid}}" }, - "url": "http://vapor.prelub.com/api/v1.0/boms/wapplerinsert" + "url": "{{$_ENV.API_BASEURL+'boms/wapplerinsert'}}" }, "output": true } diff --git a/app/api/BOM/UpdateBomItem.json b/app/api/BOM/UpdateBomItem.json deleted file mode 100644 index 18cca0a..0000000 --- a/app/api/BOM/UpdateBomItem.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "exec": {} -} \ No newline at end of file diff --git a/app/api/DSpec/Create.json b/app/api/DSpec/Create.json index 3dd866b..b4ac2b6 100644 --- a/app/api/DSpec/Create.json +++ b/app/api/DSpec/Create.json @@ -42,5 +42,218 @@ } ] }, - "exec": {} + "exec": { + "steps": { + "name": "api", + "module": "api", + "action": "send", + "options": { + "method": "POST", + "url": "{{$_ENV.API_BASEURL+'designspecs/altin'}}", + "dataType": "json", + "data": { + "id": null, + "revisionlevel": "{{$_POST.dspecrev}}", + "partnumber": { + "id": "{{$_POST.dspecpnid}}", + "secondaryvendor": {}, + "status": { + "id": 4 + }, + "partcode": { + "id": 16 + }, + "replacedby": {}, + "replaces": {}, + "primaryvendor": {} + }, + "status": { + "id": "{{$_POST.dspecstatusid}}" + }, + "effectivedate": "{{$_POST.dspeceffectivedate}}", + "reasonforchange": "{{$_POST.dspecreasonforchange}}", + "validation": "{{$_POST.dspecvalidation}}", + "note": "{{$_POST.dspecnotes}}" + }, + "schema": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "text", + "name": "id" + }, + { + "type": "text", + "name": "revisionlevel" + }, + { + "type": "object", + "name": "partnumber", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "object", + "name": "secondaryvendor" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby" + }, + { + "type": "object", + "name": "replaces" + }, + { + "type": "object", + "name": "primaryvendor" + } + ] + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "effectivedate" + }, + { + "type": "text", + "name": "reasonforchange" + }, + { + "type": "text", + "name": "validation" + }, + { + "type": "text", + "name": "note" + } + ] + } + ] + }, + "output": true, + "meta": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "text", + "name": "id" + }, + { + "type": "text", + "name": "revisionlevel" + }, + { + "type": "object", + "name": "partnumber", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "object", + "name": "secondaryvendor" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby" + }, + { + "type": "object", + "name": "replaces" + }, + { + "type": "object", + "name": "primaryvendor" + } + ] + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "effectivedate" + }, + { + "type": "text", + "name": "reasonforchange" + }, + { + "type": "text", + "name": "validation" + }, + { + "type": "text", + "name": "note" + } + ] + } + ], + "outputType": "object" + } + } } \ No newline at end of file diff --git a/app/api/DSpec/SearchPID.json b/app/api/DSpec/SearchPID.json index b31363b..ffd4ad2 100644 --- a/app/api/DSpec/SearchPID.json +++ b/app/api/DSpec/SearchPID.json @@ -24,7 +24,7 @@ "module": "api", "action": "send", "options": { - "url": "http://vapor.prelub.com/api/v1.0/designspecs/max/+$_GET.id", + "url": "{{$_ENV.API_BASEURL+'designspecs/max/'+$_GET.id}}", "schema": [ { "type": "array", diff --git a/app/api/MaxPNs/Increase.json b/app/api/MaxPNs/Increase.json index cf98898..cae063c 100644 --- a/app/api/MaxPNs/Increase.json +++ b/app/api/MaxPNs/Increase.json @@ -4,7 +4,7 @@ "module": "api", "action": "send", "options": { - "url": "http://vapor.prelub.com/api/v1.0/pns/max", + "url": "{{$_ENV.API_BASEURL+'pns/max'}}", "schema": [ { "type": "object", @@ -91,7 +91,7 @@ "action": "send", "options": { "method": "POST", - "url": "http://vapor.prelub.com/api/v1.0/pns/", + "url": "{{$_ENV.API_BASEURL+'pns/'}}", "dataType": "json", "data": { "id": null, diff --git a/app/api/MaxPNs/MaxPN.json b/app/api/MaxPNs/MaxPN.json new file mode 100644 index 0000000..b9316ab --- /dev/null +++ b/app/api/MaxPNs/MaxPN.json @@ -0,0 +1,86 @@ +{ + "name": "api", + "module": "api", + "action": "send", + "options": { + "url": "{{$_ENV.API_BASEURL+'pns/max'}}", + "schema": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "number", + "name": "number" + }, + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ] + }, + "output": true, + "meta": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "number", + "name": "number" + }, + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "outputType": "object" +} \ No newline at end of file diff --git a/app/api/PartCodes/All.json b/app/api/PartCodes/All.json index c108c96..75e6dd7 100644 --- a/app/api/PartCodes/All.json +++ b/app/api/PartCodes/All.json @@ -28,7 +28,7 @@ "module": "api", "action": "send", "options": { - "url": "http://vapor.prelub.com/api/v1.0/partcodes", + "url": "{{$_ENV.API_BASEURL+'partcodes'}}", "schema": [ { "type": "array", @@ -36,12 +36,30 @@ "sub": [ { "type": "number", - "name": "createuserid" + "name": "id" }, { "type": "text", "name": "description" }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, { "type": "object", "name": "parttype", @@ -52,31 +70,31 @@ }, { "type": "text", - "name": "createdate" + "name": "updatedate" }, { - "type": "text", - "name": "description" + "type": "number", + "name": "id" }, { "type": "number", - "name": "starting" + "name": "updateuserid" }, { "type": "number", - "name": "updateuserid" + "name": "starting" }, { "type": "text", - "name": "updatedate" + "name": "createdate" }, { "type": "text", - "name": "name" + "name": "description" }, { - "type": "number", - "name": "id" + "type": "text", + "name": "name" }, { "type": "number", @@ -85,24 +103,32 @@ ] }, { - "type": "text", - "name": "name" + "type": "boolean", + "name": "ispartcode" }, { "type": "number", "name": "updateuserid" }, { - "type": "number", - "name": "id" + "type": "text", + "name": "code" }, { - "type": "text", - "name": "updatedate" + "type": "array", + "name": "children" + }, + { + "type": "boolean", + "name": "isactive" }, { "type": "text", "name": "createdate" + }, + { + "type": "text", + "name": "name" } ] }, @@ -138,12 +164,30 @@ "sub": [ { "type": "number", - "name": "createuserid" + "name": "id" }, { "type": "text", "name": "description" }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, { "type": "object", "name": "parttype", @@ -154,31 +198,31 @@ }, { "type": "text", - "name": "createdate" + "name": "updatedate" }, { - "type": "text", - "name": "description" + "type": "number", + "name": "id" }, { "type": "number", - "name": "starting" + "name": "updateuserid" }, { "type": "number", - "name": "updateuserid" + "name": "starting" }, { "type": "text", - "name": "updatedate" + "name": "createdate" }, { "type": "text", - "name": "name" + "name": "description" }, { - "type": "number", - "name": "id" + "type": "text", + "name": "name" }, { "type": "number", @@ -187,24 +231,32 @@ ] }, { - "type": "text", - "name": "name" + "type": "boolean", + "name": "ispartcode" }, { "type": "number", "name": "updateuserid" }, { - "type": "number", - "name": "id" + "type": "text", + "name": "code" }, { - "type": "text", - "name": "updatedate" + "type": "array", + "name": "children" + }, + { + "type": "boolean", + "name": "isactive" }, { "type": "text", "name": "createdate" + }, + { + "type": "text", + "name": "name" } ] }, diff --git a/app/api/PartCodes/ByPartType.json b/app/api/PartCodes/ByPartType.json new file mode 100644 index 0000000..859bc14 --- /dev/null +++ b/app/api/PartCodes/ByPartType.json @@ -0,0 +1,314 @@ +{ + "meta": { + "options": { + "linkedFile": "/views/dspec2.ejs", + "linkedForm": "frm_all" + }, + "$_POST": [ + { + "type": "text", + "fieldName": "hdnpartnumber", + "name": "hdnpartnumber" + }, + { + "type": "text", + "fieldName": "hdnparttyp", + "name": "hdnparttyp" + }, + { + "type": "text", + "fieldName": "hdnpartcode", + "name": "hdnpartcode" + }, + { + "type": "text", + "fieldName": "partid", + "name": "partid" + }, + { + "type": "text", + "fieldName": "parttypes", + "name": "parttypes" + }, + { + "type": "text", + "fieldName": "partcodes", + "name": "partcodes" + }, + { + "type": "text", + "fieldName": "description", + "name": "description" + }, + { + "type": "text", + "fieldName": "comments", + "name": "comments" + } + ] + }, + "exec": { + "steps": { + "name": "api_byparttype", + "module": "api", + "action": "send", + "options": { + "url": "{{$_ENV.API_BASEURL+'partcode/bytype/'+$_POST.hdnparttyp}}", + "schema": [ + { + "type": "array", + "name": "data", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "number", + "name": "ending" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "array", + "name": "children" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ] + }, + "output": true, + "meta": [ + { + "type": "array", + "name": "data", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "number", + "name": "ending" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "array", + "name": "children" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "outputType": "object" + } + } +} \ No newline at end of file diff --git a/app/api/PartTypes/All.json b/app/api/PartTypes/All.json index 94889ae..d4022c1 100644 --- a/app/api/PartTypes/All.json +++ b/app/api/PartTypes/All.json @@ -3,7 +3,7 @@ "module": "api", "action": "send", "options": { - "url": "http://vapor.prelub.com/api/v1.0/parttypes", + "url": "{{$_ENV.API_BASEURL+'parttypes'}}", "schema": [ { "type": "array", @@ -11,11 +11,15 @@ "sub": [ { "type": "text", - "name": "name" + "name": "updatedate" }, { - "type": "text", - "name": "updatedate" + "type": "number", + "name": "ending" + }, + { + "type": "number", + "name": "id" }, { "type": "number", @@ -23,19 +27,15 @@ }, { "type": "number", - "name": "id" + "name": "updateuserid" }, { "type": "array", "name": "partcodes", "sub": [ { - "type": "text", - "name": "updatedate" - }, - { - "type": "text", - "name": "createdate" + "type": "number", + "name": "id" }, { "type": "text", @@ -45,17 +45,19 @@ "type": "number", "name": "createuserid" }, - { - "type": "number", - "name": "updateuserid" - }, { "type": "text", - "name": "name" + "name": "updatedate" }, { - "type": "number", - "name": "id" + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] }, { "type": "object", @@ -66,28 +68,48 @@ "name": "id" } ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" } ] }, { - "type": "number", - "name": "createuserid" + "type": "text", + "name": "createdate" }, { - "type": "number", - "name": "updateuserid" + "type": "text", + "name": "description" }, { "type": "text", - "name": "createdate" + "name": "name" }, { "type": "number", - "name": "ending" - }, - { - "type": "text", - "name": "description" + "name": "createuserid" } ] }, @@ -123,11 +145,15 @@ "sub": [ { "type": "text", - "name": "name" + "name": "updatedate" }, { - "type": "text", - "name": "updatedate" + "type": "number", + "name": "ending" + }, + { + "type": "number", + "name": "id" }, { "type": "number", @@ -135,19 +161,15 @@ }, { "type": "number", - "name": "id" + "name": "updateuserid" }, { "type": "array", "name": "partcodes", "sub": [ { - "type": "text", - "name": "updatedate" - }, - { - "type": "text", - "name": "createdate" + "type": "number", + "name": "id" }, { "type": "text", @@ -157,17 +179,19 @@ "type": "number", "name": "createuserid" }, - { - "type": "number", - "name": "updateuserid" - }, { "type": "text", - "name": "name" + "name": "updatedate" }, { - "type": "number", - "name": "id" + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] }, { "type": "object", @@ -178,28 +202,48 @@ "name": "id" } ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" } ] }, { - "type": "number", - "name": "createuserid" + "type": "text", + "name": "createdate" }, { - "type": "number", - "name": "updateuserid" + "type": "text", + "name": "description" }, { "type": "text", - "name": "createdate" + "name": "name" }, { "type": "number", - "name": "ending" - }, - { - "type": "text", - "name": "description" + "name": "createuserid" } ] }, diff --git a/app/api/PartTypes/GetAll.json b/app/api/PartTypes/GetAll.json new file mode 100644 index 0000000..1e0e9fb --- /dev/null +++ b/app/api/PartTypes/GetAll.json @@ -0,0 +1,274 @@ +{ + "name": "api", + "module": "api", + "action": "send", + "options": { + "url": "{{$_ENV.API_BASEURL+'parttypes'}}", + "schema": [ + { + "type": "array", + "name": "data", + "sub": [ + { + "type": "number", + "name": "ending" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "array", + "name": "partcodes", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ] + }, + "output": true, + "meta": [ + { + "type": "array", + "name": "data", + "sub": [ + { + "type": "number", + "name": "ending" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "array", + "name": "partcodes", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "outputType": "object" +} \ No newline at end of file diff --git a/app/api/Parts/Create.json b/app/api/Parts/Create.json index 06bb9a2..44bf7e6 100644 --- a/app/api/Parts/Create.json +++ b/app/api/Parts/Create.json @@ -5,6 +5,16 @@ "linkedForm": "frm_partsubmit" }, "$_POST": [ + { + "type": "text", + "fieldName": "savepc", + "name": "savepc" + }, + { + "type": "text", + "fieldName": "savept", + "name": "savept" + }, { "type": "text", "fieldName": "savepnid", @@ -24,16 +34,6 @@ "type": "text", "fieldName": "savepncomments", "name": "savepncomments" - }, - { - "type": "text", - "fieldName": "savepc", - "name": "savepc" - }, - { - "type": "text", - "fieldName": "savept", - "name": "savept" } ] }, @@ -43,12 +43,12 @@ "module": "api", "action": "send", "options": { - "url": "http://vapor.prelub.com/api/v1.0/partnumbers/alt", + "url": "{{$_ENV.API_BASEURL+'partnumbers/alt'}}", "method": "POST", "dataType": "json", "data": { "number": "{{$_POST.savepn}}", - "statusid": "4", + "statusid": "1", "description": "{{$_POST.savepndescription}}", "comments": "{{$_POST.savepncomments}}", "id": null, @@ -66,7 +66,7 @@ }, { "type": "text", - "name": "comments" + "name": "number" }, { "type": "text", @@ -74,7 +74,7 @@ }, { "type": "text", - "name": "number" + "name": "comments" } ] }, @@ -114,7 +114,7 @@ }, { "type": "text", - "name": "comments" + "name": "number" }, { "type": "text", @@ -122,7 +122,7 @@ }, { "type": "text", - "name": "number" + "name": "comments" } ] }, diff --git a/app/api/Parts/CreatePart.json b/app/api/Parts/CreatePart.json new file mode 100644 index 0000000..932c8e9 --- /dev/null +++ b/app/api/Parts/CreatePart.json @@ -0,0 +1,165 @@ +{ + "meta": { + "options": { + "linkedFile": "/views/dspec2.ejs", + "linkedForm": "frm_all" + }, + "$_POST": [ + { + "type": "text", + "fieldName": "hdnpartnumber", + "name": "hdnpartnumber" + }, + { + "type": "text", + "fieldName": "hdnparttyp", + "name": "hdnparttyp" + }, + { + "type": "text", + "fieldName": "hdnpartcode", + "name": "hdnpartcode" + }, + { + "type": "text", + "fieldName": "partid", + "name": "partid" + }, + { + "type": "text", + "fieldName": "parttypes", + "name": "parttypes" + }, + { + "type": "text", + "fieldName": "partcodes", + "name": "partcodes" + }, + { + "type": "text", + "fieldName": "description", + "name": "description" + }, + { + "type": "text", + "fieldName": "comments", + "name": "comments" + } + ] + }, + "exec": { + "steps": { + "name": "api", + "module": "api", + "action": "send", + "options": { + "url": "{{$_ENV.API_BASEURL+'partnumbers/alt'}}", + "method": "POST", + "dataType": "json", + "data": { + "number": "{{$_POST.hdnpartnumber}}", + "statusid": "1", + "description": "{{$_POST.description}}", + "comments": "{{$_POST.comments}}", + "id": null, + "partcodeid": "{{$_POST.hdnpartcode}}", + "parttypeid": "{{$_POST.hdnparttyp}}" + }, + "schema": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "text", + "name": "number" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "comments" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ] + }, + "output": true, + "meta": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "text", + "name": "number" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "comments" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "outputType": "object" + } + } +} \ No newline at end of file diff --git a/app/api/Parts/Seach.json b/app/api/Parts/Seach.json index 548b6d4..37dbe43 100644 --- a/app/api/Parts/Seach.json +++ b/app/api/Parts/Seach.json @@ -18,7 +18,7 @@ "module": "api", "action": "send", "options": { - "url": "{{'http://vapor.prelub.com/api/v1.0/partnumbers/num/'+$_POST.input1}}", + "url": "{{$_ENV.API_BASEURL+'partnumbers/num/'+$_POST.input1}}", "schema": [ { "type": "object", diff --git a/app/config/config.json b/app/config/config.json index db8d9ac..00bfe1c 100644 --- a/app/config/config.json +++ b/app/config/config.json @@ -4,5 +4,8 @@ "cors": { "origin": "*", "methods": "GET,POST,DELETE,PATCH,PUT" + }, + "env": { + "API_BASEURL": "http://vapor.prelub.com/api/v1.0/" } } \ No newline at end of file diff --git a/app/config/routes.json b/app/config/routes.json index e08b994..f418ce2 100644 --- a/app/config/routes.json +++ b/app/config/routes.json @@ -26,6 +26,11 @@ "path": "/parttype", "page": "parttype", "layout": "main" + }, + { + "path": "/dspec2", + "page": "dspec2", + "layout": "main" } ] } \ No newline at end of file diff --git a/app/modules/global.json b/app/modules/global.json index 18cca0a..945bbab 100644 --- a/app/modules/global.json +++ b/app/modules/global.json @@ -1,3 +1,11 @@ { + "meta": { + "$_ENV": [ + { + "type": "text", + "name": "API_BASEURL" + } + ] + }, "exec": {} } \ No newline at end of file diff --git a/public/dmxAppConnect/config.js b/public/dmxAppConnect/config.js index 6192f0c..1a09b03 100644 --- a/public/dmxAppConnect/config.js +++ b/public/dmxAppConnect/config.js @@ -7186,6 +7186,22 @@ dmx.config({ } ] } + ], + "api_increasemaxpn": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "text", + "name": "id" + }, + { + "type": "text", + "name": "number" + } + ] + } ] }, "repeattest": { @@ -7199,5 +7215,5618 @@ dmx.config({ "name": "pt" } ] + }, + "dspec2": { + "api_partcodesfiltered": [ + { + "type": "array", + "name": "data", + "sub": [ + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "text", + "name": "createdate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "ending" + } + ] + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "array", + "name": "children" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "query": [ + { + "type": "text", + "name": "id" + }, + { + "type": "text", + "name": "pn" + }, + { + "type": "text", + "name": "sort" + }, + { + "type": "text", + "name": "ord" + } + ], + "datastore1": [ + { + "type": "text", + "name": "partnumber" + }, + { + "type": "text", + "name": "partcodeid" + }, + { + "type": "text", + "name": "parttypeid" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "statusid" + } + ], + "ds_partnumber": [ + { + "type": "text", + "name": "number" + }, + { + "type": "number", + "name": "statusid" + }, + { + "type": "number", + "name": "parttypeid" + }, + { + "type": "number", + "name": "partcodeid" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "comment" + } + ], + "api1": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "text", + "name": "comments" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "number" + } + ] + } + ], + "api_pushpartnumber": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "text", + "name": "comments" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "number" + } + ] + } + ], + "api_parttypes": [ + { + "type": "array", + "name": "data", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "ending" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "array", + "name": "partcodes", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "api_filteredpartcodes": [ + { + "type": "array", + "name": "data", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "ending" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "text", + "name": "code" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "array", + "name": "children" + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "api_postpart": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "comments" + } + ] + } + ], + "api_allparttypes": [ + { + "type": "array", + "name": "data", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "ending" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "array", + "name": "partcodes", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "api_maxpn": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "number" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "api_increasepn": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "number" + } + ] + } + ], + "api_getpartinfo": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "ending" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + } + ] + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + } + ] + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "erpid" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "createuserid" + }, + { + "type": "text", + "name": "updateuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "text", + "name": "createdate" + } + ] + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "erpid" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "api_getpartcodebyid": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "code" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "ending" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "array", + "name": "children", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "code" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "api_postdspec": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "text", + "name": "oereman" + }, + { + "type": "text", + "name": "effectivedate" + }, + { + "type": "text", + "name": "suctionport" + }, + { + "type": "text", + "name": "rotation" + }, + { + "type": "object", + "name": "partnumber", + "sub": [ + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "text", + "name": "createuserid" + }, + { + "type": "text", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "ending" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "updateuserid" + } + ] + }, + { + "type": "array", + "name": "boms" + }, + { + "type": "text", + "name": "pressureport" + }, + { + "type": "text", + "name": "voltage" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "revisionlevel" + }, + { + "type": "text", + "name": "reasonforchange" + }, + { + "type": "boolean", + "name": "faccompleted" + }, + { + "type": "text", + "name": "pressurefitting" + }, + { + "type": "boolean", + "name": "facrequired" + }, + { + "type": "text", + "name": "workinstruction" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "tagnumber" + }, + { + "type": "text", + "name": "note" + }, + { + "type": "text", + "name": "validation" + }, + { + "type": "text", + "name": "frequency" + }, + { + "type": "text", + "name": "basicclass" + } + ] + } + ], + "api_getnewpartinfo": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "ending" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + } + ] + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + } + ] + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "erpid" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "erpid" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "api_loaddspec": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "boolean", + "name": "facrequired" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createuserid" + } + ] + }, + { + "type": "text", + "name": "revisionlevel" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "note" + }, + { + "type": "boolean", + "name": "faccompleted" + }, + { + "type": "array", + "name": "boms", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "viewlocationid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "partnumber", + "sub": [ + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "weight" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "number" + }, + { + "type": "number", + "name": "updateuserid" + } + ] + }, + { + "type": "text", + "name": "new" + }, + { + "type": "text", + "name": "old" + }, + { + "type": "object", + "name": "designspec", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "text", + "name": "reasonforchange" + }, + { + "type": "object", + "name": "partnumber", + "sub": [ + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "text", + "name": "weight" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "number" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + } + ] + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "text", + "name": "createuserid" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "text", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + } + ] + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "text", + "name": "listprice" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "id" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "weight" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "updatedate" + } + ] + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "number", + "name": "ending" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "text", + "name": "description" + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "createdate" + } + ] + } + ] + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "validation" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "repeat1": { + "meta": null, + "outputType": "array" + }, + "repeatboms": { + "meta": [ + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "viewlocationid" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "new" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "designspec", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "partnumber", + "sub": [ + { + "type": "text", + "name": "number" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "weight" + } + ] + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "old" + }, + { + "type": "number", + "name": "updateuserid" + } + ], + "outputType": "array" + }, + "api_bominsertitem": [ + { + "type": "array", + "name": "data" + }, + { + "type": "object", + "name": "headers" + } + ], + "api_bompartselectbynumber": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "ending" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "api_loadbombydspec": [ + { + "type": "array", + "name": "data", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "new" + }, + { + "type": "text", + "name": "partnumber" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "old" + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "tableRepeat1": { + "meta": [ + { + "type": "text", + "name": "new" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "object", + "name": "partnumber", + "sub": [ + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + } + ] + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "viewlocation" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "old" + }, + { + "type": "object", + "name": "designspec", + "sub": [ + { + "type": "text", + "name": "metaltag" + }, + { + "type": "text", + "name": "remarks" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "facrequired" + }, + { + "type": "text", + "name": "swtch" + }, + { + "type": "text", + "name": "terminalposition" + }, + { + "type": "text", + "name": "treatment" + }, + { + "type": "text", + "name": "note" + }, + { + "type": "text", + "name": "voltage" + }, + { + "type": "text", + "name": "faccompleted" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "plrv" + }, + { + "type": "text", + "name": "except" + }, + { + "type": "text", + "name": "approveuserid" + }, + { + "type": "text", + "name": "makefrom" + }, + { + "type": "text", + "name": "pinion" + }, + { + "type": "text", + "name": "box" + }, + { + "type": "text", + "name": "ho" + }, + { + "type": "text", + "name": "gasket" + }, + { + "type": "text", + "name": "bracket" + }, + { + "type": "text", + "name": "suctionfitting" + }, + { + "type": "object", + "name": "partnumber", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "revisionlevel" + }, + { + "type": "text", + "name": "oereman" + }, + { + "type": "text", + "name": "tagnumber" + }, + { + "type": "text", + "name": "pressureport" + }, + { + "type": "text", + "name": "switchposition" + }, + { + "type": "text", + "name": "reasonforchange" + }, + { + "type": "text", + "name": "rotation" + }, + { + "type": "text", + "name": "suctionport" + }, + { + "type": "text", + "name": "rtv" + }, + { + "type": "text", + "name": "validation" + }, + { + "type": "text", + "name": "approvedate" + }, + { + "type": "text", + "name": "floatstock" + }, + { + "type": "text", + "name": "workinstruction" + }, + { + "type": "text", + "name": "frequency" + }, + { + "type": "text", + "name": "papertag" + }, + { + "type": "text", + "name": "drive" + }, + { + "type": "text", + "name": "customernotification" + }, + { + "type": "text", + "name": "curve" + }, + { + "type": "text", + "name": "built" + }, + { + "type": "text", + "name": "servicereplacementref" + }, + { + "type": "text", + "name": "ftf" + }, + { + "type": "text", + "name": "opening" + }, + { + "type": "text", + "name": "jsp" + }, + { + "type": "text", + "name": "application" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "text", + "name": "pitch" + }, + { + "type": "text", + "name": "createuserid" + }, + { + "type": "text", + "name": "mtgh" + }, + { + "type": "text", + "name": "sae" + }, + { + "type": "text", + "name": "othertag" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "effectivedate" + }, + { + "type": "text", + "name": "updateuserid" + }, + { + "type": "text", + "name": "additionalparts" + }, + { + "type": "text", + "name": "pressurefitting" + }, + { + "type": "text", + "name": "basicclass" + } + ] + } + ], + "outputType": "array" + }, + "rpt_boms": { + "meta": [ + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "ending" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + } + ], + "outputType": "object" + }, + "tb_bom": { + "meta": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "new" + }, + { + "type": "text", + "name": "partnumber" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "old" + } + ], + "outputType": "array" + }, + "api_loadexistingdspec": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "number", + "name": "createuserid" + }, + { + "type": "array", + "name": "boms", + "sub": [ + { + "type": "number", + "name": "createuserid" + }, + { + "type": "object", + "name": "designspec", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "partnumber", + "sub": [ + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "weight" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "description" + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "number" + } + ] + }, + { + "type": "text", + "name": "new" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "old" + }, + { + "type": "number", + "name": "viewlocationid" + } + ] + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "reasonforchange" + }, + { + "type": "text", + "name": "validation" + }, + { + "type": "object", + "name": "partnumber", + "sub": [ + { + "type": "key_array", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "file" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "text", + "name": "createdate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "text", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + } + ] + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "text", + "name": "createdate" + }, + { + "type": "number", + "name": "ending" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "description" + } + ] + }, + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "text", + "name": "file" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "comments" + } + ] + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "weight" + } + ] + }, + { + "type": "text", + "name": "revisionlevel" + }, + { + "type": "text", + "name": "note" + }, + { + "type": "boolean", + "name": "faccompleted" + }, + { + "type": "boolean", + "name": "facrequired" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "text", + "name": "createuserid" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "updateuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "text", + "name": "createdate" + } + ] + } + ] + }, + { + "type": "object", + "name": "headers", + "sub": [ + { + "type": "text", + "name": "connection" + }, + { + "type": "text", + "name": "content-length" + }, + { + "type": "text", + "name": "content-type" + }, + { + "type": "text", + "name": "date" + } + ] + } + ], + "var_listofdspecs": { + "meta": [ + { + "type": "text", + "name": "effectivedate" + }, + { + "type": "number", + "name": "approveuserid" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "updateuserid" + } + ] + }, + { + "type": "object", + "name": "partnumber", + "sub": [ + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "createuserid" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "updatedate" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "text", + "name": "weight" + }, + { + "type": "object", + "name": "status", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "file" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "secondaryvendorpartnumber" + }, + { + "type": "object", + "name": "secondaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "primarycustomerpartnumber" + }, + { + "type": "object", + "name": "replaces", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "replacedby", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + } + ] + }, + { + "type": "text", + "name": "stdcost" + }, + { + "type": "object", + "name": "partcode", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "object", + "name": "parent", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "object", + "name": "parttype", + "sub": [ + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "ending" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "number", + "name": "starting" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "name": "name" + }, + { + "type": "number", + "name": "createuserid" + } + ] + }, + { + "type": "boolean", + "name": "ispartcode" + }, + { + "type": "text", + "name": "code" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "boolean", + "name": "isactive" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "name" + } + ] + }, + { + "type": "text", + "name": "listprice" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "ppap" + }, + { + "type": "text", + "name": "number" + }, + { + "type": "object", + "name": "primaryvendor", + "sub": [ + { + "type": "number", + "name": "id" + } + ] + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "text", + "name": "primaryvendorpartnumber" + }, + { + "type": "text", + "name": "description" + } + ] + }, + { + "type": "number", + "name": "createuserid" + }, + { + "type": "array", + "name": "boms" + }, + { + "type": "boolean", + "name": "customernotification" + }, + { + "type": "text", + "name": "updatedate" + }, + { + "type": "number", + "name": "updateuserid" + }, + { + "type": "text", + "name": "revisionlevel" + }, + { + "type": "text", + "name": "reasonforchange" + }, + { + "type": "boolean", + "name": "faccompleted" + }, + { + "type": "boolean", + "name": "facrequired" + }, + { + "type": "text", + "name": "workinstruction" + }, + { + "type": "boolean", + "name": "rtv" + }, + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "note" + }, + { + "type": "text", + "name": "validation" + }, + { + "type": "text", + "name": "createdate" + }, + { + "type": "boolean", + "name": "plrv" + } + ], + "outputType": "array" + } } }); diff --git a/public/dmxAppConnect/dmxDatastore/dmxDatastore.js b/public/dmxAppConnect/dmxDatastore/dmxDatastore.js new file mode 100644 index 0000000..61eb7d6 --- /dev/null +++ b/public/dmxAppConnect/dmxDatastore/dmxDatastore.js @@ -0,0 +1,8 @@ +/*! + App Connect Datastore + Version: 1.1.2 + (c) 2022 Wappler.io + @build 2022-06-07 09:51:07 + */ +dmx.Component("datastore",{initialData:{data:[]},attributes:{session:{type:Boolean,default:!1},columns:{type:Object,default:{}}},methods:{insert:function(t){this._insert(t),this._store()},update:function(t,e){this._update(t,e),this._store()},upsert:function(t,e){this._filter(t).length?this._update(t,e):this._insert(e),this._store()},delete:function(t){this._delete(t),this._store()},clear:function(){this.records=[],this.lastid=0,this._store()},get:function(t){return this._filter(t)}},events:{inserted:Event,updated:Event,deleted:Event},render:function(t){this.store=window[this.props.session?"sessionStorage":"localStorage"],this.records=[],this.lastid=0,this._read=this._read.bind(this),this.props.session||window.addEventListener("storage",this._read),this._read()},update:function(t,e){e.has("columns")&&this._setData()},_read:function(){try{var t=this.store.getItem("datastore_"+this.name);t&&((t=JSON.parse(t)).records&&(this.records=t.records),t.lastid&&(this.lastid=t.lastid))}catch(t){console.warn("Error parsing datastore",t)}this._setData()},_filter:function(t){return"number"==typeof t&&(t={$id:t}),this.records.filter((e=>{if(Array.isArray(t)){for(var s=0;s{var r=this._mergeData(t,e);dmx.equal(t,r)||(s.deleted.push(dmx.clone(t)),s.inserted.push(dmx.clone(r)),Object.assign(t,r))})),this.dispatchEvent("updated",null,s)}else console.warn("Invalid data!",e)},_delete:function(t){"number"==typeof t&&(t={$id:t});var e={inserted:[],deleted:[]};this.records=this.records.filter((function(s){for(var r in t)if(t.hasOwnProperty(r)&&s[r]===t[r])return e.deleted.push(dmx.clone(s)),!1;return!0})),this.dispatchEvent("deleted",null,e)},_store:function(){var t=JSON.stringify({records:this.records,lastid:this.lastid});t!==this.store.getItem("datastore_"+this.name)&&(this.store.setItem("datastore_"+this.name,t),this._setData())},_setData:function(){"object"==typeof this.props.columns?this.set("data",this.records.map(((t,e)=>{const s=dmx.clone(t),r=dmx.DataScope({$value:t,$index:e,$key:e,...t});for(let t in this.props.columns){if(!this.props.columns.hasOwnProperty(t))continue;let e=this.props.columns[t];this._isExpression(e)&&(e=dmx.parse(e,r)),s[t]=e}return s}))):this.set("data",this.records)},_isExpression:function(t){return"string"==typeof t&&t.includes("{{")}}); +//# sourceMappingURL=../maps/dmxDatastore.js.map diff --git a/public/dmxAppConnect/dmxDatePicker/bgthemes/dark-calendar.css b/public/dmxAppConnect/dmxDatePicker/bgthemes/dark-calendar.css new file mode 100644 index 0000000..1e18b3e --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/bgthemes/dark-calendar.css @@ -0,0 +1,60 @@ +.daterangepicker { + background-color: #343a40; + border: 1px solid #111; + } + .daterangepicker:before { + border-bottom: 7px solid #111; + } + .daterangepicker:after { + border-bottom: 6px solid #343a40; + } + .daterangepicker .calendar-table { + background-color: #343a40; + border: none; + color: #f8f9fa; + } + .daterangepicker .calendar-table .next span, .daterangepicker .calendar-table .prev span { + color: #f8f9fa; + border: solid #f8f9fa; + border-width: 0 2px 2px 0; + } + .daterangepicker td.available:not(.in-range):hover, .daterangepicker th.available:not(.in-range):hover { + background-color: #495057 !important; + } + .daterangepicker td.off, .daterangepicker td.off.end-date, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date { + background-color: #394046; + color: #777; + } + + .daterangepicker td.in-range { + background-color: #2b2e31; + color: #eee; + } + .daterangepicker td.in-range:hover { + background-color: #3c4044; + + } + .daterangepicker td.active, .daterangepicker td.active:hover { + background-color: #22262a; + color: #f8f9fa; + } + .daterangepicker .drp-buttons { + border-top: 1px solid #3c4044; + } + .daterangepicker .drp-selected { + color: #f8f9fa; + } + .applyBtn { + color: #f8f9fa; + background-color: #22262a; + } + .applyBtn:hover { + background-color: #0b0d0e; + } + .cancelBtn { + color: #f8f9fa; + background-color: #394046; + } + .cancelBtn:hover { + background-color: #272c2f; + } \ No newline at end of file diff --git a/public/dmxAppConnect/dmxDatePicker/daterangepicker.min.css b/public/dmxAppConnect/dmxDatePicker/daterangepicker.min.css new file mode 100644 index 0000000..06ebde3 --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/daterangepicker.min.css @@ -0,0 +1,8 @@ +/** + * Minified by jsDelivr using clean-css v4.1.11. + * Original file: /npm/daterangepicker@3.0.3/daterangepicker.css + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +.daterangepicker{position:absolute;color:inherit;background-color:#fff;border-radius:4px;border:1px solid #ddd;width:278px;max-width:none;padding:0;margin-top:7px;top:100px;left:20px;z-index:3001;display:none;font-family:arial;font-size:15px;line-height:1em}.daterangepicker:after,.daterangepicker:before{position:absolute;display:inline-block;border-bottom-color:rgba(0,0,0,.2);content:''}.daterangepicker:before{top:-7px;border-right:7px solid transparent;border-left:7px solid transparent;border-bottom:7px solid #ccc}.daterangepicker:after{top:-6px;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent}.daterangepicker.opensleft:before{right:9px}.daterangepicker.opensleft:after{right:10px}.daterangepicker.openscenter:before{left:0;right:0;width:0;margin-left:auto;margin-right:auto}.daterangepicker.openscenter:after{left:0;right:0;width:0;margin-left:auto;margin-right:auto}.daterangepicker.opensright:before{left:9px}.daterangepicker.opensright:after{left:10px}.daterangepicker.drop-up{margin-top:-7px}.daterangepicker.drop-up:before{top:initial;bottom:-7px;border-bottom:initial;border-top:7px solid #ccc}.daterangepicker.drop-up:after{top:initial;bottom:-6px;border-bottom:initial;border-top:6px solid #fff}.daterangepicker.single .daterangepicker .ranges,.daterangepicker.single .drp-calendar{float:none}.daterangepicker.single .drp-selected{display:none}.daterangepicker.show-calendar .drp-calendar{display:block}.daterangepicker.show-calendar .drp-buttons{display:block}.daterangepicker.auto-apply .drp-buttons{display:none}.daterangepicker .drp-calendar{display:none;max-width:270px}.daterangepicker .drp-calendar.left{padding:8px 0 8px 8px}.daterangepicker .drp-calendar.right{padding:8px}.daterangepicker .drp-calendar.single .calendar-table{border:none}.daterangepicker .calendar-table .next span,.daterangepicker .calendar-table .prev span{color:#fff;border:solid #000;border-width:0 2px 2px 0;border-radius:0;display:inline-block;padding:3px}.daterangepicker .calendar-table .next span{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.daterangepicker .calendar-table .prev span{transform:rotate(135deg);-webkit-transform:rotate(135deg)}.daterangepicker .calendar-table td,.daterangepicker .calendar-table th{white-space:nowrap;text-align:center;vertical-align:middle;min-width:32px;width:32px;height:24px;line-height:24px;font-size:12px;border-radius:4px;border:1px solid transparent;white-space:nowrap;cursor:pointer}.daterangepicker .calendar-table{border:1px solid #fff;border-radius:4px;background-color:#fff}.daterangepicker .calendar-table table{width:100%;margin:0;border-spacing:0;border-collapse:collapse}.daterangepicker td.available:hover,.daterangepicker th.available:hover{background-color:#eee;border-color:transparent;color:inherit}.daterangepicker td.week,.daterangepicker th.week{font-size:80%;color:#ccc}.daterangepicker td.off,.daterangepicker td.off.end-date,.daterangepicker td.off.in-range,.daterangepicker td.off.start-date{background-color:#fff;border-color:transparent;color:#999}.daterangepicker td.in-range{background-color:#ebf4f8;border-color:transparent;color:#000;border-radius:0}.daterangepicker td.start-date{border-radius:4px 0 0 4px}.daterangepicker td.end-date{border-radius:0 4px 4px 0}.daterangepicker td.start-date.end-date{border-radius:4px}.daterangepicker td.active,.daterangepicker td.active:hover{background-color:#357ebd;border-color:transparent;color:#fff}.daterangepicker th.month{width:auto}.daterangepicker option.disabled,.daterangepicker td.disabled{color:#999;cursor:not-allowed;text-decoration:line-through}.daterangepicker select.monthselect,.daterangepicker select.yearselect{font-size:12px;padding:1px;height:auto;margin:0;cursor:default}.daterangepicker select.monthselect{margin-right:2%;width:56%}.daterangepicker select.yearselect{width:40%}.daterangepicker select.ampmselect,.daterangepicker select.hourselect,.daterangepicker select.minuteselect,.daterangepicker select.secondselect{width:50px;margin:0 auto;background:#eee;border:1px solid #eee;padding:2px;outline:0;font-size:12px}.daterangepicker .calendar-time{text-align:center;margin:4px auto 0 auto;line-height:30px;position:relative}.daterangepicker .calendar-time select.disabled{color:#ccc;cursor:not-allowed}.daterangepicker .drp-buttons{clear:both;text-align:right;padding:8px;border-top:1px solid #ddd;display:none;line-height:12px;vertical-align:middle}.daterangepicker .drp-selected{display:inline-block;font-size:12px;padding-right:8px}.daterangepicker .drp-buttons .btn{margin-left:8px;font-size:12px;font-weight:700;padding:4px 8px}.daterangepicker.show-ranges .drp-calendar.left{border-left:1px solid #ddd}.daterangepicker .ranges{float:none;text-align:left;margin:0}.daterangepicker.show-calendar .ranges{margin-top:8px}.daterangepicker .ranges ul{list-style:none;margin:0 auto;padding:0;width:100%}.daterangepicker .ranges li{font-size:12px;padding:8px 12px;cursor:pointer}.daterangepicker .ranges li:hover{background-color:#eee}.daterangepicker .ranges li.active{background-color:#08c;color:#fff}@media (min-width:564px){.daterangepicker{width:auto}.daterangepicker .ranges ul{width:140px}.daterangepicker.single .ranges ul{width:100%}.daterangepicker.single .drp-calendar.left{clear:none}.daterangepicker.single.ltr .drp-calendar,.daterangepicker.single.ltr .ranges{float:left}.daterangepicker.single.rtl .drp-calendar,.daterangepicker.single.rtl .ranges{float:right}.daterangepicker.ltr{direction:ltr;text-align:left}.daterangepicker.ltr .drp-calendar.left{clear:left;margin-right:0}.daterangepicker.ltr .drp-calendar.left .calendar-table{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.daterangepicker.ltr .drp-calendar.right{margin-left:0}.daterangepicker.ltr .drp-calendar.right .calendar-table{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.daterangepicker.ltr .drp-calendar.left .calendar-table{padding-right:8px}.daterangepicker.ltr .drp-calendar,.daterangepicker.ltr .ranges{float:left}.daterangepicker.rtl{direction:rtl;text-align:right}.daterangepicker.rtl .drp-calendar.left{clear:right;margin-left:0}.daterangepicker.rtl .drp-calendar.left .calendar-table{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.daterangepicker.rtl .drp-calendar.right{margin-right:0}.daterangepicker.rtl .drp-calendar.right .calendar-table{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.daterangepicker.rtl .drp-calendar.left .calendar-table{padding-left:12px}.daterangepicker.rtl .drp-calendar,.daterangepicker.rtl .ranges{text-align:right;float:right}}@media (min-width:730px){.daterangepicker .ranges{width:auto}.daterangepicker.ltr .ranges{float:left}.daterangepicker.rtl .ranges{float:right}.daterangepicker .drp-calendar.left{clear:none!important}} +/*# sourceMappingURL=/sm/fce9748308f79c28aa5a62ea9d002732d8c4a1c8eaadedab834d5c92787c6fa3.map */ \ No newline at end of file diff --git a/public/dmxAppConnect/dmxDatePicker/daterangepicker.min.js b/public/dmxAppConnect/dmxDatePicker/daterangepicker.min.js new file mode 100644 index 0000000..0ba4a99 --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/daterangepicker.min.js @@ -0,0 +1,8 @@ +/** + * Minified by jsDelivr using UglifyJS v3.4.5. + * Original file: /npm/daterangepicker@3.0.3/daterangepicker.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +!function(t,a){if("function"==typeof define&&define.amd)define(["moment","jquery"],function(t,e){return e.fn||(e.fn={}),a(t,e)});else if("object"==typeof module&&module.exports){var e="undefined"!=typeof window?window.jQuery:void 0;e||(e=require("jquery")).fn||(e.fn={});var i="undefined"!=typeof window&&void 0!==window.moment?window.moment:require("moment");module.exports=a(i,e)}else t.daterangepicker=a(t.moment,t.jQuery)}(this,function(H,R){var i=function(t,e,a){if(this.parentEl="body",this.element=R(t),this.startDate=H().startOf("day"),this.endDate=H().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=H().subtract(100,"year").format("YYYY"),this.maxYear=H().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:H.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:H.weekdaysMin(),monthNames:H.monthsShort(),firstDay:H.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},"object"==typeof e&&null!==e||(e={}),"string"==typeof(e=R.extend(this.element.data(),e)).template||e.template instanceof R||(e.template='
'),this.parentEl=e.parentEl&&R(e.parentEl).length?R(e.parentEl):R(this.parentEl),this.container=R(e.template).appendTo(this.parentEl),"object"==typeof e.locale&&("string"==typeof e.locale.direction&&(this.locale.direction=e.locale.direction),"string"==typeof e.locale.format&&(this.locale.format=e.locale.format),"string"==typeof e.locale.separator&&(this.locale.separator=e.locale.separator),"object"==typeof e.locale.daysOfWeek&&(this.locale.daysOfWeek=e.locale.daysOfWeek.slice()),"object"==typeof e.locale.monthNames&&(this.locale.monthNames=e.locale.monthNames.slice()),"number"==typeof e.locale.firstDay&&(this.locale.firstDay=e.locale.firstDay),"string"==typeof e.locale.applyLabel&&(this.locale.applyLabel=e.locale.applyLabel),"string"==typeof e.locale.cancelLabel&&(this.locale.cancelLabel=e.locale.cancelLabel),"string"==typeof e.locale.weekLabel&&(this.locale.weekLabel=e.locale.weekLabel),"string"==typeof e.locale.customRangeLabel)){(d=document.createElement("textarea")).innerHTML=e.locale.customRangeLabel;var i=d.value;this.locale.customRangeLabel=i}if(this.container.addClass(this.locale.direction),"string"==typeof e.startDate&&(this.startDate=H(e.startDate,this.locale.format)),"string"==typeof e.endDate&&(this.endDate=H(e.endDate,this.locale.format)),"string"==typeof e.minDate&&(this.minDate=H(e.minDate,this.locale.format)),"string"==typeof e.maxDate&&(this.maxDate=H(e.maxDate,this.locale.format)),"object"==typeof e.startDate&&(this.startDate=H(e.startDate)),"object"==typeof e.endDate&&(this.endDate=H(e.endDate)),"object"==typeof e.minDate&&(this.minDate=H(e.minDate)),"object"==typeof e.maxDate&&(this.maxDate=H(e.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),"string"==typeof e.applyButtonClasses&&(this.applyButtonClasses=e.applyButtonClasses),"string"==typeof e.applyClass&&(this.applyButtonClasses=e.applyClass),"string"==typeof e.cancelButtonClasses&&(this.cancelButtonClasses=e.cancelButtonClasses),"string"==typeof e.cancelClass&&(this.cancelButtonClasses=e.cancelClass),"object"==typeof e.maxSpan&&(this.maxSpan=e.maxSpan),"object"==typeof e.dateLimit&&(this.maxSpan=e.dateLimit),"string"==typeof e.opens&&(this.opens=e.opens),"string"==typeof e.drops&&(this.drops=e.drops),"boolean"==typeof e.showWeekNumbers&&(this.showWeekNumbers=e.showWeekNumbers),"boolean"==typeof e.showISOWeekNumbers&&(this.showISOWeekNumbers=e.showISOWeekNumbers),"string"==typeof e.buttonClasses&&(this.buttonClasses=e.buttonClasses),"object"==typeof e.buttonClasses&&(this.buttonClasses=e.buttonClasses.join(" ")),"boolean"==typeof e.showDropdowns&&(this.showDropdowns=e.showDropdowns),"number"==typeof e.minYear&&(this.minYear=e.minYear),"number"==typeof e.maxYear&&(this.maxYear=e.maxYear),"boolean"==typeof e.showCustomRangeLabel&&(this.showCustomRangeLabel=e.showCustomRangeLabel),"boolean"==typeof e.singleDatePicker&&(this.singleDatePicker=e.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof e.timePicker&&(this.timePicker=e.timePicker),"boolean"==typeof e.timePickerSeconds&&(this.timePickerSeconds=e.timePickerSeconds),"number"==typeof e.timePickerIncrement&&(this.timePickerIncrement=e.timePickerIncrement),"boolean"==typeof e.timePicker24Hour&&(this.timePicker24Hour=e.timePicker24Hour),"boolean"==typeof e.autoApply&&(this.autoApply=e.autoApply),"boolean"==typeof e.autoUpdateInput&&(this.autoUpdateInput=e.autoUpdateInput),"boolean"==typeof e.linkedCalendars&&(this.linkedCalendars=e.linkedCalendars),"function"==typeof e.isInvalidDate&&(this.isInvalidDate=e.isInvalidDate),"function"==typeof e.isCustomDate&&(this.isCustomDate=e.isCustomDate),"boolean"==typeof e.alwaysShowCalendars&&(this.alwaysShowCalendars=e.alwaysShowCalendars),0!=this.locale.firstDay)for(var s=this.locale.firstDay;0'+o+"";this.showCustomRangeLabel&&(m+='
  • '+this.locale.customRangeLabel+"
  • "),m+="",this.container.find(".ranges").prepend(m)}"function"==typeof a&&(this.callback=a),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),"object"==typeof e.ranges&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),this.timePicker||this.container.addClass("auto-apply")),(void 0===e.ranges&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",R.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",R.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",R.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",R.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",R.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",R.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",R.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",R.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",R.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",R.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":R.proxy(this.show,this),"focus.daterangepicker":R.proxy(this.show,this),"keyup.daterangepicker":R.proxy(this.elementChanged,this),"keydown.daterangepicker":R.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",R.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",R.proxy(this.toggle,this))),this.updateElement()};return i.prototype={constructor:i,setStartDate:function(t){"string"==typeof t&&(this.startDate=H(t,this.locale.format)),"object"==typeof t&&(this.startDate=H(t)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(t){"string"==typeof t&&(this.endDate=H(t,this.locale.format)),"object"==typeof t&&(this.endDate=H(t)),this.timePicker||(this.endDate=this.endDate.add(1,"d").startOf("day").subtract(1,"second")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").removeAttr("disabled").removeClass("disabled"):this.container.find(".right .calendar-time select").attr("disabled","disabled").addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),this.linkedCalendars||this.endDate.month()==this.startDate.month()&&this.endDate.year()==this.startDate.year()?this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"):this.rightCalendar.month=this.endDate.clone().date(2)}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var t,e,a,i;if(this.endDate){if(t=parseInt(this.container.find(".left .hourselect").val(),10),e=parseInt(this.container.find(".left .minuteselect").val(),10),a=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(i=this.container.find(".left .ampmselect").val())&&t<12&&(t+=12),"AM"===i&&12===t&&(t=0)}else if(t=parseInt(this.container.find(".right .hourselect").val(),10),e=parseInt(this.container.find(".right .minuteselect").val(),10),a=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour)"PM"===(i=this.container.find(".right .ampmselect").val())&&t<12&&(t+=12),"AM"===i&&12===t&&(t=0);this.leftCalendar.month.hour(t).minute(e).second(a),this.rightCalendar.month.hour(t).minute(e).second(a)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),null!=this.endDate&&this.calculateChosenLabel()},renderCalendar:function(t){var e,a=(e="left"==t?this.leftCalendar:this.rightCalendar).month.month(),i=e.month.year(),s=e.month.hour(),n=e.month.minute(),r=e.month.second(),o=H([i,a]).daysInMonth(),h=H([i,a,1]),l=H([i,a,o]),c=H(h).subtract(1,"month").month(),d=H(h).subtract(1,"month").year(),m=H([d,c]).daysInMonth(),f=h.day();(e=[]).firstDay=h,e.lastDay=l;for(var p=0;p<6;p++)e[p]=[];var u=m-f+this.locale.firstDay+1;m');C+="",C+="",(this.showWeekNumbers||this.showISOWeekNumbers)&&(C+=""),k&&!k.isBefore(e.firstDay)||this.linkedCalendars&&"left"!=t?C+="":C+='';var v=this.locale.monthNames[e[1][1].month()]+e[1][1].format(" YYYY");if(this.showDropdowns){for(var Y=e[1][1].month(),w=e[1][1].year(),P=b&&b.year()||this.maxYear,x=k&&k.year()||this.minYear,M=w==x,S=w==P,I='";for(var A='")}if(C+=''+v+"",b&&!b.isAfter(e.lastDay)||this.linkedCalendars&&"right"!=t&&!this.singleDatePicker?C+="":C+='',C+="",C+="",(this.showWeekNumbers||this.showISOWeekNumbers)&&(C+=''+this.locale.weekLabel+""),R.each(this.locale.daysOfWeek,function(t,e){C+=""+e+""}),C+="",C+="",C+="",null==this.endDate&&this.maxSpan){var E=this.startDate.clone().add(this.maxSpan).endOf("day");b&&!E.isBefore(b)||(b=E)}for(y=0;y<6;y++){C+="",this.showWeekNumbers?C+=''+e[y][0].week()+"":this.showISOWeekNumbers&&(C+=''+e[y][0].isoWeek()+"");for(g=0;g<7;g++){var W=[];e[y][g].isSame(new Date,"day")&&W.push("today"),5this.startDate&&e[y][g]'+e[y][g].date()+""}C+=""}C+="",C+="",this.container.find(".drp-calendar."+t+" .calendar-table").html(C)},renderTimePicker:function(t){if("right"!=t||this.endDate){var e,a,i,s=this.maxDate;if(!this.maxSpan||this.maxDate&&!this.startDate.clone().add(this.maxSpan).isAfter(this.maxDate)||(s=this.startDate.clone().add(this.maxSpan)),"left"==t)a=this.startDate.clone(),i=this.minDate;else if("right"==t){a=this.endDate.clone(),i=this.startDate;var n=this.container.find(".drp-calendar.right .calendar-time");if(""!=n.html()&&(a.hour(a.hour()||n.find(".hourselect option:selected").val()),a.minute(a.minute()||n.find(".minuteselect option:selected").val()),a.second(a.second()||n.find(".secondselect option:selected").val()),!this.timePicker24Hour)){var r=n.find(".ampmselect option:selected").val();"PM"===r&&a.hour()<12&&a.hour(a.hour()+12),"AM"===r&&12===a.hour()&&a.hour(0)}a.isBefore(this.startDate)&&(a=this.startDate.clone()),s&&a.isAfter(s)&&(a=s.clone())}e=' ",e+=': ",this.timePickerSeconds){e+=': "}if(!this.timePicker24Hour){e+='"}this.container.find(".drp-calendar."+t+" .calendar-time").html(e)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").removeAttr("disabled"):this.container.find("button.applyBtn").attr("disabled","disabled")},move:function(){var t,e={top:0,left:0},a=R(window).width();this.parentEl.is("body")||(e={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},a=this.parentEl[0].clientWidth+this.parentEl.offset().left),t="up"==this.drops?this.element.offset().top-this.container.outerHeight()-e.top:this.element.offset().top+this.element.outerHeight()-e.top,this.container["up"==this.drops?"addClass":"removeClass"]("drop-up"),"left"==this.opens?(this.container.css({top:t,right:a-this.element.offset().left-this.element.outerWidth(),left:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):"center"==this.opens?(this.container.css({top:t,left:this.element.offset().left-e.left+this.element.outerWidth()/2-this.container.outerWidth()/2,right:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):(this.container.css({top:t,left:this.element.offset().left-e.left,right:"auto"}),this.container.offset().left+this.container.outerWidth()>R(window).width()&&this.container.css({left:"auto",right:0}))},show:function(t){this.isShowing||(this._outsideClickProxy=R.proxy(function(t){this.outsideClick(t)},this),R(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),R(window).on("resize.daterangepicker",R.proxy(function(t){this.move(t)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(t){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),R(document).off(".daterangepicker"),R(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var e=R(t.target);"focusin"==t.type||e.closest(this.element).length||e.closest(this.container).length||e.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(t){var e=t.target.getAttribute("data-range-key");if((this.chosenLabel=e)==this.locale.customRangeLabel)this.showCalendars();else{var a=this.ranges[e];this.startDate=a[0],this.endDate=a[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(t){R(t.target).parents(".drp-calendar").hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){R(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){if(R(t.target).hasClass("available")){var e=R(t.target).attr("data-title"),a=e.substr(1,1),i=e.substr(3,1),r=R(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[a][i]:this.rightCalendar.calendar[a][i],o=this.leftCalendar,h=this.rightCalendar,l=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(t,e){if(!R(e).hasClass("week")){var a=R(e).attr("data-title"),i=a.substr(1,1),s=a.substr(3,1),n=R(e).parents(".drp-calendar").hasClass("left")?o.calendar[i][s]:h.calendar[i][s];n.isAfter(l)&&n.isBefore(r)||n.isSame(r,"day")?R(e).addClass("in-range"):R(e).removeClass("in-range")}})}},clickDate:function(t){if(R(t.target).hasClass("available")){var e=R(t.target).attr("data-title"),a=e.substr(1,1),i=e.substr(3,1),s=R(t.target).parents(".drp-calendar").hasClass("left")?this.leftCalendar.calendar[a][i]:this.rightCalendar.calendar[a][i];if(this.endDate||s.isBefore(this.startDate,"day")){if(this.timePicker){var n=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(h=this.container.find(".left .ampmselect").val())&&n<12&&(n+=12),"AM"===h&&12===n&&(n=0);var r=parseInt(this.container.find(".left .minuteselect").val(),10),o=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;s=s.clone().hour(n).minute(r).second(o)}this.endDate=null,this.setStartDate(s.clone())}else if(!this.endDate&&s.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var h;n=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour)"PM"===(h=this.container.find(".right .ampmselect").val())&&n<12&&(n+=12),"AM"===h&&12===n&&(n=0);r=parseInt(this.container.find(".right .minuteselect").val(),10),o=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;s=s.clone().hour(n).minute(r).second(o)}this.setEndDate(s.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),this.timePicker||this.clickApply()),this.updateView(),t.stopPropagation()}},calculateChosenLabel:function(){var t=!0,e=0;for(var a in this.ranges){if(this.timePicker){var i=this.timePickerSeconds?"YYYY-MM-DD hh:mm:ss":"YYYY-MM-DD hh:mm";if(this.startDate.format(i)==this.ranges[a][0].format(i)&&this.endDate.format(i)==this.ranges[a][1].format(i)){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[a][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[a][1].format("YYYY-MM-DD")){t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").attr("data-range-key");break}e++}t&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(t){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(t){var e=R(t.target).closest(".drp-calendar").hasClass("left"),a=e?"left":"right",i=this.container.find(".drp-calendar."+a),s=parseInt(i.find(".monthselect").val(),10),n=i.find(".yearselect").val();e||(nthis.maxDate.year()||n==this.maxDate.year()&&s>this.maxDate.month())&&(s=this.maxDate.month(),n=this.maxDate.year()),e?(this.leftCalendar.month.month(s).year(n),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(s).year(n),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(t){var e=R(t.target).closest(".drp-calendar"),a=e.hasClass("left"),i=parseInt(e.find(".hourselect").val(),10),s=parseInt(e.find(".minuteselect").val(),10),n=this.timePickerSeconds?parseInt(e.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var r=e.find(".ampmselect").val();"PM"===r&&i<12&&(i+=12),"AM"===r&&12===i&&(i=0)}if(a){var o=this.startDate.clone();o.hour(i),o.minute(s),o.second(n),this.setStartDate(o),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==o.format("YYYY-MM-DD")&&this.endDate.isBefore(o)&&this.setEndDate(o.clone())}else if(this.endDate){var h=this.endDate.clone();h.hour(i),h.minute(s),h.second(n),this.setEndDate(h)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var t=this.element.val().split(this.locale.separator),e=null,a=null;2===t.length&&(e=H(t[0],this.locale.format),a=H(t[1],this.locale.format)),(this.singleDatePicker||null===e||null===a)&&(a=e=H(this.element.val(),this.locale.format)),e.isValid()&&a.isValid()&&(this.setStartDate(e),this.setEndDate(a),this.updateView())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide(),27===t.keyCode&&(t.preventDefault(),t.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var t=this.startDate.format(this.locale.format);this.singleDatePicker||(t+=this.locale.separator+this.endDate.format(this.locale.format)),t!==this.element.val()&&this.element.val(t).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},R.fn.daterangepicker=function(t,e){var a=R.extend(!0,{},R.fn.daterangepicker.defaultOptions,t);return this.each(function(){var t=R(this);t.data("daterangepicker")&&t.data("daterangepicker").remove(),t.data("daterangepicker",new i(t,a,e))}),this},i}); +//# sourceMappingURL=/sm/8cfffddf058dc09b67d92f8d849675e6b459dfb8ede5136cf5c98d10acf78cc3.map \ No newline at end of file diff --git a/public/dmxAppConnect/dmxDatePicker/dmxDatePicker.css b/public/dmxAppConnect/dmxDatePicker/dmxDatePicker.css new file mode 100644 index 0000000..b4691fa --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/dmxDatePicker.css @@ -0,0 +1,33 @@ +.drp-buttons button { + display: inline-block; + font-weight: 400; + text-align: center; + padding: 10px 12px; + border: none; + border-radius: 4px; + margin: 0 5px; +} + +.drp-buttons button:hover, .drp-buttons button:focus { + text-decoration: none; +} +.drp-buttons button:not(:disabled):not(.disabled) { + cursor: pointer; +} +.drp-buttons button:focus { + outline: none; +} +.cancelBtn { + color: #212529; + background-color: #f8f9fa; +} +.cancelBtn:hover { + background-color: #e4e4e4; +} +.applyBtn { + color: #fff; + background-color: #357ebd; +} +.applyBtn:hover { + background-color: #275d8b; +} diff --git a/public/dmxAppConnect/dmxDatePicker/dmxDatePicker.js b/public/dmxAppConnect/dmxDatePicker/dmxDatePicker.js new file mode 100644 index 0000000..3516fc0 --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/dmxDatePicker.js @@ -0,0 +1,8 @@ +/*! + DMXzone Date Picker + Version: 2.1.1 + (c) 2022 Wappler.io + @build 2022-05-06 10:01:52 + */ +dmx.Component("date-picker",{extends:"input",attributes:{name:{type:String,default:""},showdropdowns:{type:Boolean,default:!1},minyear:{type:Number,default:null},maxyear:{type:Number,default:null},opens:{type:String,default:"right"},dropsup:{type:Boolean,default:!1},showweeknumbers:{type:Boolean,default:!1},mindate:{type:String,default:""},maxdate:{type:String,default:""},format:{type:String,default:null},invaliddates:{type:Array,default:[]},"invaliddates-start":{type:String,default:"start"},"invaliddates-end":{type:String,default:"end"},customdates:{type:Array,default:[]},"customdates-start":{type:String,default:"start"},"customdates-end":{type:String,default:"end"},"customdates-class":{type:String,default:"class"},disableweekends:{type:Boolean,default:!1},direction:{type:String,default:"ltr"},weeklabel:{type:String,default:"W"},applylabel:{type:String,default:"Apply"},cancellabel:{type:String,default:"Cancel"},timepicker:{type:Boolean,default:!1},use24hours:{type:Boolean,default:!1},"minutes-increment":{type:Number,default:1},utc:{type:Boolean,default:!1}},events:{show:Event,hide:Event,apply:Event,cancel:Event},render:function(t){dmx.Component("form-element").prototype.render.call(this,t),this.createHiddenInput(),this.$node.removeAttribute("name"),this.$node.autocomplete="off",this.update({})},createHiddenInput:function(){this.input=document.createElement("input"),this.$node.name&&(this.input.name=this.$node.name),this.input.value=this.$node.value,this.input.type="hidden",this.$node.parentNode.insertBefore(this.input,this.$node)},update:function(t){if(this.props.name&&(this.input.name=this.props.name),JSON.stringify(t)!=JSON.stringify(this.props)){if(this.props.format||(this.props.format=this.props.timepicker?"L LT":"L"),$(this.$node).daterangepicker({singleDatePicker:!0,autoUpdateInput:!1,showWeekNumbers:!!this.props.showweeknumbers,showDropdowns:!!this.props.showdropdowns,minYear:this.props.minyear||void 0,maxYear:this.props.maxyear||void 0,opens:this.props.opens,drops:this.props.dropsup?"up":"down",minDate:this.formatDate(this.props.mindate),maxDate:this.formatDate(this.props.maxdate),locale:{format:this.props.format,direction:this.props.direction,weekLabel:this.props.weeklabel,applyLabel:this.props.applylabel,cancelLabel:this.props.cancellabel},buttonClasses:"",applyButtonClasses:"",cancelButtonClasses:"",isCustomDate:this.isCustomDate.bind(this),isInvalidDate:this.isInvalidDate.bind(this),timePicker:this.props.timepicker,timePicker24Hour:this.props.use24hours,timePickerIncrement:this.props["minutes-increment"]},this.updateValue.bind(this)),$(this.$node).on("change.daterangepicker",this.onChange.bind(this)),$(this.$node).on("apply.daterangepicker",this.onApply.bind(this)),$(this.$node).on("show.daterangepicker",this.dispatchEvent.bind(this,"show")),$(this.$node).on("hide.daterangepicker",this.dispatchEvent.bind(this,"hide")),$(this.$node).on("apply.daterangepicker",this.dispatchEvent.bind(this,"apply")),$(this.$node).on("cancel.daterangepicker",this.dispatchEvent.bind(this,"cancel")),this.daterangepicker=$(this.$node).data("daterangepicker"),t.value!==this.props.value){var e=this.props.value;"now"!=e&&"today"!=e||(e=this.props.utc?moment().toISOString():moment().format("YYYY-MM-DD HH:mm:ss")),this.props.timepicker||(e=e.substring(0,10)),this.$node.defaultValue=this.formatDate(e)||"",this.input.defaultValue=e||"",this.setValue(e)}t.disabled!=this.props.disabled&&(this.$node.disabled=this.props.disabled,this.input.disabled=this.props.disabled)}this.updateData()},updateData:function(t){t&&this.$node.dirty&&dmx.validate(this.$node),this.input.value!==this.data.value&&dmx.nextTick((function(){this.dispatchEvent("updated")}),this),this.set("value",this.input.value),this.set("disabled",this.$node.disabled),this.$node.dirty&&(this.set("invalid",!this.$node.validity.valid),this.set("validationMessage",this.$node.validationMessage))},formatDate:function(t){if(t){if("now"==t||"today"==t)return moment().format(this.props.format);var e=moment(t);return e.isValid()?e.format(this.props.format):void 0}},isInvalidDate:function(t){if(this.props.disableweekends){var e=t.day();if(0===e||6===e)return!0}return this.props.invaliddates.some((function(e){return this.isInRange(t,e,this.props["invaliddates-start"],this.props["invaliddates-end"])}),this)},isCustomDate:function(t){return this.props.customdates.filter((function(e){return this.isInRange(t,e,this.props["customdates-start"],this.props["customdates-end"])}),this).map((function(t){return t[this.props["customdates-class"]]}),this)},isInRange:function(t,e,s,i){return e[s]&&e[i]?t.isSameOrAfter(e[s])&&t.isSameOrBefore(e[i]):e[s]?t.isSameOrAfter(e[s]):!!e[i]&&t.isSameOrBefore(e[i])},onChange:function(t){moment(this.$node.value,this.props.format).isValid()||this.setValue("")},onApply:function(t){var e=this.data.value;this.updateValue(this.daterangepicker.startDate),this.input.value!==e&&dmx.nextTick((function(){this.dispatchEvent("changed")}),this)},updateValue:function(t){var e=this.props.utc?t.toISOString():t.format("YYYY-MM-DD HH:mm:ss");this.props.timepicker||(e=e.substring(0,10)),this.setValue(e)},setValue:function(t){t&&(this.daterangepicker.setStartDate(this.formatDate(t)),this.daterangepicker.setEndDate(this.formatDate(t))),this.$node.value=this.formatDate(t)||"",this.input.value=t||"",this.updateData(!0)},format:function(t){return t?moment(t).format(this.props.format):""},destroy:function(){this.input.off(".daterangepicker")}}),function(){var t=daterangepicker.prototype.clickDate;daterangepicker.prototype.clickDate=function(e){if(!this.container.find(".in-range:not(.available)").length)return t.call(this,e)}}(),dmx.Component("date-range-picker",{extends:"date-picker",initialData:{start:"",end:""},attributes:{startdate:{type:String,default:""},enddate:{type:String,default:""},autoapply:{type:Boolean,default:!1},separator:{type:String,default:" - "},unlinked:{type:Boolean,default:!1},"maxspan-years":{type:Number,default:null},"maxspan-months":{type:Number,default:null},"maxspan-weeks":{type:Number,default:null},"maxspan-days":{type:Number,default:null}},methods:{setValue:function(t,e){this.setValue(t,e)}},createHiddenInput:function(){dmx.Component("date-picker").prototype.createHiddenInput.call(this),this.input1=document.createElement("input"),this.$node.name&&(this.input1.name=this.$node.name+"_start"),this.input1.value=this.props.startDate,this.input1.type="hidden",this.input2=document.createElement("input"),this.$node.name&&(this.input2.name=this.$node.name+"_end"),this.input2.value=this.props.startDate,this.input2.type="hidden",this.$node.parentNode.insertBefore(this.input1,this.$node),this.$node.parentNode.insertBefore(this.input2,this.$node)},update:function(t){if(this.props.name&&(this.input.name=this.props.name,this.input1.name=this.props.name+"_start",this.input2.name=this.props.name+"_end"),JSON.stringify(t)!=JSON.stringify(this.props)){if(this.props.format||(this.props.format=this.props.timepicker?"L LT":"L"),$(this.$node).daterangepicker({autoUpdateInput:!1,autoApply:!!this.props.autoapply,linkedCalendars:!this.props.unlinked,showWeekNumbers:!!this.props.showweeknumbers,showDropdowns:!!this.props.showdropdowns,minYear:this.props.minYear||void 0,maxYear:this.props.maxYear||void 0,opens:this.props.opens,drops:this.props.dropsup?"up":"down",minDate:this.formatDate(this.props.mindate),maxDate:this.formatDate(this.props.maxdate),maxSpan:this.props["maxspan-years"]||this.props["maxspan-months"]||this.props["maxspan-weeks"]||this.props["maxspan-days"]?{years:this.props["maxspan-years"],months:this.props["maxspan-months"],weeks:this.props["maxspan-weeks"],days:this.props["maxspan-days"]}:void 0,locale:{format:this.props.format,separator:this.props.separator,direction:this.props.direction,weekLabel:this.props.weeklabel,applyLabel:this.props.applylabel,cancelLabel:this.props.cancellabel},buttonClasses:"",applyButtonClasses:"",cancelButtonClasses:"",isCustomDate:this.isCustomDate.bind(this),isInvalidDate:this.isInvalidDate.bind(this),timePicker:this.props.timepicker,timePicker24Hour:this.props.use24hours,timePickerIncrement:this.props["minutes-increment"]},this.updateValue.bind(this)),$(this.$node).on("change.daterangepicker",this.onChange.bind(this)),$(this.$node).on("apply.daterangepicker",this.onApply.bind(this)),$(this.$node).on("show.daterangepicker",this.dispatchEvent.bind(this,"show")),$(this.$node).on("hide.daterangepicker",this.dispatchEvent.bind(this,"hide")),$(this.$node).on("apply.daterangepicker",this.dispatchEvent.bind(this,"apply")),$(this.$node).on("cancel.daterangepicker",this.dispatchEvent.bind(this,"cancel")),this.daterangepicker=$(this.$node).data("daterangepicker"),t.startdate!==this.props.startdate||t.enddate!==this.props.enddate){var e=this.props.startdate,s=this.props.enddate;"now"!=e&&"today"!=e||(e=this.props.utc?moment().toISOString():moment().format("YYYY-MM-DD HH:mm:ss")),"now"!=s&&"today"!=s||(s=this.props.utc?moment().toISOString():moment().format("YYYY-MM-DD HH:mm:ss")),this.props.timepicker||(e=e.substring(0,10),s=s.substring(0,10)),this.$node.defaultValue=e&&s?this.formatDate(e)+this.props.separator+this.formatDate(s):"",this.input.defaultValue=e&&s?e+"/"+s:"",this.input1.defaultValue=e||"",this.input2.defaultValue=s||"",this.setValue(e,s)}t.disabled!=this.props.disabled&&(this.$node.disabled=this.props.disabled,this.input1.disabled=this.props.disabled,this.input2.disabled=this.props.disabled)}this.updateData()},updateData:function(t){this.input1.value===this.data.start&&this.input2.value===this.data.end||dmx.nextTick((function(){this.dispatchEvent("updated")}),this),dmx.Component("date-picker").prototype.updateData.call(this,t)},onApply:function(t){var e=this.data.start,s=this.data.end;this.updateValue(this.daterangepicker.startDate,this.daterangepicker.endDate),this.input1.value===e&&this.input2.value===s||dmx.nextTick((function(){this.dispatchEvent("changed")}),this)},updateValue:function(t,e){var s=this.props.utc?t.toISOString():t.format("YYYY-MM-DD HH:mm:ss"),i=this.props.utc?e.toISOString():e.format("YYYY-MM-DD HH:mm:ss");this.props.timepicker||(s=s.substring(0,10),i=i.substring(0,10)),this.setValue(s,i)},setValue:function(t,e){t&&this.daterangepicker.setStartDate(this.formatDate(t)),e&&this.daterangepicker.setEndDate(this.formatDate(e)),this.$node.value=t&&e?this.formatDate(t)+this.props.separator+this.formatDate(e):"",this.input.value=t&&e?t+"/"+e:"",this.input1.value=t||"",this.input2.value=e||"",this.set("start",t),this.set("end",e),this.updateData(!0)}}); +//# sourceMappingURL=../maps/dmxDatePicker.js.map diff --git a/public/dmxAppConnect/dmxDatePicker/themes/blue.css b/public/dmxAppConnect/dmxDatePicker/themes/blue.css new file mode 100644 index 0000000..b37c8a2 --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/themes/blue.css @@ -0,0 +1,22 @@ +.daterangepicker td.available:hover, .daterangepicker th.available:hover { + background-color: #eee; +} +.daterangepicker td.in-range { + background-color: #e5f2ff !important; + color: #000 !important; +} +.daterangepicker td.in-range:hover { + background-color: #b3d7ff !important; + +} +.daterangepicker td.active, .daterangepicker td.active:hover { + background-color: #007bff !important; + color: #fff !important; +} +.applyBtn { + color: #fff !important; + background-color: #007bff !important; +} +.applyBtn:hover { + background-color: #006fe6 !important; +} \ No newline at end of file diff --git a/public/dmxAppConnect/dmxDatePicker/themes/cyan.css b/public/dmxAppConnect/dmxDatePicker/themes/cyan.css new file mode 100644 index 0000000..36d03b0 --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/themes/cyan.css @@ -0,0 +1,22 @@ +.daterangepicker td.available:hover, .daterangepicker th.available:hover { + background-color: #eee; +} +.daterangepicker td.in-range { + background-color: #e8f9fc !important; + color: #000 !important; +} +.daterangepicker td.in-range:hover { + background-color: #bbeef6 !important; + +} +.daterangepicker td.active, .daterangepicker td.active:hover { + background-color: #17a2b8 !important; + color: #fff !important; +} +.applyBtn { + color: #fff !important; + background-color: #17a2b8 !important; +} +.applyBtn:hover { + background-color: #148c9f !important; +} \ No newline at end of file diff --git a/public/dmxAppConnect/dmxDatePicker/themes/dark-gray.css b/public/dmxAppConnect/dmxDatePicker/themes/dark-gray.css new file mode 100644 index 0000000..50c8183 --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/themes/dark-gray.css @@ -0,0 +1,22 @@ +.daterangepicker td.available:hover, .daterangepicker th.available:hover { + background-color: #dadada; +} +.daterangepicker td.in-range { + background-color: #f1f2f4 !important; + color: #000 !important; +} +.daterangepicker td.in-range:hover { + background-color: #d5d9dd !important; + +} +.daterangepicker td.active, .daterangepicker td.active:hover { + background-color: #343a40 !important; + color: #fff !important; +} +.applyBtn { + color: #fff !important; + background-color: #343a40 !important; +} +.applyBtn:hover { + background-color: #505962 !important; +} \ No newline at end of file diff --git a/public/dmxAppConnect/dmxDatePicker/themes/gray.css b/public/dmxAppConnect/dmxDatePicker/themes/gray.css new file mode 100644 index 0000000..2f4a086 --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/themes/gray.css @@ -0,0 +1,22 @@ +.daterangepicker td.available:hover, .daterangepicker th.available:hover { + background-color: #eee; +} +.daterangepicker td.in-range { + background-color: #d6d9dc !important; + color: #000 !important; +} +.daterangepicker td.in-range:hover { + background-color: #bbc0c4 !important; + +} +.daterangepicker td.active, .daterangepicker td.active:hover { + background-color: #6c757d !important; + color: #fff !important; +} +.applyBtn { + color: #fff !important; + background-color: #6c757d !important; +} +.applyBtn:hover { + background-color: #6a737b !important; +} \ No newline at end of file diff --git a/public/dmxAppConnect/dmxDatePicker/themes/green.css b/public/dmxAppConnect/dmxDatePicker/themes/green.css new file mode 100644 index 0000000..4430ffc --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/themes/green.css @@ -0,0 +1,22 @@ +.daterangepicker td.available:hover, .daterangepicker th.available:hover { + background-color: #eee; +} +.daterangepicker td.in-range { + background-color: #eafaee !important; + color: #24292e !important; +} +.daterangepicker td.in-range:hover { + background-color: #c1f0cc !important; + +} +.daterangepicker td.active, .daterangepicker td.active:hover { + background-color: #28a745 !important; + color: #fff !important; +} +.applyBtn { + color: #fff !important; + background-color: #28a745 !important; +} +.applyBtn:hover { + background-color: #22903c !important; +} \ No newline at end of file diff --git a/public/dmxAppConnect/dmxDatePicker/themes/orange.css b/public/dmxAppConnect/dmxDatePicker/themes/orange.css new file mode 100644 index 0000000..459729a --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/themes/orange.css @@ -0,0 +1,22 @@ +.daterangepicker td.available:hover, .daterangepicker th.available:hover { + background-color: #eee; +} +.daterangepicker td.in-range { + background-color: #fff1e6 !important; + color: #000 !important; +} +.daterangepicker td.in-range:hover { + background-color: #fed5b3 !important; + +} +.daterangepicker td.active, .daterangepicker td.active:hover { + background-color: #fd7e14 !important; + color: #fff !important; +} +.applyBtn { + color: #fff !important; + background-color: #6c757d !important; +} +.applyBtn:hover { + background-color: #e46902 !important; +} \ No newline at end of file diff --git a/public/dmxAppConnect/dmxDatePicker/themes/pink.css b/public/dmxAppConnect/dmxDatePicker/themes/pink.css new file mode 100644 index 0000000..7f7e4bc --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/themes/pink.css @@ -0,0 +1,22 @@ +.daterangepicker td.available:hover, .daterangepicker th.available:hover { + background-color: #eee; +} +.daterangepicker td.in-range { + background-color: #fce8f1 !important; + color: #000 !important; +} +.daterangepicker td.in-range:hover { + background-color: #f7bbd6 !important; + +} +.daterangepicker td.active, .daterangepicker td.active:hover { + background-color: #e83e8c !important; + color: #fff !important; +} +.applyBtn { + color: #fff !important; + background-color: #e83e8c !important; +} +.applyBtn:hover { + background-color: #cd186b !important; +} \ No newline at end of file diff --git a/public/dmxAppConnect/dmxDatePicker/themes/purple.css b/public/dmxAppConnect/dmxDatePicker/themes/purple.css new file mode 100644 index 0000000..f3e88e8 --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/themes/purple.css @@ -0,0 +1,22 @@ +.daterangepicker td.available:hover, .daterangepicker th.available:hover { + background-color: #eee; +} +.daterangepicker td.in-range { + background-color: #f0ecf9 !important; + color: #000 !important; +} +.daterangepicker td.in-range:hover { + background-color: #d3c5ec !important; + +} +.daterangepicker td.active, .daterangepicker td.active:hover { + background-color: #6f42c1 !important; + color: #fff !important; +} +.applyBtn { + color: #fff !important; + background-color: #6f42c1 !important; +} +.applyBtn:hover { + background-color: #6239ad !important; +} \ No newline at end of file diff --git a/public/dmxAppConnect/dmxDatePicker/themes/red.css b/public/dmxAppConnect/dmxDatePicker/themes/red.css new file mode 100644 index 0000000..8b12d67 --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/themes/red.css @@ -0,0 +1,22 @@ +.daterangepicker td.available:hover, .daterangepicker th.available:hover { + background-color: #eee; +} +.daterangepicker td.in-range { + background-color: #fbe9eb !important; + color: #24292e !important; +} +.daterangepicker td.in-range:hover { + background-color: #f4bec3 !important; + +} +.daterangepicker td.active, .daterangepicker td.active:hover { + background-color: #dc3545 !important; + color: #fff !important; +} +.applyBtn { + color: #fff !important; + background-color: #dc3545 !important; +} +.applyBtn:hover { + background-color: #c42231 !important; +} \ No newline at end of file diff --git a/public/dmxAppConnect/dmxDatePicker/themes/teal.css b/public/dmxAppConnect/dmxDatePicker/themes/teal.css new file mode 100644 index 0000000..b1fd8f9 --- /dev/null +++ b/public/dmxAppConnect/dmxDatePicker/themes/teal.css @@ -0,0 +1,22 @@ +.daterangepicker td.available:hover, .daterangepicker th.available:hover { + background-color: #eee; +} +.daterangepicker td.in-range { + background-color: #e9fbf6 !important; + color: #000 !important; +} +.daterangepicker td.in-range:hover { + background-color: #bdf4e4 !important; + +} +.daterangepicker td.active, .daterangepicker td.active:hover { + background-color: #20c997 !important; + color: #fff !important; +} +.applyBtn { + color: #fff !important; + background-color: #20c997 !important; +} +.applyBtn:hover { + background-color: #199a74 !important; +} \ No newline at end of file diff --git a/views/.wappler_folder.json b/views/.wappler_folder.json index 428b25d..ddb058d 100644 --- a/views/.wappler_folder.json +++ b/views/.wappler_folder.json @@ -34,5 +34,9 @@ "search.ejs": { "layoutPage": "main", "description": "" + }, + "dspec2.ejs": { + "layoutPage": "main", + "description": "" } } \ No newline at end of file diff --git a/views/dspec.ejs b/views/dspec.ejs index 98f1163..7361564 100644 --- a/views/dspec.ejs +++ b/views/dspec.ejs @@ -1,5 +1,8 @@ - + + + +