diff --git a/app/api/DSpec/Create.json b/app/api/DSpec/Create.json new file mode 100644 index 0000000..3dd866b --- /dev/null +++ b/app/api/DSpec/Create.json @@ -0,0 +1,46 @@ +{ + "meta": { + "options": { + "linkedFile": "/views/dspec.ejs", + "linkedForm": "frm_dspecsubmit" + }, + "$_POST": [ + { + "type": "text", + "fieldName": "dspecrev", + "name": "dspecrev" + }, + { + "type": "text", + "fieldName": "dspeceffectivedate", + "name": "dspeceffectivedate" + }, + { + "type": "text", + "fieldName": "dspecpnid", + "name": "dspecpnid" + }, + { + "type": "text", + "fieldName": "dspecstatusid", + "name": "dspecstatusid" + }, + { + "type": "text", + "fieldName": "dspecreasonforchange", + "name": "dspecreasonforchange" + }, + { + "type": "text", + "fieldName": "dspecvalidation", + "name": "dspecvalidation" + }, + { + "type": "text", + "fieldName": "dspecnotes", + "name": "dspecnotes" + } + ] + }, + "exec": {} +} \ No newline at end of file diff --git a/app/api/MaxPNs/Increase.json b/app/api/MaxPNs/Increase.json new file mode 100644 index 0000000..cf98898 --- /dev/null +++ b/app/api/MaxPNs/Increase.json @@ -0,0 +1,103 @@ +[ + { + "name": "api", + "module": "api", + "action": "send", + "options": { + "url": "http://vapor.prelub.com/api/v1.0/pns/max", + "schema": [ + { + "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" + } + ] + } + ] + }, + "output": true, + "meta": [ + { + "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" + } + ] + } + ], + "outputType": "object" + }, + { + "name": "api1", + "module": "api", + "action": "send", + "options": { + "method": "POST", + "url": "http://vapor.prelub.com/api/v1.0/pns/", + "dataType": "json", + "data": { + "id": null, + "number": "{{api.data.number + 1}}" + } + }, + "output": true + } +] \ No newline at end of file diff --git a/app/api/Parts/Create.json b/app/api/Parts/Create.json index 18cca0a..06bb9a2 100644 --- a/app/api/Parts/Create.json +++ b/app/api/Parts/Create.json @@ -1,3 +1,155 @@ { - "exec": {} + "meta": { + "options": { + "linkedFile": "/views/dspec.ejs", + "linkedForm": "frm_partsubmit" + }, + "$_POST": [ + { + "type": "text", + "fieldName": "savepnid", + "name": "savepnid" + }, + { + "type": "text", + "fieldName": "savepn", + "name": "savepn" + }, + { + "type": "text", + "fieldName": "savepndescription", + "name": "savepndescription" + }, + { + "type": "text", + "fieldName": "savepncomments", + "name": "savepncomments" + }, + { + "type": "text", + "fieldName": "savepc", + "name": "savepc" + }, + { + "type": "text", + "fieldName": "savept", + "name": "savept" + } + ] + }, + "exec": { + "steps": { + "name": "api_newPart", + "module": "api", + "action": "send", + "options": { + "url": "http://vapor.prelub.com/api/v1.0/partnumbers/alt", + "method": "POST", + "dataType": "json", + "data": { + "number": "{{$_POST.savepn}}", + "statusid": "4", + "description": "{{$_POST.savepndescription}}", + "comments": "{{$_POST.savepncomments}}", + "id": null, + "partcodeid": "{{$_POST.savepc}}", + "parttypeid": "{{$_POST.savept}}" + }, + "schema": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "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" + } + ] + } + ] + }, + "output": true, + "meta": [ + { + "type": "object", + "name": "data", + "sub": [ + { + "type": "number", + "name": "id" + }, + { + "type": "text", + "name": "comments" + }, + { + "type": "text", + "name": "description" + }, + { + "type": "text", + "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" + } + ] + } + ], + "outputType": "object" + } + } } \ No newline at end of file diff --git a/views/dspec.ejs b/views/dspec.ejs index 7b9c747..a94f2f8 100644 --- a/views/dspec.ejs +++ b/views/dspec.ejs @@ -1,4 +1,5 @@ + +
+ +

DSpec

@@ -85,9 +89,9 @@
- +
- +
@@ -111,19 +115,19 @@

Reason for change

- +

Validation of Change

- +

Notes

- +
@@ -203,9 +207,39 @@
- +
+
+
+
+
+ + + + + + + +
+
+
+
+
+
+ + + + + + +
+
+
+ +
+ +
\ No newline at end of file