Sfoglia il codice sorgente

Minor Changes to address part code updates

master
rpm-mcarman 2 anni fa
parent
commit
e06a239a84
8 ha cambiato i file con 1080 aggiunte e 16 eliminazioni
  1. +1
    -1
      .wappler/targets/Development/app/config/config.json
  2. +1
    -1
      app/api/Parts/asynccalls/create_part.json
  3. +463
    -0
      app/api/Parts/asynccalls/updatepartcode.json
  4. +1
    -1
      app/config/config.json
  5. +596
    -0
      public/dmxAppConnect/config.js
  6. +1
    -0
      views/layouts/newmain.ejs
  7. +12
    -10
      views/layouts/smain.ejs
  8. +5
    -3
      views/secure/partinfo.ejs

+ 1
- 1
.wappler/targets/Development/app/config/config.json Vedi File

@@ -6,6 +6,6 @@
"methods": "GET,POST,DELETE,PATCH,PUT"
},
"env": {
"API_BASEURL": "http://vapor.prelub.com/api/v1.0/"
"API_BASEURL": "http://localhost:8080/api/v1.0/"
}
}

+ 1
- 1
app/api/Parts/asynccalls/create_part.json Vedi File

@@ -211,7 +211,7 @@
"module": "api",
"action": "send",
"options": {
"url": "http://localhost:8080/api/v1.0/partnumbers/async",
"url": "{{$_ENV$_ENV.API_BASEURL+'partnumbers/async'}}",
"dataType": "json",
"schema": [
{


+ 463
- 0
app/api/Parts/asynccalls/updatepartcode.json Vedi File

@@ -0,0 +1,463 @@
{
"meta": {
"$_GET": [
{
"type": "text",
"name": "id"
},
{
"type": "text",
"name": "cid"
}
]
},
"exec": {
"steps": {
"name": "api",
"module": "api",
"action": "send",
"options": {
"url": "{{$_ENV.API_BASEURL+'partnumbers/updatepartcode/'+$_GET.id+'/'+$_GET.cid}}",
"schema": [
{
"type": "object",
"name": "data",
"sub": [
{
"type": "object",
"name": "packinglocation",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"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": "text",
"name": "id"
}
]
},
{
"type": "text",
"name": "primarycustomerpartnumber"
},
{
"type": "object",
"name": "replaces",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"type": "object",
"name": "replacedby",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"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": "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": "stdcost"
},
{
"type": "text",
"name": "listprice"
},
{
"type": "number",
"name": "id"
},
{
"type": "text",
"name": "ppap"
},
{
"type": "text",
"name": "number"
},
{
"type": "object",
"name": "primaryvendor",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"type": "text",
"name": "comments"
},
{
"type": "text",
"name": "createdate"
},
{
"type": "object",
"name": "primarycustomer",
"sub": [
{
"type": "number",
"name": "id"
}
]
},
{
"type": "object",
"name": "pickinglocation",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"type": "text",
"name": "primaryvendorpartnumber"
},
{
"type": "text",
"name": "description"
}
]
}
],
"method": "POST"
},
"output": true,
"meta": [
{
"type": "object",
"name": "data",
"sub": [
{
"type": "object",
"name": "packinglocation",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"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": "text",
"name": "id"
}
]
},
{
"type": "text",
"name": "primarycustomerpartnumber"
},
{
"type": "object",
"name": "replaces",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"type": "object",
"name": "replacedby",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"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": "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": "stdcost"
},
{
"type": "text",
"name": "listprice"
},
{
"type": "number",
"name": "id"
},
{
"type": "text",
"name": "ppap"
},
{
"type": "text",
"name": "number"
},
{
"type": "object",
"name": "primaryvendor",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"type": "text",
"name": "comments"
},
{
"type": "text",
"name": "createdate"
},
{
"type": "object",
"name": "primarycustomer",
"sub": [
{
"type": "number",
"name": "id"
}
]
},
{
"type": "object",
"name": "pickinglocation",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"type": "text",
"name": "primaryvendorpartnumber"
},
{
"type": "text",
"name": "description"
}
]
}
],
"outputType": "object"
}
}
}

+ 1
- 1
app/config/config.json Vedi File

