Beispiel #1
0
        public long m_lngSave(clsPathologyOrgCheckOrderInfo p_objPathologyOrgCheckOrde, clsPathologyOrgCheckOperatorID[] p_objOperatorArr)
        {
            if (p_objPathologyOrgCheckOrde == null)
            {
                return(-1);
            }
            long lngRes = 0;

            clsPathologyOrgCheckOrderServ m_objServ =
                (clsPathologyOrgCheckOrderServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPathologyOrgCheckOrderServ));

            try
            {
                string strOrderXML = m_strOrderXML(p_objPathologyOrgCheckOrde);

                string[] strOperatorXML = m_strOperatorXML(p_objOperatorArr);

                lngRes = m_objServ.m_lngAddNew(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, strOrderXML, strOperatorXML);
            }
            finally
            {
                //m_objServ.Dispose();
            }
            return(lngRes);
        }
Beispiel #2
0
        private string m_strOrderXML(clsPathologyOrgCheckOrderInfo p_objPathologyOrgCheckOrde)
        {
            if (p_objPathologyOrgCheckOrde == null)
            {
                return(null);
            }

            m_objXmlMemStream.SetLength(0);

            m_objXmlWriter.WriteStartDocument();
            m_objXmlWriter.WriteStartElement("RecordMaster");

            m_objXmlWriter.WriteAttributeString("INPATIENTID", p_objPathologyOrgCheckOrde.m_strInPatientID.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("INPATIENTDATE", p_objPathologyOrgCheckOrde.m_strInPatientDate.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("CREATEDATE", p_objPathologyOrgCheckOrde.m_strCreateDate.Replace('\'', 'き'));
//			m_objXmlWriter.WriteAttributeString("MODIFYDATE", p_objPathologyOrgCheckOrde.m_strModifyDate.Replace('\'','き'));
            m_objXmlWriter.WriteAttributeString("CREATEUSERID", p_objPathologyOrgCheckOrde.m_strCreateUserID.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("STATUS", p_objPathologyOrgCheckOrde.m_strStatus.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("IFCONFIRM", p_objPathologyOrgCheckOrde.m_strIfConfirm.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("MEDICALCHECKNO", p_objPathologyOrgCheckOrde.m_strMedicalCheckNo.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("HOSPITALNAME", p_objPathologyOrgCheckOrde.m_strHospitalName.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("LASTCHECKNUMBER", p_objPathologyOrgCheckOrde.m_strLastCheckNumber.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("SENDTHINGS", p_objPathologyOrgCheckOrde.m_strSendThings.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("FROMBODY", p_objPathologyOrgCheckOrde.m_strFromBody.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("SICKENPERIOD", p_objPathologyOrgCheckOrde.m_strSickenPeriod.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("HISTORY", p_objPathologyOrgCheckOrde.m_strHistory.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("CLINICALINFO", p_objPathologyOrgCheckOrde.m_strClinicalInfo.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("OPERATIONINFO", p_objPathologyOrgCheckOrde.m_strOperationInfo.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("CHECKAIM", p_objPathologyOrgCheckOrde.m_strCheckAim.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("BIOLOGYCHEMISTRY", p_objPathologyOrgCheckOrde.m_strBiologyChemistry.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("BLOOD", p_objPathologyOrgCheckOrde.m_strBlood.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("XRAY", p_objPathologyOrgCheckOrde.m_strXRay.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("BLOODSERUM", p_objPathologyOrgCheckOrde.m_strBloodSerum.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("OTHER", p_objPathologyOrgCheckOrde.m_strOther.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("CLINICALDIGNOSE", p_objPathologyOrgCheckOrde.m_strClinicalDignose.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("SENDDATE", p_objPathologyOrgCheckOrde.m_strSendDate.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("RECEIVEDATE", p_objPathologyOrgCheckOrde.m_strReceiveDate.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("COLORANDSLICE", p_objPathologyOrgCheckOrde.m_strColorAndSlice.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("EYECHECK", p_objPathologyOrgCheckOrde.m_strEyeCheck.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("ORGANISEBURYFULL", p_objPathologyOrgCheckOrde.m_strOrganiseBuryFull.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("ORGANISESTAY", p_objPathologyOrgCheckOrde.m_strOrganiseStay.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("EYESAMPLE", p_objPathologyOrgCheckOrde.m_strEyeSample.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("PATHOLOGYDIGNOSE", p_objPathologyOrgCheckOrde.m_strPathologyDignose.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("REPORTDATE", p_objPathologyOrgCheckOrde.m_strReportDate.Replace('\'', 'き'));
            //耶紗禰兆 tfzhang 2005-7-8 17:25
            m_objXmlWriter.WriteAttributeString("DOCTORID", p_objPathologyOrgCheckOrde.m_strDoctorID.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("DOCTORNAME", p_objPathologyOrgCheckOrde.m_strDoctorName.Replace('\'', 'き'));
            m_objXmlWriter.WriteEndElement();
            m_objXmlWriter.WriteEndDocument();
            m_objXmlWriter.Flush();
            return(System.Text.Encoding.Unicode.GetString(m_objXmlMemStream.ToArray(), 39 * 2, (int)m_objXmlMemStream.Length - 39 * 2));
        }
Beispiel #3
0
        /// <summary>
        /// 資函麼燕議佚連
        /// </summary>
        /// <param name="p_strInPatientID"></param>
        /// <param name="p_strInPatientDate"></param>
        /// <param name="p_strCreateDate"></param>
        /// <returns></returns>
        public clsPathologyOrgCheckOrderInfo  m_objGetPathologyOrgCheckOrder(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);
            }

            clsPathologyOrgCheckOrderInfo objPathologyOrgCheckOrder = null;

            clsPathologyOrgCheckOrderServ m_objServ =
                (clsPathologyOrgCheckOrderServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPathologyOrgCheckOrderServ));

            try
            {
                string strXml  = "";
                int    intRows = 0;

                long lngRes = m_objServ.GetPathologyOrgCheckOrder(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)
                            {
                                objPathologyOrgCheckOrder = new clsPathologyOrgCheckOrderInfo();

                                objPathologyOrgCheckOrder.m_strInPatientID         = objReader.GetAttribute("INPATIENTID").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strInPatientDate       = objReader.GetAttribute("INPATIENTDATE").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strCreateDate          = objReader.GetAttribute("CREATEDATE").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strStatus              = objReader.GetAttribute("STATUS").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strIfConfirm           = objReader.GetAttribute("IFCONFIRM").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strDeActivedDate       = objReader.GetAttribute("DEACTIVEDDATE").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strDeActivedOperatorID = objReader.GetAttribute("DEACTIVEDOPERATORID").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strConfirmReason       = objReader.GetAttribute("CONFIRMREASON").ToString().Replace('き', '\'');;
                                objPathologyOrgCheckOrder.m_strConfirmReasonXML    = objReader.GetAttribute("CONFIRMREASONXML").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strCreateUserID        = objReader.GetAttribute("CREATEUSERID").ToString().Replace('き', '\'');

                                objPathologyOrgCheckOrder.m_strMedicalCheckNo   = objReader.GetAttribute("MEDICALCHECKNO").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strHospitalName     = objReader.GetAttribute("HOSPITALNAME").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strLastCheckNumber  = objReader.GetAttribute("LASTCHECKNUMBER").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strSendThings       = objReader.GetAttribute("SENDTHINGS").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strFromBody         = objReader.GetAttribute("FROMBODY").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strSickenPeriod     = objReader.GetAttribute("SICKENPERIOD").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strHistory          = objReader.GetAttribute("HISTORY").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strClinicalInfo     = objReader.GetAttribute("CLINICALINFO").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strOperationInfo    = objReader.GetAttribute("OPERATIONINFO").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strCheckAim         = objReader.GetAttribute("CHECKAIM").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strBiologyChemistry = objReader.GetAttribute("BIOLOGYCHEMISTRY").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strBlood            = objReader.GetAttribute("BLOOD").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strXRay             = objReader.GetAttribute("XRAY").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strBloodSerum       = objReader.GetAttribute("BLOODSERUM").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strOther            = objReader.GetAttribute("OTHER").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strClinicalDignose  = objReader.GetAttribute("CLINICALDIGNOSE").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strSendDate         = objReader.GetAttribute("SENDDATE").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strReceiveDate      = objReader.GetAttribute("RECEIVEDATE").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strColorAndSlice    = objReader.GetAttribute("COLORANDSLICE").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strEyeCheck         = objReader.GetAttribute("EYECHECK").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strOrganiseBuryFull = objReader.GetAttribute("ORGANISEBURYFULL").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strOrganiseStay     = objReader.GetAttribute("ORGANISESTAY").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strEyeSample        = objReader.GetAttribute("EYESAMPLE").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strPathologyDignose = objReader.GetAttribute("PATHOLOGYDIGNOSE").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strReportDate       = objReader.GetAttribute("REPORTDATE").ToString().Replace('き', '\'');
                                //耶紗禰兆 tfzhang 2005-7-8 17:25
                                objPathologyOrgCheckOrder.m_strDoctorID   = objReader.GetAttribute("DOCTORID").ToString().Replace('き', '\'');
                                objPathologyOrgCheckOrder.m_strDoctorName = objReader.GetAttribute("DOCTORNAME").ToString().Replace('き', '\'');
                            }
                            break;
                        }
                    }
                }
            }
            finally
            {
                //m_objServ.Dispose();
            }
            return(objPathologyOrgCheckOrder);
        }