POST api/DeliveryOrder/SaveSaleNote?DomainId={DomainId}&AccountId={AccountId}&PersonId={PersonId}

保存销售单

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DomainId

域Id

globally unique identifier

None.

AccountId

账户Id

globally unique identifier

None.

PersonId

人员Id

globally unique identifier

None.

Body Parameters

DeliveryOrderParamVM
NameDescriptionTypeAdditional information
WorkRecordID

globally unique identifier

None.

deliveryOrder

DeliveryOrderVM

None.

orderDetailList

Collection of DeliveryOrderDetailVM

None.

Request Formats

application/json, text/json

Sample:
{
  "WorkRecordID": "4ab0f392-4bbb-4d02-9620-b1d3039ed5a8",
  "deliveryOrder": {
    "MS97TID": "sample string 1",
    "OrderID": "sample string 2",
    "OrderNumber": "sample string 3",
    "OrderStatusText": "sample string 4",
    "OrderStatusKey": "sample string 5",
    "OrderMaker": "sample string 6",
    "OrderMakerID": "sample string 7",
    "OrderDate": "sample string 8",
    "OrderAmount": "sample string 9",
    "CustomerID": "8f666deb-2bae-4b3e-a4f0-66d7e92ec2cc",
    "CustomerName": "sample string 10",
    "CustomerAdress": "sample string 11",
    "Remark": "sample string 12",
    "PersonName": "sample string 13"
  },
  "orderDetailList": [
    {
      "ProductID": "1b5250f6-3193-4c5a-a656-27ebc61051d4",
      "ProductName": "sample string 1",
      "Count": 1.0,
      "ProductUnit": "sample string 2",
      "Price": 1.0,
      "Sum": 1.0,
      "Sort": 3,
      "Remark": "sample string 4",
      "UseTypeKey": "sample string 5"
    },
    {
      "ProductID": "1b5250f6-3193-4c5a-a656-27ebc61051d4",
      "ProductName": "sample string 1",
      "Count": 1.0,
      "ProductUnit": "sample string 2",
      "Price": 1.0,
      "Sum": 1.0,
      "Sort": 3,
      "Remark": "sample string 4",
      "UseTypeKey": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<DeliveryOrderParamVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.App.WebAPI.Areas.DeliveryOrder.ViewModel">
  <WorkRecordID>4ab0f392-4bbb-4d02-9620-b1d3039ed5a8</WorkRecordID>
  <deliveryOrder>
    <CustomerAdress>sample string 11</CustomerAdress>
    <CustomerID>8f666deb-2bae-4b3e-a4f0-66d7e92ec2cc</CustomerID>
    <CustomerName>sample string 10</CustomerName>
    <MS97TID>sample string 1</MS97TID>
    <OrderAmount>sample string 9</OrderAmount>
    <OrderDate>sample string 8</OrderDate>
    <OrderID>sample string 2</OrderID>
    <OrderMaker>sample string 6</OrderMaker>
    <OrderMakerID>sample string 7</OrderMakerID>
    <OrderNumber>sample string 3</OrderNumber>
    <OrderStatusKey>sample string 5</OrderStatusKey>
    <OrderStatusText>sample string 4</OrderStatusText>
    <PersonName>sample string 13</PersonName>
    <Remark>sample string 12</Remark>
  </deliveryOrder>
  <orderDetailList>
    <DeliveryOrderDetailVM>
      <Count>1</Count>
      <Price>1</Price>
      <ProductID>1b5250f6-3193-4c5a-a656-27ebc61051d4</ProductID>
      <ProductName>sample string 1</ProductName>
      <ProductUnit>sample string 2</ProductUnit>
      <Remark>sample string 4</Remark>
      <Sort>3</Sort>
      <Sum>1</Sum>
      <UseTypeKey>sample string 5</UseTypeKey>
    </DeliveryOrderDetailVM>
    <DeliveryOrderDetailVM>
      <Count>1</Count>
      <Price>1</Price>
      <ProductID>1b5250f6-3193-4c5a-a656-27ebc61051d4</ProductID>
      <ProductName>sample string 1</ProductName>
      <ProductUnit>sample string 2</ProductUnit>
      <Remark>sample string 4</Remark>
      <Sort>3</Sort>
      <Sum>1</Sum>
      <UseTypeKey>sample string 5</UseTypeKey>
    </DeliveryOrderDetailVM>
  </orderDetailList>
</DeliveryOrderParamVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultModelOfBoolean
NameDescriptionTypeAdditional information
Code

ReturnCode

None.

Message

string

None.

Data

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": 200,
  "Message": "sample string 1",
  "Data": true
}

application/xml, text/xml

Sample:
<ResultModelOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Utility">
  <Code>Success</Code>
  <Data>true</Data>
  <Message>sample string 1</Message>
</ResultModelOfboolean>