private void SelectArea_Click(object sender, RoutedEventArgs e) { List <int?> list = new List <int?>(); UCAreaQuery queryArea = new UCAreaQuery(); queryArea.DialogHandler = CPApplication.Current.CurrentPage.Context.Window.ShowDialog("地区查询", queryArea, (s, args) => { if (args.DialogResult == DialogResultType.OK) { _areaViewList = args.Data as List <AreaQueryVM>; if (_areaViewList != null & _areaViewList.Count > 0) { foreach (var _areaView in _areaViewList) { if (!string.IsNullOrEmpty(_areaView.CityName)) { list.Add(_areaView.SysNo); } } } _view.AreaSysNoList = list; _priceview.AreaSysNoList = list; QueryResult.ItemsSource = _areaViewList; QueryResult.TotalCount = _areaViewList.Count; QueryResult.Bind(); } }, new Size(700, 420)); }
private void SelectArea_Click(object sender, RoutedEventArgs e) { if (!AuthMgr.HasFunctionPoint(AuthKeyConst.Common_ShipTypeAreaUnAddNew_ChooseArea)) { Window.Alert(Msg_HasNoRight); return; } List <int?> list = new List <int?>(); UCAreaQuery queryArea = new UCAreaQuery(); queryArea.DialogHandler = Window.ShowDialog("地区查询", queryArea, (s, args) => { if (args.DialogResult == DialogResultType.OK) { _areaViewList = args.Data as List <AreaQueryVM>; if (_areaViewList != null & _areaViewList.Count > 0) { foreach (var _areaView in _areaViewList) { list.Add(_areaView.SysNo); } } _view.AreaSysNoList = list; QueryResult.ItemsSource = _areaViewList; QueryResult.TotalCount = _areaViewList.Count; QueryResult.Bind(); } }, new Size(700, 420)); }