安全报表增加系统外工时统计
This commit is contained in:
@@ -43,8 +43,14 @@ namespace FineUIPro.Web.InformationProject
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
}
|
||||
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
this.ucTree.UnitId = this.CurrUser.UnitId;
|
||||
this.ucTree.ProjectId = this.ProjectId;
|
||||
if (!string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
this.panelLeftRegion.Hidden = true;
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
}
|
||||
|
||||
BLL.ConstValue.InitConstValueDropDownList(this.drpYear, BLL.ConstValue.Group_0008, true);
|
||||
BLL.ConstValue.InitConstValueDropDownList(this.drpMonth, BLL.ConstValue.Group_0009, true);
|
||||
@@ -59,11 +65,29 @@ namespace FineUIPro.Web.InformationProject
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 公司级树加载
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void changeTree(object sender, EventArgs e)
|
||||
{
|
||||
this.ProjectId = this.ucTree.ProjectId;
|
||||
|
||||
|
||||
this.GetButtonPower();
|
||||
this.BindGrid();
|
||||
}
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
string strSql = @"SELECT MillionsMonthlyReport.MillionsMonthlyReportId,"
|
||||
+ @"MillionsMonthlyReport.ProjectId,"
|
||||
+ @"MillionsMonthlyReport.Year,"
|
||||
@@ -79,6 +103,7 @@ namespace FineUIPro.Web.InformationProject
|
||||
+ @"MillionsMonthlyReport.ContractorNum,"
|
||||
+ @"MillionsMonthlyReport.SumPersonNum,"
|
||||
+ @"MillionsMonthlyReport.TotalWorkNum,"
|
||||
+ @"MillionsMonthlyReport.OutSideUnitWorkNum,"
|
||||
+ @"MillionsMonthlyReport.DeathAccidentNum,"
|
||||
+ @"MillionsMonthlyReport.DeathAccidentPersonNum,"
|
||||
+ @"MillionsMonthlyReport.DeathAccidentLossHour,"
|
||||
@@ -298,6 +323,12 @@ namespace FineUIPro.Web.InformationProject
|
||||
this.btnMenuDelete.Hidden = false;
|
||||
}
|
||||
}
|
||||
if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
btnNew.Hidden = true;
|
||||
btnMenuDelete.Hidden = true;
|
||||
btnMenuEdit.Hidden = true;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user