POST api/Setting/TicketType/PrintTemplate/Update

修改一个打印模板的主记录。

Request Information

URI Parameters

None.

Body Parameters

TicketTypePrintTemplateItem
NameDescriptionTypeAdditional information
TemplateId

模板ID Char(4) PK NN

string

Required

Max length: 4

Min length: 4

TemplateName

模板名称 Varchar(40) NN

string

Required

Max length: 20

DoublePage

双面打印 Char(1) NN 1双面,其他值,单面

string

Required

Max length: 1

FrontBackground

正面背景图 Image

Collection of byte

Max length: 2097152

BackBackGround

反面背景图 Image

Collection of byte

Max length: 2097152

IsCard

是否为年卡 Bit NN “1”为年卡,“0”为非年卡

boolean

Required

OffsetX

整体X偏移 Int NN 只对打印内容有效,对背景图无效

integer

Required

OffsetY

整体Y偏移 Int NN 只对打印内容有效,对背景图无效

integer

Required

RotationAngle

画布旋转角度 Int NN

integer

Required

Details

打印条目。

Collection of TicketTypePrintTemplateDetailItem

None.

Request Formats

application/json, text/json

Sample:
{
  "TemplateId": "sample string 1",
  "TemplateName": "sample string 2",
  "DoublePage": "sample string 3",
  "FrontBackground": "QEA=",
  "BackBackGround": "QEA=",
  "IsCard": true,
  "OffsetX": 5,
  "OffsetY": 6,
  "RotationAngle": 7,
  "Details": [
    {
      "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
    },
    {
      "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:
<TicketTypePrintTemplateItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm">
  <BackBackGround>QEA=</BackBackGround>
  <Details>
    <TicketTypePrintTemplateDetailItem>
      <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>
    <TicketTypePrintTemplateDetailItem>
      <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>
  </Details>
  <DoublePage>sample string 3</DoublePage>
  <FrontBackground>QEA=</FrontBackground>
  <IsCard>true</IsCard>
  <OffsetX>5</OffsetX>
  <OffsetY>6</OffsetY>
  <RotationAngle>7</RotationAngle>
  <TemplateId>sample string 1</TemplateId>
  <TemplateName>sample string 2</TemplateName>
</TicketTypePrintTemplateItem>

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

修改一个打印模板的主记录。

CommonOperationResult
NameDescriptionTypeAdditional information
errcode

错误代码,通常0表示成功,其他值表示错误。

integer

None.

errmsg

错误描述,当errcode不为零时,此值可以用于呈现给用户。

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

application/bson

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