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 LOCAL_AUTH_EXCEPTURL
{
get {
List lurl = new List();
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 LOCAL_AUTH_INCLUDEURL
{
get
{
List lurl = new List();
//lurl.Add("Content/DownFile");
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 "";
}
}
}
///
/// 入学学期(1表示春季、上学期,2表示秋季、下学期)
///
public static string LOCAL_SETTING_ENTRANCESEMESTERID
{
get
{
try
{
return System.Configuration.ConfigurationManager.AppSettings["EntranceSemesterID"];
}
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 "由成绩认定产生"; }
}
}
}