Example #1
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();
        }
Example #2
0
        public void QueryDiffSODelivery(SODeliveryDiffSearchVM queryView, Action <List <SODeliveryDiffSearchDataVM>, int> action)
        {
            SODeliveryDiffFilter filter = queryView == null ? null : EntityConverter <SODeliveryDiffSearchVM, SODeliveryDiffFilter> .Convert(queryView);

            restClient.QueryDynamicData("/SOService/SODeliveryDiff/Query", filter, (sender, e) => {
                if (!e.FaultsHandle())
                {
                    if (e.Result != null && action != null)
                    {
                        List <SODeliveryDiffSearchDataVM> dataVMList = DynamicConverter <SODeliveryDiffSearchDataVM> .ConvertToVMList(e.Result.Rows);
                        action(dataVMList, e.Result.TotalCount);
                    }
                }
            });
        }