202306131、新增项目级消息待办页面功能。2、新增项目单位是否同步实名制设置功能。3、优化考试合格自动生成卡号功能。

This commit is contained in:
2023-06-13 16:30:08 +08:00
parent 3c887b46d1
commit 7a2a8ffb93
37 changed files with 805 additions and 194 deletions
+19 -15
View File
@@ -23,22 +23,26 @@ namespace FineUIPro.Web
{
get
{
if (Session["CurrUser"] == null)
{
string account = string.Empty;
string password = string.Empty;
if (Request.Cookies["u"] != null)
{
account = HttpUtility.UrlDecode(Request.Cookies["u"].Value);
}
if (Request.Cookies["p"] != null)
{
password = Request.Cookies["p"].Value;
}
Session["CurrUser"] = BLL.Funs.DB.Person_Persons.FirstOrDefault(x => x.Account == account && x.Password == Funs.EncryptionPassword(password));
}
if (Session["CurrUser"] == null) return null;
return (Model.Person_Persons)Session["CurrUser"];
//if (Session["CurrUser"] == null)
//{
// string account = string.Empty;
// string password = string.Empty;
// if (Request.Cookies["u"] != null)
// {
// account = HttpUtility.UrlDecode(Request.Cookies["u"].Value);
// }
// if (Request.Cookies["p"] != null)
// {
// password = Request.Cookies["p"].Value;
// }
// Session["CurrUser"] = BLL.Funs.DB.Person_Persons.FirstOrDefault(x => x.Account == account && x.Password == Funs.EncryptionPassword(password));
//}
//return (Model.Person_Persons)Session["CurrUser"];
}
}