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

63 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 TeamGroupView : PageBase
{
#region
/// <summary>
/// 主键
/// </summary>
public string TeamGroupId
{
get
{
return (string)ViewState["TeamGroupId"];
}
set
{
ViewState["TeamGroupId"] = value;
}
}
#endregion
#region
/// <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.TeamGroupId = Request.Params["TeamGroupId"];
if (!string.IsNullOrEmpty(this.TeamGroupId))
{
var teamGroup = BLL.TeamGroupService.GetTeamGroupById(this.TeamGroupId);
if (teamGroup != null)
{
this.txtTeamGroupCode.Text = teamGroup.TeamGroupCode;
this.txtTeamGroupName.Text = teamGroup.TeamGroupName;
this.drpUnitId.Text = UnitService.GetUnitNameByUnitId(teamGroup.UnitId);
this.txtRemark.Text = teamGroup.Remark;
this.drpGroupLeader.Text = Person_PersonsService.GetPersonsNameById(teamGroup.GroupLeaderId);
this.drpTeamType.Text = BasicDataService.GetDictNameByDictCode(teamGroup.TeamTypeId);
//this.txtThirdTeamCode.Text = teamGroup.ThirdTeamCode;
if (teamGroup.EntryTime != null)
{
this.txtEntryTime.Text = string.Format("{0:yyyy-MM-dd}", teamGroup.EntryTime);
}
if (teamGroup.ExitTime != null)
{
this.txtExitTime.Text = string.Format("{0:yyyy-MM-dd}", teamGroup.ExitTime);
}
}
}
}
}
#endregion
}
}