| @@ -6751,24 +6751,28 @@ dmx.config({ | |||||
| }, | }, | ||||
| "api_deleteItem": [ | "api_deleteItem": [ | ||||
| { | { | ||||
| "type": "object", | |||||
| "type": "array", | |||||
| "name": "data", | "name": "data", | ||||
| "sub": [ | "sub": [ | ||||
| { | { | ||||
| "type": "number", | "type": "number", | ||||
| "name": "createuserid" | |||||
| "name": "updateuserid" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "createdate" | |||||
| "name": "updatedate" | |||||
| }, | |||||
| { | |||||
| "type": "text", | |||||
| "name": "new" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "number", | "type": "number", | ||||
| "name": "id" | |||||
| "name": "viewlocation" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "updatedate" | |||||
| "name": "old" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "object", | "type": "object", | ||||
| @@ -6776,81 +6780,55 @@ dmx.config({ | |||||
| "sub": [ | "sub": [ | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "switchposition" | |||||
| }, | |||||
| { | |||||
| "type": "text", | |||||
| "name": "papertag" | |||||
| "name": "validation" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "pressurefitting" | |||||
| "name": "gasket" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "basicclass" | |||||
| "name": "terminalposition" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "makefrom" | |||||
| "name": "reasonforchange" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "curve" | |||||
| "name": "suctionport" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "voltage" | |||||
| "name": "basicclass" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "rotation" | |||||
| "name": "servicereplacementref" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "oereman" | |||||
| }, | |||||
| { | |||||
| "type": "boolean", | |||||
| "name": "facrequired" | |||||
| }, | |||||
| { | |||||
| "type": "number", | |||||
| "name": "updateuserid" | |||||
| "name": "treatment" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "swtch" | |||||
| }, | |||||
| { | |||||
| "type": "number", | |||||
| "name": "createuserid" | |||||
| "name": "opening" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "box" | |||||
| "name": "revisionlevel" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "suctionport" | |||||
| "name": "pitch" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "suctionfitting" | |||||
| "name": "additionalparts" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "workinstruction" | |||||
| }, | |||||
| { | |||||
| "type": "object", | |||||
| "name": "partnumber", | |||||
| "sub": [ | |||||
| { | |||||
| "type": "number", | |||||
| "name": "id" | |||||
| } | |||||
| ] | |||||
| "name": "approvedate" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "object", | "type": "object", | ||||
| @@ -6864,87 +6842,109 @@ dmx.config({ | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "approveuserid" | |||||
| "name": "ho" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "boolean", | |||||
| "name": "faccompleted" | |||||
| "type": "text", | |||||
| "name": "pinion" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "terminalposition" | |||||
| "name": "switchposition" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "createdate" | |||||
| "name": "rtv" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "remarks" | |||||
| "name": "built" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "updatedate" | |||||
| "name": "curve" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "floatstock" | |||||
| "name": "except" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "revisionlevel" | |||||
| "name": "createdate" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "validation" | |||||
| "name": "approveuserid" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | |||||
| "name": "effectivedate" | |||||
| "type": "number", | |||||
| "name": "updateuserid" | |||||
| }, | |||||
| { | |||||
| "type": "boolean", | |||||
| "name": "faccompleted" | |||||
| }, | |||||
| { | |||||
| "type": "number", | |||||
| "name": "id" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "pressureport" | |||||
| "name": "application" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "gasket" | |||||
| "name": "oereman" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "sae" | |||||
| "name": "workinstruction" | |||||
| }, | |||||
| { | |||||
| "type": "number", | |||||
| "name": "createuserid" | |||||
| }, | |||||
| { | |||||
| "type": "object", | |||||
| "name": "partnumber", | |||||
| "sub": [ | |||||
| { | |||||
| "type": "number", | |||||
| "name": "id" | |||||
| } | |||||
| ] | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "ftf" | |||||
| "name": "tagnumber" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "ho" | |||||
| "name": "drive" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "jsp" | |||||
| "name": "metaltag" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "treatment" | |||||
| "name": "plrv" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "pinion" | |||||
| "name": "swtch" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "reasonforchange" | |||||
| "name": "remarks" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "tagnumber" | |||||
| "name": "othertag" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "bracket" | |||||
| "name": "pressureport" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| @@ -6952,97 +6952,101 @@ dmx.config({ | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "rtv" | |||||
| "name": "papertag" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "servicereplacementref" | |||||
| "name": "frequency" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "opening" | |||||
| "name": "jsp" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "note" | |||||
| "name": "ftf" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "pitch" | |||||
| "name": "floatstock" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "except" | |||||
| "name": "bracket" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "additionalparts" | |||||
| "name": "box" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "built" | |||||
| "name": "suctionfitting" | |||||
| }, | |||||
| { | |||||
| "type": "boolean", | |||||
| "name": "facrequired" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "drive" | |||||
| "name": "effectivedate" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "approvedate" | |||||
| "name": "makefrom" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "mtgh" | |||||
| "name": "updatedate" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "othertag" | |||||
| "name": "rotation" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "plrv" | |||||
| "name": "mtgh" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "frequency" | |||||
| "name": "note" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "number", | |||||
| "name": "id" | |||||
| "type": "text", | |||||
| "name": "pressurefitting" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "metaltag" | |||||
| "name": "sae" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "application" | |||||
| "name": "voltage" | |||||
| } | } | ||||
| ] | ] | ||||
| }, | }, | ||||
| { | |||||
| "type": "text", | |||||
| "name": "new" | |||||
| }, | |||||
| { | |||||
| "type": "text", | |||||
| "name": "old" | |||||
| }, | |||||
| { | { | ||||
| "type": "number", | "type": "number", | ||||
| "name": "viewlocation" | |||||
| "name": "createuserid" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "object", | "type": "object", | ||||
| "name": "partnumber", | "name": "partnumber", | ||||
| "sub": [ | "sub": [ | ||||
| { | |||||
| "type": "number", | |||||
| "name": "createuserid" | |||||
| }, | |||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "number" | "name": "number" | ||||
| }, | }, | ||||
| { | |||||
| "type": "text", | |||||
| "name": "weight" | |||||
| }, | |||||
| { | { | ||||
| "type": "object", | "type": "object", | ||||
| "name": "replacedby", | |||||
| "name": "primaryvendor", | |||||
| "sub": [ | "sub": [ | ||||
| { | { | ||||
| "type": "number", | "type": "number", | ||||
| @@ -7051,36 +7055,66 @@ dmx.config({ | |||||
| ] | ] | ||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | |||||
| "name": "file" | |||||
| "type": "object", | |||||
| "name": "replaces", | |||||
| "sub": [ | |||||
| { | |||||
| "type": "number", | |||||
| "name": "id" | |||||
| } | |||||
| ] | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | |||||
| "name": "updatedate" | |||||
| "type": "object", | |||||
| "name": "status", | |||||
| "sub": [ | |||||
| { | |||||
| "type": "number", | |||||
| "name": "id" | |||||
| } | |||||
| ] | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "secondaryvendorpartnumber" | "name": "secondaryvendorpartnumber" | ||||
| }, | }, | ||||
| { | |||||
| "type": "text", | |||||
| "name": "primarycustomerpartnumber" | |||||
| }, | |||||
| { | { | ||||
| "type": "number", | "type": "number", | ||||
| "name": "updateuserid" | "name": "updateuserid" | ||||
| }, | }, | ||||
| { | |||||
| "type": "object", | |||||
| "name": "partcode", | |||||
| "sub": [ | |||||
| { | |||||
| "type": "number", | |||||
| "name": "id" | |||||
| } | |||||
| ] | |||||
| }, | |||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "weight" | |||||
| "name": "primaryvendorpartnumber" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "primarycustomerpartnumber" | |||||
| "name": "listprice" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "createdate" | |||||
| "name": "stdcost" | |||||
| }, | |||||
| { | |||||
| "type": "text", | |||||
| "name": "comments" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "object", | "type": "object", | ||||
| "name": "status", | |||||
| "name": "replacedby", | |||||
| "sub": [ | "sub": [ | ||||
| { | { | ||||
| "type": "number", | "type": "number", | ||||
| @@ -7090,15 +7124,11 @@ dmx.config({ | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "description" | |||||
| }, | |||||
| { | |||||
| "type": "text", | |||||
| "name": "comments" | |||||
| "name": "file" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "object", | "type": "object", | ||||
| "name": "partcode", | |||||
| "name": "secondaryvendor", | |||||
| "sub": [ | "sub": [ | ||||
| { | { | ||||
| "type": "number", | "type": "number", | ||||
| @@ -7108,15 +7138,11 @@ dmx.config({ | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "stdcost" | |||||
| "name": "createdate" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "listprice" | |||||
| }, | |||||
| { | |||||
| "type": "number", | |||||
| "name": "createuserid" | |||||
| "name": "ppap" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "number", | "type": "number", | ||||
| @@ -7124,27 +7150,17 @@ dmx.config({ | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "ppap" | |||||
| "name": "description" | |||||
| }, | }, | ||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "primaryvendorpartnumber" | |||||
| }, | |||||
| { | |||||
| "type": "object", | |||||
| "name": "replaces", | |||||
| "sub": [ | |||||
| { | |||||
| "type": "number", | |||||
| "name": "id" | |||||
| } | |||||
| ] | |||||
| "name": "updatedate" | |||||
| } | } | ||||
| ] | ] | ||||
| }, | }, | ||||
| { | { | ||||
| "type": "number", | "type": "number", | ||||
| "name": "updateuserid" | |||||
| "name": "id" | |||||
| } | } | ||||
| ] | ] | ||||
| }, | }, | ||||
| @@ -7152,22 +7168,6 @@ dmx.config({ | |||||
| "type": "object", | "type": "object", | ||||
| "name": "headers", | "name": "headers", | ||||
| "sub": [ | "sub": [ | ||||
| { | |||||
| "type": "text", | |||||
| "name": "access-control-allow-headers" | |||||
| }, | |||||
| { | |||||
| "type": "text", | |||||
| "name": "access-control-allow-methods" | |||||
| }, | |||||
| { | |||||
| "type": "text", | |||||
| "name": "access-control-allow-origin" | |||||
| }, | |||||
| { | |||||
| "type": "text", | |||||
| "name": "access-control-expose-headers" | |||||
| }, | |||||
| { | { | ||||
| "type": "text", | "type": "text", | ||||
| "name": "connection" | "name": "connection" | ||||
| @@ -1,5 +1,24 @@ | |||||
| <!-- Wappler include head-page="layouts/main" fontawesome_5="cdn" bootstrap5="local" is="dmx-app" id="dspec" appconnect="local" components="{dmxTyped:{},dmxStateManagement:{},dmxBootstrap5Modal:{},dmxFormatter:{},dmxValidator:{},dmxScheduler:{},dmxDataTraversal:{},dmxBootstrap5TableGenerator:{},dmxBootstrap5Navigation:{},dmxSockets:{}}" --> | <!-- Wappler include head-page="layouts/main" fontawesome_5="cdn" bootstrap5="local" is="dmx-app" id="dspec" appconnect="local" components="{dmxTyped:{},dmxStateManagement:{},dmxBootstrap5Modal:{},dmxFormatter:{},dmxValidator:{},dmxScheduler:{},dmxDataTraversal:{},dmxBootstrap5TableGenerator:{},dmxBootstrap5Navigation:{},dmxSockets:{}}" --> | ||||
| <dmx-api-action id="api_deleteItem" noload="true" url="http://vapor.prelub.com/api/v1.0/boms/" dmx-bind:url="'http://vapor.prelub.com/api/v1.0/boms/'+frm_updatebom.repeat1[0].id" method="delete"></dmx-api-action> | |||||
| <div class="modal" id="modal2" is="dmx-bs5-modal" tabindex="-1"> | |||||
| <div class="modal-dialog" role="document"> | |||||
| <div class="modal-content"> | |||||
| <div class="modal-header"> | |||||
| <h5 class="modal-title">Confirm</h5> | |||||
| <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> | |||||
| </div> | |||||
| <div class="modal-body"> | |||||
| <p>Are you sure you want to delete part #</p> | |||||
| <input id="txt_deletepn" name="text4" type="text" class="form-control"> | |||||
| <input id="txt_delpid" name="text4" type="text" class="form-control"> | |||||
| </div> | |||||
| <div class="modal-footer"> | |||||
| <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> | |||||
| <button type="button" class="btn btn-primary" dmx-on:click="api_deleteItem.load({});api1.load({});modal2.hide()">Save changes</button> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| <dmx-api-action id="api_deleteItem" noload="true" dmx-bind:url="'http://vapor.prelub.com/api/v1.0/boms/'+modal2.txt_delpid.value" method="delete"></dmx-api-action> | |||||
| <dmx-api-action id="api_getcodebyid" noload="true" url="http://vapor.prelub.com/api/v1.0/partcodes/" dmx-bind:url="'http://vapor.prelub.com/api/v1.0/partcodes/'+modal1.txt_parentid.value"></dmx-api-action> | <dmx-api-action id="api_getcodebyid" noload="true" url="http://vapor.prelub.com/api/v1.0/partcodes/" dmx-bind:url="'http://vapor.prelub.com/api/v1.0/partcodes/'+modal1.txt_parentid.value"></dmx-api-action> | ||||
| <dmx-api-action id="api_allpartcodes" url="http://vapor.prelub.com/api/v1.0/partcodes"></dmx-api-action> | <dmx-api-action id="api_allpartcodes" url="http://vapor.prelub.com/api/v1.0/partcodes"></dmx-api-action> | ||||
| <dmx-api-action id="api_maxpn" url="http://vapor.prelub.com/api/v1.0/pns/max"></dmx-api-action> | <dmx-api-action id="api_maxpn" url="http://vapor.prelub.com/api/v1.0/pns/max"></dmx-api-action> | ||||
| @@ -127,7 +146,7 @@ | |||||
| <tr> | <tr> | ||||
| <td style="width: 25%;"> | <td style="width: 25%;"> | ||||
| <input id="txt_bomupdateid" name="bomupdateid" type="text" class="form-control" disabled="true" dmx-bind:value="id"> | <input id="txt_bomupdateid" name="bomupdateid" type="text" class="form-control" disabled="true" dmx-bind:value="id"> | ||||
| <input id="txt_updatebompn" name="updatebompn" type="text" class="form-control" style="width: 100%;" dmx-bind:value="$index" disabled="true"> | |||||
| <input id="txt_updatebompn" name="updatebompn" type="text" class="form-control" style="width: 100%;" dmx-bind:value="partnumber.number" disabled="true"> | |||||
| </td> | </td> | ||||
| <td style="width: 50%;"> | <td style="width: 50%;"> | ||||
| <input id="txt_updatebomddsc" name="updatebomdescription" type="text" class="form-control" style="width: 100%" dmx-bind:value="partnumber.description" disabled="true"> | <input id="txt_updatebomddsc" name="updatebomdescription" type="text" class="form-control" style="width: 100%" dmx-bind:value="partnumber.description" disabled="true"> | ||||
| @@ -139,7 +158,7 @@ | |||||
| <input id="txt_updatebomnew" name="updatebomnew" type="text" style="width: 100%" class="form-control" dmx-bind:value="new"> | <input id="txt_updatebomnew" name="updatebomnew" type="text" style="width: 100%" class="form-control" dmx-bind:value="new"> | ||||
| </td> | </td> | ||||
| <td style="width: 10%"> | <td style="width: 10%"> | ||||
| <button id="btn_bomupdate" class="btn btn-primary" dmx-on:click="api_deleteItem.load({})">Delete</button> | |||||
| <button id="btn_bomupdate" class="btn btn-primary" dmx-on:click="modal2.txt_deletepn.setValue(txt_updatebompn.value);modal2.txt_delpid.setValue(txt_bomupdateid.value);modal2.show()">Delete</button> | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </tbody> | </tbody> | ||||