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/GwOrderCreate.aspx.cs | 51 ++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 38 insertions(+), 13 deletions(-) diff --git a/web/web/GwOrderCreate.aspx.cs b/web/web/GwOrderCreate.aspx.cs index ef84d05..dca0ab9 100644 --- a/web/web/GwOrderCreate.aspx.cs +++ b/web/web/GwOrderCreate.aspx.cs @@ -50,10 +50,27 @@ using (GwSpDao gwSpDao = new GwSpDao()) { + this.GwOrder = new GwOrder(); if (!string.IsNullOrEmpty(this.ClientId)) { - this.GwOrder = new GwOrder(); this.GwOrder.ClientId = ClientId; + + GwClient gwClient = new GwClient(); + using (GwClientDao gwClientDao = new GwClientDao()) + { + gwClient = gwClientDao.Get(this.ClientId); + this.GwOrder.Company = gwClient.Company; + this.GwOrder.Balance = long.Parse(gwClient.Balance.ToString()); //浣欓 + + if (gwClient.Is_Enable == 1) + { + backUrl = "GwClient.aspx?IsEnable=1"; + } + else + { + backUrl = "GwClient.aspx?IsEnable=0"; + } + } string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, null); this.GwSpList = gwSpDao.LoadInfoList(null, null, this.ClientId, permissionsSQL); @@ -74,30 +91,39 @@ } - GwClient gwClient = new GwClient(); using (GwClientDao gwClientDao = new GwClientDao()) { gwClient = gwClientDao.Get(gwSp.ClientID); + this.GwOrder.Company = gwClient.Company; + this.GwOrder.Balance = long.Parse(gwClient.Balance.ToString()); //浣欓 + + if (gwClient.Is_Enable==1) + { + backUrl = "GwClient.aspx?IsEnable=1"; + } + else + { + backUrl = "GwClient.aspx?IsEnable=0"; + } } + this.GwOrder.SpId = gwSp.SpID; + this.GwOrder.ClientId = gwSp.ClientID; + this.GwOrder.ProductId = gwSp.ProductId; + this.GwOrder.ProductName = gwSp.ProductName; + this.GwOrder.Price = gwSp.Price; + this.GwOrder.BasicNum = gwSp.BasicNum; //鍩烘湰鏉℃暟 + this.GwOrder.GivingNum = gwSp.GivingNum; - this.GwOrder = new GwOrder(); - this.GwOrder.SpId = gwSp.SpID; - this.GwOrder.ClientId = gwSp.ClientID; - this.GwOrder.ProductId = gwSp.ProductId; - this.GwOrder.Price = gwSp.Price; - this.GwOrder.BasicNum = gwSp.BasicNum; //鍩烘湰鏉℃暟 - this.GwOrder.GivingNum = gwSp.GivingNum; - - this.GwOrder.Balance = long.Parse(gwClient.Balance.ToString()); //浣欓 + //this.GwOrder.Balance = long.Parse(gwClient.Balance.ToString()); //浣欓 } } } - public GwOrder GwOrder { get; protected set; } + public GwOrder GwOrder { get; set; } public string SpID { @@ -119,7 +145,6 @@ { if(!string.IsNullOrEmpty(this.AppContext.GetString("clientId")) ) { - backUrl = "GwClient.aspx"; _controlFlag = 0; } -- Gitblit v1.9.1