/// <summary>
        ///
        /// </summary>
        /// <param name="p_objInfo"></param>
        /// <returns>
        /// 操作结果。

        /// 0,失败。

        /// 1,成功。

        /// </returns>
        public long m_lngAddNew(clsThreeMeasureRecordInfo p_objInfo, clsThreeMeasureRecordContentInfo p_objContentInfo, clsThreeMeasureRecordContentAccessInfo[] p_objContentAccessInfoArr, clsThreeMeasureRecordContentEventInfo [] p_objContentEventInfoArr, bool p_blnIsAddNew)
        {
            clsThreeMeasureRecordService m_objThreeMeasureRecordServ =
                (clsThreeMeasureRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsThreeMeasureRecordService));

            long lngRes = 0;

            try
            {
                string    strMainXml             = m_strMakeNewMainXml(p_objInfo);
                string    strContentXml          = m_strMakeNewContentXml(p_objContentInfo);
                string [] strContentAccessXmlArr = m_strMakeNewContentAccessXmlArr(p_objContentAccessInfoArr);
                string [] strContentEventXmlArr  = m_strMakeNewContentEventXmlArr(p_objContentEventInfoArr);
                lngRes = m_objThreeMeasureRecordServ.m_lngAddNew(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, strMainXml, strContentXml, strContentAccessXmlArr, strContentEventXmlArr, p_blnIsAddNew);
            }
            catch (Exception ex)
            {
                string strErrow = ex.Message;
            }
            finally
            {
                //m_objThreeMeasureRecordServ.Dispose();
            }
            return(lngRes);
        }
Beispiel #2
0
        public bool m_blnCheckTValueExistBySelectTime(string p_strInpatientId, string p_strInpatientDate, string p_strCreateTime)
        {
            bool blnCheck = false;

            clsThreeMeasureRecordService objServ =
                (clsThreeMeasureRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsThreeMeasureRecordService));

            blnCheck = objServ.m_blnCheckTValueExistBySelectTime(p_strInpatientId, p_strInpatientDate, p_strCreateTime);
            objServ  = null;
            return(blnCheck);
        }
Beispiel #3
0
        /// <summary>
        /// 设置该条记录的第一次打印时间

        /// </summary>
        /// <param name="p_strInPatientID"></param>
        /// <param name="p_strInPatientDate"></param>
        /// <param name="p_strOpenDate"></param>
        /// <param name="p_strTableName"></param>
        /// <returns></returns>
        public long m_lngSetFirstPrintDate(string[] p_strInPatientIDArr, string[] p_strInPatientDateArr, string[] p_strOpenDateArr)
        {
            clsThreeMeasureRecordService m_objThreeMeasureRecordServ =
                (clsThreeMeasureRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsThreeMeasureRecordService));

            long lngRes = 0;

            try
            {
                lngRes = m_objThreeMeasureRecordServ.m_lngSetFirstPrintDate(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientIDArr, p_strInPatientDateArr, p_strOpenDateArr);
            }
            finally
            {
                //m_objThreeMeasureRecordServ.Dispose();
            }
            return(lngRes);
        }
Beispiel #4
0
        /// <summary>
        /// 检查修改时间是否最后的修改时间
        /// </summary>
        /// <param name="p_strInPatientID"></param>
        /// <param name="p_strInPatientDate"></param>
        /// <param name="p_strCreateDate"></param>
        /// <param name="p_strLastModifyDate"></param>
        /// <param name="p_blnIsLast"></param>
        /// <returns></returns>
        public long m_lngCheckLastModifyDate(string p_strInPatientID, string p_strInPatientDate, string p_strOepnDate, string p_strLastModifyDate, out bool p_blnIsLast, out bool p_blnIsDelete, out string p_strChangedUserID, out string p_strChangedDate)
        {
            clsThreeMeasureRecordService m_objThreeMeasureRecordServ =
                (clsThreeMeasureRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsThreeMeasureRecordService));

            long lngRes = 0;

            try
            {
                lngRes = m_objThreeMeasureRecordServ.m_lngCheckLastModifyDate(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_strOepnDate, p_strLastModifyDate, out p_blnIsLast, out p_blnIsDelete, out p_strChangedUserID, out p_strChangedDate);
            }
            finally
            {
                //m_objThreeMeasureRecordServ.Dispose();
            }
            return(lngRes);
        }
