20220315 代码初始化上传

This commit is contained in:
2022-03-15 17:36:38 +08:00
commit 9dc8a7e05d
9501 changed files with 2066431 additions and 0 deletions
@@ -0,0 +1,73 @@
using BLL;
using System;
using System.Linq;
namespace FineUIPro.Web.HSSE.SitePerson
{
public partial class MonthReportView : PageBase
{
#region
/// <summary>
/// 时间
/// </summary>
public string CompileDate
{
get
{
return (string)ViewState["CompileDate"];
}
set
{
ViewState["CompileDate"] = value;
}
}
/// <summary>
/// 主键
/// </summary>
public string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
#endregion
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.ProjectId = this.CurrUser.LoginProjectId;
this.CompileDate = Request.Params["CompileDate"];
BindGrid();
}
}
#endregion
#region
/// <summary>
/// 绑定明细数据
/// </summary>
private void BindGrid()
{
DateTime sdate = Funs.GetNewDateTimeOrNow(this.CompileDate);
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", sdate);
Grid1.DataSource = BLL.SitePerson_MonthReportDetailService.getMonthReportDetails(this.ProjectId, sdate);
Grid1.DataBind();
}
#endregion
}
}