项目作者: prashanta

项目描述 :
Java Spring based REST Service for Vantage Epicore ERP.
高级语言: Java
项目地址: git://github.com/prashanta/granite.git
创建时间: 2016-09-09T03:30:25Z
项目社区:https://github.com/prashanta/granite

开源协议:

下载


Granite is a REST Service for Vantage Epicore ERP.

RELEASE NOTES:

Version: 0.5

  • REST API for getting last MRP run date and time
  • Granite is no longer used by MEX.

Version: 0.4

  • REST API for generating Flat BOM used by MEX

Version: 0.3

  • Just some clean ups

Version: 0.2

  • Added REST APIs used by Radiator

INSTALLATION NOTES:

Required:

  1. Tomcat 7.0 (32-bit)
  2. JDK 7 Update 79 (32-bit)

Make sure Java Runtime is set to JRE7 in Eclipse, JAVA_HOME and Tomcat.

1. Include following jars in classpath (or C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\lib):

• jdbc.jar

• progress.jar

2. Include the following dlls in PATH (C:\Program Files (x86)\Java\jre7\bin):

• JdbcProgress.dll

• procli92.dll


REST APIs:

(In the future, APIs need to be documented by something like swagger.io).

PACKAGE: com.gemt.granite.rest.erp.Part

granite/api/part/info/{partnum}
Returns basic part information of given “partnum”

granite/api/part/detail/{partnum}
Returns detail part information of given “partnum”

granite/api/part/rev/{partnum}
Returns part revisions of given “partnum”

granite/api/part//approvedrev/{partnum}
Returns approved revision of given “partnum”

granite/api/part//bin/{partnum}
Returns primary bin number of given “partnum”

granite/api/part/search/{partnum}
Search for part numbers containing text “partnum”

granite/api/part/searchbydesc/{description}
Search for part desctiption containing text “description”

granite/api/part//class/{class}
Search for class containing text “class”

granite/api/part/plant/{partnum}
Returns plate related information for given “partnum”. E.g:

REST: http://192.168.74.250/granite/api/part/plant/7188
RESULT:

  1. {
  2. "partNum": "7188",
  3. "leadTime": 45,
  4. "processMRP": true,
  5. "daysOfSupply": 10
  6. }

PACKAGE: com.gemt.granite.rest.erp.Material

granite/api/mtl/{partnum}/{revnum}
Returns child parts of given parent “partnum” and “revnum”. E.g.:

REST: http://192.168.74.250/granite/api/mtl/7371/-
RESULT:

  1. [
  2. {
  3. "partNum": "7371",
  4. "revisionNum": "-",
  5. "mtlSeq": 10,
  6. "qtyPer": 1,
  7. "mtlPartNum": "7251",
  8. "pullAsAsm": false,
  9. "viewAsAsm": false
  10. },
  11. {
  12. "partNum": "7371",
  13. "revisionNum": "-",
  14. "mtlSeq": 20,
  15. "qtyPer": 1,
  16. "mtlPartNum": "4485",
  17. "pullAsAsm": false,
  18. "viewAsAsm": false
  19. },
  20. {
  21. "partNum": "7371",
  22. "revisionNum": "-",
  23. "mtlSeq": 30,
  24. "qtyPer": 1,
  25. "mtlPartNum": "6331-09",
  26. "pullAsAsm": false,
  27. "viewAsAsm": false
  28. }
  29. ]

granite/api/mtl//{partnum}
Returns child parts of approved revision of given parent “partnum”.

granite/api/mtl/detail/{partnum}/{revnum}
Returns child parts with detail information for given parent “partnum” and “revnum”. E.g.:

REST: http://192.168.74.250/granite/api/mtl/detail/7371/-
RESULT:

  1. [
  2. {
  3. "partNum": "7371",
  4. "mtlSeq": 10,
  5. "qtyPer": 1,
  6. "mtlPartNum": "7251",
  7. "bubbleNum": "",
  8. "pullAsAsm": false,
  9. "viewAsAsm": false,
  10. "partDescription": "PLATE SIDE LEFT,7251",
  11. "partClass": "HORC",
  12. "invUM": "PC",
  13. "partType": "P",
  14. "nonStock": false,
  15. "manufacturer": "",
  16. "manufacturerNumber": "",
  17. "project": "",
  18. "estimatedCost": 0,
  19. "mfgComment": "",
  20. "purComment": "",
  21. "leadTime": 45,
  22. "processMRP": false,
  23. "daysOfSupply": 10,
  24. "genPOSuggestion": true,
  25. "revisionNum": "E",
  26. "revisionEffectiveDate": "24-Jan-2007",
  27. "approvedVendor": null,
  28. "primaryBin": "FT013"
  29. },
  30. ...
  31. ]

granite/api/mtl/detail/{partnum}
Returns child parts with detail information of approved revision of given parent “partnum” and “revnum”.

/granite/api/mtl/flatBOM/{partnum}
Returns all the child parts with total quantity as a flat BOM