123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442 |
- 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";
- /// <summary>
- ///
- /// </summary>
- 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/SSOLogin");
- lurl.Add("Account/ChangePassword");
- return lurl;
- }
- }
- public static List<string> LOCAL_AUTH_INCLUDEURL
- {
- get
- {
- List<string> lurl = new List<string>();
- //lurl.Add("Content/DownFile");
- return lurl;
- }
- }
- /// <summary>
- ///
- /// </summary>
- public static string LOCAL_SETTING_LOGIN_COOKIENAME
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["logincookieName"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- /// <summary>
- ///
- /// </summary>
- public static string LOCAL_SETTING_LOGIN_ACTION
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["LoginAction"];
- }
- catch
- {
- return null;
- }
- }
- }
-
- /// <summary>
- ///
- /// </summary>
- public static int LOCAL_SETTING_LoginIDLength
- {
- get
- {
- try
- {
- return Convert.ToInt32(RSL.Get("LoginIDLength"));
- }
- catch
- {
- return 8;
- }
- }
- }
-
- /// <summary>
- ///
- /// </summary>
- public static string USER_INIT_PASSWORD
- {
- get { return ("123456").MD5(); }
- }
- /// <summary>
- ///
- /// </summary>
- public static bool LOCAL_SETTING_ISCLOSESCHEDULINGMANAGE
- {
- get { return System.Configuration.ConfigurationManager.AppSettings["IsCloseSchedulingManage"] == "1"; }
- }
- /// <summary>
- ///
- /// </summary>
- public static string LOCAL_SETTING_UPLOAD_FILEPATH
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["FileUploadPath"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
-
- /// <summary>
- ///
- /// </summary>
- public static string LOCAL_SETTING_PlanningGraduateDateSpringMonth
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["PlanningGraduateDateSpringMonth"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
-
- /// <summary>
- ///
- /// </summary>
- public static string LOCAL_SETTING_PlanningGraduateDateSpringDay
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["PlanningGraduateDateSpringDay"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
-
- /// <summary>
- ///
- /// </summary>
- public static string LOCAL_SETTING_PlanningGraduateDateAutumnMonth
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["PlanningGraduateDateAutumnMonth"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
-
- /// <summary>
- ///
- /// </summary>
- public static string LOCAL_SETTING_PlanningGraduateDateAutumnDay
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["PlanningGraduateDateAutumnDay"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- /// <summary>
- /// 入学学期(1表示春季、上学期,2表示秋季、下学期)
- /// </summary>
- public static string LOCAL_SETTING_ENTRANCESEMESTERID
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["EntranceSemesterID"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- /// <summary>
- /// 学号总位数
- /// </summary>
- public static string LOCAL_SETTING_LOGINIDTOTAL
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["LoginIDTotal"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- /// <summary>
- ///
- /// </summary>
- 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;
- }
- }
- }
- /// <summary>
- ///
- /// </summary>
- 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";
- }
- }
- }
- /// <summary>
- ///
- /// </summary>
- public static string LOCAL_SETTING_REPORT_URL
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["ReportServerUrl"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- /// <summary>
- ///
- /// </summary>
- public static string LOCAL_SETTING_REPORT_USER_NAME
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["ReportServerUser"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- /// <summary>
- ///
- /// </summary>
- public static string LOCAL_SETTING_REPORT_PASSWORD
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["ReportServerPass"];
- }
- catch (Exception ex)
- {
- string e = ex.ToString();
- return "";
- }
- }
- }
- /// <summary>
- ///
- /// </summary>
- 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;
- }
- }
- }
- /// <summary>
- ///
- /// </summary>
- 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("单点登录配置错误。");
- }
- }
- }
-
- /// <summary>
- ///
- /// </summary>
- public static int ES_DEFAULT_COURSETIMEHOURS
- {
- get { return 7; }
- }
- /// <summary>
- ///
- /// </summary>
- public static string CF_GRADEMAJOR_NO_PREFIX
- {
- get { return "GradeNo"; }
- }
- /// <summary>
- ///
- /// </summary>
- public static string CF_CLASSMAJOR_NO_PREFIX
- {
- get { return "ClassNo"; }
- }
- /// <summary>
- ///
- /// </summary>
- public static string CF_STUDENTCHANGE_COLLEGEAPPROVE_FLAG
- {
- get { return "[College]"; }
- }
- /// <summary>
- ///
- /// </summary>
- public static string CF_STUDENTCHANGE_ADMINAPPROVE_FLAG
- {
- get { return "[Admin]"; }
- }
- /// <summary>
- ///
- /// </summary>
- public static string ER_SCORECONVERT_BYREPLACE_SCOREREMARK
- {
- get { return "由成绩认定产生"; }
- }
- }
- }
|