From 79d6bea61cd6f48fbb284e98f4714f722bfee5fe Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 17 六月 2025 14:55:54 +0800
Subject: [PATCH] 提交

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingConfirm.aspx |  168 ++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 150 insertions(+), 18 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingConfirm.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingConfirm.aspx
index 4d4810c..3793491 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingConfirm.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/InvoicingConfirm.aspx
@@ -86,12 +86,27 @@
 
         //鍌敹
         function ViewCuishou(personId) {
-            top.Dialog.open({ URL: "/Pages/business/InvoicingCuishou.aspx?id=" + personId, Title: "鍌", Width: 400, Height: 600 });
+            top.Dialog.open({ URL: "/Pages/business/InvoicingCuishou.aspx?id=" + personId, Title: "鍌", Width: 600, Height: 800 });
         }
         //鏀舵
-        function ViewShoukuan(personId) {
-            top.Dialog.open({ URL: "/Pages/financial/InvoicingShoukuan.aspx?id=" + personId, Title: "鏀舵", Width: 600, Height: 800 });
+        function ViewShoukuan(personId, shenqingleixing) {
+            if (shenqingleixing == "璁㈠崟寮�绁�") {
+                top.Dialog.open({ URL: "/Pages/financial/InvoicingShoukuan.aspx?id=" + personId, Title: "璁㈠崟鏀舵", Width: 600, Height: 800 });
+            } else {
+                top.Dialog.open({ URL: "/Pages/financial/DepositsCustomerFapiao.aspx?Keyid=" + personId, Title: "瀹㈡埛棰勪粯娆惧瓨娆�", Width: 900, Height: 680 });
+            }
+           
         }
+        //鏀跺叆纭
+        function ViewShouru(personId, shenqingleixing) {
+            if (shenqingleixing == "璁㈠崟寮�绁�") {
+                top.Dialog.open({ URL: "/Pages/financial/InvoicingShouruqueren.aspx?id=" + personId, Title: "璁㈠崟纭鏀跺叆", Width: 600, Height: 800 });
+            } else {
+                top.Dialog.open({ URL: "/Pages/financial/DepositsCustomershouruqueren.aspx?Keyid=" + personId, Title: "瀹㈡埛棰勪粯娆剧‘璁ゆ敹鍏�", Width: 900, Height: 680 });
+            }
+
+        }
+        
         
         //鍥炴
         function ViewFukuan(personId) {
@@ -101,14 +116,79 @@
         
         //鏌ョ湅瀹㈡埛璧勬枡
         function Viewkaipiao(Keyid, SellerOrderId) {
-            window.open("/Pages/business/InvoicingOrderPrint.aspx?Keyid=" + Keyid + "&SellerOrderId=" + SellerOrderId, '', '');
+           // window.open("/Pages/business/InvoicingOrderPrint.aspx?Keyid=" + Keyid + "&SellerOrderId=" + SellerOrderId, '', '');
+            top.Dialog.open({ URL: "/Pages/business/InvoicingOrderPrint.aspx?Keyid=" + Keyid + "&SellerOrderId=" + SellerOrderId, Title: "鏌ョ湅璁㈠崟", Width: 1080, Height: 650 });
         }
         //鏌ョ湅瀹㈡埛璧勬枡
         function View(personId) {
             top.Dialog.open({ URL: "/Pages/business/CorporateClientsDetail.aspx?Keyid=" + personId, Title: "鏌ョ湅瀹㈡埛", Width: 900, Height: 580 });
         }
 
- 
+
+        /*
+纭鍙楃悊
+*/
+        function ToAccept(orderId) {
+            
+
+             
+
+           
+            top.Dialog.confirm('纭鎾ゅ洖鐢宠?', function () {
+                DoAccept(orderId);
+            });
+        }
+
+
+        /*
+澶勭悊鍙楃悊璁㈠崟
+*/
+        var DoAccept = function (orderId) {
+
+            window.submitUrl = "/Pages/business/InvoicingConfirm.aspx"; //璁剧疆褰撳墠椤电殑鎻愪氦璺緞
+
+            CallServer({ Target: "AcceptOrder", id: orderId }, function (data, textStatus) {
+                if ('1' == data) {
+                    alertMsg('鎿嶄綔鎴愬姛锛�');
+                    RefreshDIVOpener();   //鍏抽棴椤甸潰
+                } else {
+                    alertMsg(data);
+                    //dialog.close();
+                }
+            });
+        }
+
+        function showProgress() {
+            document.getElementById('progressBar').style.display = 'block';
+
+
+            setTimeout(function () {
+                document.getElementById('progressBar').style.display = 'none';
+            }, 2000); // 10000姣绛変簬10绉�
+
+        }
+
+        $(function () {
+            var value_NowPageAllMoney = 0;
+            $(".OrderAllMoney").each(function (ii, vv) {
+                value_NowPageAllMoney += parseFloat($(vv).text());
+            });
+            $("#NowPageAllMoney").html(value_NowPageAllMoney.toFixed(2));
+
+
+            var value_NowPageZengMoney = 0;
+            $(".OrderZengMoney").each(function (ii, vv) {
+                value_NowPageZengMoney += parseFloat($(vv).text());
+            });
+            $("#NowPageZengMoney").html(value_NowPageZengMoney.toFixed(2));
+
+
+            var value_NowPageHuiMoney = 0;
+            $(".OrderHuiMoney").each(function (ii, vv) {
+                value_NowPageHuiMoney += parseFloat($(vv).text());
+            });
+            $("#NowPageHuiMoney").html(value_NowPageHuiMoney.toFixed(2));
+        });
     </script>
     <style type="text/css">
         .tableStyleXS th { padding: 1px 0 1px 3px; background-image:none; border-bottom:1px solid #CCC; }
@@ -135,6 +215,8 @@
             cursor: pointer;
             width: 26px;
         }
+         .StatisticsMoney td { color: #FF5500; }
+        .StatisticsMoney span { color: #FF5500; font-weight: bold; }
     </style>
 </head>
 <body>
@@ -211,7 +293,10 @@
                     </td>
                     <td  >
                         <asp:button id="btn_Search" text="鏌ヨ" runat="server" />&nbsp;<input type="button" value='閲嶇疆' onclick='document.body.innerHTML="";window.location=window.location;' />
-                       
+                        &nbsp;<asp:Button ID="Button1" Text="瀵煎嚭" OnClientClick="showProgress();return true;" runat="server" OnClick="btn_Daochu_Click" />
+                        <div id="progressBar" style="display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);border:1px solid black;height:50px;background-color:azure;">
+    姝e湪瀵煎嚭Excel鏂囦欢锛岃绋嶅��...
+</div>
                     </td>
                 </tr>
             </table>
@@ -246,6 +331,9 @@
                           <th style="text-align: center;" width="70">
                            鐢宠寮�绁ㄦ椂闂�
                         </th>
+                         <th style="text-align: center;" width="70">
+                           鐢宠绫诲瀷
+                        </th>
                            <th style="text-align: center;" width="70">
                            涓氬姟缁忕悊
                         </th>
@@ -259,16 +347,16 @@
                         <th width="36">
                             璁㈠崟鏁伴噺
                         </th>
-                         <th width="60">
+                         <th width="60" >
                             閲戦
                         </th>
-                        <th width="60">
+                        <th width="60" >
                             澧炲噺閲戦
                         </th>
                         <th width="60">
                             绛惧崟鍥炴墽
                         </th>
-                         <th width="60">
+                         <th width="60"  >
                             鍥炴閲戦
                         </th>
                          <th width="60">
@@ -278,7 +366,7 @@
                          <th width="60">
                            寮�绁ㄧ姸鎬�
                         </th>
-                         <th width="120">
+                         <th width="180">
                           鎿嶄綔
 
                         </th>
@@ -299,6 +387,11 @@
                                      
                                 </td>
                                  <td style="text-align: center;">
+                                        <%#Eval("Shenqingleixing")%>
+
+                                   
+                                </td>
+                                 <td style="text-align: center;">
                                         <%#Eval("BusinessManager")%>
 
                                    
@@ -306,8 +399,8 @@
                                 
                                  
                                 <td style="text-align: center;">
-                                 <div style="width: 140px; word-wrap: break-word; text-align:justify;">
-                                    <a href='javascript:void(0)' title='鐐瑰嚮鏌ョ湅 <%#Eval("BuyerName").ToString()%> 璧勬枡' class='a_under' onclick='View("<%#Eval("BuyerId")%>")'><%#Eval("BuyerName").ToString().Length > 10 ? (Eval("BuyerName").ToString().Substring(0, 10) + "..") : Eval("BuyerName").ToString()%></a>
+                                 <div style="width: 210px; word-wrap: break-word; text-align:justify;">
+                                    <a href='javascript:void(0)' title='鐐瑰嚮鏌ョ湅 <%#Eval("BuyerName").ToString()%> 璧勬枡' class='a_under' onclick='View("<%#Eval("BuyerId")%>")'><%#Eval("BuyerName").ToString().Length > 30 ? (Eval("BuyerName").ToString().Substring(0, 30) + "..") : Eval("BuyerName").ToString()%></a>
                                         </div>
                                 </td>
                                 <td >
@@ -323,10 +416,10 @@
                                   
                                 </td>
                                                             
-                                <td>
+                                <td   class="OrderAllMoney">
                                     <%#Eval("kpmoney", "{0:F}")%>
                                 </td>
-                                 <td>
+                                 <td   class="OrderZengMoney">
                                     <%#Eval("Zengjianmoney", "{0:F}")%>
                                 </td>
                                  <td>
@@ -336,7 +429,7 @@
                                 
                                       
                                 </td>
-                                <td>
+                                <td  class="OrderHuiMoney">
                                     <%#Eval("Huikuanmoney", "{0:F}")%>
                                 </td>
                                  <td>
@@ -354,14 +447,53 @@
                                 </td>
                                  <td>
                                       
-                                         <a href='javascript:void(0)' title='浠樻鐧昏' class='a_under' onclick='ViewFukuan("<%#Eval("Keyid")%>")'> 浠樻鐧昏    </a>  &nbsp;&nbsp;&nbsp;
-                                      <a href='javascript:void(0)' title='鍌' class='a_under' onclick='ViewCuishou("<%#Eval("Keyid")%>")'> 鍌    </a> &nbsp;&nbsp;&nbsp;
-                                     <a href='javascript:void(0)' title='鏀舵' class='a_under' onclick='ViewShoukuan("<%#Eval("Keyid")%>")'> 鏀舵    </a>
+                                         <a href='javascript:void(0)' menu_member_case_id="case_fukuandengji" menu_member_case_name="浠樻鐧昏" title='浠樻鐧昏' class='a_under' onclick='ViewFukuan("<%#Eval("Keyid")%>")'> 浠樻鐧昏    </a>  &nbsp;&nbsp;&nbsp;
+                                      <a href='javascript:void(0)' menu_member_case_id="case_cuikuan" menu_member_case_name="鍌" title='鍌' class='a_under' onclick='ViewCuishou("<%#Eval("Keyid")%>")'> 鍌    </a> &nbsp;&nbsp;&nbsp;
+                                     <a href='javascript:void(0)' menu_member_case_id="case_shoukuan" menu_member_case_name="鏀舵" title='鏀舵' class='a_under' onclick='ViewShoukuan("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 鏀舵    </a> &nbsp;&nbsp;&nbsp;
+                                       <a href='javascript:void(0)' menu_member_case_id="case_shouruqueren" menu_member_case_name="鏀跺叆纭" title='鏀跺叆纭' class='a_under' onclick='ViewShouru("<%#Eval("Keyid")%>","<%#Eval("Shenqingleixing")%>")'> 鏀跺叆纭    </a> &nbsp;&nbsp;&nbsp;
+
+                                      <a href='javascript:void(0)'menu_member_case_id="case_chehui" menu_member_case_name="鎾ゅ洖" title='鎾ゅ洖' class='a_under' onclick='ToAccept("<%#Eval("Keyid")%>")'> 鎾ゅ洖    </a>
                                 </td>
                                 
                             </tr>
                         </itemtemplate>
                     </asp:repeater>
+                     <tr class="StatisticsMoney">
+                    <td colspan="7" class="ali03">
+                        褰撳墠椤电粺璁★細
+                    </td>
+                    <td   class="ali01">
+                        <span id="NowPageAllMoney" runat="server"></span>
+                    </td>
+                     <td   class="ali01">
+                        <span id="NowPageZengMoney" runat="server"></span>
+                    </td>
+                        <td   class="ali01"> 
+                    </td>
+                     <td   class="ali01">
+                        <span id="NowPageHuiMoney" runat="server"></span>
+                    </td>
+                          <td   class="ali01" colspan="3"> 
+                    </td>
+                </tr>
+                <tr class="StatisticsMoney">
+                    <td colspan="7" class="ali03">
+                        鏌ヨ椤圭粺璁★細
+                    </td>
+                    <td   class="ali01">
+                        <span id="AllMoney" runat="server"></span>
+                    </td>
+                     <td   class="ali01">
+                        <span id="ZengMoney" runat="server"></span>
+                    </td>
+                        <td   class="ali01"> 
+                    </td>
+                     <td   class="ali01">
+                        <span id="HuiMoney" runat="server"></span>
+                    </td>
+                          <td   class="ali01" colspan="3"> 
+                    </td>
+                </tr>
                 </tbody>
             </table>
             <uc:ucpager id="UCPager1" runat="server" />

--
Gitblit v1.9.1