/// <summary> /// 檢查資料 /// </summary> /// <param name="set"></param> public static void CheckData(DepositBillSet set, SysMessageLog message, ApplicationDbContext dataAccess) { if (BizVirtualAccountCode.CheckBankCodeExist(dataAccess, set.DepositBill.VirtualAccountCode, out _)) { message.AddCustErrorMessage(MessageCode.Code1008, ResxManage.GetDescription <DepositBillModel>(p => p.VirtualAccountCode), set.DepositBill.VirtualAccountCode); } }
/// <summary> /// 設置資料 /// </summary> /// <param name="set"></param> /// <param name="action"></param> public static void SetData(DepositBillSet set, string progId, ApplicationDbContext dataAccess) { BizVirtualAccountCode.AddVirtualAccountCode(dataAccess, progId, set.DepositBill.BillNo, set.DepositBill.VirtualAccountCode); }