zhengcaioa/zhengcaioa/Controllers/BusinessOrder/CooperOrderController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zhengcaioa/zhengcaioa/Views/CooperOrder/Printtousushu.cshtml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zhengcaioa/zhengcaioa/wwwroot/js/fileSaver.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zhengcaioa/zhengcaioa/wwwroot/js/jquery.wordexport.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
zhengcaioa/zhengcaioa/Controllers/BusinessOrder/CooperOrderController.cs
@@ -2002,7 +2002,10 @@ ViewBag.law = sysCodeDtls1;//法律依据 if (!challengeletterDTO.PrintNum.HasValue) { challengeletterDTO.PrintNum = 1; } ViewData.Model = challengeletterDTO; @@ -2736,6 +2739,10 @@ ViewBag.ChallengeletterChosen = _cooperOrderService.GetListChallengeletterChosen().Where(x => x.Createtime >= DateTime.Now.AddMonths(-2)).ToList(); ; if (!complaintletterDTO.PrintNum.HasValue) { complaintletterDTO.PrintNum = 1; } ViewData.Model = complaintletterDTO; return View(); } zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml
@@ -85,8 +85,8 @@ @*<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"> @@ -353,8 +353,9 @@ <tr> <td colspan="2" style="font-size:29.3px;text-align:center">法定代表人资格证明书</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> @@ -380,29 +381,32 @@ @{ for (int i = 0; i < yinyezhizhaosssss.Count; i++) { <div style="page-break-after:always;"> <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%; "> </div> } for (int i = 0; i < shenfenzhengsssss.Count; i++) { <div style="page-break-after:always;"> <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%; "> </div> } } <div style="page-break-after:always;"> } } <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">法定代表人资格证明书</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> @@ -417,7 +421,7 @@ <td colspan="2" align="right">日期:@Model.Modifytime.Value.ToString("yyyy年MM月dd日")</td> </tr> </table> </div> </div> @@ -548,29 +552,52 @@ 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("质疑函(正本)","质疑函(副本)"); 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>'); } $('#zhutilinshi').append(' <br clear=all style="page-break-before:always" mce_style="page-break-before:always"> ' + pt + ' '); } $("#content").wordExport("质疑函@(Html.Raw(Model.GysName))"); //fileName为导出的word文件的命名,content为要导出的html内容容器 $('#fuben').remove(); } // console.log(document.getElementById("zhutilinshi").innerHTML); $("#zhutilinshi").wordExport("质疑函@(Html.Raw(Model.GysName))"); //fileName为导出的word文件的命名,content为要导出的html内容容器 $('#zhutilinshi').remove(); layer.close(index); $('#zhuti').hide(); $('#zhuti1').hide(); return false; zhengcaioa/zhengcaioa/Views/CooperOrder/Printtousushu.cshtml
@@ -90,8 +90,8 @@ @*<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"> @@ -451,8 +451,9 @@ <tr> <td colspan="2" style="font-size:29.3px;text-align:center">法定代表人资格证明书</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> @@ -477,29 +478,32 @@ @{ for (int i = 0; i < yinyezhizhaosssss.Count; i++) { <div style="page-break-after:always;"> <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%; "> </div> } for (int i = 0; i < shenfenzhengsssss.Count; i++) { <div style="page-break-after:always;"> <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%; "> </div> } } <div style="page-break-after:always;"> } } <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">法定代表人资格证明书</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> @@ -514,10 +518,14 @@ <td colspan="2" align="right">日期:@Model.Modifytime.Value.ToString("yyyy年MM月dd日")</td> </tr> </table> </div> </div> </div> </div> @@ -542,6 +550,7 @@ <script type="text/javascript"> $('#zhuti').hide(); $('#zhuti1').hide(); function printWin() { @@ -647,29 +656,55 @@ 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("投诉书(正本)","投诉书(副本)"); 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>'); } $('#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为要导出的html内容容器 $('#fuben').remove(); } // console.log(document.getElementById("zhutilinshi").innerHTML); $("#zhutilinshi").wordExport("投诉书@(Html.Raw(Model.TsrName))"); //fileName为导出的word文件的命名,content为要导出的html内容容器 $('#zhutilinshi').remove(); layer.close(index); $('#zhuti').hide(); $('#zhuti1').hide(); return false; zhengcaioa/zhengcaioa/wwwroot/js/fileSaver.js
@@ -1,4 +1,4 @@ /* FileSaver.js /* FileSaver.js * A saveAs() FileSaver implementation. * 1.3.2 * 2016-06-16 18:25:19 zhengcaioa/zhengcaioa/wwwroot/js/jquery.wordexport.js
@@ -1,4 +1,4 @@ if (typeof jQuery !== "undefined" && typeof saveAs !== "undefined") { if (typeof jQuery !== "undefined" && typeof saveAs !== "undefined") { (function($) { $.fn.wordExport = function(fileName) { fileName = typeof fileName !== 'undefined' ? fileName : "jQuery-Word-Export";