예제 #1
0
        /// <summary>
        ///清除患者手术间安排
        /// </summary>
        /// <param name="patientID"></param>
        public bool ClearPatientRoom(string patientID)
        {
            bool result = false;
            List <MED_OPERATING_ROOM> operRoomList = comnDictRepository.GetAllOperatingRoomList().Data;

            if (operRoomList != null && operRoomList.Count > 0)
            {
                foreach (MED_OPERATING_ROOM row in operRoomList)
                {
                    if (!string.IsNullOrEmpty(row.PATIENT_ID) && row.PATIENT_ID.Equals(patientID))
                    {
                        row.PATIENT_ID = null;
                        row.VISIT_ID   = null;
                        row.OPER_ID    = null;
                        if (comnDictRepository.SaveOperatingRoom(row).Data > 0)
                        {
                            result = true;
                        }
                    }
                }
            }
            return(result);
        }
예제 #2
0
        private void InitTaskList()
        {
            using (BackgroundWorker worker = new BackgroundWorker())
            {
                worker.DoWork += delegate(object sender, DoWorkEventArgs e)
                {
                    if (null == ExtendApplicationContext.Current.CommDict.EventDict)
                    {
                        ExtendApplicationContext.Current.CommDict.EventDict = comnDictRepository.GetEventDictList().Data;
                    }
                    if (null == ExtendApplicationContext.Current.CommDict.UnitDictExt)
                    {
                        ExtendApplicationContext.Current.CommDict.UnitDictExt = comnDictRepository.GetUnitDictList().Data;
                    }
                    if (ExtendApplicationContext.Current.CommDict.AdministrationDictExt == null)
                    {
                        ExtendApplicationContext.Current.CommDict.AdministrationDictExt = comnDictRepository.GetAdminstrationDictList().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.HisUsersDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.HisUsersDict = comnDictRepository.GetHisUsersList().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.DeptDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.DeptDict = comnDictRepository.GetDeptDictList().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.OperationRoomDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.OperationRoomDict = comnDictRepository.GetAllOperatingRoomList().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.AnesInputDictDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.AnesInputDictDict = comnDictRepository.GetAnesInputDictList(null).Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.BloodGasDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.BloodGasDict = comnDictRepository.GetBloodGasDictList().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.WardDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.WardDict = comnDictRepository.GetWardDictList().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.EventDictExt == null)
                    {
                        ExtendApplicationContext.Current.CommDict.EventDictExt = comnDictRepository.GetAnesEventDictExt().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.ConfigDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.ConfigDict = comnDictRepository.GetConfig().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.HosotalConfigDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.HosotalConfigDict = comnDictRepository.GetHosotalConfig().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.AnesMethodDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.AnesMethodDict = comnDictRepository.GetAnesMethodDictList().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.DiagnosisDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.DiagnosisDict = comnDictRepository.GetDiagDictList().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.OperationNameDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.OperationNameDict = comnDictRepository.GetOperNameDictList().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.MonitorDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.MonitorDict = comnDictRepository.GetMonitorDictList().Data;
                    }

                    if (ExtendApplicationContext.Current.CommDict.MonitorFuntionDict == null)
                    {
                        ExtendApplicationContext.Current.CommDict.MonitorFuntionDict = comnDictRepository.GetMonitorFuctionCodeList().Data;
                    }
                };
                worker.RunWorkerAsync();
            };
        }