This commit is contained in:
2026-11-27 17:24:22 +08:00
parent 93a48943a1
commit b8393ebd33
13 changed files with 147 additions and 56 deletions
+1 -1
View File
@@ -2008,7 +2008,7 @@ namespace BLL
/// <summary>
/// 自主管理加分项类型
/// </summary>
public const string BonusScoreTypeMenuId = "8526FC57-F2A8-483F-A7EF-724785B9B676";
public const string BonusScoreTypeMenuId = "72A4B6DA-6857-4CAB-A694-6B1CD9810A26";
#endregion
+5
View File
@@ -669,6 +669,11 @@ namespace BLL
}
#endregion
#region 考核加分扣分情况、自主加分
#endregion
}
}
@@ -63,9 +63,11 @@
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" Hidden="true"
runat="server">
<f:Button ID="btnNew" Text="新增" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNew_Click" Hidden="true">
</f:Button>
<%--<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" Hidden="true"
runat="server">
</f:Button>--%>
<%--<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>--%>
@@ -99,7 +101,7 @@
SortField="Score" FieldType="String" HeaderText="分值" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:RenderField MinWidth="220px" ColumnID="Content" DataField="Content"
<f:RenderField MinWidth="220px" ColumnID="Content" DataField="Content" ExpandUnusedSpace="true"
SortField="Content" FieldType="String" HeaderText="内容" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
@@ -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;
//}
}
/// <summary>
/// 绑定数据
@@ -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 新增
/// <summary>
/// 新增
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNew_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BonusScoreSelfManagementEdit.aspx?ProjectId={0}", this.ProjectId), "新增 - "));
}
#endregion
#region 编辑
/// <summary>
/// 双击事件
@@ -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))
@@ -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);
}
/// <summary>
@@ -66,9 +66,11 @@
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" Hidden="true"
runat="server">
<f:Button ID="btnNew" Text="新增" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNew_Click" Hidden="true">
</f:Button>
<%--<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" Hidden="true"
runat="server">
</f:Button>--%>
<%--<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>--%>
@@ -86,11 +88,11 @@
SortField="Code" FieldType="String" HeaderText="编号" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField MinWidth="400px" ColumnID="Name" DataField="Name"
<f:RenderField MinWidth="280px" ColumnID="Name" DataField="Name"
SortField="Name" FieldType="String" HeaderText="名称" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="UserName" DataField="UserName"
<f:RenderField Width="160px" ColumnID="UserName" DataField="UserName"
SortField="UserName" FieldType="String" HeaderText="姓名" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
@@ -98,7 +100,7 @@
SortField="DateTime" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="日期" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="LevelName" DataField="LevelName"
<f:RenderField Width="120px" ColumnID="LevelName" DataField="LevelName"
SortField="LevelName" FieldType="String" HeaderText="级别" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
@@ -106,7 +108,7 @@
SortField="Score" FieldType="String" HeaderText="分值" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:RenderField MinWidth="280px" ColumnID="Content" DataField="Content"
<f:RenderField MinWidth="280px" ColumnID="Content" DataField="Content" ExpandUnusedSpace="true"
SortField="Content" FieldType="String" HeaderText="内容" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
@@ -114,7 +116,7 @@
SortField="Remark" FieldType="String" HeaderText="备注" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="CompileManName" DataField="CompileManName"
<f:RenderField Width="160px" ColumnID="CompileManName" DataField="CompileManName"
SortField="CompileManName" FieldType="String" HeaderText="编制人" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
@@ -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;
//}
}
/// <summary>
/// 绑定数据
/// </summary>
@@ -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 新增
/// <summary>
/// 新增
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNew_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BonusScoreSituationEdit.aspx?ProjectId={0}", this.ProjectId), "新增"));
}
#endregion
#region 编辑
/// <summary>
/// 双击事件
@@ -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))
@@ -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
/// </summary>
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);
}
/// <summary>
@@ -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
@@ -60,10 +60,10 @@ namespace FineUIPro.Web.HSSE.Examine
/// </summary>
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))
@@ -68,9 +68,11 @@
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" Hidden="true"
runat="server">
<f:Button ID="btnNew" Text="新增" ToolTip="新增" Icon="Add" runat="server" OnClick="btnNew_Click" Hidden="true">
</f:Button>
<%--<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" Hidden="true"
runat="server">
</f:Button>--%>
<%--<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>--%>
@@ -88,11 +90,11 @@
SortField="Code" FieldType="String" HeaderText="编号" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField MinWidth="400px" ColumnID="Name" DataField="Name"
<f:RenderField MinWidth="280px" ColumnID="Name" DataField="Name"
SortField="Name" FieldType="String" HeaderText="名称" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="UserName" DataField="UserName"
<f:RenderField Width="160px" ColumnID="UserName" DataField="UserName"
SortField="UserName" FieldType="String" HeaderText="姓名" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
@@ -100,7 +102,7 @@
SortField="DateTime" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="日期" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="LevelName" DataField="LevelName"
<f:RenderField Width="120px" ColumnID="LevelName" DataField="LevelName"
SortField="LevelName" FieldType="String" HeaderText="级别" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
@@ -108,7 +110,7 @@
SortField="Score" FieldType="String" HeaderText="分值" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:RenderField MinWidth="280px" ColumnID="Content" DataField="Content"
<f:RenderField MinWidth="280px" ColumnID="Content" DataField="Content" ExpandUnusedSpace="true"
SortField="Content" FieldType="String" HeaderText="内容" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
@@ -116,7 +118,7 @@
SortField="Remark" FieldType="String" HeaderText="备注" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="CompileManName" DataField="CompileManName"
<f:RenderField Width="160px" ColumnID="CompileManName" DataField="CompileManName"
SortField="CompileManName" FieldType="String" HeaderText="编制人" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
@@ -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;
//}
}
/// <summary>
/// 绑定数据
@@ -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 新增
/// <summary>
/// 新增
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNew_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("MinusScoreSituationEdit.aspx?ProjectId={0}", this.ProjectId), "新增"));
}
#endregion
#region 编辑
/// <summary>
/// 双击事件
@@ -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))
@@ -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
/// </summary>
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);
}
/// <summary>