From f2fa318161407b936f70aa3b918dd38f24ea9a88 Mon Sep 17 00:00:00 2001
From: yzh <snbbt@21cn.com>
Date: 星期一, 13 六月 2022 07:08:28 +0800
Subject: [PATCH] 数据字典表相关功能 系统账号管理优化 订单管理 API账号管理 客户信息管理

---
 web/web/GwClient.aspx |   70 +++++++++++++++++++++++++---------
 1 files changed, 51 insertions(+), 19 deletions(-)

diff --git a/web/web/GwClient.aspx b/web/web/GwClient.aspx
index 735e510..53dafeb 100644
--- a/web/web/GwClient.aspx
+++ b/web/web/GwClient.aspx
@@ -18,7 +18,8 @@
                 var Company = $("#Company").val();
                 var ClientName = $("#ClientName").val();
                 var Telephone = $("#Telephone").val();
-                var Agent = $("#Agent").val();
+                //var Agent = $("#Agent").val();
+                var Agent = "";
                 var Salesman = $("#Salesman").val();
                 var SupportStaff = $("#SupportStaff").val();
                 var ProductId = $("#ProductId").val();
@@ -258,25 +259,29 @@
                 $(document).on("click", ".action-updateProduct", function () {
                     var productIdArray = [];
 
-                    $("#updateProductDialog #_ProductId").each(function () {
-                        if ($(this).is(":checked")) {
-                            productIdArray.push($(this).val());
-                        }
-                    });
+                    mytek.confirm("鏄惁闇�瑕佷慨鏀瑰鎴峰垎閰嶄釜鎬т骇鍝侊紵", "纭鍒嗛厤涓�т骇鍝侊紝璇疯皑鎱庢搷浣滐紒", function (b) {
+                        if (b) {
+                            $("#updateProductDialog #_ProductId").each(function () {
+                                if ($(this).is(":checked")) {
+                                    productIdArray.push($(this).val());
+                                }
+                            });
 
-                    //var clientId = $("#updateProductDialog").data("id");
-                    var clientId = $("#updateProductDialog input[name='clientID']").val();
-                    $.ajax({
-                        url: "GwClient.ashx",
-                        type: "POST",
-                        data: { action: "updateProduct", clientId: clientId, productIdArray: $.toJSON(productIdArray) },
-                        success: function (result) {
-                            if (result.OK) {
-                                $("#updateProductDialog").modal("hide");
-                                loadPageList();
-                            } else {
-                                mytek.alert(result.Message, result.OK);
-                            }
+                            //var clientId = $("#updateProductDialog").data("id");
+                            var clientId = $("#updateProductDialog input[name='clientID']").val();
+                            $.ajax({
+                                url: "GwClient.ashx",
+                                type: "POST",
+                                data: { action: "updateProduct", clientId: clientId, productIdArray: $.toJSON(productIdArray) },
+                                success: function (result) {
+                                    if (result.OK) {
+                                        $("#updateProductDialog").modal("hide");
+                                        loadPageList();
+                                    } else {
+                                        mytek.alert(result.Message, result.OK);
+                                    }
+                                }
+                            });
                         }
                     });
                 });
@@ -404,6 +409,23 @@
                 });
             });
 
+            //瀵煎嚭鏁版嵁
+            $(document).on("click", ".action-export", function () {
+                var ClientID = $("#ClientID").val();
+                var Company = $("#Company").val();
+                var ClientName = $("#ClientName").val();
+                var Telephone = $("#Telephone").val();
+                //var Agent = $("#Agent").val();
+                var Agent = "";
+                var Salesman = $("#Salesman").val();
+                var SupportStaff = $("#SupportStaff").val();
+                var ProductId = $("#ProductId").val();
+                var IsEnable = <%=IsEnable%>;
+                var url = "ExportDocument.aspx?action=exportGwClient&ClientID=" + ClientID + "&Company=" + Company + "&ClientName=" + ClientName + "&Telephone=" + Telephone + "&Agent=" + Agent + "&Salesman=" + Salesman + "&SupportStaff=" + SupportStaff + "&ProductId=" + ProductId + "&IsEnable=" + IsEnable + "";
+
+                window.location.href = url;
+            });
+
 
             //娣诲姞瀹㈡埛锛氱敓鎴愬瘑鐮�
             $(document).on("click", ".action-generate-password", function () {
@@ -413,6 +435,10 @@
             //娣诲姞瀹㈡埛锛氬鍒跺瘑鐮�
             $(document).on("click", ".action-copyPwd", function () {
                 var value = $("#password").val();
+                if (value == "") {
+                    mytek.alert("璇风敓鎴愬瘑鐮侊紒");
+                    return false;
+                }
                 // for ie
                 if (window.clipboardData) {
                     window.clipboardData.clearData();
@@ -448,6 +474,11 @@
             //淇敼瀵嗙爜锛氬鍒跺瘑鐮�
             $(document).on("click", ".action-copyNewPwd", function () {
                 var value = $("#newPwd").val();
+                if (value == "") {
+                    mytek.alert("璇风敓鎴愬瘑鐮侊紒");
+                    return false;
+                }
+
                 // for ie
                 if (window.clipboardData) {
                     window.clipboardData.clearData();
@@ -941,6 +972,7 @@
         <% if(IsEnable==1) { %>
         <input class="btn btn-danger action-modal-setProduct" value="鎵归噺鍒嗛厤涓�т骇鍝�" type="button" />            
         <%} %>
+        <input class="btn btn-info action-export" value="瀵煎嚭鏁版嵁" type="button" />&nbsp;&nbsp;
         <table class="table table-striped table-bordered table-hover" id="gwclientTable">
             <thead>
                 <tr class="header">

--
Gitblit v1.9.1