202306131、新增项目级消息待办页面功能。2、新增项目单位是否同步实名制设置功能。3、优化考试合格自动生成卡号功能。
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using BLL;
|
||||
using Aspose.Words;
|
||||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
@@ -16,9 +17,12 @@ namespace FineUIPro.Web
|
||||
#region Page_Init
|
||||
|
||||
private string _menuType = "menu";
|
||||
public string cssMessage = "";
|
||||
public string cssMessageNo = "";
|
||||
// private bool _compactMode = false;
|
||||
private int _examplesCount = 0;
|
||||
private string _searchText = "";
|
||||
|
||||
#region Page_Init
|
||||
|
||||
/// <summary>
|
||||
@@ -288,7 +292,7 @@ namespace FineUIPro.Web
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
{
|
||||
this.drpProject.DataValueField = "ProjectId";
|
||||
this.drpProject.DataTextField = "ShortName";
|
||||
var projectlist =ProjectService.GetSortIndexProjectByUserIdDropDownList(this.CurrUser.PersonId);
|
||||
@@ -300,6 +304,17 @@ namespace FineUIPro.Web
|
||||
this.drpProject.SelectedValue = Request.Params["projectId"];
|
||||
}
|
||||
|
||||
// 首次进页面设置消息的数量
|
||||
var getDataList = Funs.DB.Sp_Project_GetToDoItems(this.drpProject.SelectedValue ?? this.CurrUser.LoginProjectId, this.CurrUser.PersonId);
|
||||
if (getDataList.Count() == 0)
|
||||
{
|
||||
cssMessageNo = "sd-message-dot-none";
|
||||
}
|
||||
else
|
||||
{
|
||||
cssMessageNo = "";
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(Request.Params["projectName"]))
|
||||
{
|
||||
var getproject = ProjectService.GetProjectByProjectName(Request.Params["projectName"]);
|
||||
@@ -539,10 +554,21 @@ namespace FineUIPro.Web
|
||||
|
||||
protected void drpProject_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// 下拉选择项目后,查询对应的消息数量,changeClient有数量传1,无数量传0
|
||||
var getDataList = Funs.DB.Sp_Project_GetToDoItems(this.drpProject.SelectedValue ?? this.CurrUser.LoginProjectId, this.CurrUser.PersonId);
|
||||
if (getDataList.Count() == 0)
|
||||
{
|
||||
PageContext.RegisterStartupScript("parent.changeClient(0);");
|
||||
}
|
||||
else
|
||||
{
|
||||
PageContext.RegisterStartupScript("parent.changeClient(1);");
|
||||
}
|
||||
this.Tab1.RefreshIFrame();
|
||||
this.CurrUser.LoginProjectId = this.drpProject.SelectedValue;
|
||||
|
||||
PageContext.RegisterStartupScript("parent.removeActiveTab();");
|
||||
MenuSwitchMethod(this.CurrUser.LastMenuType);
|
||||
MenuSwitchMethod(this.CurrUser.LastMenuType);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -559,7 +585,7 @@ namespace FineUIPro.Web
|
||||
if (!string.IsNullOrEmpty(type))
|
||||
{
|
||||
this.CurrUser.LastProjectId = this.CurrUser.LoginProjectId;
|
||||
if (CommonService.IsHaveSystemPower(this.CurrUser.PersonId, type, this.CurrUser.LoginProjectId) || type == Const.Menu_Personal)
|
||||
if (CommonService.IsHaveSystemPower(this.CurrUser.PersonId, type, this.CurrUser.LoginProjectId) || type == Const.Menu_Personal || type == Const.Menu_ToDo)
|
||||
{
|
||||
this.XmlDataSource1.DataFile = "common/" + type + ".xml";
|
||||
this.leftPanel.Hidden = false;
|
||||
@@ -575,7 +601,6 @@ namespace FineUIPro.Web
|
||||
else if (type == Const.Menu_HJGL)
|
||||
{
|
||||
this.Tab1.IFrameUrl = "~/common/mainMenu_HJGL_AVEVA.aspx";
|
||||
|
||||
}
|
||||
else if (type == Const.Menu_PZHGL)
|
||||
{
|
||||
@@ -586,6 +611,10 @@ namespace FineUIPro.Web
|
||||
{
|
||||
this.Tab1.IFrameUrl = "~/Person/ProjectPerson.aspx";
|
||||
}
|
||||
else if (type == Const.Menu_ToDo)
|
||||
{
|
||||
this.Tab1.IFrameUrl = "~/SysManage/ProjectToDo.aspx";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -670,5 +699,10 @@ namespace FineUIPro.Web
|
||||
{
|
||||
this.MenuSwitchMethod(Const.Menu_JDGL);
|
||||
}
|
||||
|
||||
protected void btnToDoItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.MenuSwitchMethod(Const.Menu_ToDo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user