POST api/UnPos/Shop/Sys/Busi/Create/BillNum

创建一个新的单据号。 系统的单据号总是在一个唯一锁定的对象中创建,每天每种类型的单据的编码空间为999999999个,每申请一次,都会消耗掉一个编码。 需要判断返回值,errcode=0表示成功,tag值为单据单号。

Request Information

URI Parameters

None.

Body Parameters

需要创建唯一单号的表的名称

string

Request Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>

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

创建一个新的单据号。 系统的单据号总是在一个唯一锁定的对象中创建,每天每种类型的单据的编码空间为999999999个,每申请一次,都会消耗掉一个编码。 需要判断返回值,errcode=0表示成功,tag值为单据单号。

CommonOperationResultWithTagOfString
NameDescriptionTypeAdditional information
errcode

integer

None.

errmsg

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:
<CommonOperationResultWithTagOfstring 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>
</CommonOperationResultWithTagOfstring>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.