Kaynağa Gözat

Added Delete Button to bom

master
rpm-mcarman 2 yıl önce
ebeveyn
işleme
3aea356c1d
2 değiştirilmiş dosya ile 442 ekleme ve 3 silme
  1. +439
    -1
      public/dmxAppConnect/config.js
  2. +3
    -2
      views/dspec.ejs

+ 439
- 1
public/dmxAppConnect/config.js Dosyayı Görüntüle

@@ -7054,7 +7054,445 @@ dmx.config({
} }
], ],
"outputType": "array" "outputType": "array"
}
},
"api_deleteItem": [
{
"type": "object",
"name": "data",
"sub": [
{
"type": "number",
"name": "createuserid"
},
{
"type": "text",
"name": "createdate"
},
{
"type": "number",
"name": "id"
},
{
"type": "text",
"name": "updatedate"
},
{
"type": "object",
"name": "designspec",
"sub": [
{
"type": "text",
"name": "switchposition"
},
{
"type": "text",
"name": "papertag"
},
{
"type": "text",
"name": "pressurefitting"
},
{
"type": "text",
"name": "basicclass"
},
{
"type": "text",
"name": "makefrom"
},
{
"type": "text",
"name": "curve"
},
{
"type": "text",
"name": "voltage"
},
{
"type": "text",
"name": "rotation"
},
{
"type": "text",
"name": "oereman"
},
{
"type": "boolean",
"name": "facrequired"
},
{
"type": "number",
"name": "updateuserid"
},
{
"type": "text",
"name": "swtch"
},
{
"type": "number",
"name": "createuserid"
},
{
"type": "text",
"name": "box"
},
{
"type": "text",
"name": "suctionport"
},
{
"type": "text",
"name": "suctionfitting"
},
{
"type": "text",
"name": "workinstruction"
},
{
"type": "object",
"name": "partnumber",
"sub": [
{
"type": "number",
"name": "id"
}
]
},
{
"type": "object",
"name": "status",
"sub": [
{
"type": "number",
"name": "id"
}
]
},
{
"type": "text",
"name": "approveuserid"
},
{
"type": "boolean",
"name": "faccompleted"
},
{
"type": "text",
"name": "terminalposition"
},
{
"type": "text",
"name": "createdate"
},
{
"type": "text",
"name": "remarks"
},
{
"type": "text",
"name": "updatedate"
},
{
"type": "text",
"name": "floatstock"
},
{
"type": "text",
"name": "revisionlevel"
},
{
"type": "text",
"name": "validation"
},
{
"type": "text",
"name": "effectivedate"
},
{
"type": "text",
"name": "pressureport"
},
{
"type": "text",
"name": "gasket"
},
{
"type": "text",
"name": "sae"
},
{
"type": "text",
"name": "ftf"
},
{
"type": "text",
"name": "ho"
},
{
"type": "text",
"name": "jsp"
},
{
"type": "text",
"name": "treatment"
},
{
"type": "text",
"name": "pinion"
},
{
"type": "text",
"name": "reasonforchange"
},
{
"type": "text",
"name": "tagnumber"
},
{
"type": "text",
"name": "bracket"
},
{
"type": "text",
"name": "customernotification"
},
{
"type": "text",
"name": "rtv"
},
{
"type": "text",
"name": "servicereplacementref"
},
{
"type": "text",
"name": "opening"
},
{
"type": "text",
"name": "note"
},
{
"type": "text",
"name": "pitch"
},
{
"type": "text",
"name": "except"
},
{
"type": "text",
"name": "additionalparts"
},
{
"type": "text",
"name": "built"
},
{
"type": "text",
"name": "drive"
},
{
"type": "text",
"name": "approvedate"
},
{
"type": "text",
"name": "mtgh"
},
{
"type": "text",
"name": "othertag"
},
{
"type": "text",
"name": "plrv"
},
{
"type": "text",
"name": "frequency"
},
{
"type": "number",
"name": "id"
},
{
"type": "text",
"name": "metaltag"
},
{
"type": "text",
"name": "application"
}
]
},
{
"type": "text",
"name": "new"
},
{
"type": "text",
"name": "old"
},
{
"type": "number",
"name": "viewlocation"
},
{
"type": "object",
"name": "partnumber",
"sub": [
{
"type": "text",
"name": "number"
},
{
"type": "object",
"name": "replacedby",
"sub": [
{
"type": "number",
"name": "id"
}
]
},
{
"type": "text",
"name": "file"
},
{
"type": "text",
"name": "updatedate"
},
{
"type": "text",
"name": "secondaryvendorpartnumber"
},
{
"type": "number",
"name": "updateuserid"
},
{
"type": "text",
"name": "weight"
},
{
"type": "text",
"name": "primarycustomerpartnumber"
},
{
"type": "text",
"name": "createdate"
},
{
"type": "object",
"name": "status",
"sub": [
{
"type": "number",
"name": "id"
}
]
},
{
"type": "text",
"name": "description"
},
{
"type": "text",
"name": "comments"
},
{
"type": "object",
"name": "partcode",
"sub": [
{
"type": "number",
"name": "id"
}
]
},
{
"type": "text",
"name": "stdcost"
},
{
"type": "text",
"name": "listprice"
},
{
"type": "number",
"name": "createuserid"
},
{
"type": "number",
"name": "id"
},
{
"type": "text",
"name": "ppap"
},
{
"type": "text",
"name": "primaryvendorpartnumber"
},
{
"type": "object",
"name": "replaces",
"sub": [
{
"type": "number",
"name": "id"
}
]
}
]
},
{
"type": "number",
"name": "updateuserid"
}
]
},
{
"type": "object",
"name": "headers",
"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",
"name": "connection"
},
{
"type": "text",
"name": "content-length"
},
{
"type": "text",
"name": "content-type"
},
{
"type": "text",
"name": "date"
}
]
}
]
}, },
"repeattest": { "repeattest": {
"repeat1": { "repeat1": {


+ 3
- 2
views/dspec.ejs Dosyayı Görüntüle

@@ -1,4 +1,5 @@
<!-- 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:{}}" --> <!-- 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:{}}" -->
<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>
<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_bom" noload="true"></dmx-api-action> <dmx-api-action id="api_bom" noload="true"></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>
@@ -131,7 +132,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="partnumber.number" disabled="true">
<input id="txt_updatebompn" name="updatebompn" type="text" class="form-control" style="width: 100%;" dmx-bind:value="$index" 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">
@@ -143,7 +144,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_updatebom.load({})">Update</button>
<button id="btn_bomupdate" class="btn btn-primary" dmx-on:click="api_deleteItem.load({});api_bom.load({})">Delete</button>
</td> </td>
</tr> </tr>
</tbody> </tbody>


Yükleniyor…
İptal
Kaydet