예제 #1
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);

            Facade   = new SOLogisticsFacade(this);
            PageView = new SODeliveryExpVM();
            //this.tipMsgBox.DataContext = PageView.Message;

            BindData();

            this.spConditions.DataContext   = PageView;
            this.ddlOrderType.SelectedIndex = 0;
        }
예제 #2
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);

            Facade   = new SOLogisticsFacade(this);
            PageView = new SODeliveryDiffQueryView();
            QueryVM  = new SODeliveryDiffSearchVM();

            this.SearchCondition.DataContext = QueryVM;
            this.QueryResultGrid.DataContext = PageView;
            this.QueryResultGrid.ItemsSource = PageView.Result;
            BindComboBoxData();
        }
예제 #3
0
        private void QueryResultGrid_LoadingDataSource(object sender, LoadingDataEventArgs e)
        {
            QueryVM.PageInfo = new PagingInfo()
            {
                PageSize  = e.PageSize,
                PageIndex = e.PageIndex,
                SortBy    = e.SortField
            };
            SOLogisticsFacade facade = new SOLogisticsFacade(this);

            facade.QueryDiffSODelivery(QueryVM, (result, count) =>
            {
                PageView.Result     = result;
                PageView.TotalCount = count;
            });
        }