From 1243f9cdb1ce367af05caabbb71ce81e38d5a1af Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 16 四月 2025 16:16:43 +0800
Subject: [PATCH] 增加一种报名类型
---
zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml | 462 +++++++++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 382 insertions(+), 80 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml
index 97e58a6..cf96b0c 100644
--- a/zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml
@@ -14,6 +14,26 @@
List<TChallengeItemDTO> challengeItemDTOs = Model.challengeItemDTOs;
int PrintNum = Model.PrintNum.HasValue? Model.PrintNum.Value:0;
+
+ List<TChallengeRequestInfoDTO> challengeRequestInfoDTOs = Model.challengeRequestInfoDTOs;
+
+
+ ResultDataEntity<SysAttachmentDTO> yinyezhizhao = ViewBag.yinyezhizhao as ResultDataEntity<SysAttachmentDTO>; //钀ヤ笟鎵х収
+ List<SysAttachmentDTO> yinyezhizhaosssss = new List<SysAttachmentDTO>();
+ if (yinyezhizhao.DataList != null)
+ {
+ yinyezhizhaosssss = yinyezhizhao.DataList;
+ }
+
+ ResultDataEntity<SysAttachmentDTO> shenfenzheng = ViewBag.shenfenzheng as ResultDataEntity<SysAttachmentDTO>; //娉曚汉韬唤璇�
+ List<SysAttachmentDTO> shenfenzhengsssss = new List<SysAttachmentDTO>();
+ if (shenfenzheng.DataList != null)
+ {
+ shenfenzhengsssss = shenfenzheng.DataList;
+ }
+
+ CooperatecustomCustomerDTO cooperatecustomCustomerDTO = ViewBag.cooperatecustomCustomerDTO as CooperatecustomCustomerDTO; //瀹㈡埛
+
}
@{
Layout = null;
@@ -34,7 +54,7 @@
@*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@
<link href="~/css/style.min.css" rel="stylesheet">
<link href="~/css/plugins/chosen/chosen.css" rel="stylesheet">
- @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@
+ <link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">
@*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@
<link href="~/css/style.min.css" rel="stylesheet">
<link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
@@ -65,25 +85,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-y:auto;height:100%;background: #fff;width:850px; margin: 0 auto;">
+ <div id="content" style="overflow-x: hidden; overflow-y: auto; height: 100%; background: #fff; width: 850px; margin: 0 auto;">
<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;*/
}
@@ -99,7 +119,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>
@@ -108,12 +128,12 @@
<td colspan="2" align="left">璐ㄧ枒渚涘簲鍟嗭細<span style="width:460px;">@Model.GysName</span></td>
</tr>
<tr>
- <td width="60%" align="left">鍦板潃锛�<span style="width:290px;">@Model.GysAddress</span></td>
- <td width="40%" align="left">@(string.IsNullOrEmpty(Model.GysPostcode)?"":"閭紪锛�" )<span style="width:160px;">@Model.GysPostcode</span></td>
+ <td colspan="2" align="left">鍦板潃锛�<span style="width:290px;">@Model.GysAddress</span> @(string.IsNullOrEmpty(Model.GysPostcode)?"":"閭紪锛�" )<span style="width:160px;">@Model.GysPostcode</span></td>
+
</tr>
<tr>
- <td align="left">鑱旂郴浜猴細<span style="width:265px;">@Model.GysContacts </span></td>
- <td align="left">鑱旂郴鐢佃瘽锛�<span style="width:120px;">@Model.GysPhone </span></td>
+ <td align="left" width="50%">鑱旂郴浜猴細<span style="width:265px;">@Model.GysContacts </span></td>
+ <td align="left" width="50%">鑱旂郴鐢佃瘽锛�<span style="width:120px;">@Model.GysPhone </span></td>
</tr>
@for (int i = 0; i < challengecomplaintShouquandaibiaoDTOs.Count; i++)
{
@@ -125,8 +145,7 @@
<td colspan="2" align="left">鑱旂郴鐢佃瘽@(i!=0?(i+""):"")锛�<span style="width:480px;">@challengecomplaintShouquandaibiaoDTOs[i].Lianxidianhua </span></td>
</tr>
<tr>
- <td align="left">鍦板潃@(i!=0?(i+""):"")锛�<span style="width:290px;">@challengecomplaintShouquandaibiaoDTOs[i].Dizhi </span></td>
- <td align="left">@(string.IsNullOrEmpty(challengecomplaintShouquandaibiaoDTOs[i].Youbian)?"":"閭紪")@(i!=0?(i+""):"")锛�<span style="width:160px;">@challengecomplaintShouquandaibiaoDTOs[i].Youbian </span></td>
+ <td align="left" colspan="2">鍦板潃@(i!=0?(i+""):"")锛�<span style="width:290px;">@challengecomplaintShouquandaibiaoDTOs[i].Dizhi </span> @(string.IsNullOrEmpty(challengecomplaintShouquandaibiaoDTOs[i].Youbian)?"":"閭紪")@(i!=0?(i+""):"")锛�<span style="width:160px;">@challengecomplaintShouquandaibiaoDTOs[i].Youbian </span></td>
</tr>
}
<tr>
@@ -136,8 +155,7 @@
<td colspan="2" align="left">璐ㄧ枒椤圭洰鐨勫悕绉帮細<span style="width:415px;">@Model.XmName </span></td>
</tr>
<tr>
- <td align="left">璐ㄧ枒椤圭洰鐨勭紪鍙凤細<span style="width:180px;">@Model.XmCode </span></td>
- <td align="left">鍖呭彿锛�<span style="width:160px;">@Model.XmPackage </span></td>
+ <td colspan="2" align="left">璐ㄧ枒椤圭洰鐨勭紪鍙凤細<span style="width:180px;">@Model.XmCode </span> 鍖呭彿锛�<span style="width:160px;">@Model.XmPackage </span></td>
</tr>
<tr>
<td colspan="2" align="left">閲囪喘浜哄悕绉帮細<span style="width:460px;">@Model.PurchaserName </span></td>
@@ -157,37 +175,48 @@
{
<tr>
<td colspan="2">
- 璐ㄧ枒浜嬮」锛�<span style="text-indent:10px">@challengeItemDTOs[i].QuestionName </span>
+ 璐ㄧ枒浜嬮」锛�<span style="text-indent:10px">@(string.IsNullOrEmpty(challengeItemDTOs[i].Questionname)?challengeItemDTOs[i].QuestionName: challengeItemDTOs[i].Questionname) </span>
</td>
</tr>
<tr>
<td colspan="2">
- 浜嬪疄渚濇嵁锛欯Html.Raw("<span>" + (string.IsNullOrEmpty(challengeItemDTOs[i].Evidential) ? "" : challengeItemDTOs[i].Evidential.Replace(" ", " ").Replace("\r", "<br/>")) + "</span>");
+ 浜嬪疄渚濇嵁锛欯Html.Raw("<span>" + (string.IsNullOrEmpty(challengeItemDTOs[i].Evidential) ? "" : challengeItemDTOs[i].Evidential.Replace(" ", " ").Replace("\r", "<br/>")) + "</span>")
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ 娉曞緥渚濇嵁锛�
+ @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
+ {
+ var sssss = "";
+ if (j == 0 || challengeItemDTOs[i].sysCodeDtls[j].Classify3 != challengeItemDTOs[i].sysCodeDtls[j - 1].Classify3)
+ {
+ if (challengeItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("銆�") >= 0)
+ {
+ sssss = "銆�" + challengeItemDTOs[i].sysCodeDtls[j].Classify3.Insert(challengeItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("銆�"), "銆�");
+ }
+ else
+ {
+ sssss = "銆�" + challengeItemDTOs[i].sysCodeDtls[j].Classify3 + "銆�";
+ }
+ }
+
+
+ if (j != (challengeItemDTOs[i].sysCodeDtls.Count - 1))
+ {
+ @Html.Raw(sssss + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + "銆�")
+ }
+ else
+ {
+ @Html.Raw(sssss + challengeItemDTOs[i].sysCodeDtls[j].Classify2)
+ }
+
+ }
+
</td>
</tr>
- @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
- {
- if (challengeItemDTOs[i].sysCodeDtls.Count == 1)
- {
- <tr>
- <td colspan="2">
- @Html.Raw("娉曞緥渚濇嵁锛�<span>銆�" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "銆�" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + "锛�" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
- </td>
- </tr>
- }
- else
- {
- <tr>
- <td colspan="2">
- @Html.Raw("娉曞緥渚濇嵁" + (j + 1) + "锛�<span>銆�" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "銆�" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + "锛�" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
- </td>
- </tr>
- }
-
-
- }
@@ -196,38 +225,46 @@
{
<tr>
<td colspan="2">
- 璐ㄧ枒浜嬮」@((i + 1) + "")锛�<span style="text-indent:10px">@challengeItemDTOs[i].QuestionName </span>
+ 璐ㄧ枒浜嬮」@((i + 1) + "")锛�<span style="text-indent:10px">@(string.IsNullOrEmpty(challengeItemDTOs[i].Questionname)?challengeItemDTOs[i].QuestionName: challengeItemDTOs[i].Questionname) </span>
</td>
</tr>
<tr>
<td colspan="2">
- 浜嬪疄渚濇嵁@((i + 1) + "")锛� @Html.Raw("<span>" + (string.IsNullOrEmpty(challengeItemDTOs[i].Evidential) ? "" : challengeItemDTOs[i].Evidential.Replace(" ", " ").Replace("\r", "<br/>")) + "</span>");
+ 浜嬪疄渚濇嵁锛� @Html.Raw("<span>" + (string.IsNullOrEmpty(challengeItemDTOs[i].Evidential) ? "" : challengeItemDTOs[i].Evidential.Replace(" ", " ").Replace("\r", "<br/>")) + "</span>")
</td>
</tr>
- @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
- {
+ <tr>
+ <td colspan="2">
+ 娉曞緥渚濇嵁锛�
+ @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
+ {
+ var sssss = "";
+ if (j == 0 || challengeItemDTOs[i].sysCodeDtls[j].Classify3 != challengeItemDTOs[i].sysCodeDtls[j - 1].Classify3)
+ {
+ if (challengeItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("銆�") >= 0)
+ {
+ sssss = "銆�" + challengeItemDTOs[i].sysCodeDtls[j].Classify3.Insert(challengeItemDTOs[i].sysCodeDtls[j].Classify3.IndexOf("銆�"), "銆�");
+ }
+ else
+ {
+ sssss = "銆�" + challengeItemDTOs[i].sysCodeDtls[j].Classify3 + "銆�";
+ }
+ }
+ if (j != (challengeItemDTOs[i].sysCodeDtls.Count - 1))
+ {
+ @Html.Raw(sssss + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + "銆�")
+ }
+ else
+ {
+ @Html.Raw(sssss + challengeItemDTOs[i].sysCodeDtls[j].Classify2)
+ }
- if (challengeItemDTOs[i].sysCodeDtls.Count == 1)
- {
- <tr>
- <td colspan="2">
- @Html.Raw("娉曞緥渚濇嵁锛�<span>銆�" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "銆�" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + "锛�" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
+ }
- </td>
- </tr>
- }
- else
- {
- <tr>
- <td colspan="2">
- @Html.Raw("娉曞緥渚濇嵁" + (j + 1) + "锛�<span>銆�" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "銆�" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + "锛�" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
- </td>
- </tr>
-
- }
- }
+ </td>
+ </tr>
}
@@ -237,18 +274,52 @@
<tr>
<td colspan="2"><b>鍥涖�佷笌璐ㄧ枒浜嬮」鐩稿叧鐨勮川鐤戣姹�</b></td>
</tr>
- <tr>
- <td colspan="2" align="left">璇锋眰锛�<span>@Model.RequestInfoName</span></td>
- </tr>
- <tr>
- <td colspan="2" style="height:15px"></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>*@
<tr>
<td align="left">绛惧瓧(绛剧珷)锛�</td>
<td align="left">鍏珷锛�</td>
</tr>
<tr>
- <td colspan="2" align="left">鏃ユ湡锛欯DateTime.Now.ToString("yyyy-MM-dd")</td>
+ <td colspan="2" align="left">鏃ユ湡锛欯Model.Modifytime.Value.ToString("yyyy骞碝M鏈坉d鏃�")</td>
</tr>
</table>
</div>
@@ -256,7 +327,105 @@
</div>
- </div>
+
+ <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%; ">
+
+ </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>
+ </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 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>
<div class="wrapper wrapper-content" style="margin-top:0px"></div>
@@ -277,31 +446,164 @@
</form>
<script type="text/javascript">
- var pt = document.getElementById("page1").innerHTML;
+ $('#zhuti').hide();
+ $('#zhuti1').hide();
+ function printWin() {
+
+ var index = layer.open({
+ title: '鎵撳嵃璁剧疆'
+ , btn: ['鎻愪氦', '鍏抽棴']
+ , 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="text" value="@(PrintNum)" oninput="if(value.length>2)value=value.slice(0,2)" >' +
+
+
+ '</div>' +
+ '</div>' +
+ ' <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">' +
+ '<select name="zhutiziliao" id="zhutiziliao" class="form-control">' +
+ '<option value="0">鏄�</option>' +
+ '<option value="1">鍚�</option>' +
+
+ '</select>' +
+ '</div>' +
+ '</div>',
+ yes: function (index, layero) {
+
+
+
+
+
+
+ var pt = document.getElementById("page1").innerHTML;
+
+ var zhutiziliao = $('#zhutiziliao').val();
+ if (zhutiziliao == "0") {
+ $('#content').append(' <div id ="zhutilinshi"> </div >');
+ $('#zhutilinshi').append(document.getElementById("zhuti").innerHTML);
+ }
+ var a = parseInt($('#PrintNums').val());
+
+
+
pt = pt.replace("璐ㄧ枒鍑斤紙姝f湰锛�","璐ㄧ枒鍑斤紙鍓湰锛�");
- var a= @PrintNum;
if (a > 0) {
+ $('#content').append(' <div id ="fuben"> </div >');
for (var i = 0; i < a; i++) {
- $('#content').append(' <div style="page-break-after:always;">' + pt +' </div>');
+ $('#fuben').append(' <div style="page-break-after:always;">' + pt +' </div>');
}
- }
+ }
- function printWin() {
var oWin = window.open("", "_blank");
- var pt = document.getElementById("content").innerHTML;
-
- oWin.document.write(pt);
+ var pta = document.getElementById("content").innerHTML;
+ $('#fuben').remove();
+ $('#zhutilinshi').remove();
+ oWin.document.write(pta);
oWin.focus();
oWin.document.close();
oWin.print();
- oWin.close();
- return false;
+ oWin.close();
+ layer.close(index);
+
+ return false;
+
+ }
+ })
+
+
+
+
+
+
+
+
+
}
function daochuword() {
- $("#content").wordExport("璐ㄧ枒鍑紷(Html.Raw(Model.GysName))"); //fileName涓哄鍑虹殑word鏂囦欢鐨勫懡鍚�,content涓鸿瀵煎嚭鐨刪tml鍐呭瀹瑰櫒
+ var index = layer.open({
+ title: '鎵撳嵃璁剧疆'
+ , btn: ['鎻愪氦', '鍏抽棴']
+ , 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="text" value="0" oninput="if(value.length>2)value=value.slice(0,2)" >' +
+
+
+ '</div>' +
+ '</div>' +
+ ' <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">' +
+ '<select name="zhutiziliao" id="zhutiziliao" class="form-control">' +
+ '<option value="0">鏄�</option>' +
+ '<option value="1">鍚�</option>' +
+
+ '</select>' +
+ '</div>' +
+ '</div>',
+ yes: function (index, layero) {
+
+
+
+
+ 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") {
+
+ $('#zhutilinshi').append($('#zhuti1').html());
+
+ }
+ var a = parseInt($('#PrintNums').val());
+
+ pt = pt.replace("璐ㄧ枒鍑斤紙姝f湰锛�", "璐ㄧ枒鍑斤紙鍓湰锛�");
+ 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 + ' ');
+
+ }
+
+ }
+ // console.log(document.getElementById("zhutilinshi").innerHTML);
+ $("#zhutilinshi").wordExport("璐ㄧ枒鍑紷(Html.Raw(Model.GysName))"); //fileName涓哄鍑虹殑word鏂囦欢鐨勫懡鍚�,content涓鸿瀵煎嚭鐨刪tml鍐呭瀹瑰櫒
+ $('#zhutilinshi').remove();
+ layer.close(index);
+ $('#zhuti1').hide();
+
+ return false;
+
+ }
+ })
+
}
--
Gitblit v1.9.1