1记分
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user