| | |
| | | |
| | | 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); |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | 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 |
| | | { |
| | |
| | | { |
| | | if(!string.IsNullOrEmpty(this.AppContext.GetString("clientId")) ) |
| | | { |
| | | backUrl = "GwClient.aspx"; |
| | | _controlFlag = 0; |
| | | } |
| | | |