public long m_lngGetApplicationid(ref string p_strApplicationid) { long lngRet = 0; string strXML = ""; int intRows = 0; com.digitalwave.CTCheckOrderServ.clsCTCheckOrderServ m_objServ = (com.digitalwave.CTCheckOrderServ.clsCTCheckOrderServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.CTCheckOrderServ.clsCTCheckOrderServ)); try { lngRet = m_objServ.m_lngGetApplicationID(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) { p_strApplicationid = objReader.GetAttribute("APPLICATIONID").ToString().Replace('き', '\''); } break; } } if (p_strApplicationid.StartsWith("P")) { p_strApplicationid = p_strApplicationid.Remove(0, 1); } long mMax = long.Parse(p_strApplicationid) + 1; if (mMax < 100000) { p_strApplicationid = "P" + mMax.ToString("00000"); } else { p_strApplicationid = "P" + mMax.ToString(); } } } finally { //m_objServ.Dispose(); } return(lngRet); }
/// <summary> /// 侭嗤議CT賦萩扮寂 /// </summary> /// <param name="p_strInPatientID"></param> /// <param name="p_strInPatientDate"></param> /// <returns></returns> public DateTime [] m_dtmGetTimeInfoOfAPatientArr(string p_strInPatientID) { if (p_strInPatientID == null || p_strInPatientID == "") { return(null); } DateTime[] dtmCreateRecordDateArr = null; com.digitalwave.CTCheckOrderServ.clsCTCheckOrderServ m_objServ = (com.digitalwave.CTCheckOrderServ.clsCTCheckOrderServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.CTCheckOrderServ.clsCTCheckOrderServ)); try { string strXml = ""; int intRows = 0; long lngRes = m_objServ.m_lngGetTimeInfoOfAPatient(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, null, 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); }
// // //耶紗曾倖歌方�RequestImage,ApplicationID。 // public long lngSave(clsCTCheckOrder m_objCTCheckOrderContent) // // { // string strXML=this.strSaveXML(m_objCTCheckOrderContent); // long lngSucceed=m_objServ.m_lngAddNewRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial,strXML); // // return lngSucceed; // } public long lngSave(clsCTCheckOrder m_objCTCheckOrderContent, bool p_bnlIsAddNew, ImageRequest p_objImageRequest, ref string p_strApplicationID) { string m_strApplicationID = ""; if (p_bnlIsAddNew == false) { if (m_objCTCheckOrderContent != null) { //m_strApplicationID=m_objCTCheckOrderContent.strApplicationID; m_strApplicationID = p_strApplicationID; } } else { m_lngGetApplicationid(ref m_strApplicationID); } long lngSucceed = 0; com.digitalwave.CTCheckOrderServ.clsCTCheckOrderServ m_objServ = (com.digitalwave.CTCheckOrderServ.clsCTCheckOrderServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.CTCheckOrderServ.clsCTCheckOrderServ)); try { string strXML = this.strSaveXML(m_objCTCheckOrderContent); lngSucceed = m_objServ.m_lngSaveRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, strXML, p_objImageRequest, ref m_strApplicationID, p_bnlIsAddNew); p_strApplicationID = m_strApplicationID; } finally { //m_objServ.Dispose(); } return(lngSucceed); }
public clsCTCheckOrder objDisplay(string strInPatientID, string strInPatientDate, string strCreateDate) { string strXML = ""; int intRows = 0; clsCTCheckOrder m_objDisplay = new clsCTCheckOrder(); com.digitalwave.CTCheckOrderServ.clsCTCheckOrderServ m_objServ = (com.digitalwave.CTCheckOrderServ.clsCTCheckOrderServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.CTCheckOrderServ.clsCTCheckOrderServ)); try { if (strInPatientDate == null || strInPatientDate.Trim() == "") { long lngSucceed = m_objServ.lngSelectNewRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, strInPatientID, strCreateDate, ref strXML, ref intRows); } else { long 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.strAdvanceID = objReader.GetAttribute("ADVANCEID").ToString().Replace('き', '\''); m_objDisplay.strAdvanceTime = objReader.GetAttribute("ADVANCETIME").ToString().Replace('き', '\''); m_objDisplay.strAKP = objReader.GetAttribute("AKP").ToString().Replace('き', '\''); m_objDisplay.strAlbumen = objReader.GetAttribute("ALBUMEN").ToString().Replace('き', '\''); m_objDisplay.strApplyDotorID = objReader.GetAttribute("APPLYDOTORID").ToString().Replace('き', '\''); m_objDisplay.strBladder = objReader.GetAttribute("BLADDER").ToString().Replace('き', '\''); m_objDisplay.strBlood = objReader.GetAttribute("BLOOD").ToString().Replace('き', '\''); m_objDisplay.strBloodDoop = objReader.GetAttribute("BLOODDOOP").ToString().Replace('き', '\''); m_objDisplay.strBreast = objReader.GetAttribute("BREAST").ToString().Replace('き', '\''); m_objDisplay.strCancer = objReader.GetAttribute("CANCER").ToString().Replace('き', '\''); m_objDisplay.strCheckMoneyContent = objReader.GetAttribute("CHECKMONEYCONTENT").ToString().Replace('き', '\''); m_objDisplay.strCheckPart = objReader.GetAttribute("CHECKPART").ToString().Replace('き', '\''); m_objDisplay.strClinic = objReader.GetAttribute("CLINIC").ToString().Replace('き', '\''); m_objDisplay.strCreateUserID = objReader.GetAttribute("CREATEUSERID").ToString().Replace('き', '\''); m_objDisplay.strCTNO = objReader.GetAttribute("CTNO").ToString().Replace('き', '\''); m_objDisplay.strEmiction = objReader.GetAttribute("EMICTION").ToString().Replace('き', '\''); m_objDisplay.strFecula = objReader.GetAttribute("FECULA").ToString().Replace('き', '\''); m_objDisplay.strFetus = objReader.GetAttribute("FETUS").ToString().Replace('き', '\''); m_objDisplay.strIdea = objReader.GetAttribute("IDEA").ToString().Replace('き', '\''); m_objDisplay.strLiver = objReader.GetAttribute("LIVER").ToString().Replace('き', '\''); m_objDisplay.strOther = objReader.GetAttribute("OTHER").ToString().Replace('き', '\''); m_objDisplay.strPancreas = objReader.GetAttribute("PANCREAS").ToString().Replace('き', '\''); m_objDisplay.strParticular = objReader.GetAttribute("PARTICULAR").ToString().Replace('き', '\''); m_objDisplay.strPee17 = objReader.GetAttribute("PEE17").ToString().Replace('き', '\''); m_objDisplay.strPhlegm = objReader.GetAttribute("PHLEGM").ToString().Replace('き', '\''); m_objDisplay.strPhotoMontyContent = objReader.GetAttribute("PHOTOMONTYCONTENT").ToString().Replace('き', '\''); m_objDisplay.strRed = objReader.GetAttribute("RED").ToString().Replace('き', '\''); m_objDisplay.strResumeAsthmaHave = objReader.GetAttribute("RESUMEASTHMAHAVE").ToString().Replace('き', '\''); m_objDisplay.strResumeAsthmaNone = objReader.GetAttribute("RESUMEASTHMANONE").ToString().Replace('き', '\''); m_objDisplay.strResumeHave = objReader.GetAttribute("RESUMEHAVE").ToString().Replace('き', '\''); m_objDisplay.strResumeNone = objReader.GetAttribute("RESUMENONE").ToString().Replace('き', '\''); m_objDisplay.strScan = objReader.GetAttribute("SCAN").ToString().Replace('き', '\''); m_objDisplay.strTool = objReader.GetAttribute("TOOL").ToString().Replace('き', '\''); m_objDisplay.strUltrasonic = objReader.GetAttribute("ULTRASONIC").ToString().Replace('き', '\''); m_objDisplay.strWalk = objReader.GetAttribute("WALK").ToString().Replace('き', '\''); m_objDisplay.strApplicationID = objReader.GetAttribute("APPLICATIONID").ToString().Replace('き', '\''); } break; } } } } finally { //m_objServ.Dispose(); } return(m_objDisplay); }