|
|
@@ -46,13 +46,13 @@ |
|
|
|
tableHtml = ''; |
|
|
|
|
|
|
|
//数据处理 |
|
|
|
tableHtml += '<table class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-width: initial; border-style: none; border-bottom-color: initial;line-height:30px;">'; |
|
|
|
tableHtml += '<table class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-width: initial; border-style: none; border-bottom-color: initial;line-height:30px;margin:50px;">'; |
|
|
|
tableHtml += ' <tbody>'; |
|
|
|
tableHtml += ' <tr>'; |
|
|
|
tableHtml += ' <td colspan="4" valign="top" style="width:484.2pt;border:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += ' <p class="MsoNormal" align="center" style="text-align:center">'; |
|
|
|
tableHtml += ' <b>'; |
|
|
|
tableHtml += ' <span style="font-size:14.0pt;font-family:宋体;mso-bidi-font-family:宋体">' + title + '</span>'; |
|
|
|
tableHtml += ' <span style="font-size:14.0pt;font-family:宋体;mso-bidi-font-family:宋体">' + (title ? title:"")+ '</span>'; |
|
|
|
tableHtml += ' </b>'; |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
@@ -65,7 +65,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += data.OrderNumber; |
|
|
|
tableHtml += (data.OrderNumber ? data.OrderNumber : ""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += ' <p class="MsoNormal" align="center" style="text-align:center">'; |
|
|
@@ -74,7 +74,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += data.CreateTime; |
|
|
|
tableHtml += (data.CreateTime ? data.CreateTime:""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' </tr>'; |
|
|
|
tableHtml += ' <tr>'; |
|
|
@@ -85,7 +85,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += data.CreatorName; |
|
|
|
tableHtml += (data.CreatorName ? data.CreateTime:""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += ' <p class="MsoNormal" align="center" style="text-align:center">'; |
|
|
@@ -94,7 +94,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += data.StuNo; |
|
|
|
tableHtml += (data.StuNo ? data.StuNo:""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' </tr>'; |
|
|
|
tableHtml += ' <tr>'; |
|
|
@@ -105,7 +105,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += data.DeptNo; |
|
|
|
tableHtml += (data.DeptNo ? data.DeptNo:""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += ' <p class="MsoNormal" align="center" style="text-align:center">'; |
|
|
@@ -114,7 +114,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += data.MajorNo; |
|
|
|
tableHtml += (data.MajorNo ? data.MajorNo:""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' </tr>'; |
|
|
|
tableHtml += ' <tr>'; |
|
|
@@ -125,7 +125,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += data.TeachClassNo; |
|
|
|
tableHtml += (data.TeachClassNo ? data.TeachClassNo:""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += ' <p class="MsoNormal" align="center" style="text-align:center">'; |
|
|
@@ -134,7 +134,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += data.Contact; |
|
|
|
tableHtml += (data.Contact ? data.Contact:""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' </tr>'; |
|
|
|
tableHtml += ' <tr>'; |
|
|
@@ -145,7 +145,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td colspan="3" valign="top" style="width:363.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += data.Address; |
|
|
|
tableHtml += (data.Address ? data.Address:""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' </tr>'; |
|
|
|
tableHtml += ' <tr>'; |
|
|
@@ -156,7 +156,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td colspan="3" valign="top" style="width:363.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += data.ServiceType; |
|
|
|
tableHtml += (data.ServiceType ? data.ServiceType:""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' </tr>'; |
|
|
|
tableHtml += ' <tr style="mso-yfti-irow:6;height:96.6pt">'; |
|
|
@@ -167,7 +167,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td colspan="3" valign="top" style="width:363.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt;height:96.6pt">'; |
|
|
|
tableHtml += data.Remark; |
|
|
|
tableHtml += (data.Remark ? data.Remark:""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' </tr>'; |
|
|
|
tableHtml += ' <tr style="mso-yfti-irow:7;height:92.5pt">'; |
|
|
@@ -178,7 +178,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td colspan="3" valign="top" style="width:363.15pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt;height:92.5pt">'; |
|
|
|
tableHtml += data.LeaveMsg; |
|
|
|
tableHtml += (data.LeaveMsg ? data.LeaveMsg:""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' </tr>'; |
|
|
|
tableHtml += ' <tr>'; |
|
|
@@ -231,6 +231,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += (data.IsPay == 1 ? "是" : "否"); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += ' <p class="MsoNormal">'; |
|
|
@@ -239,6 +240,7 @@ |
|
|
|
tableHtml += ' </p>'; |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' <td valign="top" style="border-top:none;border-left: none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0cm 5.4pt 0cm 5.4pt">'; |
|
|
|
tableHtml += (data.Amount ? data.Amount : ""); |
|
|
|
tableHtml += ' </td>'; |
|
|
|
tableHtml += ' </tr>'; |
|
|
|
tableHtml += ' <tr style="mso-yfti-irow:13;mso-yfti-lastrow:yes;height:67.0pt">'; |
|
|
@@ -270,7 +272,7 @@ |
|
|
|
LODOP.SET_PRINT_MODE("PRINT_DUPLEX", 2); |
|
|
|
LODOP.SET_PRINT_MODE("PRINT_DEFAULTSOURCE", 7); |
|
|
|
|
|
|
|
LODOP.ADD_PRINT_HTM(0, 0, '100%', '100%', strFormHtml); |
|
|
|
LODOP.ADD_PRINT_HTM("25mm", 0, '100%', '100%', strFormHtml); |
|
|
|
LODOP.SET_PRINT_STYLEA(0, "AngleOfPageInside", 270); |
|
|
|
if (flag == "preview") { |
|
|
|
//打印预览 |
|
|
|