Beispiel #1
0
        public long lngSave(clsSPECTCheckContent m_objSPECTCheckContent)
        {
            long lngSucceed = 0;

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

            try
            {
                string strXML = this.strSaveXML(m_objSPECTCheckContent);
                lngSucceed = m_objServ.m_lngAddNewRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, strXML);
            }
            finally
            {
                //m_objServ.Dispose();
            }
            return(lngSucceed);
        }
Beispiel #2
0
        public clsSPECTCheckContent objDisplay(string strInPatientID, string strInPatientDate, string strCreateDate)
        {
            string strXML  = "";
            int    intRows = 0;

            clsSPECTCheckContent m_objDisplay = new clsSPECTCheckContent();

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

            try
            {
                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)
                            {
                                #region Display
                                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.strModifyDate=objReader.GetAttribute("MODIFYDATE").ToString().Replace ('き','\'');

                                m_objDisplay.strBladder   = objReader.GetAttribute("BLADDER").ToString().Replace('き', '\'');
                                m_objDisplay.strBloodPool = objReader.GetAttribute("BLOODPOOL").ToString().Replace('き', '\'');
                                m_objDisplay.strBody      = objReader.GetAttribute("BODY").ToString().Replace('き', '\'');

                                m_objDisplay.strBone       = objReader.GetAttribute("BONE").ToString().Replace('き', '\'');
                                m_objDisplay.strBoneTr     = objReader.GetAttribute("BONETR").ToString().Replace('き', '\'');
                                m_objDisplay.strBrainBlood = objReader.GetAttribute("BRAINBLOOD").ToString().Replace('き', '\'');

                                m_objDisplay.strBrainCancer     = objReader.GetAttribute("BRAINCANCER").ToString().Replace('き', '\'');
                                m_objDisplay.strBrainMetabolize = objReader.GetAttribute("BRAINMETABOLIZE").ToString().Replace('き', '\'');
                                m_objDisplay.strBreastCancer    = objReader.GetAttribute("BREASTCANCER").ToString().Replace('き', '\'');

                                m_objDisplay.strCheckLab = objReader.GetAttribute("CHECKLAB").ToString().Replace('き', '\'');
                                m_objDisplay.strCheckNO  = objReader.GetAttribute("CHECKNO").ToString().Replace('き', '\'');
                                m_objDisplay.strCourage  = objReader.GetAttribute("COURAGE").ToString().Replace('き', '\'');

                                m_objDisplay.strCourageFaultage = objReader.GetAttribute("COURAGEFAULTAGE").ToString().Replace('き', '\'');
                                m_objDisplay.strCouragePool     = objReader.GetAttribute("COURAGEPOOL").ToString().Replace('き', '\'');
                                m_objDisplay.strCreateDate      = objReader.GetAttribute("CREATEDATE").ToString().Replace('き', '\'');

                                m_objDisplay.strCreateUserID = objReader.GetAttribute("CREATEUSERID").ToString().Replace('き', '\'');
                                m_objDisplay.strDBody        = objReader.GetAttribute("DBODY").ToString().Replace('き', '\'');
                                m_objDisplay.strDepCancer    = objReader.GetAttribute("DEPCANCER").ToString().Replace('き', '\'');

                                m_objDisplay.strDisgonse  = objReader.GetAttribute("DISGONSE").ToString().Replace('き', '\'');
                                m_objDisplay.strEnteron   = objReader.GetAttribute("ENTERON").ToString().Replace('き', '\'');
                                m_objDisplay.strEsophagus = objReader.GetAttribute("ESOPHAGUS").ToString().Replace('き', '\'');

                                m_objDisplay.strHeart      = objReader.GetAttribute("HEART").ToString().Replace('き', '\'');
                                m_objDisplay.strHeartBlood = objReader.GetAttribute("HEARTBLOOD").ToString().Replace('き', '\'');
                                m_objDisplay.strHistory    = objReader.GetAttribute("HISTORY").ToString().Replace('き', '\'');

                                m_objDisplay.strHypothyroidCancer     = objReader.GetAttribute("HYPOTHYROIDCANCER").ToString().Replace('き', '\'');
                                m_objDisplay.strHypothyroidDisply     = objReader.GetAttribute("HYPOTHYROIDDISPLY").ToString().Replace('き', '\'');
                                m_objDisplay.strHypothyroidKnubDisply = objReader.GetAttribute("HYPOTHYROIDKNUBDISPLY").ToString().Replace('き', '\'');

                                m_objDisplay.strhypothyroidside = objReader.GetAttribute("HYPOTHYROIDSIDE").ToString().Replace('き', '\'');
                                m_objDisplay.strInPatientDate   = objReader.GetAttribute("INPATIENTDATE").ToString().Replace('き', '\'');
                                m_objDisplay.strInPatientID     = objReader.GetAttribute("INPATIENTID").ToString().Replace('き', '\'');

                                m_objDisplay.strKidneyBall  = objReader.GetAttribute("KIDNEYBALL").ToString().Replace('き', '\'');
                                m_objDisplay.strKidneyBlood = objReader.GetAttribute("KIDNEYBLOOD").ToString().Replace('き', '\'');
                                m_objDisplay.strKidneyDin   = objReader.GetAttribute("KIDNEYDIN").ToString().Replace('き', '\'');

                                m_objDisplay.strKidneyDisply = objReader.GetAttribute("KIDNEYDISPLY").ToString().Replace('き', '\'');
                                m_objDisplay.strKidneyStr    = objReader.GetAttribute("KIDNEYSTR").ToString().Replace('き', '\'');
                                m_objDisplay.strLymph        = objReader.GetAttribute("LYMPH").ToString().Replace('き', '\'');

                                m_objDisplay.strMeikl      = objReader.GetAttribute("MEIKL").ToString().Replace('き', '\'');
                                m_objDisplay.strMetabolize = objReader.GetAttribute("METABOLIZE").ToString().Replace('き', '\'');
                                m_objDisplay.strNose       = objReader.GetAttribute("NOSE").ToString().Replace('き', '\'');

                                m_objDisplay.strOverbody   = objReader.GetAttribute("OVERBODY").ToString().Replace('き', '\'');
                                m_objDisplay.strOverCancer = objReader.GetAttribute("OVERCANCER").ToString().Replace('き', '\'');
                                m_objDisplay.strOvum       = objReader.GetAttribute("OVUM").ToString().Replace('き', '\'');

                                m_objDisplay.strPaymentCompany = objReader.GetAttribute("PAYMENTCOMPANY").ToString().Replace('き', '\'');
                                m_objDisplay.strPaymentPulbic  = objReader.GetAttribute("PAYMENTPULBIC").ToString().Replace('き', '\'');
                                m_objDisplay.strPaymentSelf    = objReader.GetAttribute("PAYMENTSELF").ToString().Replace('き', '\'');

                                m_objDisplay.strPneumonicdAerate = objReader.GetAttribute("PNEUMONICDAERATE").ToString().Replace('き', '\'');
                                m_objDisplay.strPneumonicdBlood  = objReader.GetAttribute("PNEUMONICDBLOOD").ToString().Replace('き', '\'');
                                m_objDisplay.strPneumonicdknub   = objReader.GetAttribute("PNEUMONICDKNUB").ToString().Replace('き', '\'');

                                m_objDisplay.strPulse  = objReader.GetAttribute("PULSE").ToString().Replace('き', '\'');
                                m_objDisplay.strSpleen = objReader.GetAttribute("SPLEEN").ToString().Replace('き', '\'');
                                m_objDisplay.strTear   = objReader.GetAttribute("TEAR").ToString().Replace('き', '\'');

                                m_objDisplay.strTell        = objReader.GetAttribute("TELL").ToString().Replace('き', '\'');
                                m_objDisplay.strTellContent = objReader.GetAttribute("TELLCONTENT").ToString().Replace('き', '\'');
                                #endregion
                            }
                            break;
                        }
                    }
                }
            }
            finally
            {
                //m_objServ.Dispose();
            }
            return(m_objDisplay);
        }
