using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace FineUIPro.Web.common.BaseInfo { public partial class OrganizationChart : PageBase { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string projectId = Request.Params["ProjectId"]; Model.Base_Project project = BLL.Base_ProjectService.GetProjectByProjectId(projectId); if (project != null) { this.lblProject.Text = "
项目经理:" + project.ProjectPrincipal + "

项目副经理:" + project.ProjectManager; this.lblSecurePrincipal.Text = "
项目HSE经理:" + project.SecurePrincipal; this.lblPrincipal.Text = "
控制经理: " + "

控制副经理:" + "

设计经理:" + "

采购经理:" + "

开车经理:" + "

行政经理:" + "

财务经理:" ; this.lblCN.Text = "
施工经理:" + "

施工副经理:"; this.lblMaterialPrincipal.Text = "
现场HSE经理:"; } } } /// /// 业主HSE管理机构 /// /// /// protected void btnOrganization1_Click(object sender, EventArgs e) { string projectId = Request.Params["ProjectId"]; var unit = BLL.Base_UnitService.GetUnitsByProjectUnitType(projectId, BLL.Const.UnitType_1); if (unit.Count() > 0) { Response.Redirect("OrganizationParticular.aspx?unitType=" + BLL.Const.UnitType_1); } else { ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('业主类型的单位不存在!')", true); } } /// /// 监理HSE管理机构 /// /// /// protected void btnOrganization2_Click(object sender, EventArgs e) { string projectId = Request.Params["ProjectId"]; var unit = BLL.Base_UnitService.GetUnitsByProjectUnitType(projectId, BLL.Const.UnitType_2); if (unit.Count() > 0) { Response.Redirect("OrganizationParticular.aspx?unitType="+ BLL.Const.UnitType_1); } else { ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('监理类型的单位不存在!')", true); } } /// /// 分包方HSE管理机构 /// /// /// protected void btnOrganization3_Click(object sender, EventArgs e) { string projectId = Request.Params["ProjectId"]; var unit = BLL.Base_UnitService.GetUnitsByProjectUnitType(projectId, BLL.Const.UnitType_3); if (unit.Count() > 0) { Response.Redirect("OrganizationParticular.aspx?unitType=" + BLL.Const.UnitType_3); } else { ScriptManager.RegisterStartupScript(this, typeof(string), "_alert", "alert('分包方类型的单位不存在!')", true); } } } }