POST api/EquipmentLease/EquipmentLoss/Bill/Add
添加一个报损单
Request Information
URI Parameters
None.
Body Parameters
ELEquipmentLossBillParmName | Description | Type | Additional information |
---|---|---|---|
BillNum |
单号 |
string |
Required Max length: 20 Min length: 20 |
HappenDate |
报损日期 |
string |
Required Max length: 8 Min length: 8 |
HappenTime |
报损时间 |
string |
Required Max length: 6 Min length: 6 |
DepotID |
仓库ID |
string |
Required Max length: 4 Min length: 4 |
UserLoginName |
操作用户 |
string |
Required Max length: 20 |
Memory |
备注 |
string |
Required Max length: 100 |
Details |
报损单明细 |
Collection of ELEquipmentLossDetailParm |
None. |
Request Formats
application/json, text/json
Sample:
{ "BillNum": "sample string 1", "HappenDate": "sample string 2", "HappenTime": "sample string 3", "DepotID": "sample string 4", "UserLoginName": "sample string 5", "Memory": "sample string 6", "Details": [ { "BillNum": "sample string 1", "DetailId": 2, "EquipmentID": 3, "EquipmentUniqueID": "sample string 4", "EquipmentUniqueCode": "sample string 5", "EquipmentName": "sample string 6", "EquipmentType": "sample string 7", "CategoryCode": "sample string 8", "CategoryName": "sample string 9", "Unit": "sample string 10", "ManagementMode": "sample string 11", "Value": 12.0, "EquipmentStatus": "sample string 13", "Specs": "sample string 14", "ProducingAreas": "sample string 15", "QualityStandards": "sample string 16", "Amount": 17, "Status": "sample string 18" }, { "BillNum": "sample string 1", "DetailId": 2, "EquipmentID": 3, "EquipmentUniqueID": "sample string 4", "EquipmentUniqueCode": "sample string 5", "EquipmentName": "sample string 6", "EquipmentType": "sample string 7", "CategoryCode": "sample string 8", "CategoryName": "sample string 9", "Unit": "sample string 10", "ManagementMode": "sample string 11", "Value": 12.0, "EquipmentStatus": "sample string 13", "Specs": "sample string 14", "ProducingAreas": "sample string 15", "QualityStandards": "sample string 16", "Amount": 17, "Status": "sample string 18" } ] }
application/xml, text/xml
Sample:
<ELEquipmentLossBillParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <BillNum>sample string 1</BillNum> <DepotID>sample string 4</DepotID> <Details> <ELEquipmentLossDetailParm> <Amount>17</Amount> <BillNum>sample string 1</BillNum> <CategoryCode>sample string 8</CategoryCode> <CategoryName>sample string 9</CategoryName> <DetailId>2</DetailId> <EquipmentID>3</EquipmentID> <EquipmentName>sample string 6</EquipmentName> <EquipmentStatus>sample string 13</EquipmentStatus> <EquipmentType>sample string 7</EquipmentType> <EquipmentUniqueCode>sample string 5</EquipmentUniqueCode> <EquipmentUniqueID>sample string 4</EquipmentUniqueID> <ManagementMode>sample string 11</ManagementMode> <ProducingAreas>sample string 15</ProducingAreas> <QualityStandards>sample string 16</QualityStandards> <Specs>sample string 14</Specs> <Status>sample string 18</Status> <Unit>sample string 10</Unit> <Value>12</Value> </ELEquipmentLossDetailParm> <ELEquipmentLossDetailParm> <Amount>17</Amount> <BillNum>sample string 1</BillNum> <CategoryCode>sample string 8</CategoryCode> <CategoryName>sample string 9</CategoryName> <DetailId>2</DetailId> <EquipmentID>3</EquipmentID> <EquipmentName>sample string 6</EquipmentName> <EquipmentStatus>sample string 13</EquipmentStatus> <EquipmentType>sample string 7</EquipmentType> <EquipmentUniqueCode>sample string 5</EquipmentUniqueCode> <EquipmentUniqueID>sample string 4</EquipmentUniqueID> <ManagementMode>sample string 11</ManagementMode> <ProducingAreas>sample string 15</ProducingAreas> <QualityStandards>sample string 16</QualityStandards> <Specs>sample string 14</Specs> <Status>sample string 18</Status> <Unit>sample string 10</Unit> <Value>12</Value> </ELEquipmentLossDetailParm> </Details> <HappenDate>sample string 2</HappenDate> <HappenTime>sample string 3</HappenTime> <Memory>sample string 6</Memory> <UserLoginName>sample string 5</UserLoginName> </ELEquipmentLossBillParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
添加一个报损单
CommonOperationResultName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag>sample string 3</tag> </CommonOperationResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.