Exemplo n.º 1
0
        private void ButtonConfirmSelected_Click(object sender, RoutedEventArgs e)
        {
            //关闭对话框并返回数据
            listInfo = new List <AreaQueryVM>();
            dynamic rows = gridResult.ItemsSource;

            if (rows != null)
            {
                foreach (var row in rows)
                {
                    if (row.IsChecked)
                    {
                        AreaQueryVM item = new AreaQueryVM();
                        item.SysNo        = row.SysNo;
                        item.ProvinceName = row.ProvinceName;
                        item.CityName     = row.CityName;
                        listInfo.Add(item);
                    }
                }
            }
            if (listInfo.Count <= 0)
            {
                this.CurrentWindow.Alert("请选择数据!", MessageType.Warning);
                return;
            }
            this.DialogHandler.ResultArgs.Data         = listInfo;
            this.DialogHandler.ResultArgs.DialogResult = DialogResultType.OK;
            this.DialogHandler.Close();
        }
Exemplo n.º 2
0
        public void QueryAreaList(AreaQueryVM req, int PageSize, int PageIndex, string SortField, EventHandler <RestClientEventArgs <dynamic> > callback)
        {
            AreaQueryFilter filter = new AreaQueryFilter()
            {
                ProvinceSysNumber = req.ProvinceSysNumber,
                CitySysNumber     = req.CitySysNumber,
                DistrictSysNumber = req.DistrictSysNumber,
                SysNo             = req.DistrictSysNumber,
                PagingInfo        = new QueryFilter.Common.PagingInfo()
                {
                    PageIndex = PageIndex,
                    PageSize  = PageSize,
                    SortBy    = SortField
                }
            };
            string relativeUrl = "/Area/QueryAreaNoDistrictList";

            restClient.QueryDynamicData(relativeUrl, filter, callback);
        }
Exemplo n.º 3
0
 void UCCategoryQuery_Loaded(object sender, RoutedEventArgs e)
 {
     m_dataContext    = new AreaQueryVM();
     m_Facade         = new AreaQueryFacade();
     this.DataContext = m_dataContext;
 }