コード例 #1
0
 public UCInvoiceNoEdit(InvoiceVM invoiceVM)
     : this()
 {
     m_CurInvoice                = invoiceVM;
     this.m_InvoiceFacade        = new InvoiceFacade(this.CurrentPage);
     this.LayoutRoot.DataContext = invoiceVM;
 }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
ファイル: InvoiceQuery.xaml.cs プロジェクト: sanlonezhang/ql
        private void InvoiceQuery_Loaded(object sender, RoutedEventArgs e)
        {
            Loaded -= new RoutedEventHandler(InvoiceQuery_Loaded);

            invoiceFacade = new InvoiceFacade(this);
            otherFacade   = new OtherDomainDataFacade(this);
            LoadComboBoxData();
        }
コード例 #4
0
        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();
        }
コード例 #5
0
 private void Reconciliation_OnOnLoad(object sender, EventArgs e)
 {
     facade = new InvoiceFacade(this);
 }