public static void main() { CheckUDTExist(); RibbonBarItem rbRptItem1 = MotherForm.RibbonBarItems["班級", "資料統計"]; rbRptItem1["報表"]["成績相關報表"]["評量成績未達標準名單"].Enable = Permissions.IsEnableExamFailReport; rbRptItem1["報表"]["成績相關報表"]["評量成績未達標準名單"].Click += delegate { if (NLDPanels.Class.SelectedSource.Count > 0) { Forms.FrmExamFailCondition frm = new Forms.FrmExamFailCondition(); frm.ShowDialog(); } }; // 在權限畫面出現"評量成績未達標準名單"權限 Catalog catalog1 = RoleAclSource.Instance["班級"]["報表"]; catalog1.Add(new RibbonFeature(Permissions.KeyExamFailReport, "評量成績未達標準名單")); }