From a027508b5818236d0a46bc7036394c63978a68b0 Mon Sep 17 00:00:00 2001 From: yzh <snbbt@21cn.com> Date: 星期二, 10 五月 2022 11:44:32 +0800 Subject: [PATCH] 充值功能优化,客户表增加余额、订单表增加充值金额 --- web/web/GwOrderCreate.aspx.cs | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/web/web/GwOrderCreate.aspx.cs b/web/web/GwOrderCreate.aspx.cs index 749e8ae..89b4cc8 100644 --- a/web/web/GwOrderCreate.aspx.cs +++ b/web/web/GwOrderCreate.aspx.cs @@ -50,9 +50,16 @@ throw new ArgumentException("璐﹀彿鐘舵�佸凡鍋滅敤锛�"); } - else + + + GwClient gwClient = new GwClient(); + using (GwClientDao gwClientDao = new GwClientDao()) { - this.GwOrder = new GwOrder(); + gwClient = gwClientDao.Get(gwSp.ClientID); + } + + + this.GwOrder = new GwOrder(); this.GwOrder.SpId = gwSp.SpID; this.GwOrder.ClientId = gwSp.ClientID; this.GwOrder.ProductId = gwSp.ProductId; @@ -60,8 +67,8 @@ this.GwOrder.BasicNum = gwSp.BasicNum; //鍩烘湰鏉℃暟 this.GwOrder.GivingNum = gwSp.GivingNum; - this.Balance = gwSp.Balance; //浣欓 - } + //this.Balance = gwSp.Balance; //浣欓 + this.Balance = long.Parse(gwClient.Balance.ToString() ); //浣欓 } else { -- Gitblit v1.9.1