Beispiel #1
0
        /// <summary>
        /// 把指定病人的记录从实时表移到历史表
        /// </summary>
        /// <param name="p_strFormRecordID">住院号-住院日期:例(00134272-2005-11-18 08:11:50)</param>
        /// <returns></returns>
        public long m_lngMoveDigitalSign(string p_strFormRecordID)
        {
            clsDigitalSign_srv objSvc =
                (clsDigitalSign_srv)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsDigitalSign_srv));

            long lngRes = objSvc.m_lngMoveDigitalSign(null, p_strFormRecordID);
            objSvc = null;
            return lngRes;
        }
Beispiel #2
0
        /// <summary>
        /// 检查是否需要电子签名
        /// </summary>
        /// <param name="p_strFormID">窗体ID</param>
        /// <param name="p_blnNeed">false不需要 true需要</param>
        /// <returns></returns>
        public long m_lngCheckNeedToSign(string p_strFormID, out bool p_blnNeed)
        {
            long lngRes = 0;
            p_blnNeed = false;
            try
            {
                clsDigitalSign_srv objSvc =
                    (clsDigitalSign_srv)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsDigitalSign_srv));

                lngRes = objSvc.m_lngCheckNeedToSign(null, p_strFormID, out p_blnNeed);
                //释放
                objSvc = null;
            }
            catch (Exception objEx)
            {
                com.digitalwave.Utility.clsLogText objLogger = new com.digitalwave.Utility.clsLogText();
                bool blnRes = objLogger.LogError(objEx);
            }
            return lngRes;
        }
Beispiel #3
0
        /// <summary>
        /// 保存数字签名信息
        /// </summary>
        /// <param name="p_strInsertSql">签名vo</param>
        /// <param name="p_blnIsHistory">保存到实时表还是历史表(true=历史;false=实时)</param>
        /// <returns></returns>
        public long m_lngAddDigitalSign(clsEmrDigitalSign_VO p_objRecord)
        {
            long lngRes = 0;
            try
            {
                clsDigitalSign_srv objSvc =
                    (clsDigitalSign_srv)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsDigitalSign_srv));

                lngRes = objSvc.m_lngAddDigitalSign(null, p_objRecord);
                //释放
                objSvc = null;

            }
            catch (Exception objEx)
            {
                com.digitalwave.Utility.clsLogText objLogger = new com.digitalwave.Utility.clsLogText();
                bool blnRes = objLogger.LogError(objEx);
                lngRes = 0;
            }
            return lngRes;
        }
Beispiel #4
0
        /// <summary>
        /// 获取指定单据的最新数字签名信息
        /// 先到实时表查,如果实时表没有再到历史表查
        /// </summary>
        /// <param name="p_strFormID">窗体ID</param>
        /// <param name="p_strFormRecordID">记录号</param>
        /// <param name="p_blnIsOutPatient">(false=未出过院,无须到历史表获取数据)</param>
        /// <param name="p_dtbValue">返回表</param>
        /// <returns></returns>
        public long m_lngGetDigitalSign(string p_strFormID, string p_strFormRecordID, bool p_blnIsOutPatient, out clsEmrDigitalSign_VO p_objResult)
        {
            long lngRes = 0;
            p_objResult = null;
            try
            {
                clsDigitalSign_srv objSvc =
                    (clsDigitalSign_srv)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsDigitalSign_srv));

                DataTable dtbResult = new DataTable();
                lngRes = objSvc.m_lngGetDigitalSign(null, p_strFormID, p_strFormRecordID, p_blnIsOutPatient, out dtbResult);
                if (lngRes > 0 && dtbResult.Rows.Count > 0)
                {
                    p_objResult = new clsEmrDigitalSign_VO();
                    byte[] b = { 0x00, 0x12 };
                    p_objResult.m_intSIGNID_INT = dtbResult.Rows[0]["SIGNID_INT"] == DBNull.Value ? 0 : Convert.ToInt32(dtbResult.Rows[0]["SIGNID_INT"]);
                    p_objResult.m_strFORMID_VCHR = dtbResult.Rows[0]["FORMID_VCHR"] == DBNull.Value ? "" : dtbResult.Rows[0]["SIGNID_INT"].ToString();
                    p_objResult.m_strFORMRECORDID_VCHR = dtbResult.Rows[0]["FORMRECORDID_VCHR"] == DBNull.Value ? "" : dtbResult.Rows[0]["FORMRECORDID_VCHR"].ToString();
                    p_objResult.m_bteCONTENT_TXT = (byte[])(dtbResult.Rows[0]["CONTENT_TXT"]);
                    p_objResult.m_strDSCONTENT_TXT = dtbResult.Rows[0]["DSCONTENT_TXT"] == DBNull.Value ? "" : dtbResult.Rows[0]["DSCONTENT_TXT"].ToString();
                    p_objResult.m_strSIGNNAME_VCHR = dtbResult.Rows[0]["SIGNNAME_VCHR"] == DBNull.Value ? "" : dtbResult.Rows[0]["SIGNNAME_VCHR"].ToString();
                    p_objResult.m_strSIGNIDID_VCHR = dtbResult.Rows[0]["SIGNIDID_VCHR"] == DBNull.Value ? "" : dtbResult.Rows[0]["SIGNIDID_VCHR"].ToString();
                    p_objResult.m_datSIGNDATE_DAT = dtbResult.Rows[0]["SIGNDATE_DAT"] == DBNull.Value ? DateTime.Now : DateTime.Parse(dtbResult.Rows[0]["SIGNDATE_DAT"].ToString());
                    p_objResult.m_strDESCRIPTION_VCHR = dtbResult.Rows[0]["DESCRIPTION_VCHR"] == DBNull.Value ? "" : dtbResult.Rows[0]["DESCRIPTION_VCHR"].ToString();

                }
                //释放
                objSvc = null;
            }
            catch (Exception objEx)
            {
                com.digitalwave.Utility.clsLogText objLogger = new com.digitalwave.Utility.clsLogText();
                bool blnRes = objLogger.LogError(objEx);
            }
            return lngRes;
        }