/// <summary> /// 获取从表信息 -- CommonRecord /// </summary> /// <param name="p_strInPatientID"></param> /// <param name="p_strInPatientDate"></param> /// <param name="p_strCreateDate"></param> /// <returns></returns> public clsXRayCommonRecord[] m_objGetCommonRecordArr(string p_strInPatientID, string p_strInPatientDate, string p_strCreateDate) { clsXRayCommonRecord[] objXRayCommonRecordArr = null; clsXRayCheckOrderServ m_objServ = (clsXRayCheckOrderServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsXRayCheckOrderServ)); try { int m_intReturnRows = 0; string m_strReceivedXML = ""; long lngSucceed = m_objServ.GetXRayCommonRecor(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_strCreateDate, ref m_strReceivedXML, ref m_intReturnRows); if (m_intReturnRows > 0) { objXRayCommonRecordArr = new clsXRayCommonRecord[m_intReturnRows]; XmlTextReader objReader = new XmlTextReader(m_strReceivedXML, XmlNodeType.Element, m_objXmlParser); objReader.WhitespaceHandling = WhitespaceHandling.None; int intIndex = 0; while (objReader.Read()) { switch (objReader.NodeType) { case XmlNodeType.Element: if (objReader.HasAttributes) { objXRayCommonRecordArr[intIndex] = new clsXRayCommonRecord(); objXRayCommonRecordArr[intIndex].m_strPhotoID = objReader.GetAttribute("PHOTOID").ToString().Replace('き', '\''); objXRayCommonRecordArr[intIndex].m_strCheckPlace = objReader.GetAttribute("CHECKPLACE").ToString().Replace('き', '\''); objXRayCommonRecordArr[intIndex].m_strMappingPlace = objReader.GetAttribute("MAPPINGPLACE").ToString().Replace('き', '\''); objXRayCommonRecordArr[intIndex].m_strPhotoArea = objReader.GetAttribute("PHOTOAREA").ToString().Replace('き', '\''); objXRayCommonRecordArr[intIndex].m_strPhotoThickness = objReader.GetAttribute("PHOTOTHICKNESS").ToString().Replace('き', '\''); objXRayCommonRecordArr[intIndex].m_strDistance = objReader.GetAttribute("DISTANCE").ToString().Replace('き', '\''); objXRayCommonRecordArr[intIndex].m_strVoltage = objReader.GetAttribute("VOLTAGE").ToString().Replace('き', '\''); objXRayCommonRecordArr[intIndex].m_strElectricity = objReader.GetAttribute("ELECTRICITY").ToString().Replace('き', '\''); objXRayCommonRecordArr[intIndex].m_strDisposeTime = objReader.GetAttribute("DISPOSETIME").ToString().Replace('き', '\''); objXRayCommonRecordArr[intIndex].m_strBucky = objReader.GetAttribute("BUCKY").ToString().Replace('き', '\''); intIndex++; } break; } } } } finally { //m_objServ.Dispose(); } return(objXRayCommonRecordArr); }
/// <summary> /// 获取从表信息 -- SpecialRecord /// </summary> /// <param name="p_strInPatientID"></param> /// <param name="p_strInPatientDate"></param> /// <param name="p_strCreateDate"></param> /// <returns></returns> public clsXRaySpecialRecord[] m_objGetSpecialRecordArr(string p_strInPatientID, string p_strInPatientDate, string p_strCreateDate) { clsXRaySpecialRecord[] objXRaySpecialRecordArr = null; clsXRayCheckOrderServ m_objServ = (clsXRayCheckOrderServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsXRayCheckOrderServ)); try { int m_intReturnRows = 0; string m_strReceivedXML = ""; long lngSucceed = m_objServ.GetXRaySpecialRecor(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_strCreateDate, ref m_strReceivedXML, ref m_intReturnRows); if (m_intReturnRows > 0) { objXRaySpecialRecordArr = new clsXRaySpecialRecord[m_intReturnRows]; XmlTextReader objReader = new XmlTextReader(m_strReceivedXML, XmlNodeType.Element, m_objXmlParser); objReader.WhitespaceHandling = WhitespaceHandling.None; int intIndex = 0; while (objReader.Read()) { switch (objReader.NodeType) { case XmlNodeType.Element: if (objReader.HasAttributes) { objXRaySpecialRecordArr[intIndex] = new clsXRaySpecialRecord(); objXRaySpecialRecordArr[intIndex].m_strPhotoID = objReader.GetAttribute("PHOTOID").ToString().Replace('き', '\''); objXRaySpecialRecordArr[intIndex].m_strPhotoSeq = objReader.GetAttribute("PHOTOSEQ").ToString().Replace('き', '\''); objXRaySpecialRecordArr[intIndex].m_strCheckPlace = objReader.GetAttribute("CHECKPLACE").ToString().Replace('き', '\''); objXRaySpecialRecordArr[intIndex].m_strTimeOfAfterInject = objReader.GetAttribute("TIMEOFAFTERINJECT").ToString().Replace('き', '\''); objXRaySpecialRecordArr[intIndex].m_strFisrtOperatorID = objReader.GetAttribute("FISRTOPERATORID").ToString().Replace('き', '\''); objXRaySpecialRecordArr[intIndex].m_strRemark = objReader.GetAttribute("REMARK").ToString().Replace('き', '\''); intIndex++; } break; } } } } finally { //m_objServ.Dispose(); } return(objXRaySpecialRecordArr); }
public long m_lngSave(clsXRayCheckOrder p_objXRayCheckOrder, clsXRayCommonRecord[] p_objXRayCommonRecordArr, clsXRaySpecialRecord[] p_objXRaySpecialRecordArr, clsXRayOperatorID[] p_objOperatorIDArr, ImageRequest p_objImageRequest, ref string p_strApplicationID, bool p_bnlIsNew) { /*///////////操作PS_ImageApplication表中的记录///////////*/ string m_strApplicationID = ""; long m_lngRe; if (p_objXRayCheckOrder == null) { return(-1); } else if (p_bnlIsNew == false) { m_strApplicationID = p_objXRayCheckOrder.m_strApplicationID; } if (p_objXRayCheckOrder == null) { return(-1); } /*/////////////////////////////*/ clsXRayCheckOrderServ m_objServ = (clsXRayCheckOrderServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsXRayCheckOrderServ)); try { string strOrderXML = m_strOrderXML(p_objXRayCheckOrder); string[] strCommonXML = m_strCommonXML(p_objXRayCommonRecordArr); string[] strSpecialXML = m_strSpecialXML(p_objXRaySpecialRecordArr); string[] strOperatorXML = m_strOperatorXML(p_objOperatorIDArr); m_lngRe = m_objServ.m_lngAddNew(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, strOrderXML, strCommonXML, strSpecialXML, strOperatorXML, p_objImageRequest, ref m_strApplicationID, p_bnlIsNew); p_strApplicationID = m_strApplicationID; } finally { //m_objServ.Dispose(); } return(m_lngRe); }
/// <summary> /// 获得所有CreateDate /// </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; clsXRayCheckOrderServ m_objServ = (clsXRayCheckOrderServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsXRayCheckOrderServ)); 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); }
/// <summary> /// 获取从表信息 -- SpecialRecord /// </summary> /// <param name="p_strInPatientID"></param> /// <param name="p_strInPatientDate"></param> /// <param name="p_strCreateDate"></param> /// <returns></returns> public clsXRayOperatorID[] m_objGetOperatorIDArr(string p_strInPatientID, string p_strInPatientDate, string p_strCreateDate) { clsXRayOperatorID[] objXRayOperatorIDArr = null; clsXRayCheckOrderServ m_objServ = (clsXRayCheckOrderServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsXRayCheckOrderServ)); try { int m_intReturnRows = 0; string m_strReceivedXML = ""; long lngSucceed = m_objServ.GetXRayOperator(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_strCreateDate, ref m_strReceivedXML, ref m_intReturnRows); if (m_intReturnRows > 0) { objXRayOperatorIDArr = new clsXRayOperatorID[m_intReturnRows]; XmlTextReader objReader = new XmlTextReader(m_strReceivedXML, XmlNodeType.Element, m_objXmlParser); objReader.WhitespaceHandling = WhitespaceHandling.None; int intIndex = 0; while (objReader.Read()) { switch (objReader.NodeType) { case XmlNodeType.Element: if (objReader.HasAttributes) { objXRayOperatorIDArr[intIndex] = new clsXRayOperatorID(); objXRayOperatorIDArr[intIndex].m_strOperatorID = objReader.GetAttribute("OPERATORID"); intIndex++; } break; } } } } finally { //m_objServ.Dispose(); } return(objXRayOperatorIDArr); }
/// <summary> /// 获取主表的信息 /// </summary> /// <param name="p_strInPatientID"></param> /// <param name="p_strInPatientDate"></param> /// <param name="p_strCreateDate"></param> /// <returns></returns> public clsXRayCheckOrder m_objGetXRayCheckOrder(string p_strInPatientID, string p_strInPatientDate, string p_strCreateDate) { if (p_strInPatientID == null || p_strInPatientID == "" || p_strInPatientDate == null || p_strInPatientDate == "" || p_strCreateDate == null || p_strCreateDate == "") { return(null); } clsXRayCheckOrder objXRayCheckOrder = null; clsXRayCheckOrderServ m_objServ = (clsXRayCheckOrderServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsXRayCheckOrderServ)); try { string strXml = ""; int intRows = 0; long lngRes = m_objServ.GetXRayCheckOrder(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_strCreateDate, 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) { objXRayCheckOrder = new clsXRayCheckOrder(); objXRayCheckOrder.m_strInPatientID = objReader.GetAttribute("INPATIENTID").ToString().Replace('き', '\''); objXRayCheckOrder.m_strInPatientDate = objReader.GetAttribute("INPATIENTDATE").ToString().Replace('き', '\''); objXRayCheckOrder.m_strCreateDate = objReader.GetAttribute("CREATEDATE").ToString().Replace('き', '\''); objXRayCheckOrder.m_strStatus = objReader.GetAttribute("STATUS").ToString().Replace('き', '\''); objXRayCheckOrder.m_strIfConfirm = objReader.GetAttribute("IFCONFIRM").ToString().Replace('き', '\''); objXRayCheckOrder.m_strDeActivedDate = objReader.GetAttribute("DEACTIVEDDATE").ToString().Replace('き', '\''); objXRayCheckOrder.m_strDeActivedOperatorID = objReader.GetAttribute("DEACTIVEDOPERATORID").ToString().Replace('き', '\''); objXRayCheckOrder.m_strConfirmReason = objReader.GetAttribute("CONFIRMREASON").ToString().Replace('き', '\'');; objXRayCheckOrder.m_strConfirmReasonXML = objReader.GetAttribute("CONFIRMREASONXML").ToString().Replace('き', '\''); objXRayCheckOrder.m_strCreateUserID = objReader.GetAttribute("CREATEUSERID").ToString().Replace('き', '\''); objXRayCheckOrder.m_strModifyDate = objReader.GetAttribute("MODIFYDATE").ToString().Replace('き', '\'');//ben 2003-4-29 objXRayCheckOrder.m_strHistory = objReader.GetAttribute("HISTORY").ToString().Replace('き', '\''); objXRayCheckOrder.m_strClinicalCheckAndResult = objReader.GetAttribute("CLINICALCHECKANDRESULT").ToString().Replace('き', '\''); objXRayCheckOrder.m_strClinicalDignose = objReader.GetAttribute("CLINICALDIGNOSE").ToString().Replace('き', '\''); objXRayCheckOrder.m_strCheckAim = objReader.GetAttribute("CHECKAIM").ToString().Replace('き', '\''); objXRayCheckOrder.m_strCheckPlace = objReader.GetAttribute("CHECKPLACE").ToString().Replace('き', '\''); objXRayCheckOrder.m_strClairvoyance = objReader.GetAttribute("CLAIRVOYANCE").ToString().Replace('き', '\''); objXRayCheckOrder.m_strPhoto = objReader.GetAttribute("PHOTO").ToString().Replace('き', '\''); objXRayCheckOrder.m_strNotHaveOldPhoto = objReader.GetAttribute("NOTHAVEOLDPHOTO").ToString().Replace('き', '\''); objXRayCheckOrder.m_strHaveOldPhoto = objReader.GetAttribute("HAVEOLDPHOTO").ToString().Replace('き', '\''); objXRayCheckOrder.m_strHaveOldPhotoOut = objReader.GetAttribute("HAVEOLDPHOTOOUT").ToString().Replace('き', '\''); objXRayCheckOrder.m_strCharge = objReader.GetAttribute("CHARGE").ToString().Replace('き', '\''); objXRayCheckOrder.m_strAdditionCharge = objReader.GetAttribute("ADDITIONCHARGE").ToString().Replace('き', '\''); objXRayCheckOrder.m_strCheckPartSelection = objReader.GetAttribute("CHECKPARTSELECTION").ToString().Replace('き', '\''); objXRayCheckOrder.m_strXRayNo = objReader.GetAttribute("XRAYNO").ToString().Replace('き', '\''); objXRayCheckOrder.m_strInsuranceNo = objReader.GetAttribute("INSURANCENO").ToString().Replace('き', '\''); objXRayCheckOrder.m_strOtherCheckInfo = objReader.GetAttribute("OTHERCHECKINFO").ToString().Replace('き', '\''); objXRayCheckOrder.m_strContactInfo = objReader.GetAttribute("CONTACTINFO").ToString().Replace('き', '\''); objXRayCheckOrder.m_strApplicationID = objReader.GetAttribute("APPLICATIONID").ToString().Replace('き', '\''); } break; } } } } finally { //m_objServ.Dispose(); } return(objXRayCheckOrder); }