コード例 #1
0
        /// <summary>
        /// 侭嗤議SPECT賦萩扮寂
        /// </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;
            string     strXml  = "";
            int        intRows = 0;

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

            try
            {
                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);
        }
コード例 #2
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);
        }
コード例 #3
0
        public long m_lngDeactive(string p_strDeactiveUserID, string p_strInPatientID, string p_strInPatientDate,
                                  string p_strCreateDate)
        {
            long lngRes = 0;

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

            try
            {
                string strDeactiveXML = "<Deactive Status='1' DeActivedOperatorID='" + p_strDeactiveUserID + "' InPatientID='" + p_strInPatientID + "'" + " InPatientDate='" + p_strInPatientDate + "'" + " CreateDate='" + p_strCreateDate + "'" + " />";
                lngRes = m_objServ.m_lngDeActive(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, strDeactiveXML, "SPECTCheckOrder");
            }
            finally
            {
                //m_objServ.Dispose();
            }
            return(lngRes);
        }
コード例 #4
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);
        }