Esempio n. 1
0
        private void UCBulletinManage_Load(object sender, EventArgs e)
        {
            base.RoleButtonStstus(this.Name);//角色按钮权限-是否隐藏
            this.dgvRecord.ReadOnly = false;

            foreach (DataGridViewColumn dgvc in dgvRecord.Columns)
            {
                if (dgvc.Name == this.columnCheck.Name)
                {
                    continue;
                }
                dgvc.ReadOnly = true;
            }

            this.btnVerify.Visible = true;
            this.btnRevoke.Visible = true;

            dtpSTime.Value = DateTime.Now.AddMonths(-1);
            dtpETime.Value = DateTime.Now;

            this.InitEvent();

            this.InitData();

            CommonCtrl.CmbBindUser(cmbUser, "");
            CommonCtrl.DgCmbBindDeptment(this.columnOrg, string.Empty);
            DataSources.BindComDataGridViewBoxColumnDataEnum(this.columnStatus, typeof(DataSources.EnumAuditStatus));

            this.cmbOrg.SelectedIndexChanged += new System.EventHandler(this.cboOrgId_SelectedIndexChanged);
            this.page.PageIndexChanged       += new ServiceStationClient.ComponentUI.WinFormPager.EventHandler(this.page_PageIndexChanged);

            this.BindPageData();
        }