POST dz_api/Receipt/GetRecItems

获取可收费合同项目清单

Request Information

URI Parameters

None.

Body Parameters

入参

GetRecItemsRequest
NameDescriptionTypeAdditional information
CustId

客户ID

integer

None.

ContractId

合同ID

integer

None.

StartDate

合同添加日期起

date

None.

EndDate

合同添加日期至

date

None.

Request Formats

application/json, text/json

Sample:
{
  "CustId": 1,
  "ContractId": 1,
  "StartDate": "2021-09-19T16:16:49.4286593+08:00",
  "EndDate": "2021-09-19T16:16:49.4286593+08:00"
}

application/xml, text/xml

Sample:
<GetRecItemsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAa.WebApi.Areas.Receipt.Models">
  <ContractId>1</ContractId>
  <CustId>1</CustId>
  <EndDate>2021-09-19T16:16:49.4286593+08:00</EndDate>
  <StartDate>2021-09-19T16:16:49.4286593+08:00</StartDate>
</GetRecItemsRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

获取可收费合同项目清单

Collection of RecContractItemInfo
NameDescriptionTypeAdditional information
IsFirstContractRow

是否是合同中的第一行收费项目

boolean

None.

ContractItemCount

当前合同的收费项目数量

integer

None.

RecItemInfo

收费项目

BaseReceiptItemInfo

None.

ContractItemInfo

合同收费项目