Beispiel #3
0
        private string strSaveXML(clsSPECTCheckContent m_objSPECTCheckContent)
        {
            m_objXmlMemStream.SetLength(0);

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

            m_objXmlWriter.WriteAttributeString("INPATIENTID", m_objSPECTCheckContent.strInPatientID.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("INPATIENTDATE", m_objSPECTCheckContent.strInPatientDate.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("CREATEDATE", m_objSPECTCheckContent.strCreateDate.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("IFCONFIRM", m_objSPECTCheckContent.strIfConfirm.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("STATUS", m_objSPECTCheckContent.strStatus.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("CREATEUSERID", m_objSPECTCheckContent.strCreateUserID.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("PAYMENTPULBIC", m_objSPECTCheckContent.strPaymentPulbic.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("PAYMENTCOMPANY", m_objSPECTCheckContent.strPaymentCompany.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("PAYMENTSELF", m_objSPECTCheckContent.strPaymentSelf.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("CHECKNO", m_objSPECTCheckContent.strCheckNO.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("HYPOTHYROIDDISPLY", m_objSPECTCheckContent.strHypothyroidDisply.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("HYPOTHYROIDKNUBDISPLY", m_objSPECTCheckContent.strHypothyroidKnubDisply.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("KIDNEYDISPLY", m_objSPECTCheckContent.strKidneyDisply.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("HYPOTHYROIDCANCER", m_objSPECTCheckContent.strHypothyroidCancer.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("HYPOTHYROIDSIDE", m_objSPECTCheckContent.strhypothyroidside.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("PNEUMONICDAERATE", m_objSPECTCheckContent.strPneumonicdAerate.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("PNEUMONICDBLOOD", m_objSPECTCheckContent.strPneumonicdBlood.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("PNEUMONICDKNUB", m_objSPECTCheckContent.strPneumonicdknub.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("HEART", m_objSPECTCheckContent.strHeart.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("HEARTBLOOD", m_objSPECTCheckContent.strHeartBlood.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("DBODY", m_objSPECTCheckContent.strDBody.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("BODY", m_objSPECTCheckContent.strBody.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("BONE", m_objSPECTCheckContent.strBone.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("BONETR", m_objSPECTCheckContent.strBoneTr.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("COURAGE", m_objSPECTCheckContent.strCourage.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("COURAGEFAULTAGE", m_objSPECTCheckContent.strCourageFaultage.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("COURAGEPOOL", m_objSPECTCheckContent.strCouragePool.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("PULSE", m_objSPECTCheckContent.strPulse.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("MEIKL", m_objSPECTCheckContent.strMeikl.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("ESOPHAGUS", m_objSPECTCheckContent.strEsophagus.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("ENTERON", m_objSPECTCheckContent.strEnteron.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("OVERBODY", m_objSPECTCheckContent.strOverbody.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("SPLEEN", m_objSPECTCheckContent.strSpleen.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("LYMPH", m_objSPECTCheckContent.strLymph.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("DEPCANCER", m_objSPECTCheckContent.strDepCancer.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("OVERCANCER", m_objSPECTCheckContent.strOverCancer.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("METABOLIZE", m_objSPECTCheckContent.strMetabolize.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("BRAINMETABOLIZE", m_objSPECTCheckContent.strBrainMetabolize.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("KIDNEYDIN", m_objSPECTCheckContent.strKidneyDin.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("KIDNEYSTR", m_objSPECTCheckContent.strKidneyStr.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("KIDNEYBALL", m_objSPECTCheckContent.strKidneyBall.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("KIDNEYBLOOD", m_objSPECTCheckContent.strKidneyBlood.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("BLADDER", m_objSPECTCheckContent.strBladder.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("BLOODPOOL", m_objSPECTCheckContent.strBloodPool.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("OVUM", m_objSPECTCheckContent.strOvum.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("BREASTCANCER", m_objSPECTCheckContent.strBreastCancer.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("BRAINCANCER", m_objSPECTCheckContent.strBrainCancer.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("BRAINBLOOD", m_objSPECTCheckContent.strBrainBlood.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("TEAR", m_objSPECTCheckContent.strTear.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("NOSE", m_objSPECTCheckContent.strNose.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("TELL", m_objSPECTCheckContent.strTell.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("TELLCONTENT", m_objSPECTCheckContent.strTellContent.Replace('\'', 'き'));

            m_objXmlWriter.WriteAttributeString("HISTORY", m_objSPECTCheckContent.strHistory.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("CHECKLAB", m_objSPECTCheckContent.strCheckLab.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("DISGONSE", m_objSPECTCheckContent.strDisgonse.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));
        }