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