public clsHightOxygen objDisplay(string strInPatientID, string strInPatientDate, string strCreateDate) { string strXML = ""; int intRows = 0; long lngSucceed = 0; clsHightOxygen m_objDisplay = new clsHightOxygen(); com.digitalwave.HighOxygenServ.clsHighOxygenServ m_objServ = (com.digitalwave.HighOxygenServ.clsHighOxygenServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.HighOxygenServ.clsHighOxygenServ)); try { lngSucceed = m_objServ.lngSelectNewRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, strInPatientID, strInPatientDate, strCreateDate, ref strXML, ref intRows); if (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) { m_objDisplay.strInPatientID = objReader.GetAttribute("INPATIENTID").ToString().Replace('き', '\''); m_objDisplay.strInPatientDate = objReader.GetAttribute("INPATIENTDATE").ToString().Replace('き', '\''); m_objDisplay.strCreateDate = objReader.GetAttribute("CREATEDATE").ToString().Replace('き', '\''); m_objDisplay.strCreateUserID = objReader.GetAttribute("CREATEUSERID").ToString().Replace('き', '\''); m_objDisplay.strApplyDocID = objReader.GetAttribute("APPLYDOCID").ToString().Replace('き', '\''); m_objDisplay.strAssistantCT = objReader.GetAttribute("ASSISTANTCT").ToString().Replace('き', '\''); m_objDisplay.strAssistantEEG = objReader.GetAttribute("ASSISTANTEEG").ToString().Replace('き', '\''); m_objDisplay.strAssistantEKG = objReader.GetAttribute("ASSISTANTEKG").ToString().Replace('き', '\''); m_objDisplay.strAssistantMR = objReader.GetAttribute("ASSISTANTMR").ToString().Replace('き', '\''); m_objDisplay.strAssistantOthe = objReader.GetAttribute("ASSISTANTOTHER").ToString().Replace('き', '\''); m_objDisplay.strClinicCheck = objReader.GetAttribute("CLINICCHECK").ToString().Replace('き', '\''); m_objDisplay.strClinicCure = objReader.GetAttribute("CLINICCURE").ToString().Replace('き', '\''); m_objDisplay.strClinicDiagnose = objReader.GetAttribute("CLINICDIAGNOSE").ToString().Replace('き', '\''); m_objDisplay.strDocID = objReader.GetAttribute("DOCID").ToString().Replace('き', '\''); m_objDisplay.strHighOxygen = objReader.GetAttribute("HIGHOXYGEN").ToString().Replace('き', '\''); m_objDisplay.strHighOxygenTime = objReader.GetAttribute("HIGHOXYGENTIME").ToString().Replace('き', '\''); m_objDisplay.strResume = objReader.GetAttribute("RESUME").ToString().Replace('き', '\''); m_objDisplay.strOrderID = objReader.GetAttribute("ORDERID").ToString().Replace('き', '\''); } break; } } } } finally { //m_objServ.Dispose(); } return(m_objDisplay); }
/// <summary> /// 侭嗤議HighOxygen賦萩扮寂 /// </summary> /// <param name="p_strInPatientID"></param> /// <param name="p_strInPatientDate"></param> /// <returns></returns> public DateTime [] m_dtmGetTimeInfoOfAPatientArr(string p_strInPatientID, string p_strInPatientDate) { if (p_strInPatientID == null || p_strInPatientID == "") { return(null); } DateTime[] dtmCreateRecordDateArr = null; com.digitalwave.HighOxygenServ.clsHighOxygenServ m_objServ = (com.digitalwave.HighOxygenServ.clsHighOxygenServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.HighOxygenServ.clsHighOxygenServ)); try { string strXml = ""; int intRows = 0; long lngRes = m_objServ.m_lngGetTimeInfoOfAPatient(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, ref strXml, ref intRows); if (lngRes > 0 && intRows > 0) { dtmCreateRecordDateArr = new DateTime[intRows]; XmlTextReader objReader = new XmlTextReader(strXml, XmlNodeType.Element, m_objXmlParser); objReader.WhitespaceHandling = WhitespaceHandling.None; int intIndex = 0; while (objReader.Read()) { switch (objReader.NodeType) { case XmlNodeType.Element: if (objReader.HasAttributes) { dtmCreateRecordDateArr[intIndex] = DateTime.Parse(objReader.GetAttribute("CREATEDATE")); intIndex++; } break; } } } } finally { //m_objServ.Dispose(); } return(dtmCreateRecordDateArr); }
public long lngSave(clsHightOxygen m_objHightOxygen) { long lngSucceed = 0; com.digitalwave.HighOxygenServ.clsHighOxygenServ m_objServ = (com.digitalwave.HighOxygenServ.clsHighOxygenServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.HighOxygenServ.clsHighOxygenServ)); try { string strXML = this.strSaveXML(m_objHightOxygen); lngSucceed = m_objServ.m_lngAddNewRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, strXML); } finally { //m_objServ.Dispose(); } return(lngSucceed); }