using BLL;
using System;
namespace FineUIPro.Web.HSSE.SecuritySystem
{
public partial class SafetyOrganizationItemEdit : PageBase
{
#region 定义项
public string SitePersonId
{
get
{
return (string)ViewState["SitePersonId"];
}
set
{
ViewState["SitePersonId"] = value;
}
}
#endregion
///
///
///
///
///
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.SitePersonId = Request.Params["SitePersonId"];
if (!string.IsNullOrEmpty(this.SitePersonId))
{
var item = BLL.SitePerson_PersonService.GetSitePersonById(this.SitePersonId);
if (item != null)
{
this.txtNames.Text = item.PersonName;
var getPerson = Person_PersonsService.GetPerson_PersonsById(item.PersonId);
if (getPerson != null)
{
this.txtMobilePhone.Text = getPerson.Telephone;
}
var getWorkPost = WorkPostService.GetWorkPostById(item.WorkPostId);
if (getWorkPost != null)
{
this.txtPost.Text = getWorkPost.WorkPostName;
this.txtCode.Text = getWorkPost.WorkPostCode;
this.txtDuty.Text = item.Remark;
}
}
}
}
}
}
}