Beispiel #1
0
        /// <summary>
        /// 配置上传路径
        /// </summary>
        public static void SetFileConfig()
        {
            SYSBLL sys = new SYSBLL();

            try
            {
                IP_ADDRESS      = sys.readoptions("fileConfig", "IP_ADDRESS");
                SWF_ADDRESS     = sys.readoptions("fileConfig", "SWF_ADDRESS");
                DISK_ADDRESS    = sys.readoptions("fileConfig", "DISK_ADDRESS");
                UPLOADDIRECTORY = sys.readoptions("fileConfig", "UPLOADDIRECTORY");
                DOCDDIRECTORY   = sys.readoptions("fileConfig", "DOCDDIRECTORY");
                VFDDIRECTORY    = sys.readoptions("fileConfig", "VFDDIRECTORY");
                IMGDIRECTORY    = sys.readoptions("fileConfig", "IMGDIRECTORY");
                OTHERDIRECTORY  = sys.readoptions("fileConfig", "OTHERDIRECTORY");
                SWFDIRECTORY    = sys.readoptions("fileConfig", "SWFDIRECTORY");
                FILE_TYPE       = sys.readoptions("fileConfig", "FILE_TYPE");
                FILE_TYPE_NAME  = sys.readoptions("fileConfig", "FILE_TYPE_NAME");
                FILE_SIZE       = sys.readoptions("fileConfig", "FILE_SIZE");
                /**大文件断点续传**/
                JAVA_UPLOAD_URL  = sys.readoptions("fileConfig", "JAVA_UPLOAD_URL");
                JAVA_UPLOAD_SIZE = Convert.ToInt64(sys.readoptions("fileConfig", "JAVA_UPLOAD_SIZE"));
                JAVA_UPLOAD_EXT  = sys.readoptions("fileConfig", "JAVA_UPLOAD_EXT");
            }
            catch (Exception ex)
            {
                clsLog.ErrorLog("Constant", "SetFileConfig", ex.Message);
            }
        }
Beispiel #2
0
 /**是否需要注册**/
 public static Boolean IsRegister()
 {
     try
     {
         SYSBLL sys      = new SYSBLL();
         string Register = sys.readoptions("system", "REGISTER");
         bool   ret      = Convert.ToBoolean(Register);
         return(ret);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Beispiel #3
0
        /// <summary>
        /// 配置分页参数
        /// </summary>
        public static void SetPageConfig()
        {
            SYSBLL sys = new SYSBLL();

            try
            {
                HOME_DOC_NUMBER           = Convert.ToInt32(sys.readoptions("pageConfig", "HOME_DOC_NUMBER"));
                HOME_VIDEO_NUMBER         = Convert.ToInt32(sys.readoptions("pageConfig", "HOME_VIDEO_NUMBER"));
                FOREGROUND_DOC_NUM        = Convert.ToInt32(sys.readoptions("pageConfig", "FOREGROUND_DOC_NUM"));
                FOREGROUND_VIDEO_NUM      = Convert.ToInt32(sys.readoptions("pageConfig", "FOREGROUND_VIDEO_NUM"));
                FOREGROUND_MY_DOC_NUM     = Convert.ToInt32(sys.readoptions("pageConfig", "FOREGROUND_MY_DOC_NUM"));
                FOREGROUND_SEARCH_NUM     = Convert.ToInt32(sys.readoptions("pageConfig", "FOREGROUND_SEARCH_NUM"));
                VIEWONLINE_COMMENTARY_NUM = Convert.ToInt32(sys.readoptions("pageConfig", "VIEWONLINE_COMMENTARY_NUM"));
                VIEWONLINE_QUESTION_NUM   = Convert.ToInt32(sys.readoptions("pageConfig", "VIEWONLINE_QUESTION_NUM"));
                ALLAPPENDIX_NUM           = Convert.ToInt32(sys.readoptions("pageConfig", "ALLAPPENDIX_NUM"));
                BACKGROUND_RESOURCE_NUM   = Convert.ToInt32(sys.readoptions("pageConfig", "BACKGROUND_RESOURCE_NUM"));
                BACKGROUND_COMMENTARY_NUM = Convert.ToInt32(sys.readoptions("pageConfig", "BACKGROUND_COMMENTARY_NUM"));
                BACKGROUND_QUESTION_NUM   = Convert.ToInt32(sys.readoptions("pageConfig", "BACKGROUND_QUESTION_NUM"));
            }
            catch (Exception ex)
            {
                clsLog.ErrorLog("Constant", "SetPageConfig", ex.Message);
            }
        }