POST api/Setting/TicketType/PrintTemplate/Detail/Insert
插入一个打印模板的子记录,并返回其自增ID。
Request Information
URI Parameters
None.
Body Parameters
TicketTypePrintTemplateDetailItemName | Description | Type | Additional information |
---|---|---|---|
TemplateId |
模板ID Char(4) FK NN |
string |
Required Max length: 4 Min length: 4 |
AutoId |
自动ID Bigint NN PK |
integer |
Required |
ContentType |
内容的类型 Char(1) NN S 静态内容,R 引用类型,N线条 ,X方框 |
string |
Required Max length: 1 |
Format |
格式 Char(1) NN D日期,T时间,S文本,L日期时间,B一维条码,Q二维条码,P图片, C字符串转日期时间 |
string |
Required Max length: 1 |
OffsetX |
X偏移 Int NN |
integer |
Required |
OffsetY |
Y偏移 Int NN |
integer |
Required |
Width |
宽度 Int NN 如果是线条,则此值表示长度 |
integer |
Required |
Height |
高度 Int NN 如果是线条,则此值表示高度 |
integer |
Required |
FontName |
字体名称 Varchar(20) |
string |
Max length: 20 |
FontSize |
字号 Int |
integer |
None. |
WriteContent |
内容 Varchar(50) 如果是线条或者方框,此值没有内容;如果是静态内容,此值表示输出的内容;如果是引用,此值表示参数属性。 |
string |
Max length: 50 |
RotationAngle |
旋转角度 Int |
integer |
None. |
IsBlod |
加粗 Bit |
boolean |
None. |
IsTilt |
倾斜 Bit |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "TemplateId": "sample string 1", "AutoId": 2, "ContentType": "sample string 3", "Format": "sample string 4", "OffsetX": 5, "OffsetY": 6, "Width": 7, "Height": 8, "FontName": "sample string 9", "FontSize": 1, "WriteContent": "sample string 10", "RotationAngle": 1, "IsBlod": true, "IsTilt": true }
application/xml, text/xml
Sample:
<TicketTypePrintTemplateDetailItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <AutoId>2</AutoId> <ContentType>sample string 3</ContentType> <FontName>sample string 9</FontName> <FontSize>1</FontSize> <Format>sample string 4</Format> <Height>8</Height> <IsBlod>true</IsBlod> <IsTilt>true</IsTilt> <OffsetX>5</OffsetX> <OffsetY>6</OffsetY> <RotationAngle>1</RotationAngle> <TemplateId>sample string 1</TemplateId> <Width>7</Width> <WriteContent>sample string 10</WriteContent> </TicketTypePrintTemplateDetailItem>
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
插入一个打印模板的子记录,并返回其自增ID。
CommonOperationResultWithTagOfInt64Name | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": 3 }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOflong 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>3</tag> </CommonOperationResultWithTagOflong>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.