POST api/Sys/Busi/Create/BillNum2
创建一个自定义长度的短单号 依据表T_SYS_DJHMCJ的设置,返回(年份(2位)+随机长度)的短单号,如230000000001。 需要判断返回值,errcode=0表示成功,tag值为单据单号。
Request Information
URI Parameters
None.
Body Parameters
SysCreateBillNumberParmName | Description | Type | Additional information |
---|---|---|---|
tablename |
表名 |
string |
None. |
len |
流水号长度 |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "tablename": "sample string 1", "len": 2 }
application/xml, text/xml
Sample:
<SysCreateBillNumberParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <len>2</len> <tablename>sample string 1</tablename> </SysCreateBillNumberParm>
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
创建一个自定义长度的短单号 依据表T_SYS_DJHMCJ的设置,返回(年份(2位)+随机长度)的短单号,如230000000001。 需要判断返回值,errcode=0表示成功,tag值为单据单号。
CommonOperationResultWithTagOfStringName | Description | Type | Additional 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.