username@email.com
2023-03-09 26de0696f74e183e3aadad2e9ff1918b40e5c8cc
zhengcaioa/zhengcaioa/Views/CooperOrder/Printtousushu.cshtml
@@ -90,15 +90,15 @@
    @*<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: 14pt;
@@ -407,11 +407,11 @@
                                }
                            }
                            @*<tr>
            <td colspan="2" align="left">请求:<span>@Model.RequestInfoName</span></td>
        </tr>*@
                        <td colspan="2" align="left">请求:<span>@Model.RequestInfoName</span></td>
                    </tr>*@
                            @*<tr>
            <td colspan="2" style="height:15px"></td>
        </tr>*@
                        <td colspan="2" style="height:15px"></td>
                    </tr>*@
                            <tr>
                                <td align="left">签字(签章):</td>
                                <td align="left">公章:</td>
@@ -428,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;">
@@ -451,8 +451,9 @@
                            <tr>
                                <td colspan="2" style="font-size:29.3px;text-align:center">法定代表人资格证明书</td>
                            </tr>
                            <tr>
                                <td colspan="2">兹证明&nbsp;  @(cooperatecustomCustomerDTO.FName)  &nbsp;在   &nbsp;@(cooperatecustomCustomerDTO.Name)  &nbsp; 任    &nbsp;@(cooperatecustomCustomerDTO.Zhiwu) &nbsp;   职务,是   &nbsp;@(cooperatecustomCustomerDTO.Name) &nbsp;  的法定代表人。</td>
                                <td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;兹证明&nbsp;  @(cooperatecustomCustomerDTO.FName)  &nbsp;在   &nbsp;@(cooperatecustomCustomerDTO.Name)  &nbsp; 任    &nbsp;@(cooperatecustomCustomerDTO.Zhiwu) &nbsp;   职务,是   &nbsp;@(cooperatecustomCustomerDTO.Name) &nbsp;  的法定代表人。</td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">&nbsp; &nbsp; 特此证明。</td>
@@ -475,49 +476,56 @@
                <div id="zhuti1">
                    @{
                                        for (int i = 0; i < yinyezhizhaosssss.Count; i++)
                                        {
                        <div style="page-break-after:always;">
                        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%; ">
                        </div>
                                        }
                        }
                            for (int i = 0; i < shenfenzhengsssss.Count; i++)
                                        {
                        <div style="page-break-after:always;">
                        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%; ">
                        </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">法定代表人资格证明书</td>
                            </tr>
                            <tr>
                                <td colspan="2">兹证明&nbsp;  @(cooperatecustomCustomerDTO.FName)  &nbsp;在   &nbsp;@(cooperatecustomCustomerDTO.Name)  &nbsp; 任    &nbsp;@(cooperatecustomCustomerDTO.Zhiwu) &nbsp;   职务,是   &nbsp;@(cooperatecustomCustomerDTO.Name) &nbsp;  的法定代表人。</td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">&nbsp; &nbsp; 特此证明。</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年MM月dd日")</td>
                            </tr>
                        </table>
                    </div>
                        }
                    }
                    <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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;兹证明&nbsp;  @(cooperatecustomCustomerDTO.FName)  &nbsp;在   &nbsp;@(cooperatecustomCustomerDTO.Name)  &nbsp; 任    &nbsp;@(cooperatecustomCustomerDTO.Zhiwu) &nbsp;   职务,是   &nbsp;@(cooperatecustomCustomerDTO.Name) &nbsp;  的法定代表人。</td>
                        </tr>
                        <tr>
                            <td colspan="2" align="left">&nbsp; &nbsp; 特此证明。</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年MM月dd日")</td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
@@ -542,6 +550,7 @@
    <script type="text/javascript">
        $('#zhuti').hide();
        $('#zhuti1').hide();
        function printWin() {
@@ -645,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("投诉书(正本)","投诉书(副本)");
        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为要导出的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;