Пример #1
0
        public void QueryAreaDeliveryList(AreaDeliveryQueryFilterVM filter, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            string relativeUrl = "/CommonService/AreaDelivery/QueryAreaDelivery";

            var msg = filter.ConvertVM <AreaDeliveryQueryFilterVM, AreaDeliveryQueryFilter>();

            restClient.QueryDynamicData(relativeUrl, msg, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                callback(this, new RestClientEventArgs <dynamic>(args.Result, this.Page));
            });
        }
Пример #2
0
        public override void OnPageLoad(object sender, EventArgs e)
        {
            base.OnPageLoad(sender, e);
            areaDeliveryFacade = new AreaDeliveryFacade(this);
            commonFacade       = new CommonDataFacade(this);
            queryFilterVM      = new AreaDeliveryQueryFilterVM();
            this.gridSearchCondition.DataContext = queryFilterVM;

            areaDeliveryFacade.QueryWHAreaList((s, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                args.Result.Insert(0, new Service.Common.Restful.ResponseMsg.AreaDelidayResponse()
                {
                    WHArea = null, City = ResAreaDelivery.ComboBox_PleaseSelect
                });
                comCity.ItemsSource   = args.Result;
                comCity.SelectedIndex = 0;
            });
        }