POST api/touchscreen/AddPortion

ajoute une portion d'une ligne de commande

Request Information

URI Parameters

None.

Body Parameters

DataForAddPortion
NameDescriptionTypeAdditional information
OrderDet

OrderDetail

None.

Portion

Portion

None.

TareWeightEntry

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderDet": {
    "KeysCdeDet": {
      "cde": "sample string 1",
      "date": "sample string 2",
      "client": "sample string 3",
      "line": "sample string 4",
      "error": "sample string 5",
      "ligaff": "sample string 6"
    },
    "ItemId": "sample string 1",
    "ItemState": 1,
    "BatchId": "sample string 2",
    "ItemName1": "sample string 3",
    "ItemName2": "sample string 4",
    "PreparationType": "sample string 5",
    "WeightDecimal": "sample string 6",
    "BoxWeight": 7.1,
    "UnitWeight": 8.1,
    "DefaultUnitType": 1,
    "Family": "sample string 9",
    "SubFamily": "sample string 10",
    "Line": "sample string 11",
    "OrigLine": "sample string 12",
    "HavePortions": true,
    "PreparedBox": 14.1,
    "PreparedUnit": 15.1,
    "PreparedWeightNet": 16.1,
    "PreparedWeightGross": 17.1,
    "UnitPrice": 18.1,
    "CustomerCanChangeWeightNet": true,
    "keyCde": "sample string 20",
    "flgetat": "sample string 21",
    "displayLine": "sample string 22",
    "OrderedBox": 23.1,
    "OrderedUnit": 24.1,
    "OrderedWeightNet": 25.1,
    "OrderedWeightGross": 26.1,
    "TotalPreparedBox": 27.1,
    "TotalPreparedUnit": 28.1,
    "TotalPreparedWeightNet": 29.1,
    "TotalPreparedWeightGross": 30.1,
    "SameLinesKeys": [
      {
        "cde": "sample string 1",
        "date": "sample string 2",
        "client": "sample string 3",
        "line": "sample string 4",
        "error": "sample string 5",
        "ligaff": "sample string 6"
      },
      {
        "cde": "sample string 1",
        "date": "sample string 2",
        "client": "sample string 3",
        "line": "sample string 4",
        "error": "sample string 5",
        "ligaff": "sample string 6"
      }
    ]
  },
  "Portion": {
    "Id": 1,
    "PieceCount": 2.1,
    "Weight": 3.1,
    "DSD_ID": "sample string 4"
  },
  "TareWeightEntry": true
}

application/xml, text/xml

