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();
        }
Esempio n. 2
0
 /// <summary>
 /// 根据部门的选择绑定发布人人
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmbOrg_SelectionChangeCommitted(object sender, EventArgs e)
 {
     if (this.cmbOrg.SelectedValue == null)
     {
         return;
     }
     CommonCtrl.CmbBindUser(cmbUser, this.cmbOrg.SelectedValue.ToString());
 }
Esempio n. 3
0
 private void InitData()
 {
     this.dtpSTime.Value = DateTime.Now;
     CommonCtrl.CmbBindUser(cmbUser, "");
     CommonCtrl.CmbBindDeptment(this.cmbOrg, string.Empty);
 }