Beispiel #5
0
        /// <summary>
        ///
        /// </summary>
        /// <returns>
        /// </returns>
        public clsThreeMeasureRecordInfo [] m_objGetThreeMeasureRecordInfoArr(string p_strInPatientID, string p_strInPatientDate)
        {
            string strXML  = "";
            int    intRows = 0;

            clsThreeMeasureRecordService m_objThreeMeasureRecordServ =
                (clsThreeMeasureRecordService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsThreeMeasureRecordService));

            long lngRes = 0;

            try
            {
                lngRes = m_objThreeMeasureRecordServ.m_lngGetPatientRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, ref strXML, ref intRows);
            }
            finally
            {
                //m_objThreeMeasureRecordServ.Dispose();
            }

            clsThreeMeasureRecordInfo[] objInfoArr = null;

            if (lngRes > 0 && intRows > 0)
            {
                objInfoArr = new clsThreeMeasureRecordInfo[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)
                        {
                            objInfoArr[intIndex] = new clsThreeMeasureRecordInfo();
                            objInfoArr[intIndex].m_strInPatientID   = objReader.GetAttribute("INPATIENTID");
                            objInfoArr[intIndex].m_strInPatientDate = objReader.GetAttribute("INPATIENTDATE");
                            objInfoArr[intIndex].m_strOpenDate      = objReader.GetAttribute("OPENDATE");
                            objInfoArr[intIndex].m_strCreateDate    = objReader.GetAttribute("CREATEDATE");
                            objInfoArr[intIndex].m_strCreateID      = objReader.GetAttribute("CREATEID");

                            objInfoArr[intIndex].m_objXmlValue = new clsThreeMeasureXmlValue();
                            objInfoArr[intIndex].m_objXmlValue.m_strRecordDate     = objInfoArr[intIndex].m_strCreateDate;
                            objInfoArr[intIndex].m_objXmlValue.m_strSpecialDateXml = objReader.GetAttribute("SPECIALDATEXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strEventXml       = objReader.GetAttribute("EVENTXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strBreathXml      = objReader.GetAttribute("BREATHXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strInputXml       = objReader.GetAttribute("INPUTXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strDejectaXml     = objReader.GetAttribute("DEJECTAXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strPeeXml         = objReader.GetAttribute("PEEXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strOutStreamXml   = objReader.GetAttribute("OUTSTREAMXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strPressureXml    = objReader.GetAttribute("PRESSUREXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strPressureXml2   = objReader.GetAttribute("PRESSURE2XML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strWeightXml      = objReader.GetAttribute("WEIGHTXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strSkinTestXml    = objReader.GetAttribute("SKINTESTXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strOtherXml       = objReader.GetAttribute("OTHERXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strPulseXml       = objReader.GetAttribute("PULSEXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strTemperatureXml = objReader.GetAttribute("TEMPERATUREXML").Replace('き', '\'');
                            objInfoArr[intIndex].m_objXmlValue.m_strOtherName      = objReader.GetAttribute("OTHERNAME").Replace('き', '\'');

                            objInfoArr[intIndex].m_strIfConfirm              = objReader.GetAttribute("IFCONFIRM");
                            objInfoArr[intIndex].m_strConfirmReason          = objReader.GetAttribute("CONFIRMREASON").Replace('き', '\'');
                            objInfoArr[intIndex].m_strConfirmReasonXMLString = objReader.GetAttribute("CONFIRMREASONXMLSTRING").Replace('き', '\'');
                            objInfoArr[intIndex].m_strStatus              = objReader.GetAttribute("STATUS");
                            objInfoArr[intIndex].m_strDeActivedDate       = objReader.GetAttribute("DEACTIVEDDATE");
                            objInfoArr[intIndex].m_strDeActivedOperatorID = objReader.GetAttribute("DEACTIVEDOPERATORID");
                            objInfoArr[intIndex].m_strFirstPrintDate      = objReader.GetAttribute("FIRSTPRINTDATE");

                            objInfoArr[intIndex].m_strModifyDate = objReader.GetAttribute("MODIFYDATE");

                            intIndex++;
                        }
                        break;
                    }
                }
            }
            else
            {
                objInfoArr = new clsThreeMeasureRecordInfo[0];
            }

            return(objInfoArr);
        }