| | |
| | | { |
| | | string spId = context.GetString("spId"); |
| | | string orderId = context.GetString("orderId"); |
| | | int basicNum = context.GetInt("basicNum"); |
| | | int givingNum = context.GetInt("givingNum"); |
| | | Int64 basicNum = context.GetInt64("basicNum"); |
| | | Int64 givingNum = context.GetInt64("givingNum"); |
| | | string clientId = ""; |
| | | int payAmount = 0; |
| | | int tmpPayAmount = Math.Max((int) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0); |
| | | Int64 payAmount = 0; |
| | | Int64 tmpPayAmount = Math.Max((int) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0); |
| | | payAmount = tmpPayAmount; |
| | | //double price = context.GetDecimal(price); |
| | | int num = Math.Max((int) (context.GetDecimal("price", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0); |
| | |
| | | } |
| | | else if(status==1) |
| | | { |
| | | int beforeBasicNum = 0; |
| | | int beforeGivingNum = 0; |
| | | int balance = 0; |
| | | int topUpAmountTotal = 0; |
| | | Int64 beforeBasicNum = 0; |
| | | Int64 beforeGivingNum = 0; |
| | | Int64 balance = 0; |
| | | Int64 topUpAmountTotal = 0; |
| | | if (string.IsNullOrEmpty(nextFlowCode)) |
| | | { |
| | | orderStatus = 2; |
| | |
| | | |
| | | //获取客户信息 |
| | | GwClient gwClient = _GwClientDao.Get(gwSp.ClientID); |
| | | balance = int.Parse(gwClient.Balance.ToString() ); |
| | | topUpAmountTotal = int.Parse(gwClient.Top_up_Amount_Total.ToString() ); |
| | | balance = Int64.Parse(gwClient.Balance.ToString() ); |
| | | topUpAmountTotal = Int64.Parse(gwClient.Top_up_Amount_Total.ToString() ); |
| | | |
| | | //为1-预付费 |
| | | //if (gwSp.ChargeType==1 && (balance + payAmount) < num * basicNum) |
| | |
| | | string clientId = context.GetString("clientId"); |
| | | string productId = context.GetString("productId"); |
| | | //string comboId = context.GetString("comboId"); |
| | | int basicNum = context.GetInt("basicNum", 0); |
| | | int givingNum = context.GetInt("givingNum", 0); |
| | | Int64 basicNum = context.GetInt("basicNum", 0); |
| | | Int64 givingNum = context.GetInt("givingNum", 0); |
| | | int price = 0; |
| | | |
| | | int orderNumTotal = context.GetInt("orderNumTotal", 0); |
| | | int orderAmountTotal = context.GetInt("orderAmountTotal", 0); |
| | | int payAmount = 0; |
| | | int beforeBalanceNum = context.GetInt("beforeBalanceNum", 0); |
| | | Int64 orderNumTotal = context.GetInt("orderNumTotal", 0); |
| | | Int64 orderAmountTotal = context.GetInt("orderAmountTotal", 0); |
| | | Int64 payAmount = 0; |
| | | Int64 beforeBalanceNum = context.GetInt("beforeBalanceNum", 0); |
| | | //客服人员提交订单时的状态为1-审核中。 |
| | | int status = 1; //0-待审核(已提交);1-审核中;2-审核通过;3-审核不通过;4-取消;申请订单在未审核情况下可以取消。 |
| | | string remark = context.GetString("remark"); |
| | | DateTime createTime = DateTime.Now; |
| | | string creator = context.OperatorID; |
| | | |
| | | int tmpPayAmount = Math.Max((int) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0); |
| | | Int64 tmpPayAmount = Math.Max((Int64) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0); |
| | | payAmount = tmpPayAmount; |
| | | int num = Math.Max((int) (context.GetDecimal("price", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0); |
| | | price = num; |
| | |
| | | string clientId = context.GetString("clientId"); |
| | | string productId = context.GetString("productId"); |
| | | string comboId = context.GetString("clientId"); |
| | | int basicNum = context.GetInt("basicNum", 0); |
| | | int givingNum = context.GetInt("givingNum", 0); |
| | | Int64 basicNum = context.GetInt("basicNum", 0); |
| | | Int64 givingNum = context.GetInt("givingNum", 0); |
| | | int price = 0; |
| | | |
| | | int orderNumTotal = context.GetInt("orderNumTotal", 0); |
| | | int orderAmountTotal = context.GetInt("orderAmountTotal", 0); |
| | | int payAmount = 0; |
| | | int beforeBalanceNum = context.GetInt("beforeBalanceNum", 0); |
| | | Int64 orderNumTotal = context.GetInt("orderNumTotal", 0); |
| | | Int64 orderAmountTotal = context.GetInt("orderAmountTotal", 0); |
| | | Int64 payAmount = 0; |
| | | Int64 beforeBalanceNum = context.GetInt("beforeBalanceNum", 0); |
| | | int status = 0; |
| | | string remark = context.GetString("remark"); |
| | | DateTime createTime = DateTime.Now; |
| | | string creator = context.OperatorID; |
| | | |
| | | int tmpPayAmount = Math.Max((int) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0); |
| | | Int64 tmpPayAmount = Math.Max((Int64) (context.GetDecimal("payAmount", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0); |
| | | payAmount = tmpPayAmount; |
| | | |
| | | int num = Math.Max((int) (context.GetDecimal("price", new Decimal(4, 0, 0, false, (byte) 2)) * new Decimal(1000)), 0); |