EyouSoft.BLL.CompanyStructure.Department dBll = null; //部门BLL #endregion protected void Page_Load(object sender, EventArgs e) { if (!CheckGrant(global::Common.Enum.TravelPermission.个人中心_工作交流_工作计划栏目)) { Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.个人中心_工作交流_工作计划栏目, true); } wpbll = new EyouSoft.BLL.PersonalCenterStructure.WorkPlan(SiteUserInfo); dBll = new EyouSoft.BLL.CompanyStructure.Department(); string type = Utils.GetQueryStringValue("type"); if (!IsPostBack) { switch (type) { case "plandel": PlanDel(); //计划删除 break; default: DataInit(); //初使化 break; } DDLBind(); } }
protected bool isshow = false; //是否有权限查看 #endregion protected void Page_Load(object sender, EventArgs e) { if (!CheckGrant(global::Common.Enum.TravelPermission.个人中心_工作交流_工作计划栏目)) { Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.个人中心_工作交流_工作计划栏目, true); } wpBll = new EyouSoft.BLL.PersonalCenterStructure.WorkPlan(SiteUserInfo); dBll = new EyouSoft.BLL.CompanyStructure.Department(); if (!IsPostBack) { ShowInit(); } }
protected bool isManager = false;//是否总经理 #endregion protected void Page_Load(object sender, EventArgs e) { wpBll = new EyouSoft.BLL.PersonalCenterStructure.WorkPlan(SiteUserInfo); dBll = new EyouSoft.BLL.CompanyStructure.Department(); if (!IsPostBack) { type = EyouSoft.Common.Utils.GetQueryStringValue("type"); switch (type) { case "modify": Bind();//修改数据初使绑定 this.Title = "工作计划修改_个人中心"; break; default: AddBind();//新增数据初使化 this.Title = "工作计划新增_个人中心"; break; } } else { Save(); } }