From 6bb722be12f95d3f55a141555be2c79b8fcaeca9 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期五, 07 二月 2025 08:35:44 +0800 Subject: [PATCH] 订单打印能查看合同 --- CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx index 03753bb..0d2c641 100644 --- a/CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx +++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/OrderDeatil.aspx @@ -24,10 +24,20 @@ <script type="text/javascript"> window.printBeginCallBack = function () { document.getElementById('fram_operate').style.display = 'none'; + document.getElementById('hetongchakan').style.display = 'none'; }; window.printOverCallBack = function () { document.getElementById('fram_operate').style.display = ''; + document.getElementById('hetongchakan').style.display = ''; }; + + //缁存姢 + function onViewuplod(keyid) { + var l = (screen.availWidth - 500) / 2; + var t = (screen.availHeight - 300) / 2; + // window.open({ URL: "/Pages/business/CorporateClientsUpLoadContract.aspx?Keyid=" + keyid, Title: "鏌ョ湅鍚堝悓", Width: 900, Height: 750 }); + window.open('/Pages/business/CorporateClientsContractShow.aspx?Keyid=' + keyid, '_blank', 'height=750,width=900,top=' + t + ',left=' + l +',toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no'); + } $(function () { $("#btnPrint").click(function () { @@ -48,6 +58,14 @@ <body style='padding: 0; margin: 0;' onbeforeprint="OnPrint()" onafterprint="OnPrintOver()"> <form id="form1" runat="server"> <input type="hidden" runat="server" id="hideOrderId" /> + <table border="1" cellpadding="0" cellspacing="0" style="border: 0;" id='hetongchakan' > + <tr> + <td > +<%-- <span onclick="onViewuplod('<%=BuyerId %>')" <%=ContractCount.ToString() == "0" ? "style=\"display:none;\"" : ""%> >鏌ョ湅鍚堝悓 </span>--%> + <input type="button" id="btnPrint" <%=ContractCount.ToString() == "0" ? "style=\"display:none;\"" : ""%> value="鏌ョ湅鍚堝悓" onclick="onViewuplod('<%=BuyerId %>')"> + </td> + </tr> + </table> <div class='dbody'> <object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0" height="0"> <embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0" pluginspage="/Pages/common/install_lodop32.exe"></embed> -- Gitblit v1.9.1