Sample:
<DataForAddPortion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SAGACore.Model.TouchScreen.Preparation">
  <OrderDet xmlns:d2p1="http://schemas.datacontract.org/2004/07/SAGACore.Model.TouchScreen.Order">
    <d2p1:OrderedBox>23.1</d2p1:OrderedBox>
    <d2p1:OrderedUnit>24.1</d2p1:OrderedUnit>
    <d2p1:OrderedWeightGross>26.1</d2p1:OrderedWeightGross>
    <d2p1:OrderedWeightNet>25.1</d2p1:OrderedWeightNet>
    <d2p1:SameLinesKeys xmlns:d3p1="http://schemas.datacontract.org/2004/07/SAGACore">
      <d3p1:KeysCdeDet>
        <d3p1:cde>sample string 1</d3p1:cde>
        <d3p1:client>sample string 3</d3p1:client>
        <d3p1:date>sample string 2</d3p1:date>
        <d3p1:error>sample string 5</d3p1:error>
        <d3p1:ligaff>sample string 6</d3p1:ligaff>
        <d3p1:line>sample string 4</d3p1:line>
      </d3p1:KeysCdeDet>
      <d3p1:KeysCdeDet>
        <d3p1:cde>sample string 1</d3p1:cde>
        <d3p1:client>sample string 3</d3p1:client>
        <d3p1:date>sample string 2</d3p1:date>
        <d3p1:error>sample string 5</d3p1:error>
        <d3p1:ligaff>sample string 6</d3p1:ligaff>
        <d3p1:line>sample string 4</d3p1:line>
      </d3p1:KeysCdeDet>
    </d2p1:SameLinesKeys>
    <d2p1:TotalPreparedBox>27.1</d2p1:TotalPreparedBox>
    <d2p1:TotalPreparedUnit>28.1</d2p1:TotalPreparedUnit>
    <d2p1:TotalPreparedWeightGross>30.1</d2p1:TotalPreparedWeightGross>
    <d2p1:TotalPreparedWeightNet>29.1</d2p1:TotalPreparedWeightNet>
    <d2p1:BatchId>sample string 2</d2p1:BatchId>
    <d2p1:BoxWeight>7.1</d2p1:BoxWeight>
    <d2p1:CustomerCanChangeWeightNet>true</d2p1:CustomerCanChangeWeightNet>
    <d2p1:DefaultUnitType>BOX</d2p1:DefaultUnitType>
    <d2p1:Family>sample string 9</d2p1:Family>
    <d2p1:HavePortions>true</d2p1:HavePortions>
    <d2p1:ItemId>sample string 1</d2p1:ItemId>
    <d2p1:ItemName1>sample string 3</d2p1:ItemName1>
    <d2p1:ItemName2>sample string 4</d2p1:ItemName2>
    <d2p1:ItemState>NOT_PREPARED</d2p1:ItemState>
    <d2p1:KeysCdeDet xmlns:d3p1="http://schemas.datacontract.org/2004/07/SAGACore">
      <d3p1:cde>sample string 1</d3p1:cde>
      <d3p1:client>sample string 3</d3p1:client>
      <d3p1:date>sample string 2</d3p1:date>
      <d3p1:error>sample string 5</d3p1:error>
      <d3p1:ligaff>sample string 6</d3p1:ligaff>
      <d3p1:line>sample string 4</d3p1:line>
    </d2p1:KeysCdeDet>
    <d2p1:Line>sample string 11</d2p1:Line>
    <d2p1:OrigLine>sample string 12</d2p1:OrigLine>
    <d2p1:PreparationType>sample string 5</d2p1:PreparationType>
    <d2p1:PreparedBox>14.1</d2p1:PreparedBox>
    <d2p1:PreparedUnit>15.1</d2p1:PreparedUnit>
    <d2p1:PreparedWeightGross>17.1</d2p1:PreparedWeightGross>
    <d2p1:PreparedWeightNet>16.1</d2p1:PreparedWeightNet>
    <d2p1:SubFamily>sample string 10</d2p1:SubFamily>
    <d2p1:UnitPrice>18.1</d2p1:UnitPrice>
    <d2p1:UnitWeight>8.1</d2p1:UnitWeight>
    <d2p1:WeightDecimal>sample string 6</d2p1:WeightDecimal>
    <d2p1:displayLine>sample string 22</d2p1:displayLine>
    <d2p1:flgetat>sample string 21</d2p1:flgetat>
    <d2p1:keyCde>sample string 20</d2p1:keyCde>
  </OrderDet>
  <Portion>
    <DSD_ID>sample string 4</DSD_ID>
    <Id>1</Id>
    <PieceCount>2.1</PieceCount>
    <Weight>3.1</Weight>
  </Portion>
  <TareWeightEntry>true</TareWeightEntry>
</DataForAddPortion>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DataForAddPortion'.

Response Information

Resource Description

JSonGenericOfInt32
NameDescriptionTypeAdditional information
Response

integer

None.

Datas

integer

None.

ServiceName

string

None.

Parameters

string

None.

Status

ReturnErrorStatus

None.

ErrorMessage

string

None.

Error

jsonExceptionIES

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": 1,
  "Datas": 2,
  "ServiceName": "sample string 3",
  "Parameters": "sample string 4",
  "Status": 0,
  "ErrorMessage": "sample string 5",
  "Error": {
    "Code": "sample string 1",
    "Details": "sample string 2",
    "Message": "sample string 3",
    "Level": 1
  }
}

application/xml, text/xml

Sample:
<JSonGenericOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ForSagaMiddleware">
  <Error>
    <Code>sample string 1</Code>
    <Details>sample string 2</Details>
    <Level>Info</Level>
    <Message>sample string 3</Message>
  </Error>
  <ErrorMessage>sample string 5</ErrorMessage>
  <Parameters>sample string 4</Parameters>
  <ServiceName>sample string 3</ServiceName>
  <Status>Error</Status>
  <Datas>2</Datas>
  <Response>1</Response>
</JSonGenericOfint>