Beispiel #1
0
        protected override void m_mthSetShiftTurnInfo(clsPICUShiftTurnInfo p_objTurnInfo, clsPatient p_objPatient)
        {
            p_objTurnInfo.m_strInPatientID   = p_objPatient.m_StrInPatientID;
            p_objTurnInfo.m_strINPATIENTDATE = p_objPatient.m_DtmSelectedInDate.ToString("yyyy-MM-dd HH:mm:ss");
            p_objTurnInfo.m_dtmTurnTime      = m_dtpTurnTime.Value;

            p_objTurnInfo.m_strTurnFromEmployeeID = ((clsEmrEmployeeBase_VO)txtFromDoctor.Tag).m_strEMPNO_CHR;
            if (m_lblFromDeptDoctor.Tag != null)
            {
                //			if(p_objTurnInfo.m_strTurnFromEmployeeID != null)
                //				p_objTurnInfo.m_strTurnFromDeptID = p_objTurnInfo.m_objTurnFromDoctor.m_ObjDepartment;

                p_objTurnInfo.m_strTurnToEmployeeID = ((clsEmrEmployeeBase_VO)m_lblToDeptDoctor.Tag).m_strEMPNO_CHR;
            }

            p_objTurnInfo.m_strTurnToDeptID = m_ObjCurrentArea.m_strDEPTID_CHR;// ((clsDepartment)m_cboToDept.SelectedItem).m_StrDeptID;
        }
Beispiel #2
0
        public clsPICUShiftInfo m_objGetDeletedPICUShiftInfo(clsPatient p_objPatient, string p_strTurnTime)
        {
            string strXML  = "";
            int    intRows = 0;

            long lngRes = m_lngSubGetDeletedPICUShiftInfo(p_objPatient.m_StrInPatientID, p_objPatient.m_DtmSelectedInDate.ToString("yyyy-MM-dd HH:mm:ss"), p_strTurnTime, ref strXML, ref intRows);

            if (lngRes > 0 && intRows > 0)
            {
                XmlTextReader objReader = new XmlTextReader(strXML, XmlNodeType.Element, m_objXmlParser);
                objReader.WhitespaceHandling = WhitespaceHandling.None;

                while (objReader.Read())
                {
                    switch (objReader.NodeType)
                    {
                    case XmlNodeType.Element:
                        if (objReader.HasAttributes)
                        {
                            clsPICUShiftInfo objShiftInfo = new clsPICUShiftInfo();

                            clsPICUShiftTurnInfo objTurnInfo = m_objGetTurnInfo();
                            objTurnInfo.m_strInPatientID   = p_objPatient.m_StrInPatientID;
                            objTurnInfo.m_strINPATIENTDATE = p_objPatient.m_DtmSelectedInDate.ToString("yyyy-MM-dd HH:mm:ss");
                            clsPICUShiftBaseInfo      objBaseInfo  = new clsPICUShiftBaseInfo();
                            clsPICUShiftCheckInfo     objCheckInfo = new clsPICUShiftCheckInfo();
                            clsPICUShiftLabReportInfo objLabReport = new clsPICUShiftLabReportInfo();

                            objShiftInfo.m_objTurnInfo      = objTurnInfo;
                            objShiftInfo.m_objBaseInfo      = objBaseInfo;
                            objShiftInfo.m_objPICUCheckInfo = objCheckInfo;
                            objShiftInfo.m_objLabReportInfo = objLabReport;

                            objShiftInfo.m_mthSetValue(objReader);

                            return(objShiftInfo);
                        }
                        break;
                    }
                }
            }
            return(null);
        }