41 lines
1.6 KiB
C#
41 lines
1.6 KiB
C#
|
using System;
|
|||
|
using System.Linq;
|
|||
|
|
|||
|
namespace FineUIPro.Web.Common.ProjectSet
|
|||
|
{
|
|||
|
public partial class InstallationView : PageBase
|
|||
|
{
|
|||
|
#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();
|
|||
|
string strInstallationId = Request.Params["InstallationId"];
|
|||
|
Model.Project_Installation getInstallation = BLL.Project_InstallationService.GetProject_InstallationByInstallationId(strInstallationId);
|
|||
|
if (getInstallation != null)
|
|||
|
{
|
|||
|
this.txtInstallationCode.Text = getInstallation.InstallationCode;
|
|||
|
this.txtInstallationName.Text = getInstallation.InstallationName;
|
|||
|
Model.Base_Unit unit = BLL.Base_UnitService.GetUnit(getInstallation.SupervisorUnitId);
|
|||
|
if (unit != null)
|
|||
|
{
|
|||
|
this.txtSupervisorUnit.Text = unit.UnitName;
|
|||
|
}
|
|||
|
this.txtRemark.Text = getInstallation.Remark;
|
|||
|
var project = BLL.Base_ProjectService.GetProjectByProjectId(getInstallation.ProjectId);
|
|||
|
if (project != null)
|
|||
|
{
|
|||
|
this.txtProject.Text = project.ProjectName;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|