Example #1
0
        /// <summary>
        /// 刷新界面数据
        /// </summary>
        /// <param name="msg">搜索框中的文本信息</param>
        private void RefreshPatientList(dynamic msg)
        {
            DateTime scheduledTime = Convert.ToDateTime(msg.scheduledTime);
            string   RoomNo        = msg.roomNo;
            string   msg1          = msg.inputText;
            // List<MED_PAT_INFO> list = PatInfoService.ClientInstance.GetPatInfos(msg1, ExtendAppContext.Current.OperDeptCode);
            List <MED_PAT_INFO>       list = PatInfoService.ClientInstance.GetPatInfosByData(scheduledTime, RoomNo, msg1, ExtendAppContext.Current.OperDeptCode);
            List <MED_OPERATING_ROOM> listOperatingRoom = DictService.ClientInstance.GetOperatingRoomList();

            if (ApplicationConfiguration.IsOpenPatConfirm && this.CheckIsNumberic(msg1) &&
                listOperatingRoom.Find(x => x.ROOM_NO == ExtendAppContext.Current.OperRoomNo).PATIENT_ID == null)
            {
                if (list.Count > 0)
                {
                    var ls = list.GroupBy(x => x.PATIENT_ID);
                    if (ls.Count() == 1)
                    {
                        var item = list.OrderByDescending(x => x.SCHEDULED_DATE_TIME).FirstOrDefault();
                        ShowContentWindowMessage message;
                        message = new ShowContentWindowMessage("PatConfirmControl", "患者核对")
                        {
                            Height = 500,
                            Width  = 600,
                            Args   = new object[] { PatientModel.CreateModel(item) }
                        };

                        Messenger.Default.Send <ShowContentWindowMessage>(message);
                    }
                }
            }

            this.PatientModelListCount = list.Count;
            // 先转换8条数据
            this.PatientModelList = PatientModel.CreateListModel(list, new EventHandler(this.CreatePageList)).ToList <PatientModel>();
        }
Example #2
0
 /// <summary>
 /// 真正开始转换
 /// </summary>
 private void RealCreatePageList(object[] par)
 {
     if (par.Length == 1 && par[0] is List <MED_PAT_INFO> )
     {
         List <MED_PAT_INFO> list = par[0] as List <MED_PAT_INFO>;
         this.PatientModelList      = PatientModel.CreateListModel(list).ToList <PatientModel>();
         this.PatientModelListCount = this.PatientModelList.Count;
     }
 }
Example #3
0
 /// <summary>
 /// 刷新界面
 /// </summary>
 private void RefreshWorkList(IEnumerable <MED_PAT_INFO> patList)
 {
     this.PatientModelList = PatientModel.CreateListModel(patList).ToList <PatientModel>();
     this.WorkListTitle    = this.CurEnumWorkList == EnumWorkListType.SearchCommandWorkList ?
                             ApplicationModel.Instance.GetEnumDescription <EnumWorkListType>(this.CurEnumWorkList) + "  " +
                             this.PatientModelList.Count() :
                             ApplicationModel.Instance.GetEnumDescription <EnumDayType>(this.CurEnumDayType) +
                             ApplicationModel.Instance.GetEnumDescription <EnumWorkListType>(this.CurEnumWorkList) + "  " +
                             this.PatientModelList.Count();
 }