/// <summary> /// 选择下表中一行进行资金缴支付 /// </summary> private void PayExecute() { try { if (CurModel.BusinessCode == FinancialRegulation.Tools.PublicData.QueryFundPay && CurModel.PayState == Tools.PublicData.PayB) { Message.NewMessage.Response.Response04 temp = new Message.NewMessage.Response.Response04(); //将列表的支付信息付给 消息返回对象; temp.BusinessCode = CurModel.BusinessCode; temp.PaymentID = CurModel.PaymentID; temp.PaymentAmount = CurModel.PaymentAmount; temp.ReceiverAccount = CurModel.ReceiverAccount; temp.ReceiverName = CurModel.ReceiverName; temp.ReceiverBankName = CurModel.ReceiveBank; temp.PayerAccount = CurModel.PayAccount; temp.PayerName = CurModel.PayName; temp.PayBank = CurModel.PaymentBank; temp.ProjectID = CurModel.ProjectCode; FinancialRegulation.Page.PayInfoAddToEdit fundadd = new Page.PayInfoAddToEdit(temp, this.CurModel, this.Models); if ((bool)fundadd.ShowDialog()) { SearchExecute(); } } } catch (Exception e) { SendExcetpion(e); } }
public PayInfoAddToEdit(Message.NewMessage.Response.Response04 DepositResponse, FundPayment df, ObservableCollection <FundPayment> models) { InitializeComponent(); ViewModel.PayInfoAddToEditVM vm = new ViewModel.PayInfoAddToEditVM(DepositResponse, df, models); //vm.windowClose = CloseWindow; //vm.windowOK = OpenNewWindow; this.DataContext = vm; }