private void UCMemberParaManage_Load(object sender, EventArgs e) { //base.RoleButtonStstus(this.Name);//角色按钮权限-是否隐藏 this.btnStatus.Visible = false; this.dgvRecord.ReadOnly = false; foreach (DataGridViewColumn dgvc in dgvRecord.Columns) { if (dgvc.Name == this.columnCheck.Name) { continue; } dgvc.ReadOnly = true; } this.uiHandler -= new UiHandler(this.ShowBindData); this.uiHandler += new UiHandler(this.ShowBindData); base.AddEvent += new ClickHandler(UCMemberParaManage_AddEvent); base.EditEvent += new ClickHandler(UCMemberParaManage_EditEvent); base.DeleteEvent += new ClickHandler(UCMemberParaManage_DeleteEvent); CommonCtrl.DgCmbBindDict(this.member_grade_id, "sys_member_grade"); this.BindPageData(); }
private void UCMemberParaManage_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name);//角色按钮权限-是否隐藏 this.dgvRecord.ReadOnly = false; this.uiHandler -= new UiHandler(this.ShowBindData); this.uiHandler += new UiHandler(this.ShowBindData); base.AddEvent += new ClickHandler(UCMemberParaManage_AddEvent); base.EditEvent += new ClickHandler(UCMemberParaManage_EditEvent); base.DeleteEvent += new ClickHandler(UCMemberParaManage_DeleteEvent); CommonCtrl.DgCmbBindDict(this.member_grade_id, "sys_member_grade"); this.BindPageData(); }
private void UCCompanyManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name);//角色按钮权限-是否隐藏 dgvRecord.ReadOnly = false; this.InitEvent(); CommonCtrl.DgCmbBindDict(this.colWXZZ, "sys_repair_qualification"); CommonCtrl.DgCmbBindDict(this.colGSXZ, "sys_enterprise_property"); DataSources.BindComDataGridViewBoxColumnDataEnum(this.colStatus, typeof(DataSources.EnumStatus)); this.InitData(); this.BindPageData(); this.page.PageIndexChanged += new ServiceStationClient.ComponentUI.WinFormPager.EventHandler(this.page_PageIndexChanged); }
private void UCCompanyManager_Load(object sender, EventArgs e) { base.RoleButtonStstus(this.Name);//角色按钮权限-是否隐藏 //dgvRecord.ReadOnly = false; this.InitEvent(); CommonCtrl.DgCmbBindDict(this.colWXZZ, "sys_repair_qualification"); CommonCtrl.DgCmbBindDict(this.colGSXZ, "sys_enterprise_property"); DataSources.BindComDataGridViewBoxColumnDataEnum(this.colStatus, typeof(DataSources.EnumStatus)); this.InitData(); this.BindPageData(); this.page.PageIndexChanged += new ServiceStationClient.ComponentUI.WinFormPager.EventHandler(this.page_PageIndexChanged); base.SetContentMenuScrip(dgvRecord); List <string> listNotPrint = new List <string>(); PaperSize printsize = new PaperSize("printsize", dgvRecord.Width / 4 + 40, dgvRecord.Height); businessPrint = new BusinessPrint(dgvRecord, "tb_company", "公司档案", printsize, listNotPrint); }