public UCInvoiceNoEdit(InvoiceVM invoiceVM) : this() { m_CurInvoice = invoiceVM; this.m_InvoiceFacade = new InvoiceFacade(this.CurrentPage); this.LayoutRoot.DataContext = invoiceVM; }
public override void OnPageLoad(object sender, EventArgs e) { base.OnPageLoad(sender, e); this.vm = new PriceChangeVM(); this.vm.ItemList = new ObservableCollection <ChangeItemVM>(); this.facade = new InvoiceFacade(this); if (RequestSysNo.HasValue) { this.vm.SysNo = RequestSysNo; facade.GetPriceChangeBySysNo(this.vm.SysNo.Value, (vm) => { this.vm = vm; this.root.DataContext = this.vm; SetControllerVisibility(); }); } else { SetControllerVisibility(); this.root.DataContext = this.vm; } }
private void InvoiceQuery_Loaded(object sender, RoutedEventArgs e) { Loaded -= new RoutedEventHandler(InvoiceQuery_Loaded); invoiceFacade = new InvoiceFacade(this); otherFacade = new OtherDomainDataFacade(this); LoadComboBoxData(); }
public override void OnPageLoad(object sender, EventArgs e) { base.OnPageLoad(sender, e); this.queryVM = new PriceChangeQueryVM(); this.facade = new InvoiceFacade(this); this.resultCollection = new ObservableCollection <PriceChangeVM>(); this.querygd.DataContext = this.queryVM; this.resultgd.ItemsSource = this.resultCollection; this.resultgd.Bind(); }
private void Reconciliation_OnOnLoad(object sender, EventArgs e) { facade = new InvoiceFacade(this); }