/// <summary> /// 页面权限绑定 /// </summary> private void FromBind() { //资源用表 if (!MyCommon.CheckMenuState("1")) { btnFileCreate.Visible = false; tsmiFileLoe.Visible = false; } //文件登记 if (!MyCommon.CheckMenuState("2")) { btnProjectMaint.Visible = false; tsmiProjectMaint.Visible = false; } //组卷 if (!MyCommon.CheckMenuState("3")) { toolStripButton2.Visible = false; tsmiArichive.Visible = false; } //工程移交 if (!MyCommon.CheckMenuState("4")) { btnProjectArchive.Visible = false; toolStripMenuItem2.Visible = false; } }
/// <summary> /// 窗体加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void frmProjectSelect_Load(object sender, EventArgs e) { BindGridViewData(true); if (!MyCommon.CheckMenuState("5")) { tsAdd.Visible = false; } if (!MyCommon.CheckMenuState("6")) { tsDelete.Visible = false; } }