diff --git a/DataBase/版本日志/SGGLDB_V2026-11-27-xiaj.sql b/DataBase/版本日志/SGGLDB_V2026-11-27-xiaj.sql
new file mode 100644
index 00000000..296aad74
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2026-11-27-xiaj.sql
@@ -0,0 +1,9 @@
+
+update Sys_Menu
+set IsUsed=0
+where Url like '%OnePersonPerFile%'
+
+
+update Sys_ButtonToMenu
+set MenuId='72A4B6DA-6857-4CAB-A694-6B1CD9810A26'
+where MenuId='8526FC57-F2A8-483F-A7EF-724785B9B676'
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 73a389e4..531a4cf0 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -2008,7 +2008,7 @@ namespace BLL
///
/// 自主管理加分项类型
///
- public const string BonusScoreTypeMenuId = "8526FC57-F2A8-483F-A7EF-724785B9B676";
+ public const string BonusScoreTypeMenuId = "72A4B6DA-6857-4CAB-A694-6B1CD9810A26";
#endregion
diff --git a/SGGL/BLL/Score/ScoreFlowLogService.cs b/SGGL/BLL/Score/ScoreFlowLogService.cs
index 333b9c4c..84d720c6 100644
--- a/SGGL/BLL/Score/ScoreFlowLogService.cs
+++ b/SGGL/BLL/Score/ScoreFlowLogService.cs
@@ -669,6 +669,11 @@ namespace BLL
}
+ #endregion
+
+
+ #region 考核加分扣分情况、自主加分
+
#endregion
}
}
diff --git a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSelfManagement.aspx b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSelfManagement.aspx
index 7c9e8eb3..8ce312d7 100644
--- a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSelfManagement.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSelfManagement.aspx
@@ -63,9 +63,11 @@
-
+
+ <%--
+ --%>
<%--
--%>
@@ -99,7 +101,7 @@
SortField="Score" FieldType="String" HeaderText="分值" HeaderTextAlign="Center"
TextAlign="Center">
-
diff --git a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSelfManagement.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSelfManagement.aspx.cs
index 7db58ea3..189ed4f9 100644
--- a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSelfManagement.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSelfManagement.aspx.cs
@@ -53,7 +53,7 @@ namespace FineUIPro.Web.HSSE.Examine
////权限按钮方法
this.GetButtonPower();
}
- this.btnNew.OnClientClick = Window1.GetShowReference("BonusScoreSelfManagementEdit.aspx") + "return false;";
+ //this.btnNew.OnClientClick = Window1.GetShowReference("BonusScoreSelfManagementEdit.aspx") + "return false;";
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
{
Grid1.PageSize = this.CurrUser.PageSize.Value;
@@ -75,10 +75,10 @@ namespace FineUIPro.Web.HSSE.Examine
this.ProjectId = this.ucTree.ProjectId;
this.BindGrid();
this.GetButtonPower();
- if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
- {
- btnNew.Hidden = true;
- }
+ //if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
+ //{
+ // btnNew.Hidden = true;
+ //}
}
///
/// 绑定数据
@@ -91,6 +91,7 @@ namespace FineUIPro.Web.HSSE.Examine
}
var db = Funs.DB;
var queryData = from x in db.Examine_BonusScoreSelfManagement
+ //join y in db.SitePerson_Person on x.UserId equals y.PersonId
join y in db.SitePerson_Person on x.PersonId equals y.PersonId
//join z in db.Sys_User on x.CompileMan equals z.UserId
where x.ProjectId == this.ProjectId
@@ -165,6 +166,20 @@ namespace FineUIPro.Web.HSSE.Examine
}
#endregion
+ #region 新增
+
+ ///
+ /// 新增
+ ///
+ ///
+ ///
+ protected void btnNew_Click(object sender, EventArgs e)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BonusScoreSelfManagementEdit.aspx?ProjectId={0}", this.ProjectId), "新增 - "));
+ }
+
+ #endregion
+
#region 编辑
///
/// 双击事件
@@ -261,7 +276,7 @@ namespace FineUIPro.Web.HSSE.Examine
{
return;
}
- var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.BonusScoreSelfManagementMenuId);
+ var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.BonusScoreSelfManagementMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
diff --git a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSelfManagementEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSelfManagementEdit.aspx.cs
index f12f5eb3..1a387dad 100644
--- a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSelfManagementEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSelfManagementEdit.aspx.cs
@@ -47,6 +47,11 @@ namespace FineUIPro.Web.HSSE.Examine
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
+ var thisProjectId = Request.Params["ProjectId"];
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.InitDropDownList();
@@ -68,6 +73,7 @@ namespace FineUIPro.Web.HSSE.Examine
if (!string.IsNullOrEmpty(model.PersonId))
{
this.drpPerson.SelectedValue = model.PersonId;
+ this.drpPerson.Readonly = true;
}
if (!string.IsNullOrEmpty(model.BonusScoreTypeId))
{
@@ -82,8 +88,7 @@ namespace FineUIPro.Web.HSSE.Examine
else
{
////自动生成编码
- this.txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", "dbo.Examine_BonusScoreSelfManagement", "Code", CurrUser.LoginProjectId);
- //////自动生成编码
+ this.txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", "dbo.Examine_BonusScoreSelfManagement", "Code", this.ProjectId);
//this.txtCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.BonusScoreSelfManagementMenuId, this.ProjectId, this.CurrUser.UnitId);
//this.drpPerson.SelectedValue = this.CurrUser.UserId;
//this.txtDateTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
@@ -97,7 +102,7 @@ namespace FineUIPro.Web.HSSE.Examine
private void InitDropDownList()
{
BonusScoreTypeService.InitBonusScoreTypeDropDownList(this.drpBonusScoreType, false);
- PersonService.InitPersonByProjectUnitDropDownList(this.drpPerson, this.CurrUser.LoginProjectId, "", false);
+ PersonService.InitPersonByProjectUnitDropDownList(this.drpPerson, this.ProjectId, "", false);
}
///
diff --git a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSituation.aspx b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSituation.aspx
index 5e580e83..f3b5234f 100644
--- a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSituation.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSituation.aspx
@@ -66,9 +66,11 @@
-
+
+ <%--
+ --%>
<%--
--%>
@@ -86,11 +88,11 @@
SortField="Code" FieldType="String" HeaderText="编号" HeaderTextAlign="Center"
TextAlign="Left">
-
-
@@ -98,7 +100,7 @@
SortField="DateTime" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="日期" HeaderTextAlign="Center" TextAlign="Center">
-
@@ -106,7 +108,7 @@
SortField="Score" FieldType="String" HeaderText="分值" HeaderTextAlign="Center"
TextAlign="Center">
-
@@ -114,7 +116,7 @@
SortField="Remark" FieldType="String" HeaderText="备注" HeaderTextAlign="Center"
TextAlign="Left">
-
diff --git a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSituation.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSituation.aspx.cs
index ac1ccff6..2670611c 100644
--- a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSituation.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSituation.aspx.cs
@@ -51,7 +51,7 @@ namespace FineUIPro.Web.HSSE.Examine
////权限按钮方法
this.GetButtonPower();
}
- this.btnNew.OnClientClick = Window1.GetShowReference("BonusScoreSituationEdit.aspx") + "return false;";
+ //this.btnNew.OnClientClick = Window1.GetShowReference("BonusScoreSituationEdit.aspx?ProjectId=" + this.ProjectId) + "return false;";
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
{
Grid1.PageSize = this.CurrUser.PageSize.Value;
@@ -73,12 +73,12 @@ namespace FineUIPro.Web.HSSE.Examine
this.ProjectId = this.ucTree.ProjectId;
this.BindGrid();
this.GetButtonPower();
- if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
- {
- btnNew.Hidden = true;
- }
+ //if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
+ //{
+ // btnNew.Hidden = true;
+ //}
}
-
+
///
/// 绑定数据
///
@@ -90,13 +90,15 @@ namespace FineUIPro.Web.HSSE.Examine
}
var db = Funs.DB;
var queryData = from x in db.Examine_BonusScoreSituation
- join y in db.Sys_User on x.UserId equals y.UserId
+ join y in db.SitePerson_Person on x.UserId equals y.PersonId
+ //join y in db.Sys_User on x.UserId equals y.UserId
join z in db.Sys_User on x.CompileMan equals z.UserId
where x.ProjectId == this.ProjectId
&& (string.IsNullOrEmpty(txtCode.Text.Trim()) || x.Code.Contains(txtCode.Text.Trim()))
&& (string.IsNullOrEmpty(txtName.Text.Trim()) || x.Name.Contains(txtName.Text.Trim()))
&& (string.IsNullOrEmpty(drpLevel.SelectedValue) || x.Level == drpLevel.SelectedValue)
- && (string.IsNullOrEmpty(txtUserName.Text.Trim()) || y.UserName.Contains(txtUserName.Text.Trim()))
+ && (string.IsNullOrEmpty(txtUserName.Text.Trim()) || y.PersonName.Contains(txtUserName.Text.Trim()))
+ //&& (string.IsNullOrEmpty(txtUserName.Text.Trim()) || y.UserName.Contains(txtUserName.Text.Trim()))
&& (string.IsNullOrEmpty(txtContent.Text.Trim()) || x.Content.Contains(txtContent.Text.Trim()))
select new
{
@@ -110,7 +112,8 @@ namespace FineUIPro.Web.HSSE.Examine
x.Remark,
x.DateTime,
x.CompileDate,
- UserName = y.UserName,
+ UserName = y.PersonName,
+ //UserName = y.UserName,
CompileManName = z.UserName
};
Grid1.RecordCount = queryData.Count();
@@ -164,6 +167,20 @@ namespace FineUIPro.Web.HSSE.Examine
}
#endregion
+ #region 新增
+
+ ///
+ /// 新增
+ ///
+ ///
+ ///
+ protected void btnNew_Click(object sender, EventArgs e)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BonusScoreSituationEdit.aspx?ProjectId={0}", this.ProjectId), "新增"));
+ }
+
+ #endregion
+
#region 编辑
///
/// 双击事件
@@ -260,7 +277,7 @@ namespace FineUIPro.Web.HSSE.Examine
{
return;
}
- var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.BonusScoreSituationMenuId);
+ var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.BonusScoreSituationMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
diff --git a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSituationEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSituationEdit.aspx.cs
index 454e6d6b..ae24b955 100644
--- a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSituationEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreSituationEdit.aspx.cs
@@ -1,4 +1,5 @@
using BLL;
+using Microsoft.Office.Interop.Excel;
using System;
namespace FineUIPro.Web.HSSE.Examine
@@ -47,6 +48,11 @@ namespace FineUIPro.Web.HSSE.Examine
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
+ var thisProjectId = Request.Params["ProjectId"];
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.InitDropDownList();
@@ -67,6 +73,7 @@ namespace FineUIPro.Web.HSSE.Examine
if (!string.IsNullOrEmpty(model.UserId))
{
this.drpUser.SelectedValue = model.UserId;
+ this.drpUser.Readonly = true;
}
this.drpLevel.SelectedValue = model.Level;
this.txtScore.Text = model.Score.ToString();
@@ -78,10 +85,10 @@ namespace FineUIPro.Web.HSSE.Examine
else
{
////自动生成编码
- this.txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", "dbo.Examine_BonusScoreSituation", "Code", CurrUser.LoginProjectId);
+ this.txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", "dbo.Examine_BonusScoreSituation", "Code", this.ProjectId);
//////自动生成编码
//this.txtCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.BonusScoreSituationMenuId, this.ProjectId, this.CurrUser.UnitId);
- this.drpUser.SelectedValue = this.CurrUser.UserId;
+ //this.drpUser.SelectedValue = this.CurrUser.UserId;
this.txtDateTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
}
}
@@ -92,7 +99,8 @@ namespace FineUIPro.Web.HSSE.Examine
///
private void InitDropDownList()
{
- BLL.UserService.InitUserDropDownList(this.drpUser, this.ProjectId, false);
+ //BLL.UserService.InitUserDropDownList(this.drpUser, this.ProjectId, false);
+ PersonService.InitPersonByProjectUnitDropDownList(this.drpUser, this.ProjectId, null, true);
}
///
@@ -160,6 +168,8 @@ namespace FineUIPro.Web.HSSE.Examine
BLL.BonusScoreSituationService.AddBonusScoreSituation(newModel);
BLL.LogService.AddSys_Log(this.CurrUser, newModel.Code, newModel.Id, BLL.Const.BonusScoreSituationMenuId, BLL.Const.BtnAdd);
}
+
+ //人员记分
}
#endregion
diff --git a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreType.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreType.aspx.cs
index 2a12c696..74083400 100644
--- a/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreType.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Examine/BonusScoreType.aspx.cs
@@ -60,10 +60,10 @@ namespace FineUIPro.Web.HSSE.Examine
///
private void BindGrid()
{
- if (string.IsNullOrEmpty(this.ProjectId))
- {
- return;
- }
+ //if (string.IsNullOrEmpty(this.ProjectId))
+ //{
+ // return;
+ //}
var db = Funs.DB;
var queryData = from x in db.Examine_BonusScoreType
join z in db.Sys_User on x.CompileMan equals z.UserId
@@ -224,7 +224,7 @@ namespace FineUIPro.Web.HSSE.Examine
{
return;
}
- var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.BonusScoreTypeMenuId);
+ var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.BonusScoreTypeMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
diff --git a/SGGL/FineUIPro.Web/HSSE/Examine/MinusScoreSituation.aspx b/SGGL/FineUIPro.Web/HSSE/Examine/MinusScoreSituation.aspx
index 7214c04a..01c65928 100644
--- a/SGGL/FineUIPro.Web/HSSE/Examine/MinusScoreSituation.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/Examine/MinusScoreSituation.aspx
@@ -68,9 +68,11 @@
-
+
+ <%--
+ --%>
<%--
--%>
@@ -88,11 +90,11 @@
SortField="Code" FieldType="String" HeaderText="编号" HeaderTextAlign="Center"
TextAlign="Left">
-
-
@@ -100,7 +102,7 @@
SortField="DateTime" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="日期" HeaderTextAlign="Center" TextAlign="Center">
-
@@ -108,7 +110,7 @@
SortField="Score" FieldType="String" HeaderText="分值" HeaderTextAlign="Center"
TextAlign="Center">
-
@@ -116,7 +118,7 @@
SortField="Remark" FieldType="String" HeaderText="备注" HeaderTextAlign="Center"
TextAlign="Left">
-
diff --git a/SGGL/FineUIPro.Web/HSSE/Examine/MinusScoreSituation.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Examine/MinusScoreSituation.aspx.cs
index 65b1e2e8..83c42e3e 100644
--- a/SGGL/FineUIPro.Web/HSSE/Examine/MinusScoreSituation.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Examine/MinusScoreSituation.aspx.cs
@@ -51,7 +51,7 @@ namespace FineUIPro.Web.HSSE.Examine
////权限按钮方法
this.GetButtonPower();
}
- this.btnNew.OnClientClick = Window1.GetShowReference("MinusScoreSituationEdit.aspx") + "return false;";
+ //this.btnNew.OnClientClick = Window1.GetShowReference("MinusScoreSituationEdit.aspx") + "return false;";
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
{
Grid1.PageSize = this.CurrUser.PageSize.Value;
@@ -72,10 +72,10 @@ namespace FineUIPro.Web.HSSE.Examine
this.ProjectId = this.ucTree.ProjectId;
this.BindGrid();
this.GetButtonPower();
- if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
- {
- btnNew.Hidden = true;
- }
+ //if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
+ //{
+ // btnNew.Hidden = true;
+ //}
}
///
/// 绑定数据
@@ -88,13 +88,15 @@ namespace FineUIPro.Web.HSSE.Examine
}
var db = Funs.DB;
var queryData = from x in db.Examine_MinusScoreSituation
- join y in db.Sys_User on x.UserId equals y.UserId
+ join y in db.SitePerson_Person on x.UserId equals y.PersonId
+ //join y in db.Sys_User on x.UserId equals y.UserId
join z in db.Sys_User on x.CompileMan equals z.UserId
where x.ProjectId == this.ProjectId
&& (string.IsNullOrEmpty(txtCode.Text.Trim()) || x.Code.Contains(txtCode.Text.Trim()))
&& (string.IsNullOrEmpty(txtName.Text.Trim()) || x.Name.Contains(txtName.Text.Trim()))
&& (string.IsNullOrEmpty(drpLevel.SelectedValue) || x.Level == drpLevel.SelectedValue)
- && (string.IsNullOrEmpty(txtUserName.Text.Trim()) || y.UserName.Contains(txtUserName.Text.Trim()))
+ && (string.IsNullOrEmpty(txtUserName.Text.Trim()) || y.PersonName.Contains(txtUserName.Text.Trim()))
+ //&& (string.IsNullOrEmpty(txtUserName.Text.Trim()) || y.UserName.Contains(txtUserName.Text.Trim()))
&& (string.IsNullOrEmpty(txtContent.Text.Trim()) || x.Content.Contains(txtContent.Text.Trim()))
select new
{
@@ -108,7 +110,8 @@ namespace FineUIPro.Web.HSSE.Examine
x.Remark,
x.DateTime,
x.CompileDate,
- UserName = y.UserName,
+ UserName = y.PersonName,
+ //UserName = y.UserName,
CompileManName = z.UserName
};
Grid1.RecordCount = queryData.Count();
@@ -162,6 +165,20 @@ namespace FineUIPro.Web.HSSE.Examine
}
#endregion
+ #region 新增
+
+ ///
+ /// 新增
+ ///
+ ///
+ ///
+ protected void btnNew_Click(object sender, EventArgs e)
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("MinusScoreSituationEdit.aspx?ProjectId={0}", this.ProjectId), "新增"));
+ }
+
+ #endregion
+
#region 编辑
///
/// 双击事件
@@ -258,7 +275,7 @@ namespace FineUIPro.Web.HSSE.Examine
{
return;
}
- var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.MinusScoreSituationMenuId);
+ var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.MinusScoreSituationMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
diff --git a/SGGL/FineUIPro.Web/HSSE/Examine/MinusScoreSituationEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Examine/MinusScoreSituationEdit.aspx.cs
index 9303d1ea..a8286db2 100644
--- a/SGGL/FineUIPro.Web/HSSE/Examine/MinusScoreSituationEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Examine/MinusScoreSituationEdit.aspx.cs
@@ -47,6 +47,11 @@ namespace FineUIPro.Web.HSSE.Examine
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
+ var thisProjectId = Request.Params["ProjectId"];
+ if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
+ {
+ this.ProjectId = Request.Params["projectId"];
+ }
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.InitDropDownList();
@@ -67,6 +72,7 @@ namespace FineUIPro.Web.HSSE.Examine
if (!string.IsNullOrEmpty(model.UserId))
{
this.drpUser.SelectedValue = model.UserId;
+ this.drpUser.Readonly = true;
}
this.drpLevel.SelectedValue = model.Level;
this.txtScore.Text = model.Score.ToString();
@@ -78,7 +84,7 @@ namespace FineUIPro.Web.HSSE.Examine
else
{
////自动生成编码
- this.txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", "dbo.Examine_MinusScoreSituation", "Code", CurrUser.LoginProjectId);
+ this.txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", "dbo.Examine_MinusScoreSituation", "Code", this.ProjectId);
//////自动生成编码
//this.txtCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.MinusScoreSituationMenuId, this.ProjectId, this.CurrUser.UnitId);
this.drpUser.SelectedValue = this.CurrUser.UserId;
@@ -92,7 +98,8 @@ namespace FineUIPro.Web.HSSE.Examine
///
private void InitDropDownList()
{
- BLL.UserService.InitUserDropDownList(this.drpUser, this.ProjectId, false);
+ //BLL.UserService.InitUserDropDownList(this.drpUser, this.ProjectId, false);
+ PersonService.InitPersonByProjectUnitDropDownList(this.drpUser, this.ProjectId, null, true);
}
///