/// <summary> /// 获取下发记录信息 /// </summary> /// <returns></returns> public bool GetDataList(ViewModelIssudeInfoScreening commandList) { string functionName = "GetDataList"; try { List <AMS.Model.AMS_CommandDetail> modelList = new List <Model.AMS_CommandDetail>(); if (commandList == null) { modelList = AMS.ServiceProxy.IssuedInfoWindow.GetCommandListByCondition("-1", (int)AMS.Model.Enum.CommandType.None, (int)AMS.Model.Enum.CommandHandleResult.None); } else { modelList = AMS.ServiceProxy.IssuedInfoWindow.GetCommandListByCondition(commandList.SelectedSchoolNumValue, commandList.SelectedCommandTypeValue, commandList.SelectedHandleResultTypeValue); } IssuedInfoList.Clear(); foreach (AMS.Model.AMS_CommandDetail model in modelList) { ViewModelCommandDetail vm = new ViewModelCommandDetail(); vm.CommandDetail = model; IssuedInfoList.Add(vm); } return(true); } catch (AMS.Model.CustomerException ex) { ErrorMessage = string.Format("{0} 出自{1}.{2}", ex.Message, ex.ErrorSourcesClass, ex.ErrorSourcesFunction); return(false); } catch (Exception ex) { ErrorMessage = string.Format("{0} 出自{1}.{2}", ex.Message, CLASSNAME, functionName); return(false); } }
/// <summary> /// 获取下发记录信息 /// </summary> /// <returns></returns> public bool GetDataList() { string functionName = "GetDataList"; try { List <AMS.Model.AMS_IssureList> modelList = new List <Model.AMS_IssureList>(); modelList = AMS.ServiceProxy.IssuredCommandService.GetCommandState(SelectCommandType, SelectedSchoolID, SelectCommandState); IssuedInfoList.Clear(); foreach (AMS.Model.AMS_IssureList model in modelList) { ViewModelIssureShowItem vm = new ViewModelIssureShowItem(); vm.IssureItemModel = model; IssuedInfoList.Add(vm); } return(true); } catch (AMS.Model.CustomerException ex) { ErrorMessage = string.Format("{0} 出自{1}.{2}", ex.Message, ex.ErrorSourcesClass, ex.ErrorSourcesFunction); return(false); } catch (Exception ex) { ErrorMessage = string.Format("{0} 出自{1}.{2}", ex.Message, CLASSNAME, functionName); return(false); } }