待办打开关键事项无法保存问题处理

This commit is contained in:
2025-11-21 09:54:48 +08:00
parent 787b9de1ae
commit 70cc95b7f6
3 changed files with 424 additions and 12 deletions
@@ -34,6 +34,20 @@ namespace FineUIPro.Web.PZHGL.GJSX
}
}
/// <summary>
/// ProjectId
/// </summary>
public string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
/// <summary>
/// 员工主键
/// </summary>
public string UserId
@@ -159,8 +173,13 @@ namespace FineUIPro.Web.PZHGL.GJSX
GJSX_detail.Clear();
string EditType = Request.Params["EditType"];
this.ID = Request.Params["ID"];
this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["ProjectId"]) && Request.Params["ProjectId"] != this.ProjectId)
{
this.ProjectId = Request.Params["ProjectId"];
}
Table = null;
UnitService.InitUnitDropDownList(this.DropUnitId, this.CurrUser.LoginProjectId, false);
UnitService.InitUnitDropDownList(this.DropUnitId, this.ProjectId, false);
//专业
CNProfessionalService.InitCNProfessionalDownList(this.DropCNProfessional_ID, false);
//编号
@@ -170,13 +189,13 @@ namespace FineUIPro.Web.PZHGL.GJSX
GJSXTypeService.InitGJSXTypeDropDownList(this.DropGJSXTypeID, false);
//跟踪人 默认是自己
UserService.InitUserDropDownList(DropUser_ReceiveID, CurrUser.LoginProjectId, false, string.Empty);
UserService.InitUserDropDownList(DropUser_ReceiveID, this.ProjectId, false, string.Empty);
////事项进展负责人
//UserService.InitUserDropDownList(DropProgress_user, CurrUser.LoginProjectId, false, string.Empty);
//UserService.InitUserDropDownList(DropProgress_user, this.ProjectId, false, string.Empty);
////下一接受人
//UserService.InitUserDropDownList(DropNextRecipient, CurrUser.LoginProjectId, false, string.Empty);
//UserService.InitUserDropDownList(DropNextRecipient, this.ProjectId, false, string.Empty);
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
if (EditType == "add")
@@ -186,7 +205,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
//编号
string projectCode = BLL.ProjectService.GetProjectCodeByProjectId(this.CurrUser.LoginProjectId);
string projectCode = BLL.ProjectService.GetProjectCodeByProjectId(this.ProjectId);
this.txtGJSXID.Text = BLL.SQLHelper.RunProcNewId("Sp_GJSXGetNewCode", "GJSX", "GJSXID", projectCode);
@@ -215,7 +234,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
}
}
//责任人
UserService.InitUserDropDownList(DropUser_Acceptance, this.CurrUser.LoginProjectId, false, this.DropUnitId.SelectedValue);
UserService.InitUserDropDownList(DropUser_Acceptance, this.ProjectId, false, this.DropUnitId.SelectedValue);
}
if (EditType == "Edit" || EditType == "See") //添加事项进展
@@ -233,7 +252,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
DropUnitId.SelectedValue = gjsx.UnitId;
//责任人
UserService.InitUserDropDownList(DropUser_Acceptance, this.CurrUser.LoginProjectId, false, gjsx.UnitId);
UserService.InitUserDropDownList(DropUser_Acceptance, this.ProjectId, false, gjsx.UnitId);
if (!string.IsNullOrEmpty(gjsx.CNProfessional_ID))
{
List<string> list_CNProfessional_ID = gjsx.CNProfessional_ID.Split(',').ToList();
@@ -572,7 +591,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
gjsx.GJSXID = this.txtGJSXID.Text;
gjsx.Detail = txtDetail.Text;
//gjsx.UserID = BLL.UserService.GetUserByUserName(txtUserID.Text).UserId;
gjsx.ProjectId = this.CurrUser.LoginProjectId;
gjsx.ProjectId = this.ProjectId;
gjsx.UnitId = this.DropUnitId.SelectedValue;
gjsx.State = state;
gjsx.CompleteDate = DateTime.Parse(Date_CompleteDate.Text);
@@ -687,7 +706,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
if (!string.IsNullOrWhiteSpace(dropUnitId))
{
//责任人
UserService.InitUserDropDownList(DropUser_Acceptance, this.CurrUser.LoginProjectId, false, dropUnitId);
UserService.InitUserDropDownList(DropUser_Acceptance, this.ProjectId, false, dropUnitId);
//DropUser_Acceptance.SelectedValue = this.CurrUser.UserId;
}
}
@@ -998,13 +1017,13 @@ namespace FineUIPro.Web.PZHGL.GJSX
/// <returns></returns>
private void GetButtonPower()
{
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
if (!string.IsNullOrEmpty(this.ProjectId))
{
this.btnSave.Hidden = false;
}
else
{
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.GJSXMenuId);
var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.GJSXMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd) || buttonList.Contains(BLL.Const.BtnModify))