From 7b52260c2a83d23adb5447a9e9848d90b4dc018c Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 20 六月 2025 08:49:09 +0800
Subject: [PATCH] 爬虫 处理处罚
---
zhengcaioa/zhengcaioa/Views/CooperOrder/Printtousushu.cshtml | 455 +++++++++++++++++++++++++++++++++-----------------------
1 files changed, 264 insertions(+), 191 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/Printtousushu.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/Printtousushu.cshtml
index 69fdc16..4c59e6f 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/Printtousushu.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/Printtousushu.cshtml
@@ -15,12 +15,15 @@
List<TComplaintGongyingshangDTO> complaintGongyingshangDTOs = Model.complaintGongyingshangDTOs;
+
+ List<TChallengeRequestInfoDTO> challengeRequestInfoDTOs = Model.challengeRequestInfoDTOs;
+
List<TComplaintItemDTO> complaintItemDTOs = Model.complaintItemDTOs;
int PrintNum = Model.PrintNum.HasValue ? Model.PrintNum.Value : 0;
- ResultDataEntity<SysAttachmentDTO> yinyezhizhao = ViewBag.yinyezhizhao as ResultDataEntity<SysAttachmentDTO>; //钀ヤ笟鎵х収
+ ResultDataEntity<SysAttachmentDTO> yinyezhizhao = ViewBag.yinyezhizhao as ResultDataEntity<SysAttachmentDTO>; //钀ヤ笟鎵х収
List<SysAttachmentDTO> yinyezhizhaosssss = new List<SysAttachmentDTO>();
if (yinyezhizhao.DataList != null)
{
@@ -34,7 +37,7 @@
shenfenzhengsssss = shenfenzheng.DataList;
}
- CooperatecustomCustomerDTO cooperatecustomCustomerDTO = ViewBag.cooperatecustomCustomerDTO as CooperatecustomCustomerDTO; //瀹㈡埛
+ CooperatecustomCustomerDTO cooperatecustomCustomerDTO = ViewBag.cooperatecustomCustomerDTO as CooperatecustomCustomerDTO; //瀹㈡埛
}
@{
@@ -87,25 +90,25 @@
@*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@
@*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@
<script src="~/js/TUJS.js"></script>
- <script language="javascript" src="~/js/fileSaver.js" type="text/javascript"></script>
- <script language="javascript" src="~/js/jquery.wordexport.js" type="text/javascript"></script>
+ <script language="javascript" src="~/js/fileSaver.js?v=2" type="text/javascript"></script>
+ <script language="javascript" src="~/js/jquery.wordexport.js?v=2" type="text/javascript"></script>
</head>
<body class="gray-bg" style="overflow:auto">
<form id="formtest">
<div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
<div class="row">
<div id="content" style="overflow-x:hidden; overflow-y:auto;height:100%;background: #fff;width:850px; margin: 0 auto;">
- <style type="text/css">
+ <style type="text/css" >
table {
width: 595px;
- font-size: 16pt;
+ font-size: 14pt;
font-family: 'FangSong';
background: #fff;
- line-height: 1.5;
+ line-height: 150%;
}
span {
- font-size: 16pt;
+ font-size: 14pt;
display: inline;
/* border-bottom: 1px dashed #111;*/
}
@@ -121,7 +124,7 @@
<div id="page1" style="page-break-after:always;">
<table border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
- <td colspan="2" style="font-size:29.3px;text-align:center">鎶曡瘔涔︼紙姝f湰锛�</td>
+ <td colspan="2" style="font-size:21px; text-align: center "><b>鎶曡瘔涔︼紙姝f湰锛�</b></td>
</tr>
<tr>
<td colspan="2"><b>涓�銆佹姇璇夌浉鍏充富浣撳熀鏈俊鎭�</b></td>
@@ -144,43 +147,43 @@
@for (int i = 0; i < complaintShouquandaibiaoDTOs.Count; i++)
{
- <tr>
- <td colspan="2" align="left">鎺堟潈浠h〃@(i!=0?(i+""):"")锛�<span style="width:480px;">@complaintShouquandaibiaoDTOs[i].Shouquandaibiao </span></td>
- </tr>
- <tr>
- <td colspan="2" align="left">鑱旂郴鐢佃瘽@(i!=0?(i+""):"")锛�<span style="width:480px;">@complaintShouquandaibiaoDTOs[i].Lianxidianhua </span></td>
- </tr>
- <tr>
- <td colspan="2" align="left">鍦板潃@(i!=0?(i+""):"")锛�<span style="width:290px;">@complaintShouquandaibiaoDTOs[i].Dizhi </span> @(string.IsNullOrEmpty(complaintShouquandaibiaoDTOs[i].Youbian)?"":"閭紪锛�")@(i!=0?(i+""):"")<span style="width:160px;">@complaintShouquandaibiaoDTOs[i].Youbian </span></td>
- </tr>
+ <tr>
+ <td colspan="2" align="left">鎺堟潈浠h〃@(i!=0?(i+""):"")锛�<span style="width:480px;">@complaintShouquandaibiaoDTOs[i].Shouquandaibiao </span></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="left">鑱旂郴鐢佃瘽@(i!=0?(i+""):"")锛�<span style="width:480px;">@complaintShouquandaibiaoDTOs[i].Lianxidianhua </span></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="left">鍦板潃@(i!=0?(i+""):"")锛�<span style="width:290px;">@complaintShouquandaibiaoDTOs[i].Dizhi </span> @(string.IsNullOrEmpty(complaintShouquandaibiaoDTOs[i].Youbian)?"":"閭紪锛�")@(i!=0?(i+""):"")<span style="width:160px;">@complaintShouquandaibiaoDTOs[i].Youbian </span></td>
+ </tr>
}
@for (int i = 0; i < complaintRespondentDTOs.Count; i++)
{
if (complaintRespondentDTOs.Count == 1)
{
- <tr>
- <td colspan="2" align="left">琚姇璇変汉锛�<span style="width:480px;">@complaintRespondentDTOs[i].Respondent </span></td>
- </tr>
- <tr>
- <td colspan="2" align="left">鍦板潃锛�<span style="width:290px;">@complaintRespondentDTOs[i].Address </span> @(string.IsNullOrEmpty(complaintRespondentDTOs[i].Postcode)?"":"閭紪锛�")<span style="width:160px;">@complaintRespondentDTOs[i].Postcode </span></td>
- </tr>
- <tr>
- <td align="left" width="50%">鑱旂郴浜猴細<span style="width:290px;">@complaintRespondentDTOs[i].Contacts </span></td>
- <td align="left" width="50%">鑱旂郴鐢佃瘽锛�<span style="width:160px;">@complaintRespondentDTOs[i].Phone </span></td>
- </tr>
+ <tr>
+ <td colspan="2" align="left">琚姇璇変汉锛�<span style="width:480px;">@complaintRespondentDTOs[i].Respondent </span></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="left">鍦板潃锛�<span style="width:290px;">@complaintRespondentDTOs[i].Address </span> @(string.IsNullOrEmpty(complaintRespondentDTOs[i].Postcode)?"":"閭紪锛�")<span style="width:160px;">@complaintRespondentDTOs[i].Postcode </span></td>
+ </tr>
+ <tr>
+ <td align="left" width="50%">鑱旂郴浜猴細<span style="width:290px;">@complaintRespondentDTOs[i].Contacts </span></td>
+ <td align="left" width="50%">鑱旂郴鐢佃瘽锛�<span style="width:160px;">@complaintRespondentDTOs[i].Phone </span></td>
+ </tr>
}
else
{
- <tr>
- <td colspan="2" align="left">琚姇璇変汉@(i+1)锛�<span style="width:480px;">@complaintRespondentDTOs[i].Respondent </span></td>
- </tr>
- <tr>
- <td colspan="2" align="left">鍦板潃@(i+1)锛�<span style="width:290px;">@complaintRespondentDTOs[i].Address </span> @(string.IsNullOrEmpty(complaintRespondentDTOs[i].Postcode)?"":"閭紪锛�")@(i+1)锛�<span style="width:160px;">@complaintRespondentDTOs[i].Postcode </span></td>
- </tr>
- <tr>
- <td align="left" width="50%">鑱旂郴浜篅(i+1)锛�<span style="width:290px;">@complaintRespondentDTOs[i].Contacts </span></td>
- <td align="left" width="50%">鑱旂郴鐢佃瘽@(i+1)锛�<span style="width:160px;">@complaintRespondentDTOs[i].Phone </span></td>
- </tr>
+ <tr>
+ <td colspan="2" align="left">琚姇璇変汉@(i+1)锛�<span style="width:480px;">@complaintRespondentDTOs[i].Respondent </span></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="left">鍦板潃@(i+1)锛�<span style="width:290px;">@complaintRespondentDTOs[i].Address </span> @(string.IsNullOrEmpty(complaintRespondentDTOs[i].Postcode)?"":"閭紪锛�")@(i+1)锛�<span style="width:160px;">@complaintRespondentDTOs[i].Postcode </span></td>
+ </tr>
+ <tr>
+ <td align="left" width="50%">鑱旂郴浜篅(i+1)锛�<span style="width:290px;">@complaintRespondentDTOs[i].Contacts </span></td>
+ <td align="left" width="50%">鑱旂郴鐢佃瘽@(i+1)锛�<span style="width:160px;">@complaintRespondentDTOs[i].Phone </span></td>
+ </tr>
}
@@ -189,29 +192,29 @@
{
if (complaintGongyingshangDTOs.Count == 1)
{
- <tr>
- <td colspan="2" align="left">鐩稿叧渚涘簲鍟嗭細<span style="width:480px;">@complaintGongyingshangDTOs[i].Gongytingshang </span></td>
- </tr>
- <tr>
- <td colspan="2" align="left">鍦板潃锛�<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span> @(string.IsNullOrEmpty(complaintGongyingshangDTOs[i].Youbian)?"":"閭紪锛�")<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
- </tr>
- <tr>
- <td align="left" width="50%">鑱旂郴浜猴細<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span></td>
- <td align="left" width="50%">鑱旂郴鐢佃瘽锛�<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
- </tr>
+ <tr>
+ <td colspan="2" align="left">鐩稿叧渚涘簲鍟嗭細<span style="width:480px;">@complaintGongyingshangDTOs[i].Gongytingshang </span></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="left">鍦板潃锛�<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span> @(string.IsNullOrEmpty(complaintGongyingshangDTOs[i].Youbian)?"":"閭紪锛�")<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
+ </tr>
+ <tr>
+ <td align="left" width="50%">鑱旂郴浜猴細<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span></td>
+ <td align="left" width="50%">鑱旂郴鐢佃瘽锛�<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
+ </tr>
}
else
{
- <tr>
- <td colspan="2" align="left">鐩稿叧渚涘簲鍟咢(i+1)锛�<span style="width:480px;">@complaintGongyingshangDTOs[i].Gongytingshang </span></td>
- </tr>
- <tr>
- <td colspan="2" align="left">鍦板潃@(i+1)锛�<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span> @(string.IsNullOrEmpty(complaintGongyingshangDTOs[i].Youbian)?"":"閭紪锛�")@(i+1)锛�<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
- </tr>
- <tr>
- <td align="left" width="50%">鑱旂郴浜篅(i+1)锛�<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span></td>
- <td align="left" width="50%">鑱旂郴鐢佃瘽@(i+1)锛�<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
- </tr>
+ <tr>
+ <td colspan="2" align="left">鐩稿叧渚涘簲鍟咢(i+1)锛�<span style="width:480px;">@complaintGongyingshangDTOs[i].Gongytingshang </span></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="left">鍦板潃@(i+1)锛�<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span> @(string.IsNullOrEmpty(complaintGongyingshangDTOs[i].Youbian)?"":"閭紪锛�")@(i+1)锛�<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
+ </tr>
+ <tr>
+ <td align="left" width="50%">鑱旂郴浜篅(i+1)锛�<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span></td>
+ <td align="left" width="50%">鑱旂郴鐢佃瘽@(i+1)锛�<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
+ </tr>
}
@@ -247,11 +250,11 @@
鎶曡瘔浜轰簬<span>@(Model.ChallengeDateName)</span>锛屽悜<span>@(Model.Questioned)</span>鎻愬嚭璐ㄧ枒锛岃川鐤戜簨椤逛负锛�
@if (string.IsNullOrEmpty(Model.SqdbId))
{
- @Html.Raw("<span>銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�</span>");
+ @Html.Raw("<span>銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�銆�</span>")
}
else
{
- @Html.Raw("<span>" + @Model.SqdbId + "</span>");
+ @Html.Raw("<span>" + @Model.SqdbId + "</span>")
}
@@ -274,92 +277,94 @@
{
if (complaintItemDTOs.Count == 1)
{
- <tr>
- <td colspan="2">
- 鎶曡瘔浜嬮」锛�<span style="text-indent:10px">@complaintItemDTOs[i].QuestionName </span>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- 浜嬪疄渚濇嵁锛� @Html.Raw("<span>" + (string.IsNullOrEmpty(complaintItemDTOs[i].Evidential) ? "" : complaintItemDTOs[i].Evidential.Replace(" ", " ").Replace("\r", "<br/>")) + "</span>")
- </td>
- </tr>
+ <tr>
+ <td colspan="2">
+ 鎶曡瘔浜嬮」锛�<span style="text-indent:10px">@(string.IsNullOrEmpty(complaintItemDTOs[i].Questionname)? complaintItemDTOs[i].QuestionName: complaintItemDTOs[i].Questionname) </span>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ 浜嬪疄渚濇嵁锛� @Html.Raw("<span>" + (string.IsNullOrEmpty(complaintItemDTOs[i].Evidential) ? "" : complaintItemDTOs[i].Evidential.Replace(" ", " ").Replace("\r", "<br/>")) + "</span>")
+ </td>
+ </tr>
- <tr>
- <td colspan="2">
- 娉曞緥渚濇嵁锛�
- @for (int j = 0; j < complaintItemDTOs[i].sysCodeDtls.Count; j++)
+ <tr>
+ <td colspan="2">
+ 娉曞緥渚濇嵁锛�
+ @for (int j = 0; j < complaintItemDTOs[i].sysCodeDtls.Count; j++)
{
var sssss = "";
- if(j == 0 || complaintItemDTOs[i].sysCodeDtls[j].Classify3 != complaintItemDTOs[i].sysCodeDtls[j-1].Classify3){
- if (complaintItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("銆�")>=0)
+ if (j == 0 || complaintItemDTOs[i].sysCodeDtls[j].Classify3 != complaintItemDTOs[i].sysCodeDtls[j - 1].Classify3)
{
- sssss = "銆�" + complaintItemDTOs[i].sysCodeDtls[j].Classify3.Insert(complaintItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("銆�"), "銆�");
+ if (complaintItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("銆�") >= 0)
+ {
+ sssss = "銆�" + complaintItemDTOs[i].sysCodeDtls[j].Classify3.Insert(complaintItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("銆�"), "銆�");
+ }
+ else
+ {
+ sssss = "銆�" + complaintItemDTOs[i].sysCodeDtls[j].Classify3 + "銆�";
+ }
}
- else
- {
- sssss = "銆�" + complaintItemDTOs[i].sysCodeDtls[j].Classify3 + "銆�";
- }
- }
-
+
if (j != (complaintItemDTOs[i].sysCodeDtls.Count - 1))
{
- @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2 + "銆�")
+ @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2 + "銆�")
}
else
{
- @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2)
+ @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2)
}
}
- </td>
- </tr>
+ </td>
+ </tr>
}
else
{
- <tr>
- <td colspan="2">
- 鎶曡瘔浜嬮」@((i+1)+"")锛�<span style="text-indent:10px">@complaintItemDTOs[i].QuestionName </span>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- 浜嬪疄渚濇嵁@((i+1)+"")锛欯Html.Raw("<span>" + (string.IsNullOrEmpty(complaintItemDTOs[i].Evidential) ? "" : complaintItemDTOs[i].Evidential.Replace(" ", " ").Replace("\r", "<br/>")) + "</span>")
- </td>
- </tr>
- <tr>
- <td colspan="2">
- 娉曞緥渚濇嵁锛�
- @for (int j = 0; j < complaintItemDTOs[i].sysCodeDtls.Count; j++)
+ <tr>
+ <td colspan="2">
+ 鎶曡瘔浜嬮」@((i+1)+"")锛�<span style="text-indent:10px">@(string.IsNullOrEmpty(complaintItemDTOs[i].Questionname)? complaintItemDTOs[i].QuestionName: complaintItemDTOs[i].Questionname) </span>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ 浜嬪疄渚濇嵁锛欯Html.Raw("<span>" + (string.IsNullOrEmpty(complaintItemDTOs[i].Evidential) ? "" : complaintItemDTOs[i].Evidential.Replace(" ", " ").Replace("\r", "<br/>")) + "</span>")
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ 娉曞緥渚濇嵁锛�
+ @for (int j = 0; j < complaintItemDTOs[i].sysCodeDtls.Count; j++)
{
var sssss = "";
- if(j == 0 || complaintItemDTOs[i].sysCodeDtls[j].Classify3 != complaintItemDTOs[i].sysCodeDtls[j-1].Classify3){
- if (complaintItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("銆�")>=0)
+ if (j == 0 || complaintItemDTOs[i].sysCodeDtls[j].Classify3 != complaintItemDTOs[i].sysCodeDtls[j - 1].Classify3)
{
- sssss = "銆�" + complaintItemDTOs[i].sysCodeDtls[j].Classify3.Insert(complaintItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("銆�"), "銆�");
+ if (complaintItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("銆�") >= 0)
+ {
+ sssss = "銆�" + complaintItemDTOs[i].sysCodeDtls[j].Classify3.Insert(complaintItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("銆�"), "銆�");
+ }
+ else
+ {
+ sssss = "銆�" + complaintItemDTOs[i].sysCodeDtls[j].Classify3 + "銆�";
+ }
}
- else
- {
- sssss = "銆�" + complaintItemDTOs[i].sysCodeDtls[j].Classify3 + "銆�";
- }
- }
if (j != (complaintItemDTOs[i].sysCodeDtls.Count - 1))
{
- @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2 + "銆�")
+ @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2 + "銆�")
}
else
{
- @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2)
+ @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2)
}
}
- </td>
- </tr>
+ </td>
+ </tr>
}
@@ -368,9 +373,42 @@
<tr>
<td colspan="2"><b>浜斻�佷笌鎶曡瘔浜嬮」鐩稿叧鐨勬姇璇夎姹�</b></td>
</tr>
- <tr>
- <td colspan="2" align="left">璇锋眰锛�<span>@Model.RequestInfoName</span></td>
- </tr>
+ @{
+ @for (int i = 0; i < challengeRequestInfoDTOs.Count; i++)
+ {
+ if (challengeRequestInfoDTOs.Count == 1)
+ {
+ <tr>
+ <td colspan="2">
+ 璇锋眰锛�<span style="text-indent:10px">@(string.IsNullOrEmpty(challengeRequestInfoDTOs[i].RequestInfoname)? challengeRequestInfoDTOs[i].RequestInfoNameName: challengeRequestInfoDTOs[i].RequestInfoname) </span>
+ </td>
+ </tr>
+
+
+
+
+
+
+ }
+ else
+ {
+ <tr>
+ <td colspan="2">
+ 璇锋眰@((i + 1) + "")锛�<span style="text-indent:10px">@(string.IsNullOrEmpty(challengeRequestInfoDTOs[i].RequestInfoname)? challengeRequestInfoDTOs[i].RequestInfoNameName: challengeRequestInfoDTOs[i].RequestInfoname) </span>
+ </td>
+ </tr>
+
+
+
+
+
+ }
+
+ }
+ }
+ @*<tr>
+ <td colspan="2" align="left">璇锋眰锛�<span>@Model.RequestInfoName</span></td>
+ </tr>*@
@*<tr>
<td colspan="2" style="height:15px"></td>
</tr>*@
@@ -390,22 +428,22 @@
<div id="zhuti">
@{
- for (int i = 0; i < yinyezhizhaosssss.Count; i++)
- {
- <div style="page-break-after:always;">
- <img src="@yinyezhizhaosssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
+ for (int i = 0; i < yinyezhizhaosssss.Count; i++)
+ {
+ <div style="page-break-after:always;">
+ <img src="@yinyezhizhaosssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
- </div>
- }
+ </div>
+ }
- for (int i = 0; i < shenfenzhengsssss.Count; i++)
- {
- <div style="page-break-after:always;">
- <img src="@shenfenzhengsssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
+ for (int i = 0; i < shenfenzhengsssss.Count; i++)
+ {
+ <div style="page-break-after:always;">
+ <img src="@shenfenzhengsssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
- </div>
- }
+ </div>
+ }
}
<div style="page-break-after:always;">
@@ -413,55 +451,9 @@
<tr>
<td colspan="2" style="font-size:29.3px;text-align:center">娉曞畾浠h〃浜鸿祫鏍艰瘉鏄庝功</td>
</tr>
+
<tr>
- <td colspan="2">鍏硅瘉鏄� @(cooperatecustomCustomerDTO.FName) 鍦� @(cooperatecustomCustomerDTO.Name) 浠� @(cooperatecustomCustomerDTO.Zhiwu) 鑱屽姟锛屾槸 @(cooperatecustomCustomerDTO.Name) 鐨勬硶瀹氫唬琛ㄤ汉銆�</td>
- </tr>
- <tr>
- <td colspan="2" align="left"> 鐗规璇佹槑銆�</td>
- </tr>
- <tr>
- <td colspan="2" style="height:50px"></td>
- </tr>
- <tr>
- <td colspan="2" align="right">宸濆嵃鏂囧寲闆嗗洟鑲′唤鏈夐檺鍏徃锛堝叕绔狅級<img src="~/img/images/gongzhang.png?v=3" alt="" id="zhutiqiznhang" /></td>
- </tr>
- <tr>
- <td colspan="2" align="right">鏃ユ湡锛欯Model.Modifytime.Value.ToString("yyyy骞碝M鏈坉d鏃�")</td>
- </tr>
- </table>
- </div>
-
-
- </div>
-
-
- <div id="zhuti1">
- @{
- for (int i = 0; i < yinyezhizhaosssss.Count; i++)
- {
- <div style="page-break-after:always;">
- <img src="@yinyezhizhaosssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
-
- </div>
- }
-
-
- for (int i = 0; i < shenfenzhengsssss.Count; i++)
- {
- <div style="page-break-after:always;">
- <img src="@shenfenzhengsssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
-
- </div>
- }
- }
-
- <div style="page-break-after:always;">
- <table border="0" align="center" cellpadding="3" cellspacing="0">
- <tr>
- <td colspan="2" style="font-size:29.3px;text-align:center">娉曞畾浠h〃浜鸿祫鏍艰瘉鏄庝功</td>
- </tr>
- <tr>
- <td colspan="2">鍏硅瘉鏄� @(cooperatecustomCustomerDTO.FName) 鍦� @(cooperatecustomCustomerDTO.Name) 浠� @(cooperatecustomCustomerDTO.Zhiwu) 鑱屽姟锛屾槸 @(cooperatecustomCustomerDTO.Name) 鐨勬硶瀹氫唬琛ㄤ汉銆�</td>
+ <td colspan="2"> 鍏硅瘉鏄� @(cooperatecustomCustomerDTO.FName) 鍦� @(cooperatecustomCustomerDTO.Name) 浠� @(cooperatecustomCustomerDTO.Zhiwu) 鑱屽姟锛屾槸 @(cooperatecustomCustomerDTO.Name) 鐨勬硶瀹氫唬琛ㄤ汉銆�</td>
</tr>
<tr>
<td colspan="2" align="left"> 鐗规璇佹槑銆�</td>
@@ -480,6 +472,60 @@
</div>
+
+
+ <div id="zhuti1">
+ @{
+ for (int i = 0; i < yinyezhizhaosssss.Count; i++)
+ {
+ <br clear=all style="page-break-before:always" mce_style="page-break-before:always">
+
+ <img src="@yinyezhizhaosssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
+
+
+ }
+
+
+ for (int i = 0; i < shenfenzhengsssss.Count; i++)
+ {
+ <br clear=all style="page-break-before:always" mce_style="page-break-before:always">
+
+ <img src="@shenfenzhengsssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
+
+
+ }
+ }
+ <br clear=all style="page-break-before:always" mce_style="page-break-before:always">
+
+ <table border="0" align="center" cellpadding="3" cellspacing="0">
+ <tr>
+ <td colspan="2" style="font-size:29.3px;text-align:center">娉曞畾浠h〃浜鸿祫鏍艰瘉鏄庝功</td>
+ </tr>
+
+ <tr>
+ <td colspan="2"> 鍏硅瘉鏄� @(cooperatecustomCustomerDTO.FName) 鍦� @(cooperatecustomCustomerDTO.Name) 浠� @(cooperatecustomCustomerDTO.Zhiwu) 鑱屽姟锛屾槸 @(cooperatecustomCustomerDTO.Name) 鐨勬硶瀹氫唬琛ㄤ汉銆�</td>
+ </tr>
+ <tr>
+ <td colspan="2" align="left"> 鐗规璇佹槑銆�</td>
+ </tr>
+ <tr>
+ <td colspan="2" style="height:50px"></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="right">宸濆嵃鏂囧寲闆嗗洟鑲′唤鏈夐檺鍏徃锛堝叕绔狅級</td>
+ </tr>
+ <tr>
+ <td colspan="2" align="right">鏃ユ湡锛欯Model.Modifytime.Value.ToString("yyyy骞碝M鏈坉d鏃�")</td>
+ </tr>
+ </table>
+
+
+
+ </div>
+
+
+
+
</div>
</div>
@@ -504,6 +550,7 @@
<script type="text/javascript">
$('#zhuti').hide();
$('#zhuti1').hide();
+
function printWin() {
@@ -513,7 +560,7 @@
, content: ' <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
' <label class="text-right col-sm-6 col-md-6 control-label">鍓湰鏁伴噺</label>' +
' <div class="col-sm-6 col-md-6">' +
- ' <input class="form-control" label="鍓湰鏁伴噺" name="PrintNums" id="PrintNums" labtype="txt" addvisible="true" type="number" value="@(PrintNum)" oninput="if(value.length>2)value=value.slice(0,2)" >' +
+ ' <input class="form-control" label="鍓湰鏁伴噺" name="PrintNums" id="PrintNums" labtype="txt" addvisible="true" type="text" value="@(PrintNum)" oninput="if(value.length>2)value=value.slice(0,2)" >' +
'</div>' +
@@ -589,7 +636,7 @@
, content: ' <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
' <label class="text-right col-sm-6 col-md-6 control-label">鍓湰鏁伴噺</label>' +
' <div class="col-sm-6 col-md-6">' +
- ' <input class="form-control" label="鍓湰鏁伴噺" name="PrintNums" id="PrintNums" labtype="txt" addvisible="true" type="number" value="0" oninput="if(value.length>2)value=value.slice(0,2)" >' +
+ ' <input class="form-control" label="鍓湰鏁伴噺" name="PrintNums" id="PrintNums" labtype="txt" addvisible="true" type="text" value="0" oninput="if(value.length>2)value=value.slice(0,2)" >' +
'</div>' +
@@ -607,31 +654,57 @@
yes: function (index, layero) {
+
-
- var pt = document.getElementById("page1").innerHTML;
+ var pt = $('#page1').html();
var zhutiziliao = $('#zhutiziliao').val();
+ $('#content').append(' <div id ="zhutilinshi"> <style type="text/css" >'+
+ ' table {' +
+ 'width: 595px;' +
+ 'font-size: 14pt;' +
+ ' font-family: "FangSong";' +
+ 'background: #fff;' +
+ ' line-height: 150%;' +
+ ' }' +
+
+ ' span {' +
+ ' font-size: 14pt;' +
+ 'display: inline;' +
+
+ ' }' +
+
+ ' s22pan: after {' +
+ ' content: "";' +
+ ' display: inline;' +
+ ' width: 100%;' +
+ ' margin-top: -5px;' +
+ ' }' +
+ ' </style > </div >');
+
+ $('#zhutilinshi').append($('#page1').html());
if (zhutiziliao == "0") {
- $('#content').append(' <div id ="zhutilinshi"> </div >');
- $('#zhutilinshi').append(document.getElementById("zhuti1").innerHTML);
+
+ $('#zhutilinshi').append($('#zhuti1').html());
}
var a = parseInt($('#PrintNums').val());
pt = pt.replace("鎶曡瘔涔︼紙姝f湰锛�","鎶曡瘔涔︼紙鍓湰锛�");
- if (a > 0) {
- $('#content').append(' <div id ="fuben"> </div >');
- for (var i = 0; i < a; i++) {
- $('#fuben').append(' <div style="page-break-after:always;">' + pt +' </div>');
- }
+ if (a > 0) {
+ for (var i = 0; i < a; i++) {
+ $('#zhutilinshi').append(' <br clear=all style="page-break-before:always" mce_style="page-break-before:always"> ' + pt + ' ');
- }
+ }
- $("#content").wordExport("鎶曡瘔涔(Html.Raw(Model.TsrName))"); //fileName涓哄鍑虹殑word鏂囦欢鐨勫懡鍚�,content涓鸿瀵煎嚭鐨刪tml鍐呭瀹瑰櫒
- $('#fuben').remove();
+ }
+ // console.log(document.getElementById("zhutilinshi").innerHTML);
+
+
+
+ $("#zhutilinshi").wordExport("鎶曡瘔涔(Html.Raw(Model.TsrName))"); //fileName涓哄鍑虹殑word鏂囦欢鐨勫懡鍚�,content涓鸿瀵煎嚭鐨刪tml鍐呭瀹瑰櫒
$('#zhutilinshi').remove();
layer.close(index);
- $('#zhuti').hide();
+ $('#zhuti1').hide();
return false;
--
Gitblit v1.9.1