SGGL_SHJ/SGGL/FineUIPro.Web/ProjectData/ProjectUserView.aspx.cs

59 lines
2.2 KiB
C#
Raw Normal View History

2022-09-05 16:36:31 +08:00
using BLL;
using System;
namespace FineUIPro.Web.ProjectData
{
public partial class ProjectUserView : PageBase
{
/// <summary>
/// 定义项
/// </summary>
public string ProjectUserId
{
get
{
return (string)ViewState["ProjectUserId"];
}
set
{
ViewState["ProjectUserId"] = value;
}
}
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.ProjectUserId = Request.QueryString["ProjectUserId"];
if (!String.IsNullOrEmpty(this.ProjectUserId))
{
var projectUser = BLL.SitePerson_PersonService.GetSitePersonById(this.ProjectUserId);
if (projectUser != null)
{
var project = BLL.ProjectService.GetProjectByProjectId(projectUser.ProjectId);
if (project != null)
{
this.lbProjectName.Text = project.ProjectName;
}
this.lbUnitName.Text = UnitService.GetUnitNameByUnitId(projectUser.UnitId);
var User = BLL.Person_PersonsService.GetPerson_PersonsById(projectUser.PersonId);
if (User != null)
{
this.lbUserCode.Text = User.JobNum;
this.lbUserName.Text = User.PersonName;
}
bool ispost = projectUser.States == Const.State_1 ? true : false;
this.drpIsPost.Text = ConstValue.getConstTextsConstValues(ispost, ConstValue.Group_0001);
this.drpRole.Text = BLL.RoleService.getRoleNamesRoleIds(projectUser.RoleIds);
}
}
}
}
}
}