initproject
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.Common.ProjectSet
|
||||
{
|
||||
public partial class WorkAreaView : 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 strWorkAreaId = Request.Params["WorkAreaId"];
|
||||
Model.Project_WorkArea getWorkArea = BLL.Project_WorkAreaService.GetProject_WorkAreaByWorkAreaId(strWorkAreaId);
|
||||
if (getWorkArea != null)
|
||||
{
|
||||
this.txtWorkAreaCode.Text = getWorkArea.WorkAreaCode;
|
||||
this.txtRemark.Text = getWorkArea.Remark;
|
||||
var project = BLL.Base_ProjectService.GetProjectByProjectId(getWorkArea.ProjectId);
|
||||
if (project != null)
|
||||
{
|
||||
this.txtProject.Text = project.ProjectName;
|
||||
}
|
||||
|
||||
this.txtInstallationName.Text = BLL.Project_InstallationService.GetProject_InstallationNameByInstallationId(getWorkArea.InstallationId);
|
||||
this.txtUnitName.Text = BLL.Base_UnitService.GetUnitNameByUnitId(getWorkArea.UnitId);
|
||||
this.txtSupervisorUnitName.Text = BLL.Base_UnitService.GetUnitNameByUnitId(getWorkArea.SupervisorUnitId);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user