Пример #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);
        }
Пример #2
0
        /// <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;

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

            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);
        }
Пример #3
0
        /// <summary>
        /// 資函貫燕佚連 -- Operator
        /// </summary>
        /// <param name="p_strInPatientID"></param>
        /// <param name="p_strInPatientDate"></param>
        /// <param name="p_strCreateDate"></param>
        /// <returns></returns>
        public clsPathologyOrgCheckOperatorID[] m_objGetOperatorIDArr(string p_strInPatientID, string p_strInPatientDate, string p_strCreateDate)
        {
            clsPathologyOrgCheckOperatorID[] objPathologyOrgCheckOperatorIDArr = null;

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

            try
            {
                int    m_intReturnRows  = 0;
                string m_strReceivedXML = "";

                long lngSucceed = m_objServ.GetPathologyOrgOperator(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_strCreateDate, ref m_strReceivedXML, ref m_intReturnRows);
                if (m_intReturnRows > 0)
                {
                    objPathologyOrgCheckOperatorIDArr = new clsPathologyOrgCheckOperatorID[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)
                            {
                                objPathologyOrgCheckOperatorIDArr[intIndex] = new clsPathologyOrgCheckOperatorID();

                                objPathologyOrgCheckOperatorIDArr[intIndex].m_strOperatorID   = objReader.GetAttribute("OPERATORID");
                                objPathologyOrgCheckOperatorIDArr[intIndex].m_strOperatorFlag = objReader.GetAttribute("OPERATORFLAG");

                                intIndex++;
                            }
                            break;
                        } //end switch
                    }     //end while
                }         //end if
            }
            finally
            {
                //m_objServ.Dispose();
            }
            return(objPathologyOrgCheckOperatorIDArr);
        }
Пример #4
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);
        }