POST Visual/SavePrintForm
保存打印模板
Request Information
URI Parameters
None.
Body Parameters
数据源
PrintModel| Name | Description | Type | Additional information |
|---|---|---|---|
| t_ClassPrint | t_ClassPrint |
None. |
|
| listPage | Collection of t_ClassPrintPage |
None. |
|
| list | Collection of t_ClassPrintEntry |
None. |
|
| listCond | Collection of t_ClassPrintCondition |
None. |
|
| listMatch | Collection of t_ClassPrintCondition |
None. |
Request Formats
application/json, text/json
Sample:
{
"t_ClassPrint": {
"fInterId": 1,
"fBillTypeId": 2,
"fName": "sample string 3",
"fIsDefault": true,
"fProcedure": "sample string 5",
"fPaperWidth": 6,
"fPaperHeight": 7,
"fPaperSize": 8,
"fRepeatBillHead": true,
"fIsEntryOrOp": true,
"fPageIndex": 11,
"fRotation": 12,
"fPrinterPaper": "sample string 13",
"fGenFile": 14,
"fGenFileStr": "sample string 15",
"fVersion": "sample string 16",
"fFileNameFormat": "sample string 17"
},
"listPage": [
{
"fInterId": 1,
"fPage": 2,
"fRepeatBillHead": true
},
{
"fInterId": 1,
"fPage": 2,
"fRepeatBillHead": true
}
],
"list": [
{
"fPageIndexNum": 1,
"fIsBillRptHeader": true,
"fIsBillRptFooter": true,
"fEntryId": 4,
"fFieldName": "sample string 5",
"bData": true,
"fImageUrl": "sample string 7",
"fPage": 8,
"fInterId": 9,
"fId": 10,
"fIsActiveText": true,
"fPageIndex": 12,
"fDynPageIndex": 13,
"fText": "sample string 14",
"fTop": 15,
"fTopConfig": 16,
"fLeft": 17,
"fWidth": 18,
"fHeight": 19,
"fHeightT": 20,
"fFontSize": 21,
"fFont": "sample string 22",
"fFontBold": true,
"fIsEntry": true,
"fHorizontalAlign": 25,
"fVerticalAlign": 26,
"fFourLine": "sample string 27",
"fFourLineSize": "sample string 28",
"fFourLineColor": "sample string 29",
"fFourLineType": "sample string 30",
"fFontColor": "sample string 31",
"fMask": "sample string 32",
"fEntryPosition": 33,
"fSumType": 34,
"fWrap": true,
"fNewLine": true,
"fLCnt": 37,
"fReduceFont": true,
"fCtlType": 39,
"fCodeType": 40,
"fStyle": "sample string 41",
"fDynFieldName": "sample string 42",
"fDynCol": 43,
"fTableId": 44,
"fTrimEndZero": true,
"fFontRotate": 46,
"fImgHeight": 47,
"fImgWidth": 48
},
{
"fPageIndexNum": 1,
"fIsBillRptHeader": true,
"fIsBillRptFooter": true,
"fEntryId": 4,
"fFieldName": "sample string 5",
"bData": true,
"fImageUrl": "sample string 7",
"fPage": 8,
"fInterId": 9,
"fId": 10,
"fIsActiveText": true,
"fPageIndex": 12,
"fDynPageIndex": 13,
"fText": "sample string 14",
"fTop": 15,
"fTopConfig": 16,
"fLeft": 17,
"fWidth": 18,
"fHeight": 19,
"fHeightT": 20,
"fFontSize": 21,
"fFont": "sample string 22",
"fFontBold": true,
"fIsEntry": true,
"fHorizontalAlign": 25,
"fVerticalAlign": 26,
"fFourLine": "sample string 27",
"fFourLineSize": "sample string 28",
"fFourLineColor": "sample string 29",
"fFourLineType": "sample string 30",
"fFontColor": "sample string 31",
"fMask": "sample string 32",
"fEntryPosition": 33,
"fSumType": 34,
"fWrap": true,
"fNewLine": true,
"fLCnt": 37,
"fReduceFont": true,
"fCtlType": 39,
"fCodeType": 40,
"fStyle": "sample string 41",
"fDynFieldName": "sample string 42",
"fDynCol": 43,
"fTableId": 44,
"fTrimEndZero": true,
"fFontRotate": 46,
"fImgHeight": 47,
"fImgWidth": 48
}
],
"listCond": [
{
"fInterId": 1,
"fPageIndex": 2,
"fText": "sample string 3",
"fValue": "sample string 4",
"fOpt": "sample string 5",
"fTableId": 6
},
{
"fInterId": 1,
"fPageIndex": 2,
"fText": "sample string 3",
"fValue": "sample string 4",
"fOpt": "sample string 5",
"fTableId": 6
}
],
"listMatch": [
{
"fInterId": 1,
"fPageIndex": 2,
"fText": "sample string 3",
"fValue": "sample string 4",
"fOpt": "sample string 5",
"fTableId": 6
},
{
"fInterId": 1,
"fPageIndex": 2,
"fText": "sample string 3",
"fValue": "sample string 4",
"fOpt": "sample string 5",
"fTableId": 6
}
]
}
application/xml, text/xml
Sample:
<PrintModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DbFrameModel">
<list>
<t_ClassPrintEntry>
<bData>true</bData>
<fCodeType>40</fCodeType>
<fCtlType>39</fCtlType>
<fDynCol>43</fDynCol>
<fDynFieldName>sample string 42</fDynFieldName>
<fDynPageIndex>13</fDynPageIndex>
<fEntryId>4</fEntryId>
<fEntryPosition>33</fEntryPosition>
<fFieldName>sample string 5</fFieldName>
<fFont>sample string 22</fFont>
<fFontBold>true</fFontBold>
<fFontColor>sample string 31</fFontColor>
<fFontRotate>46</fFontRotate>
<fFontSize>21</fFontSize>
<fFourLine>sample string 27</fFourLine>
<fFourLineColor>sample string 29</fFourLineColor>
<fFourLineSize>sample string 28</fFourLineSize>
<fFourLineType>sample string 30</fFourLineType>
<fHeight>19</fHeight>
<fHeightT>20</fHeightT>
<fHorizontalAlign>25</fHorizontalAlign>
<fId>10</fId>
<fImageUrl>sample string 7</fImageUrl>
<fImgHeight>47</fImgHeight>
<fImgWidth>48</fImgWidth>
<fInterId>9</fInterId>
<fIsActiveText>true</fIsActiveText>
<fIsBillRptFooter>true</fIsBillRptFooter>
<fIsBillRptHeader>true</fIsBillRptHeader>
<fIsEntry>true</fIsEntry>
<fLCnt>37</fLCnt>
<fLeft>17</fLeft>
<fMask>sample string 32</fMask>
<fNewLine>true</fNewLine>
<fPage>8</fPage>
<fPageIndex>12</fPageIndex>
<fPageIndexNum>1</fPageIndexNum>
<fReduceFont>true</fReduceFont>
<fStyle>sample string 41</fStyle>
<fSumType>34</fSumType>
<fTableId>44</fTableId>
<fText>sample string 14</fText>
<fTop>15</fTop>
<fTopConfig>16</fTopConfig>
<fTrimEndZero>true</fTrimEndZero>
<fVerticalAlign>26</fVerticalAlign>
<fWidth>18</fWidth>
<fWrap>true</fWrap>
</t_ClassPrintEntry>
<t_ClassPrintEntry>
<bData>true</bData>
<fCodeType>40</fCodeType>
<fCtlType>39</fCtlType>
<fDynCol>43</fDynCol>
<fDynFieldName>sample string 42</fDynFieldName>
<fDynPageIndex>13</fDynPageIndex>
<fEntryId>4</fEntryId>
<fEntryPosition>33</fEntryPosition>
<fFieldName>sample string 5</fFieldName>
<fFont>sample string 22</fFont>
<fFontBold>true</fFontBold>
<fFontColor>sample string 31</fFontColor>
<fFontRotate>46</fFontRotate>
<fFontSize>21</fFontSize>
<fFourLine>sample string 27</fFourLine>
<fFourLineColor>sample string 29</fFourLineColor>
<fFourLineSize>sample string 28</fFourLineSize>
<fFourLineType>sample string 30</fFourLineType>
<fHeight>19</fHeight>
<fHeightT>20</fHeightT>
<fHorizontalAlign>25</fHorizontalAlign>
<fId>10</fId>
<fImageUrl>sample string 7</fImageUrl>
<fImgHeight>47</fImgHeight>
<fImgWidth>48</fImgWidth>
<fInterId>9</fInterId>
<fIsActiveText>true</fIsActiveText>
<fIsBillRptFooter>true</fIsBillRptFooter>
<fIsBillRptHeader>true</fIsBillRptHeader>
<fIsEntry>true</fIsEntry>
<fLCnt>37</fLCnt>
<fLeft>17</fLeft>
<fMask>sample string 32</fMask>
<fNewLine>true</fNewLine>
<fPage>8</fPage>
<fPageIndex>12</fPageIndex>
<fPageIndexNum>1</fPageIndexNum>
<fReduceFont>true</fReduceFont>
<fStyle>sample string 41</fStyle>
<fSumType>34</fSumType>
<fTableId>44</fTableId>
<fText>sample string 14</fText>
<fTop>15</fTop>
<fTopConfig>16</fTopConfig>
<fTrimEndZero>true</fTrimEndZero>
<fVerticalAlign>26</fVerticalAlign>
<fWidth>18</fWidth>
<fWrap>true</fWrap>
</t_ClassPrintEntry>
</list>
<listCond xmlns:d2p1="http://schemas.datacontract.org/2004/07/DbFrameModel.DbEntity">
<d2p1:t_ClassPrintCondition>
<d2p1:fInterId>1</d2p1:fInterId>
<d2p1:fOpt>sample string 5</d2p1:fOpt>
<d2p1:fPageIndex>2</d2p1:fPageIndex>
<d2p1:fTableId>6</d2p1:fTableId>
<d2p1:fText>sample string 3</d2p1:fText>
<d2p1:fValue>sample string 4</d2p1:fValue>
</d2p1:t_ClassPrintCondition>
<d2p1:t_ClassPrintCondition>
<d2p1:fInterId>1</d2p1:fInterId>
<d2p1:fOpt>sample string 5</d2p1:fOpt>
<d2p1:fPageIndex>2</d2p1:fPageIndex>
<d2p1:fTableId>6</d2p1:fTableId>
<d2p1:fText>sample string 3</d2p1:fText>
<d2p1:fValue>sample string 4</d2p1:fValue>
</d2p1:t_ClassPrintCondition>
</listCond>
<listMatch xmlns:d2p1="http://schemas.datacontract.org/2004/07/DbFrameModel.DbEntity">
<d2p1:t_ClassPrintCondition>
<d2p1:fInterId>1</d2p1:fInterId>
<d2p1:fOpt>sample string 5</d2p1:fOpt>
<d2p1:fPageIndex>2</d2p1:fPageIndex>
<d2p1:fTableId>6</d2p1:fTableId>
<d2p1:fText>sample string 3</d2p1:fText>
<d2p1:fValue>sample string 4</d2p1:fValue>
</d2p1:t_ClassPrintCondition>
<d2p1:t_ClassPrintCondition>
<d2p1:fInterId>1</d2p1:fInterId>
<d2p1:fOpt>sample string 5</d2p1:fOpt>
<d2p1:fPageIndex>2</d2p1:fPageIndex>
<d2p1:fTableId>6</d2p1:fTableId>
<d2p1:fText>sample string 3</d2p1:fText>
<d2p1:fValue>sample string 4</d2p1:fValue>
</d2p1:t_ClassPrintCondition>
</listMatch>
<listPage>
<t_ClassPrintPage>
<fInterId>1</fInterId>
<fPage>2</fPage>
<fRepeatBillHead>true</fRepeatBillHead>
</t_ClassPrintPage>
<t_ClassPrintPage>
<fInterId>1</fInterId>
<fPage>2</fPage>
<fRepeatBillHead>true</fRepeatBillHead>
</t_ClassPrintPage>
</listPage>
<t_ClassPrint>
<fBillTypeId>2</fBillTypeId>
<fFileNameFormat>sample string 17</fFileNameFormat>
<fGenFile>14</fGenFile>
<fGenFileStr>sample string 15</fGenFileStr>
<fInterId>1</fInterId>
<fIsDefault>true</fIsDefault>
<fIsEntryOrOp>true</fIsEntryOrOp>
<fName>sample string 3</fName>
<fPageIndex>11</fPageIndex>
<fPaperHeight>7</fPaperHeight>
<fPaperSize>8</fPaperSize>
<fPaperWidth>6</fPaperWidth>
<fPrinterPaper>sample string 13</fPrinterPaper>
<fProcedure>sample string 5</fProcedure>
<fRepeatBillHead>true</fRepeatBillHead>
<fRotation>12</fRotation>
<fVersion>sample string 16</fVersion>
</t_ClassPrint>
</PrintModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SavePrintFormModel| Name | Description | Type | Additional information |
|---|---|---|---|
| error | integer |
None. |
|
| Msg | string |
None. |
|
| fInterId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"fInterId": 1,
"error": 1,
"Msg": "sample string 2"
}
application/xml, text/xml
Sample:
<SavePrintFormModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLL.Visual"> <Msg>sample string 2</Msg> <error>1</error> <fInterId>1</fInterId> </SavePrintFormModel>