/// <summary> /// 查看 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void hlbtnView_Click(object sender, RoutedEventArgs e) { EIMSInvoiceEntryVM selectView = this.dgQueryResult.SelectedItem as EIMSInvoiceEntryVM; UCViewInvoice uc = new UCViewInvoice(selectView.InvoiceNumber, "View"); uc.Dialog = Window.ShowDialog("发票信息查看", uc, null, new Size(700, 350)); }
/// <summary> /// 编辑 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void hlbtnEdit_Click(object sender, RoutedEventArgs e) { if (!AuthMgr.HasFunctionPoint(AuthKeyConst.EIMS_InvoiceEntry_Edit)) { Window.Alert(ResEIMSInvoiceEntry.Msg_HasNoRight); return; } EIMSInvoiceEntryVM selectView = this.dgQueryResult.SelectedItem as EIMSInvoiceEntryVM; m_QueryFacde.QueryInvoiceList(selectView.InvoiceNumber, (obj, args) => { if (args.FaultsHandle()) { return; } if (args.Result.EIMSList.Convert <EIMSInvoiceInfoEntity, EIMSInvoiceInfoEntityVM>().Count > 1) { MutiEdit(selectView); } else { SingleEdit(selectView); } }); }
public UCInvoiceInput(EIMSInvoiceEntryVM view, string type) { InitializeComponent(); this.InvoicInputView = view; this.Type = type; Loaded += new RoutedEventHandler(UCInvoiceInput_Loaded); }
private void SingleEdit(EIMSInvoiceEntryVM selectView) { UCViewInvoice uc = new UCViewInvoice(selectView.InvoiceNumber, "Edit"); uc.Dialog = Window.ShowDialog("发票信息编辑", uc, (o, s) => { if (s.isForce) { LoadingDataEventArgs e = new LoadingDataEventArgs(this.CurrentPageIndex, this.CurrentPageSize, null, null); dataGrid_LoadingDataSource(null, e); } }, new Size(700, 350)); }
/// <summary> /// 录入 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void hlbtnInput_Click(object sender, RoutedEventArgs e) { if (!AuthMgr.HasFunctionPoint(AuthKeyConst.EIMS_InvoiceEntry_Input)) { Window.Alert(ResEIMSInvoiceEntry.Msg_HasNoRight); return; } EIMSInvoiceEntryVM selectView = this.dgQueryResult.SelectedItem as EIMSInvoiceEntryVM; UCInvoiceInput uc = new UCInvoiceInput(selectView, "Input"); uc.Dialog = Window.ShowDialog("发票信息录入", uc, (obj, args) => { if (args.isForce) { LoadingDataEventArgs s = new LoadingDataEventArgs(this.CurrentPageIndex, this.CurrentPageSize, null, null); dataGrid_LoadingDataSource(null, s); } }, new Size(700, 350)); }
public UCViewInvoice(List <EIMSInvoiceInfoEntityVM> invoiceInfoEntityViewList, EIMSInvoiceEntryVM invoiceEntryView, string type) { InitializeComponent(); this.Type = type; InitControl(Type); BindTaxRate(); this.InvoiceInfoEntityViewList = invoiceInfoEntityViewList; this.InvoiceEntryView = invoiceEntryView; this.InvoiceNumber = invoiceNumber; facade = new EIMSOrderMgmtFacade(); Loaded += new RoutedEventHandler(UCViewInvoicePreview_Loaded); }