ReceiptContractItemInfo

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "IsFirstContractRow": true,
    "ContractItemCount": 2,
    "RecItemInfo": {
      "ContractId": 1,
      "Approved": true,
      "CustDeleted": true,
      "ContractNo": "sample string 4",
      "ServiceType": 5,
      "ContractTerm": "sample string 6",
      "ContractAmount": 7.0
    },
    "ContractItemInfo": {
      "RecItemId": 1,
      "ContractItemId": 2,
      "ChargeItemId": 3,
      "ItemAmount": 4.0,
      "StartPeriod": "2021-09-19T16:16:49.4570766+08:00",
      "EndPeriod": "2021-09-19T16:16:49.4570766+08:00",
      "EndPeriodRaw": "2021-09-19T16:16:49.4570766+08:00",
      "ContractStartPeriod": "2021-09-19T16:16:49.4570766+08:00",
      "ContractEndPeriod": "2021-09-19T16:16:49.4570766+08:00",
      "Receivable": 9.0,
      "ReceivableRaw": 9.0,
      "Price": 10.0,
      "Prices": [
        1.0,
        2.0
      ],
      "OfdAmount": 11.0,
      "OfAmount": 12.0,
      "RecTimely": true,
      "RecMonthes": [
        {
          "RecMonth": "2021-09-19T16:16:49.4575989+08:00",
          "Amount": 2.0
        },
        {
          "RecMonth": "2021-09-19T16:16:49.4575989+08:00",
          "Amount": 2.0
        }
      ]
    }
  },
  {
    "IsFirstContractRow": true,
    "ContractItemCount": 2,
    "RecItemInfo": {
      "ContractId": 1,
      "Approved": true,
      "CustDeleted": true,
      "ContractNo": "sample string 4",
      "ServiceType": 5,
      "ContractTerm": "sample string 6",
      "ContractAmount": 7.0
    },
    "ContractItemInfo": {
      "RecItemId": 1,
      "ContractItemId": 2,
      "ChargeItemId": 3,
      "ItemAmount": 4.0,
      "StartPeriod": "2021-09-19T16:16:49.4570766+08:00",
      "EndPeriod": "2021-09-19T16:16:49.4570766+08:00",
      "EndPeriodRaw": "2021-09-19T16:16:49.4570766+08:00",
      "ContractStartPeriod": "2021-09-19T16:16:49.4570766+08:00",
      "ContractEndPeriod": "2021-09-19T16:16:49.4570766+08:00",
      "Receivable": 9.0,
      "ReceivableRaw": 9.0,
      "Price": 10.0,
      "Prices": [
        1.0,
        2.0
      ],
      "OfdAmount": 11.0,
      "OfAmount": 12.0,
      "RecTimely": true,
      "RecMonthes": [
        {
          "RecMonth": "2021-09-19T16:16:49.4575989+08:00",
          "Amount": 2.0
        },
        {
          "RecMonth": "2021-09-19T16:16:49.4575989+08:00",
          "Amount": 2.0
        }
      ]
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfRecContractItemInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonAa.Model.Receipt">
  <RecContractItemInfo>
    <ContractItemCount>2</ContractItemCount>
    <ContractItemInfo>
      <ChargeItemId>3</ChargeItemId>
      <ContractEndPeriod>2021-09-19T16:16:49.4570766+08:00</ContractEndPeriod>
      <ContractItemId>2</ContractItemId>
      <ContractStartPeriod>2021-09-19T16:16:49.4570766+08:00</ContractStartPeriod>
      <EndPeriod>2021-09-19T16:16:49.4570766+08:00</EndPeriod>
      <ItemAmount>4</ItemAmount>
      <OfAmount>12</OfAmount>
      <OfdAmount>11</OfdAmount>
      <Price>10</Price>
      <Prices xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:decimal>1</d4p1:decimal>
        <d4p1:decimal>2</d4p1:decimal>
      </Prices>
      <RecItemId>1</RecItemId>
      <RecMonthes xmlns:d4p1="http://schemas.datacontract.org/2004/07/LemonAa.Model.Customer">
        <d4p1:ReceiptMonthInfo>
          <d4p1:Amount>2</d4p1:Amount>
          <d4p1:RecMonth>2021-09-19T16:16:49.4575989+08:00</d4p1:RecMonth>
        </d4p1:ReceiptMonthInfo>
        <d4p1:ReceiptMonthInfo>
          <d4p1:Amount>2</d4p1:Amount>
          <d4p1:RecMonth>2021-09-19T16:16:49.4575989+08:00</d4p1:RecMonth>
        </d4p1:ReceiptMonthInfo>
      </RecMonthes>
      <RecTimely>true</RecTimely>
      <Receivable>9</Receivable>
      <StartPeriod>2021-09-19T16:16:49.4570766+08:00</StartPeriod>
    </ContractItemInfo>
    <IsFirstContractRow>true</IsFirstContractRow>
    <RecItemInfo>
      <Approved>true</Approved>
      <ContractAmount>7</ContractAmount>
      <ContractId>1</ContractId>
      <ContractNo>sample string 4</ContractNo>
      <ContractTerm>sample string 6</ContractTerm>
      <CustDeleted>true</CustDeleted>
      <ServiceType>5</ServiceType>
    </RecItemInfo>
  </RecContractItemInfo>
  <RecContractItemInfo>
    <ContractItemCount>2</ContractItemCount>
    <ContractItemInfo>
      <ChargeItemId>3</ChargeItemId>
      <ContractEndPeriod>2021-09-19T16:16:49.4570766+08:00</ContractEndPeriod>
      <ContractItemId>2</ContractItemId>
      <ContractStartPeriod>2021-09-19T16:16:49.4570766+08:00</ContractStartPeriod>
      <EndPeriod>2021-09-19T16:16:49.4570766+08:00</EndPeriod>
      <ItemAmount>4</ItemAmount>
      <OfAmount>12</OfAmount>
      <OfdAmount>11</OfdAmount>
      <Price>10</Price>
      <Prices xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:decimal>1</d4p1:decimal>
        <d4p1:decimal>2</d4p1:decimal>
      </Prices>
      <RecItemId>1</RecItemId>
      <RecMonthes xmlns:d4p1="http://schemas.datacontract.org/2004/07/LemonAa.Model.Customer">
        <d4p1:ReceiptMonthInfo>
          <d4p1:Amount>2</d4p1:Amount>
          <d4p1:RecMonth>2021-09-19T16:16:49.4575989+08:00</d4p1:RecMonth>
        </d4p1:ReceiptMonthInfo>
        <d4p1:ReceiptMonthInfo>
          <d4p1:Amount>2</d4p1:Amount>
          <d4p1:RecMonth>2021-09-19T16:16:49.4575989+08:00</d4p1:RecMonth>
        </d4p1:ReceiptMonthInfo>
      </RecMonthes>
      <RecTimely>true</RecTimely>
      <Receivable>9</Receivable>
      <StartPeriod>2021-09-19T16:16:49.4570766+08:00</StartPeriod>
    </ContractItemInfo>
    <IsFirstContractRow>true</IsFirstContractRow>
    <RecItemInfo>
      <Approved>true</Approved>
      <ContractAmount>7</ContractAmount>
      <ContractId>1</ContractId>
      <ContractNo>sample string 4</ContractNo>
      <ContractTerm>sample string 6</ContractTerm>
      <CustDeleted>true</CustDeleted>
      <ServiceType>5</ServiceType>
    </RecItemInfo>
  </RecContractItemInfo>
</ArrayOfRecContractItemInfo>