Exemple #1
0
        private void m_mthPatientLoadArea(Control p_ctlSender)
        {
            ctlComboBox cboTemp = p_ctlSender as ctlComboBox;             //

            //			if(m_cboPatientBedDept.SelectedItem==null) return;
            clsInPatientArea[] objAreaArr = null;
            this.Cursor = Cursors.WaitCursor;
            if (m_objManagerDomain.m_lngGetAllAreaInDept(((clsDeptInfo_ManageExplorer)m_cboPatientBedDept2.SelectedItem).m_strDeptID,
                                                         out objAreaArr) <= 0)
            {
                this.Cursor = Cursors.Default;
                return;
            }
            if (objAreaArr == null)
            {
                this.Cursor = Cursors.Default;
                return;
            }
            cboTemp.ClearItem();
            for (int i = 0; i < objAreaArr.Length; i++)
            {
                clsAreaInfo_ManageExplorer objArea = new clsAreaInfo_ManageExplorer();
                objArea.m_strAreaID   = objAreaArr[i].m_StrAreaID;
                objArea.m_strAreaName = objAreaArr[i].m_StrAreaName;
                cboTemp.AddItem(objArea);
            }
            this.Cursor = Cursors.Default;
        }
Exemple #2
0
 public void m_thDept_SelectedIndexChanged()
 {
     m_cboArea.ClearItem();
     clsInPatientArea[] objAreaArr;
     new clsDepartmentManager().m_lngGetAllAreaInDept(((clsDepartment)(m_cboDept.SelectedItem)).m_StrDeptID, out objAreaArr);
     if (objAreaArr != null)
     {
         m_cboArea.AddRangeItems(objAreaArr);
         m_cboArea.SelectedIndex = 0;
     }
 }
Exemple #3
0
//		private void m_mthPatientLoadArea(Control p_ctlSender)
//		{
//			ctlComboBox cboTemp = p_ctlSender as ctlComboBox; //
//			//			if(m_cboPatientBedDept.SelectedItem==null) return;
//			bool blnIsNull = cboTemp.Name == "m_cboPatientBedDept" ? m_cboPatientBedDept.SelectedItem==null : m_cboPatientBedDept2.SelectedItem == null;
//			if(blnIsNull) return;
//			clsInPatientArea[] objAreaArr=null;
//			this.Cursor=Cursors.WaitCursor;
//			if(m_objManagerDomain.m_lngGetAllAreaInDept(((clsDeptInfo_ManageExplorer)m_cboPatientBedDept2.SelectedItem).m_strDeptID,
//				out objAreaArr)<=0)
//			{
//				this.Cursor=Cursors.Default;
//				return;
//			}
//			if(objAreaArr==null)
//			{
//				this.Cursor=Cursors.Default;
//				return;
//			}
//			cboTemp.ClearItem();
//			for(int i=0;i<objAreaArr.Length;i++)
//			{
//				clsAreaInfo_ManageExplorer objArea=new clsAreaInfo_ManageExplorer();
//				objArea.m_strAreaID=objAreaArr[i].m_StrAreaID;
//				objArea.m_strAreaName=objAreaArr[i].m_StrAreaName;
//				cboTemp.AddItem(objArea);
//			}
//			this.Cursor=Cursors.Default;
//		}
        private void m_mthPatientLoadDept(Control p_ctlSender)
        {
            this.Cursor = Cursors.WaitCursor;
            clsDepartment[] objDeptArr = m_objManagerDomain.m_objGetAllInDeptArr();
            if (objDeptArr == null)
            {
                this.Cursor = Cursors.Default;
                return;
            }
            ctlComboBox cboTemp = p_ctlSender as ctlComboBox;             //

            //			m_cboPatientBedDept.ClearItem();
            cboTemp.ClearItem();
            for (int i = 0; i < objDeptArr.Length; i++)
            {
                clsDeptInfo_ManageExplorer objDept = new clsDeptInfo_ManageExplorer();
                objDept.m_strDeptID   = objDeptArr[i].m_StrDeptID;
                objDept.m_strDeptName = objDeptArr[i].m_StrDeptName;

                cboTemp.AddItem(objDept);
            }
            this.Cursor = Cursors.Default;
        }
Exemple #4
0
        private void m_mthPatientLoadBed(Control p_ctlSender)
        {
            ctlComboBox cboBed  = p_ctlSender as ctlComboBox;
            ctlComboBox cboArea = m_cboPatientBedArea2;

            if (cboArea.SelectedItem == null)
            {
                return;
            }

            clsInPatientBed[] objBedArr     = null;
            clsPatient[]      objPatientArr = null;
            this.Cursor = Cursors.WaitCursor;
            if (m_objManagerDomain.m_lngGetAllBedAndPatientInArea(((clsAreaInfo_ManageExplorer)cboArea.SelectedItem).m_strAreaID,
                                                                  out objBedArr, out objPatientArr) <= 0)
            {
                this.Cursor = Cursors.Default;
                return;
            }
            if (objBedArr == null || objPatientArr == null || objBedArr.Length < objPatientArr.Length)
            {
                this.Cursor = Cursors.Default;
                return;
            }
            cboBed.ClearItem();
            for (int i = 0; i < objBedArr.Length; i++)
            {
                if (objPatientArr[i] == null)
                {
                    clsBedInfo objBed = new clsBedInfo();
                    objBed.m_strBedID   = objBedArr[i].m_StrBedID;
                    objBed.m_strBedName = objBedArr[i].m_StrBedName;
                    cboBed.AddItem(objBed);
                }
            }
            this.Cursor = Cursors.Default;
        }