2025-02-21 18:11:40 +08:00
|
|
|
|
using BLL;
|
2025-02-22 10:34:16 +08:00
|
|
|
|
<<<<<<< HEAD
|
2025-02-22 10:31:57 +08:00
|
|
|
|
using FineUIPro.Web.HSSE.SitePerson;
|
2025-02-21 18:11:40 +08:00
|
|
|
|
using System;
|
2025-02-22 10:31:57 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Configuration;
|
2025-02-21 18:11:40 +08:00
|
|
|
|
using System.Data;
|
2025-02-22 10:31:57 +08:00
|
|
|
|
using System.Data.SqlClient;
|
2025-02-21 18:11:40 +08:00
|
|
|
|
using System.Linq;
|
2025-02-22 10:31:57 +08:00
|
|
|
|
using System.Text;
|
|
|
|
|
using AspNet = System.Web.UI.WebControls;
|
2025-02-22 10:34:16 +08:00
|
|
|
|
=======
|
|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
>>>>>>> 7396d1b654f9a1d0172b2ac898a20175abe94d74
|
2025-02-21 18:11:40 +08:00
|
|
|
|
|
|
|
|
|
namespace FineUIPro.Web.HSSE.Examine
|
|
|
|
|
{
|
|
|
|
|
public partial class StaffHSEInfoArchives : PageBase
|
|
|
|
|
{
|
|
|
|
|
#region 定义项
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 人员主键
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string PersonId
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return (string)ViewState["PersonId"];
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
ViewState["PersonId"] = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 人员主键
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string UserId
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return (string)ViewState["UserId"];
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
ViewState["UserId"] = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 项目id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ProjectId
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return (string)ViewState["ProjectId"];
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
ViewState["ProjectId"] = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 单位id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string UnitId
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return (string)ViewState["UnitId"];
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
ViewState["UnitId"] = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 人员身份证
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string IdentityCard
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return (string)ViewState["IdentityCard"];
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
ViewState["IdentityCard"] = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 加载页面
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 加载页面
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="sender"></param>
|
|
|
|
|
/// <param name="e"></param>
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (!IsPostBack)
|
|
|
|
|
{
|
|
|
|
|
this.ProjectId = this.CurrUser.LoginProjectId;
|
|
|
|
|
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.ProjectId)
|
|
|
|
|
{
|
|
|
|
|
this.ProjectId = Request.Params["projectId"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.PersonId = Request.Params["PersonId"];
|
|
|
|
|
|
|
|
|
|
var lstYesr = BLL.ConstValue.drpConstItemList(ConstValue.Group_0008);
|
|
|
|
|
this.drpYear.DataTextField = "ConstText";
|
|
|
|
|
this.drpYear.DataValueField = "ConstValue";
|
|
|
|
|
this.drpYear.DataSource = lstYesr.OrderByDescending(x => x.SortIndex);
|
|
|
|
|
this.drpYear.DataBind();
|
|
|
|
|
this.drpYear.SelectedValue = DateTime.Now.Year.ToString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var personInfo = PersonService.GetPersonInfoById(this.PersonId);
|
|
|
|
|
if (personInfo != null)
|
|
|
|
|
{
|
|
|
|
|
this.txtPersonName.Text = personInfo.PersonName;
|
|
|
|
|
this.txtIdentityCard.Text = personInfo.IdentityCard;
|
|
|
|
|
this.txtUnitName.Text = personInfo.UnitName;
|
2025-02-25 16:41:06 +08:00
|
|
|
|
//this.txtPostTrainingRoleName.Text = personInfo.PostTrainingRoleName;
|
2025-02-21 18:11:40 +08:00
|
|
|
|
this.txtWorkPostName.Text = personInfo.WorkPostName;
|
|
|
|
|
this.txtPoliticsStatusName.Text = personInfo.PoliticsStatusName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.BindGrid();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 查询
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="sender"></param>
|
|
|
|
|
/// <param name="e"></param>
|
|
|
|
|
protected void btnSearch_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
this.BindGrid();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataTable GridTable = new DataTable();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 绑定数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void BindGrid()
|
|
|
|
|
{
|
2025-02-25 16:41:06 +08:00
|
|
|
|
|
2025-02-21 18:11:40 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|