Пример #1
0
        /// <summary>
        /// 获取XDBFtp访问类
        /// </summary>
        /// <returns>FtpAccess对象</returns>
        public FtpAccess GetXDBFtpAccess()
        {
            if (this.m_XDBFtpAccess != null)
            {
                return(this.m_XDBFtpAccess);
            }

            if (this.m_ConfigAccess == null)
            {
                this.m_ConfigAccess = new ConfigAccess();
            }
            FtpConfig ftpConfig = null;
            short     shRet     = this.m_ConfigAccess.GetXDBFtpParams(ref ftpConfig);

            if (shRet != SystemData.ReturnValue.OK)
            {
                return(null);
            }
            if (ftpConfig == null)
            {
                return(null);
            }
            this.m_XDBFtpAccess          = new FtpAccess();
            this.m_XDBFtpAccess.FtpIP    = ftpConfig.FtpIP;
            this.m_XDBFtpAccess.FtpPort  = ftpConfig.FtpPort;
            this.m_XDBFtpAccess.UserName = ftpConfig.FtpUser;
            this.m_XDBFtpAccess.Password = ftpConfig.FtpPwd;
            this.m_XDBFtpAccess.FtpMode  = ftpConfig.FtpMode;
            return(this.m_XDBFtpAccess);
        }
Пример #2
0
 /// <summary>
 /// 获取质控科医生是否可以保存病历
 /// </summary>
 /// <returns></returns>
 public bool CheckQCSaveDocEnable()
 {
     if (this.m_ConfigAccess == null)
     {
         this.m_ConfigAccess = new ConfigAccess();
     }
     return(this.m_ConfigAccess.CheckQCCanSaveDoc());
 }