/// <summary> /// 电子货币支付 /// </summary> public void IsElecPay(SqlTransaction tran, MemberOrderModel order) { //支付期数 order.PayExpect = CommonClass.CommonDataBLL.getMaxqishu(); //生成汇款单号 order.RemittancesId = Model.Other.MYDateTime.ToYYMMDDHHmmssString(); //支付状态改为1 order.DefrayState = 1; //电子货币支付时,记录已经支付的金额 addOrderDataDAL.Upd_ECTPay(tran, order.ElectronicaccountId, Convert.ToDouble(order.TotalMoney) * -1); //电子货币支付,则在店汇款中插入记录,最后两个参数需要更改, addOrderDataDAL.AddDataTORemittances1(tran, order); //更新店铺的汇款 addOrderDataDAL.Add_Remittances(tran, Convert.ToDouble(order.TotalMoney) * -1, order.StoreId); }