123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Bowin.Common.Utility;
- namespace EMIS.Utility
- {
- public class Const
- {
- public const string UPLOAD_SESSION_NAME = "UploadedFiles";
- public static List<string> LOCAL_AUTH_EXCEPTURL
- {
- get {
- List<string> lurl = new List<string>();
- lurl.Add("Content/");
- lurl.Add("Doc/");
- lurl.Add("bundles/");
- lurl.Add("Scripts/");
- lurl.Add("/UserVerify");
- lurl.Add("/ForgotPassword");
- lurl.Add("/NewForgotPassword");
- lurl.Add("UploadFile/");
- lurl.Add("/MsgShow");
- lurl.Add("Account/Regist");
- lurl.Add("Account/SSOLogin");
- lurl.Add("Account/ChangePassword");
- return lurl;
- }
- }
- public static string LOCAL_SETTING_LOGIN_COOKIENAME
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["logincookieName"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- public static string LOCAL_SETTING_LOGIN_ACTION
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["LoginAction"];
- }
- catch
- {
- return null;
- }
- }
- }
- public static int LOCAL_SETTING_LoginIDLength
- {
- get
- {
- try
- {
- return Convert.ToInt32(RSL.Get("LoginIDLength"));
- }
- catch
- {
- return 8;
- }
- }
- }
- public static string USER_INIT_PASSWORD
- {
- get { return ("123456").MD5(); }
- }
- public static bool LOCAL_SETTING_ISCLOSESCHEDULINGMANAGE
- {
- get { return System.Configuration.ConfigurationManager.AppSettings["IsCloseSchedulingManage"] == "1"; }
- }
- public static string LOCAL_SETTING_UPLOAD_FILEPATH
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["FileUploadPath"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- public static string LOCAL_SETTING_PlanningGraduateDateSpringMonth
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["PlanningGraduateDateSpringMonth"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- public static string LOCAL_SETTING_PlanningGraduateDateSpringDay
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["PlanningGraduateDateSpringDay"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- public static string LOCAL_SETTING_PlanningGraduateDateAutumnMonth
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["PlanningGraduateDateAutumnMonth"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- public static string LOCAL_SETTING_PlanningGraduateDateAutumnDay
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["PlanningGraduateDateAutumnDay"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- public static string LOCAL_SETTING_GRADUATINGSEMESTER
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["GraduatingSemester"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- public static string LOCAL_SETTING_LOGINIDTOTAL
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["LoginIDTotal"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- public static bool LOCAL_SETTING_MISSIONCLASS_CAN_SUBMIT_NOTEACHER
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["MissionClassCanSubmitNoTeacher"] == "1";
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return false;
- }
- }
- }
- public static string LOCAL_SETTING_LOGOFF_PAGE
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["LogOffUrl"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "~/Account/Login";
- }
- }
- }
- public static string LOCAL_SETTING_REPORT_URL
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["ReportServerUrl"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- public static string LOCAL_SETTING_REPORT_USER_NAME
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["ReportServerUser"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- public static string LOCAL_SETTING_REPORT_PASSWORD
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["ReportServerPass"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- public static bool SSO_IS_SSO_LOGIN
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["IsSSOLogin"] == "1";
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return false;
- }
- }
- }
- public static string SSO_HOST
- {
- get
- {
- try
- {
- var ssoHost = System.Configuration.ConfigurationManager.AppSettings["SSOHost"];
- if (!ssoHost.EndsWith("/"))
- {
- ssoHost += "/";
- }
- return ssoHost;
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- throw new Exception("单点登录配置错误。");
- }
- }
- }
- public static int ES_DEFAULT_COURSETIMEHOURS
- {
- get { return 7; }
- }
- public static string CF_GRADEMAJOR_NO_PREFIX
- {
- get { return "GradeNo"; }
- }
- public static string CF_CLASSMAJOR_NO_PREFIX
- {
- get { return "ClassNo"; }
- }
- public static string CF_STUDENTCHANGE_COLLEGEAPPROVE_FLAG
- {
- get { return "[College]"; }
- }
- public static string CF_STUDENTCHANGE_ADMINAPPROVE_FLAG
- {
- get { return "[Admin]"; }
- }
- public static string ER_SCORECONVERT_BYREPLACE_SCOREREMARK
- {
- get { return "由成绩认定产生"; }
- }
- public static string EX_REGISTCONFIRM_NO_PREFIX
- {
- get { return "KSQRD"; }
- }
- public static string EX_CERTISFIERDISTRIBUTE_NO_PREFIX
- {
- get { return "LQ"; }
- }
- public static string LOCAL_SETTING_BARCODEPATH
- {
- get { return "BarCodeImages"; }
- }
- }
- }
|