From d2e07afb3de3aabe6da09d93524e273f249ec5ec Mon Sep 17 00:00:00 2001 From: wzp <2880584989@qq.com> Date: 星期二, 28 九月 2021 10:43:30 +0800 Subject: [PATCH] 更新 --- web/web/GwClient.ashx | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/web/web/GwClient.ashx b/web/web/GwClient.ashx index 40e0def..617bcaf 100644 --- a/web/web/GwClient.ashx +++ b/web/web/GwClient.ashx @@ -2,6 +2,7 @@ using System; using System.Web; using Dao; +using Model; using Common; using System.Collections.Generic; using System.Configuration; @@ -85,9 +86,9 @@ { string Certification_StatusResult = "鏈璇�"; if (item.Certification_Status == 1) - { - Certification_StatusResult = "宸茶璇�"; - } + { + Certification_StatusResult = "宸茶璇�"; + } str += @"<tr ><td>" + item.ClientID + "</td><td>" + item.Company + "</td><td>" + item.ClientName + "</td><td>" + item.Telephone + "</td><td>" + item.Top_up_Amount_Total + "鍏�</td><td>" + item.Agent + "</td><td>" + Certification_StatusResult + "</td>"; str += @"<td>"; @@ -357,6 +358,21 @@ client.Company = company; _Dao.Add(client);//鎻掑叆鏁版嵁搴撱�傚垱寤鸿处鎴� + //淇濆瓨浜у搧璁板綍 + //鑾峰彇鍚敤鐨勯粯璁ょ殑浜у搧 + List<string> defaultProductList = GwProductDao.Instance.GetDefaultProduct(); + if (defaultProductList.Count > 0) + { + foreach (string productId in defaultProductList) + { + GwClientProduct gcp = new GwClientProduct(); + gcp.Id = Guid.NewGuid().ToString(); + gcp.ClientId = clientID; + gcp.ProductId = productId; + GwClientProductDao.Instance.Add(gcp); + } + } + return new JsonPageResult(true, "鍒涘缓璐︽埛鎴愬姛锛�"); } } -- Gitblit v1.9.1