Пример #1
0
        public void btnExportEmployeeSummaryClick(string id)
        {
            string filename =
                ContractAssessActivityListPresenter.ExportEmployeeSummaryEvent(
                    Server.MapPath(ConstParameters.Template_EmployeeAnnualSummaryDoc),
                    Server.MapPath(ConstParameters.Template_EmployeeNormalSummaryDoc), Convert.ToInt32(id));

            Export(filename);
        }
Пример #2
0
        public void btnExportAssessFormClick(string id)
        {
            string filename =
                ContractAssessActivityListPresenter.ExportAssessFormEvent(Server.MapPath(ConstParameters.Template_AnnualDoc),
                                                                          Server.MapPath(
                                                                              ConstParameters.Template_NormalForContractDoc),
                                                                          Convert.ToInt32(id));

            Export(filename);
        }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Powers.HasAuth(LoginUser.Auths, AuthType.HRMIS, HrmisPowers.A706))
            {
                throw new ApplicationException("没有权限访问");
            }

            presenter = new ContractAssessActivityListPresenter(AssessActivityListView1, LoginUser);
            AssessActivityListView1.btnInterruptClick        = presenter.BtnInterruptClick;
            AssessActivityListView1.btnEmployeeVisibleClick += presenter.BtnEmployeeVisibleClick;
            AssessActivityListView1.btnSearchEvent          += presenter.ExecutEvent;
            AssessActivityListView1.BindAssessActivity      += presenter.BindAssessActivity;
            //add by liudan
            AssessActivityListView1.btnDeleteClick += presenter.DeleteAssessActivity;
            presenter.Initialize(IsPostBack);
            AssessActivityListView1.btnExportLeaderClick          += ExportLeaderClick;
            AssessActivityListView1.btnExportSelfClick            += ExportSelfClick;
            AssessActivityListView1.btnExportAssessFormClick      += btnExportAssessFormClick;
            AssessActivityListView1.btnExportEmployeeSummaryClick += btnExportEmployeeSummaryClick;
        }