public static void Main() { Catalog detail = RoleAclSource.Instance["學生"]["報表"]; detail.Add(new ReportFeature("KaoHsiung.JHEvaluation.Student.Report0001", "轉學成績證明書")); MenuButton mb = MotherForm.RibbonBarItems["學生", "資料統計"]["報表"]["成績相關報表"]["轉學成績證明書"]; mb.Enable = User.Acl["KaoHsiung.JHEvaluation.Student.Report0001"].Executable; mb.Click += delegate { TransferReportForm form = new TransferReportForm(); form.ShowDialog(); }; }
public static void Main() { Catalog detail = RoleAclSource.Instance["學生"]["報表"]; detail.Add(new ReportFeature("KaoHsiung.JHEvaluation.Student.Report0001", "轉學成績證明書")); MenuButton mb = MotherForm.RibbonBarItems["學生", "資料統計"]["報表"]["成績相關報表"]["轉學成績證明書"]; mb.Enable = User.Acl["KaoHsiung.JHEvaluation.Student.Report0001"].Executable; mb.Click += delegate { TransferReportForm form = new TransferReportForm(); form.ShowDialog(); }; string URL轉學成績證明書 = "ischool/國中系統/學生/報表/成績/轉學證明書"; FISCA.Features.Register(URL轉學成績證明書, arg => { TransferReportForm form = new TransferReportForm(); form.ShowDialog(); }); }