|
|
|
@ -25,6 +25,14 @@ namespace BWP.B3QingDaoWanFu.Rpc { |
|
|
|
var pay = new TrustPay(); |
|
|
|
pay.Money = money; |
|
|
|
pay.AccountCustomer_ID = accountCustomerID; |
|
|
|
var query =new DQueryDom(new JoinAlias( typeof(Customer))); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("IsAccountCustomer")); |
|
|
|
query.Where.Conditions.Add(DQCondition.EQ("ID",accountCustomerID)); |
|
|
|
var isAccountCustomer= query.EExecuteScalar<bool?>(); |
|
|
|
if (isAccountCustomer ?? false) |
|
|
|
{ |
|
|
|
throw new ApplicationException("该客户不是结账客户,请修改个性设置中的往来客户"); |
|
|
|
} |
|
|
|
bl.CreateRequest(pay); |
|
|
|
return pay.ID; |
|
|
|
} |
|
|
|
|