createEditSupply
This method allows adding and editing:
- Data of a supply.
To insert each of these items, it is necessary to follow the standard documented below.
| Java class | |
|---|---|
| Request | web\wwwroot\ws\java\supply\CreateEditSupplyRequestType.java |
| Return | web\wwwroot\ws\java\supply\CreateEditSupplyResponseType.java |
Request:
| ID # | Required | Description |
|---|---|---|
| IDBOJECT | X | Supply ID # |
| NMOBJECT | X | Supply name |
| IDOBJECTTYPE | X | Supply type ID # |
| IDTEAM | X | Responsible team ID # |
| IDMEASUNITY | X | Measurement unit |
| VLCOST | Cost | |
| DTREVISION | Revision date | |
| IDCOLOR | Color ID # | |
| IDODOR | Odor ID # | |
| IDONUCODE | UNID code | |
| ABNTCODE | ABNT code | |
| IDDANGEROUSNESS | Hazard ID # | |
| IDCLASSIFICATION | Classification ID # | |
| FGCONTROL | Lot and series control [1 - Lot, 2 - Series]. | |
| FGPHYSICALSTATE | Physical state [1 - Solid, 2 - Liquid, 3 - Gas, 4 - Sludge] | |
| IDUSER | X¹ | User ID. |
| ATTRIBUTES | Example: identifier_of_attribute1=value_of_attribute1; identifier_of_attribute2=value_of_attribute2; identifier_of_attribute3=value_of_attribute3. Example with a multivalued attribute: identifier_of_attribute1=value1_of_attribute1, value2_of_attribute1, value3_of_attribute1 Note: For attributes with a numeric value, the decimal place separator must be "." (dot). For date fields, the value must have the “Y-M-D” (Year-Month-Day) format. | |
| DSOBSERVATION | Comments | |
| DSCONSTITUENTS | General description of composition |
info
X¹ - Required only when the supply type used contains revision.
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sp">
<soapenv:Header/>
<soapenv:Body>
<urn:createEditSupply>
<!--You may enter the following 19 items in any order-->
<urn:IDOBJECT>?</urn:IDOBJECT>
<urn:NMOBJECT>?</urn:NMOBJECT>
<urn:IDOBJECTTYPE>?</urn:IDOBJECTTYPE>
<urn:IDTEAM>?</urn:IDTEAM>
<urn:VLCOST>?</urn:VLCOST>
<urn:IDMEASUNITY>?</urn:IDMEASUNITY>
<urn:DTREVISION>?</urn:DTREVISION>
<urn:IDCOLOR>?</urn:IDCOLOR>
<urn:IDODOR>?</urn:IDODOR>
<urn:IDONUCODE>?</urn:IDONUCODE>
<urn:IDABNTCODE>?</urn:IDABNTCODE>
<urn:IDDANGEROUSNESS>?</urn:IDDANGEROUSNESS>
<urn:IDCLASSIFICATION>?</urn:IDCLASSIFICATION>
<urn:FGCONTROL>?</urn:FGCONTROL>
<urn:FGPHYSICALSTATE>?</urn:FGPHYSICALSTATE>
<urn:IDUSER>?</urn:IDUSER>
<urn:ATTRIBUTES>?</urn:ATTRIBUTES>
<urn:DSOBSERVATION>?</urn:DSOBSERVATION>
<urn:DSCONSTITUENTS>?</urn:DSCONSTITUENTS>
</urn:createEditSupply>
</soapenv:Body>
</soapenv:Envelope>
Return:
| ID # | Description |
|---|---|
| return | SUCCESS: Return regarding the executed item FAILURE: -1 |