@@ -6,6 +6,6 @@
"methods": "GET,POST,DELETE,PATCH,PUT"
},
"env": {
"API_BASEURL": "http://vapor.prelub.com/api/v1.0/"
"API_BASEURL": "http://localhost:8080/api/v1.0/"
}
}

+ 596
- 0
public/dmxAppConnect/config.js Vedi File

@@ -15603,6 +15603,602 @@ dmx.config({
}
]
}
],
"query": [
{
"type": "text",
"name": "pid"
}
],
"api_getbyid": [
{
"type": "object",
"name": "data",
"sub": [
{
"type": "object",
"name": "packinglocation",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"type": "text",
"name": "weight"
},
{
"type": "object",
"name": "status",
"sub": [
{
"type": "text",
"name": "updatedate"
},
{
"type": "text",
"name": "createuserid"
},
{
"type": "text",
"name": "updateuserid"
},
{
"type": "number",
"name": "id"
},
{
"type": "text",
"name": "name"
},
{
"type": "text",
"name": "createdate"
}
]
},
{
"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": "text",
"name": "id"
}
]
},
{
"type": "object",
"name": "replaces",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"type": "object",
"name": "replacedby",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"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": "text",
"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": "stdcost"
},
{
"type": "number",
"name": "id"
},
{
"type": "text",
"name": "ppap"
},
{
"type": "text",
"name": "number"
},
{
"type": "array",
"name": "designspecs",
"sub": [
{
"type": "text",
"name": "metaltag"
},
{
"type": "text",
"name": "remarks"
},
{
"type": "number",
"name": "id"
},
{
"type": "boolean",
"name": "facrequired"
},
{
"type": "text",
"name": "weight"
},
{
"type": "text",
"name": "swtch"
},
{
"type": "text",
"name": "terminalposition"
},
{
"type": "text",
"name": "treatment"
},
{
"type": "text",
"name": "note"
},
{
"type": "boolean",
"name": "faccompleted"
},
{
"type": "text",
"name": "voltage"
},
{
"type": "object",
"name": "status",
"sub": [
{
"type": "number",
"name": "id"
}
]
},
{
"type": "text",
"name": "signed"
},
{
"type": "text",
"name": "plrv"
},
{
"type": "text",
"name": "except"
},
{
"type": "text",
"name": "approveuserid"
},
{
"type": "text",
"name": "makefrom"
},
{
"type": "text",
"name": "pinion"
},
{
"type": "text",
"name": "signedDate"
},
{
"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": "rotation"
},
{
"type": "text",
"name": "pressureport"
},
{
"type": "text",
"name": "switchposition"
},
{
"type": "text",
"name": "checked"
},
{
"type": "text",
"name": "reasonforchange"
},
{
"type": "text",
"name": "tagnumber"
},
{
"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": "boolean",
"name": "customernotification"
},
{
"type": "text",
"name": "curve"
},
{
"type": "text",
"name": "servicereplacementref"
},
{
"type": "text",
"name": "built"
},
{
"type": "text",
"name": "ftf"
},
{
"type": "text",
"name": "opening"
},
{
"type": "text",
"name": "jsp"
},
{
"type": "text",
"name": "updatedate"
},
{
"type": "text",
"name": "application"
},
{
"type": "text",
"name": "pitch"
},
{
"type": "text",
"name": "createuserid"
},
{
"type": "text",
"name": "mtgh"
},
{
"type": "text",
"name": "sae"
},
{
"type": "array",
"name": "boms"
},
{
"type": "text",
"name": "othertag"
},
{
"type": "text",
"name": "createdate"
},
{
"type": "text",
"name": "effectivedate"
},
{
"type": "text",
"name": "checkedDate"
},
{
"type": "text",
"name": "updateuserid"
},
{
"type": "text",
"name": "additionalparts"
},
{
"type": "text",
"name": "pressurefitting"
},
{
"type": "text",
"name": "basicclass"
}
]
},
{
"type": "object",
"name": "primaryvendor",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"type": "text",
"name": "comments"
},
{
"type": "text",
"name": "createdate"
},
{
"type": "object",
"name": "pickinglocation",
"sub": [
{
"type": "text",
"name": "id"
}
]
},
{
"type": "object",
"name": "primarycustomer",
"sub": [
{
"type": "text",
"name": "updatedate"
},
{
"type": "number",
"name": "id"
},
{
"type": "number",
"name": "updateuserid"
},
{
"type": "text",
"name": "createdate"
},
{
"type": "text",
"name": "description"
},
{
"type": "text",
"name": "name"
},
{
"type": "number",
"name": "createuserid"
}
]
},
{
"type": "text",
"name": "primaryvendorpartnumber"
},
{
"type": "text",
"name": "description"
}
]
},
{
"type": "object",
"name": "headers",
"sub": [
{
"type": "text",
"name": "connection"
},
{
"type": "text",
"name": "content-length"
},
{
"type": "text",
"name": "content-type"
},
{
"type": "text",
"name": "date"
}
]
}
]
},
"newpart": {


+ 1
- 0
views/layouts/newmain.ejs Vedi File

@@ -111,6 +111,7 @@
</div>
</div>
</div>
<h1 class="text-end">ED</h1>
</div>
</nav>
</div>


+ 12
- 10
views/layouts/smain.ejs Vedi File

@@ -65,6 +65,7 @@
<dmx-serverconnect id="conn_search" url="/api/Parts/Seach" dmx-param:input="var_ptsearch.value" noload="true"></dmx-serverconnect>
<dmx-serverconnect id="conn_masterpcs" url="/api/PartCodes/masters"></dmx-serverconnect>
<dmx-serverconnect id="conn_cmasters" url="/api/PartCodes/cmasters" dmx-param:code="mod_createpart.frm_createpart.inp_masterpc.value" noload="true"></dmx-serverconnect>
<dmx-serverconnect id="conn_updatepartcode" url="/api/Parts/asynccalls/updatepartcode" dmx-on:done="viewsearch.load({id: mod_changepartcode.var_changepartcode.value},true)"></dmx-serverconnect>
<div is="dmx-browser" id="browser1"></div>
<div class="modal" id="mod_changepartcode" is="dmx-bs5-modal" tabindex="-1">
<div class="modal-dialog" role="document">
@@ -74,28 +75,29 @@
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<dmx-value id="var_changepartcode"></dmx-value>
<div class="form-group mb-3 row">
<label for="inp_masterpc" class="col-sm-2 col-form-label col-form-label-sm" style="width: 30%">Top Part Code</label>
<div class="align-self-center col-sm-7 offset-1">
<input type="text" class="form-control" id="inp_masterpc" name="masterpartcode" aria-describedby="input1_help" is="dmx-autocomplete" dmx-bind:data="conn_masterpcs.data.list.data" optiontext="name" optionvalue="code" optionsearch="name+' '" dmx-on:changed="run({condition:{outputType:'boolean',if:`value`,then:{steps:{run:{outputType:'text',action:`conn_cmasters.load({code: value},true)`}}}}})">
</div>
</div>
<div class="form-group mb-3 row" dmx-hide="inp_masterpc.value">
<div class="form-group mb-3 row" dmx-hide="inp_masterpc.value" name="grp_allcodes">
<label for="inp_childpc" class="col-sm-2 col-form-label col-form-label-sm" style="width: 30%">Part Code</label>
<div class="align-self-center col-sm-7 offset-1">
<input type="text" class="form-control" id="inp_childpc" name="childpartcode" aria-describedby="input1_help" is="dmx-autocomplete" dmx-bind:data="conn_masterpcs.data.allpartcodes.data" optiontext="name" optionvalue="code" optionsearch="name+' '">
<input type="text" class="form-control" id="inp_childpc" name="childpartcode" aria-describedby="input1_help" is="dmx-autocomplete" dmx-bind:data="conn_masterpcs.data.allpartcodes.data" optiontext="name+' '+code" optionvalue="id" optionsearch="name+' '+code" dmx-on:changed="var_changepartcode.setValue(value)">
</div>
</div>
<div class="form-group mb-3 row" dmx-show="inp_masterpc.value">
<div class="form-group mb-3 row" dmx-show="inp_masterpc.value" name="grp_filteredcodes">
<label for="inp_filteredchildpc" class="col-sm-2 col-form-label col-form-label-sm" style="width: 30%">Part Code</label>
<div class="align-self-center col-sm-7 offset-1">
<input type="text" class="form-control" id="inp_filteredchildpc" name="filteredchildpartcode" aria-describedby="input1_help" is="dmx-autocomplete" dmx-bind:data="conn_cmasters.data.api.data" optiontext="name" optionvalue="code" optionsearch="name+' '">
<input type="text" class="form-control" id="inp_filteredchildpc" name="filteredchildpartcode" aria-describedby="input1_help" is="dmx-autocomplete" dmx-bind:data="conn_cmasters.data.api.data" optiontext="name+' '+code" optionvalue="id" optionsearch="name+' '+code" dmx-on:changed="var_changepartcode.setValue(value)">
</div>
</div>
</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">Save changes</button>
<button type="button" class="btn btn-primary" dmx-on:click="conn_updatepartcode.load({id: var_partid.value, cid: var_changepartcode.value})">Save changes</button>
</div>
</div>
</div>
@@ -112,26 +114,26 @@
<div class="form-group mb-3 row">
<label for="inp_masterpc" class="col-sm-2 col-form-label col-form-label-sm" style="width: 30%">Top Part Code</label>
<div class="align-self-center col-sm-7 offset-1">
<input type="text" class="form-control" id="inp_masterpc" name="masterpartcode" aria-describedby="input1_help" is="dmx-autocomplete" dmx-bind:data="conn_masterpcs.data.list.data" optiontext="name" optionvalue="code" optionsearch="name+' '" dmx-on:changed="run({condition:{outputType:'boolean',if:`value`,then:{steps:{run:{outputType:'text',action:`conn_cmasters.load({code: value},true)`}}}}})">
<input type="text" class="form-control" id="inp_masterpc1" name="masterpartcode" aria-describedby="input1_help" is="dmx-autocomplete" dmx-bind:data="conn_masterpcs.data.list.data" optiontext="name" optionvalue="code" optionsearch="name+' '" dmx-on:changed="run({condition:{outputType:'boolean',if:`value`,then:{steps:{run:{outputType:'text',action:`conn_cmasters.load({code: value},true)`}}}}})">
</div>
</div>
<div class="form-group mb-3 row" dmx-hide="inp_masterpc.value">
<label for="inp_childpc" class="col-sm-2 col-form-label col-form-label-sm" style="width: 30%">Part Code</label>
<div class="align-self-center col-sm-7 offset-1">
<input type="text" class="form-control" id="inp_childpc" name="childpartcode" aria-describedby="input1_help" is="dmx-autocomplete" dmx-bind:data="conn_masterpcs.data.allpartcodes.data" optiontext="name" optionvalue="code" optionsearch="name+' '">
<input type="text" class="form-control" id="inp_childpc1" name="childpartcode" aria-describedby="input1_help" is="dmx-autocomplete" dmx-bind:data="conn_masterpcs.data.allpartcodes.data" optiontext="name" optionvalue="code" optionsearch="name+' '">
</div>
</div>
<div class="form-group mb-3 row" dmx-show="inp_masterpc.value">
<label for="inp_filteredchildpc" class="col-sm-2 col-form-label col-form-label-sm" style="width: 30%">Part Code</label>
<div class="align-self-center col-sm-7 offset-1">
<input type="text" class="form-control" id="inp_filteredchildpc" name="filteredchildpartcode" aria-describedby="input1_help" is="dmx-autocomplete" dmx-bind:data="conn_cmasters.data.api.data" optiontext="name" optionvalue="code" optionsearch="name+' '">
<input type="text" class="form-control" id="inp_filteredchildpc1" name="filteredchildpartcode" aria-describedby="input1_help" is="dmx-autocomplete" dmx-bind:data="conn_cmasters.data.api.data" optiontext="name" optionvalue="code" optionsearch="name+' '">
</div>
</div>
</form>
</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="run({condition:{outputType:'boolean',if:`(frm_createpart.inp_masterpc.value.length() &gt; 0)`,then:{steps:{run:{outputType:'text',action:`conn_newpart.load({partcodeid: conn_masterpcs.data.allpartcodes.data.where(\`code\`, frm_createpart.inp_filteredchildpc.value, \'==\')[0].id, code: frm_createpart.inp_filteredchildpc.value})`}}},else:{steps:{run:{outputType:'text',action:`conn_newpart.load({partcodeid: conn_masterpcs.data.allpartcodes.data.where(\`code\`, frm_createpart.inp_childpc.value, \'==\')[0].id, code: frm_createpart.inp_childpc.value})`}}}}})">Save changes</button>
<button type="button" class="btn btn-primary" dmx-on:click="run({condition:{outputType:'boolean',if:`(frm_createpart.inp_masterpc.value.length() &gt; 0)`,then:{steps:{run:{outputType:'text',action:`conn_newpart.load({partcodeid: conn_masterpcs.data.allpartcodes.data.where(\`code\`, frm_createpart.inp_filteredchildpc.value, \'==\')[0].id, code: frm_createpart.inp_filteredchildpc.value})`}}},else:{steps:{run:{outputType:'text',action:`conn_newpart.load({partcodeid: conn_masterpcs.data.allpartcodes.data.where(\`code\`, frm_createpart.inp_childpc1.value, \'==\')[0].id, code: frm_createpart.inp_childpc1.value})`}}}}})">Save changes</button>
</div>
</div>
</div>
@@ -142,7 +144,7 @@

<nav class="navbar navbar-expand-lg navbar-dark bg-primary align-items-center">
<div class="container-fluid">
<a class="navbar-brand" href="#">RPM Studio</a>
<a class="navbar-brand" href="#">ED</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar1_collapse" aria-controls="navbar1_collapse" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbar1_collapse">
<div class="navbar-nav">


+ 5
- 3
views/secure/partinfo.ejs Vedi File

@@ -1,6 +1,8 @@
<!-- Wappler include head-page="layouts/smain" fontawesome_5="cdn" bootstrap5="local" is="dmx-app" id="partinfo" appConnect="local" components="{dmxNotifications:{},dmxFormatter:{},dmxBrowser:{},dmxBootbox5:{},dmxBootstrap5Modal:{}}" -->
<!-- Wappler include head-page="layouts/smain" fontawesome_5="cdn" bootstrap5="local" is="dmx-app" id="partinfo" appconnect="local" components="{dmxNotifications:{},dmxFormatter:{},dmxBrowser:{},dmxBootbox5:{},dmxBootstrap5Modal:{},dmxStateManagement:{}}" -->
<dmx-query-manager id="ids"></dmx-query-manager>

<dmx-api-action id="api_loadpart" noload="true" dmx-bind:url="pg_apiurl.value.concat('partnumbers/num/'.concat(txt_partNumber.value))" dmx-on:error="notifies1.warning('No Records Found');hdn_partid.setValue();txt_partNumber.setValue();txt_description.setValue();select1.setValue();txt_replaces.setValue();txt_replacedby.setValue();txt_primaryvendor.setValue();txt_secondaryvendor.setValue()" dmx-on:invalid="notifies1.warning('Invalid')" dmx-on:success="var_partid.setValue(api_loadpart.data.id)"></dmx-api-action>
<dmx-api-action id="api_getbyid" noload="true" dmx-bind:url="pg_apiurl.value+'partnumbers/getbyid/'+ids.data.pid" dmx-on:success="txt_partNumber.focus();txt_partNumber.setValue(api_getbyid.data.number);txt_description.focus()"></dmx-api-action>
<dmx-value id="var_parttypeid"></dmx-value>
<meta name="ac:route" content="/partinfo">
<dmx-value id="var_partcodeid" dmx-on:updated="var_parttypeid.setValue(conn_basedata.data.partcodes.data.where(`id`, value, '==')[0].parttype.id)"></dmx-value>
@@ -15,7 +17,7 @@
<div class="container">
<div class="row">
<div class="col">
<h1>RPM Studio</h1>
<h1>ED (Engineering Database)</h1>
</div>
</div>

@@ -42,7 +44,7 @@
<div class="form-group mb-3 row">
<label for="pcodes" class="col-sm-2 col-form-label" style="width:19%;">Part Codes</label>
<div class="col-sm-10" style="float: left; width: 81%;">
<select id="sel_partcodes" class="form-select" name="pcodes" dmx-bind:options="conn_basedata.data.partcodes.data" optiontext="name" optionvalue="id" dmx-bind:value="api_loadpart.data.partcode.id" dmx-on:updated="var_partcodeid.setValue(value)">
<select id="sel_partcodes" class="form-select" name="pcodes" dmx-bind:options="conn_basedata.data.partcodes.data" optiontext="name" optionvalue="id" dmx-bind:value="api_loadpart.data.partcode.id" dmx-on:updated="var_partcodeid.setValue(value)" aria-readonly="true" disabled="true">
<option value="Select"></option>
</select>
</div>


Caricamento…
Annulla
Salva