コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            CourseDetailPresenter presenter = new CourseDetailPresenter
                                                  (CourseView1, SecurityUtil.DECDecrypt(Request.QueryString["courseID"]));

            CourseView1.ChoseEmployeeView.AccountRightViewStateName = "ChoosedEmployeeRight";
            CourseView1.ChoseEmployeeView.AccountLeftViewStateName  = "ChoosedEmployeeLeft";
            CourseView1.ChooseSkillView.SkillRightSessionName       = "ChoosedSkillRight";
            CourseView1.ChooseSkillView.SkillLeftSessionName        = "ChoosedSkillLeft";
            presenter.InitView(Page.IsPostBack, true);
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (PowerUser.IsUserHasPower(PowerUser._SearchCourseList) || PowerUser.IsUserHasPower(PowerUser._SearchFeedBackList))
            //{
            CourseDetailPresenter presenter = new CourseDetailPresenter(CourseView1,
                                                                        SecurityUtil.DECDecrypt(Request.QueryString["courseID"]));

            CourseView1.ChoseEmployeeView.AccountRightViewStateName = "ChoosedEmployeeRight";
            CourseView1.ChoseEmployeeView.AccountLeftViewStateName  = "ChoosedEmployeeLeft";
            CourseView1.ChooseSkillView.SkillRightSessionName       = "ChoosedSkillRight";
            CourseView1.ChooseSkillView.SkillLeftSessionName        = "ChoosedSkillLeft";
            presenter.InitView(Page.IsPostBack, false);
            //}
            //else
            //{
            //    throw new Exception("没有权限访问");
            //}
        }