public static void Main() { K12.Presentation.NLDPanels.Student.SelectedSourceChanged += (sender, e) => { if (K12.Presentation.NLDPanels.Student.SelectedSource.Count > 0) { K12.Presentation.NLDPanels.Student.RibbonBarItems["成績"]["學期科目成績資料維護"].Enable = FISCA.Permission.UserAcl.Current["SocreManagement.Ribbon0010"].Executable; } }; K12.Presentation.NLDPanels.Student.RibbonBarItems["成績"]["學期科目成績資料維護"].Click += (sender, e) => (new frmMain()).ShowDialog(); K12.Presentation.NLDPanels.Student.RibbonBarItems["成績"]["學期科目成績資料維護"].Enable = false; K12.Presentation.NLDPanels.Student.SelectedSourceChanged += (sender, e) => { if (K12.Presentation.NLDPanels.Student.SelectedSource.Count > 0) { K12.Presentation.NLDPanels.Student.RibbonBarItems["成績"]["學年科目成績資料維護"].Enable = FISCA.Permission.UserAcl.Current["SocreManagement.Ribbon0010"].Executable; } }; K12.Presentation.NLDPanels.Student.RibbonBarItems["成績"]["學年科目成績資料維護"].Click += (sender, e) => (new frmSchoolYear()).ShowDialog(); K12.Presentation.NLDPanels.Student.RibbonBarItems["成績"]["學年科目成績資料維護"].Enable = false; FISCA.Permission.Catalog CourseCatalog = FISCA.Permission.RoleAclSource.Instance["學生"]["功能按鈕"]; CourseCatalog.Add(new RibbonFeature("SocreManagement.Ribbon0010", "成績資料維護")); }
public static void Main() { Campus.Configuration.Config.Initialize( new Campus.Configuration.UserConfigManager(new Campus.Configuration.ConfigProvider_User(), FISCA.Authentication.DSAServices.UserAccount), new Campus.Configuration.ConfigurationManager(new Campus.Configuration.ConfigProvider_App()), new Campus.Configuration.ConfigurationManager(new Campus.Configuration.ConfigProvider_Global()) ); InitMainPanel(); SchemaManager Manager = new SchemaManager(FISCA.Authentication.DSAServices.DefaultConnection); Manager.SyncSchema(new SchoolLog()); Manager.SyncSchema(new Action()); MainPanel.RibbonBarItems["自動編班"]["動作設定"].Image = Properties.Resources.achievement_config_128; MainPanel.RibbonBarItems["自動編班"]["動作設定"].Size = RibbonBarButton.MenuButtonSize.Medium; MainPanel.RibbonBarItems["自動編班"]["動作設定"].Click += (sender, e) => new frmActionList().ShowDialog(); MainPanel.RibbonBarItems["自動編班"]["動作設定"].Enable = Permissions.動作設定權限; MainPanel.RibbonBarItems["自動編班"]["查詢紀錄"].Image = Properties.Resources.admissions_search_128; MainPanel.RibbonBarItems["自動編班"]["查詢紀錄"].Size = RibbonBarButton.MenuButtonSize.Medium; MainPanel.RibbonBarItems["自動編班"]["查詢紀錄"].Click += (sender, e) => new QueryLog().ShowDialog(); MainPanel.RibbonBarItems["自動編班"]["查詢紀錄"].Enable = Permissions.查詢紀錄權限; MainPanel.RibbonBarItems["自動編班"]["查詢編班"].Click += (sender, e) => new frmClassOrder().ShowDialog(); MainPanel.RibbonBarItems["自動編班"]["查詢編班"].Image = Properties.Resources.classmate_128; MainPanel.RibbonBarItems["自動編班"]["查詢編班"].Size = RibbonBarButton.MenuButtonSize.Medium; MainPanel.RibbonBarItems["自動編班"]["查詢高關懷學生"].Click += (sender, e) => new frmSpecial().ShowDialog(); MainPanel.RibbonBarItems["自動編班"]["查詢高關懷學生"].Image = Properties.Resources.student_a_128; MainPanel.RibbonBarItems["自動編班"]["查詢高關懷學生"].Size = RibbonBarButton.MenuButtonSize.Medium; FISCA.Permission.Catalog AdminCatalog = FISCA.Permission.RoleAclSource.Instance["自動編班"]["功能按鈕"]; AdminCatalog.Add(new RibbonFeature(Permissions.查詢紀錄, "查詢紀錄")); AdminCatalog.Add(new RibbonFeature(Permissions.動作設定, "動作設定")); }
public static void Main() { #region 模組啟用先同步Schmea //K12.Data.Configuration.ConfigData cd = K12.Data.School.Configuration["調代課UDT載入設定"]; //bool checkClubUDT = false; //string name = "調代課UDT_20131008"; ////如果尚無設定值,預設為 //if (string.IsNullOrEmpty(cd[name])) //{ // cd[name] = "false"; //} ////檢查是否為布林 //bool.TryParse(cd[name], out checkClubUDT); //if (!checkClubUDT) //{ ServerModule.AutoManaged("http://module.ischool.com.tw/module/89/KHCentralOffice/udm.xml"); SchemaManager Manager = new SchemaManager(FISCA.Authentication.DSAServices.DefaultConnection); Manager.SyncSchema(new School()); Manager.SyncSchema(new ApproachStatistics()); Manager.SyncSchema(new VagrantStatistics()); Manager.SyncSchema(new SchoolLog()); //cd[name] = "true"; //cd.Save(); //} #endregion FISCA.Presentation.MotherForm.StartMenu["安全性"]["權限管理"].Click += (sender, e) => new FISCA.Permission.UI.RoleManager().ShowDialog(); DSAServices.AutoDisplayLoadingMessageOnMotherForm(); GlobalSchoolCache = new DynamicCache(); //建立一個空的快取。 InitAsposeLicense(); InitStartMenu(); InitConfigurationStorage(); InitMainPanel(); //MainPanel.ListPaneContexMenu["執行 SQL 並匯出"].Click += delegate //{ // new ExportQueryData().Export(); //}; new FieldManager(); new DetailItems(); //new RibbonButtons(); //new ImportExport();//匯入學校資料 Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["開放時間"].Image = Properties.Resources.school_events_config_128; Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["開放時間"].Size = RibbonBarButton.MenuButtonSize.Medium; Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["開放時間"].Click += (sender, e) => new OpenTime().ShowDialog(); Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["開放時間"].Enable = Permissions.開放時間權限; Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["報表"].Image = Properties.Resources.paste_64; Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["報表"].Size = RibbonBarButton.MenuButtonSize.Medium; Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["報表"]["畢業學生進路統計表"].Click += (sender, e) => new Approach_Report("國中畢業學生進路調查填報表格", Properties.Resources._102學年度國中畢業學生進路調查填報表格).ShowDialog(); Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["報表"]["畢業學生進路統計表"].Enable = Permissions.畢業學生進路統計表權限; Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["報表"]["畢業學生進路複核表"].Click += (sender, e) => new Approach_Report("國中畢業學生進路調查填報複核表", Properties.Resources._102學年度國中畢業學生進路調查填報複核表).ShowDialog(); Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["報表"]["畢業學生進路複核表"].Enable = Permissions.畢業學生進路複核表權限; Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["報表"]["畢業未升學未就業學生動向"].Click += (sender, e) => new UnApproach_Report("國中畢業未升學未就業學生動向", Properties.Resources.中畢業未升學未就業學生動向).ShowDialog(); Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["報表"]["畢業未升學未就業學生動向"].Enable = Permissions.畢業未升學未就業學生動向權限; Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["未上傳學校"].Size = RibbonBarButton.MenuButtonSize.Medium; Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["未上傳學校"].Image = Properties.Resources.school_search_128; Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["未上傳學校"].Click += (sender, e) => new UnApproach_Check().ShowDialog(); Program.MainPanel.RibbonBarItems["畢業學生進路調查"]["未上傳學校"].Enable = Permissions.未上傳學校權限; FISCA.Permission.Catalog AdminCatalog = FISCA.Permission.RoleAclSource.Instance["畢業學生進路調查"]["功能按鈕"]; AdminCatalog.Add(new RibbonFeature(Permissions.未上傳學校, "未上傳學校")); AdminCatalog.Add(new RibbonFeature(Permissions.畢業未升學未就業學生動向, "畢業未升學未就業學生動向")); AdminCatalog.Add(new RibbonFeature(Permissions.畢業學生進路統計表, "畢業學生進路統計表")); AdminCatalog.Add(new RibbonFeature(Permissions.畢業學生進路複核表, "畢業學生進路複核表")); AdminCatalog.Add(new RibbonFeature(Permissions.開放時間, "開放時間")); FISCA.Permission.Catalog DetailCatalog = FISCA.Permission.RoleAclSource.Instance["畢業學生進路調查"]["資料項目"]; DetailCatalog.Add(new DetailItemFeature(Permissions.學校基本資料, "學校基本資料")); DetailCatalog.Add(new DetailItemFeature(Permissions.學校進路統計, "學校進路統計")); RefreshFilteredSource(); FISCA.Presentation.MotherForm.Form.Text = GetTitleText(); }
static public void Main2() { //處理學生資料 ResStudentData(); //處理教師資料 ResTeacherData(); //批次修改入學及畢業日期 FISCA.Presentation.MenuButton btnOrder = FISCA.Presentation.MotherForm.RibbonBarItems["學生", "指定"]["批次修改入學及畢業日期"]; btnOrder.Enable = false; btnOrder.Image = Properties.Resources.record_b_write_64; btnOrder.Click += delegate { new BasicInformation.Student.SchoolYearEditor().ShowDialog(); }; K12.Presentation.NLDPanels.Student.SelectedSourceChanged += delegate { btnOrder.Enable = Permissions.批次修改入學及畢業日期_雙語部權限 && K12.Presentation.NLDPanels.Student.SelectedSource.Count > 0; }; //雙語部 - 班級名條 & 班級點名單 FISCA.Presentation.MenuButton btnC = FISCA.Presentation.MotherForm.RibbonBarItems["班級", "資料統計"]["報表"]["學務相關報表"]; btnC["班級點名表(雙語部)"].Enable = Permissions.班級點名單_雙語部權限; btnC["班級點名表(雙語部)"].Click += delegate { if (K12.Presentation.NLDPanels.Class.SelectedSource.Count > 0) { new TempletChooseForm().ShowDialog(); } else { MsgBox.Show("請選擇班級!!"); } }; btnC["缺曠週報表_依假別(雙語部)"].Enable = Permissions.缺曠週報表_依假別_雙語部權限; btnC["缺曠週報表_依假別(雙語部)"].Click += delegate { if (K12.Presentation.NLDPanels.Class.SelectedSource.Count > 0) { new Report().Print(); } else { MsgBox.Show("請選擇班級!!"); } }; //班級 btnC["缺曠通知單(雙語部)"].Enable = Permissions.班級缺曠通知單_雙語部權限; btnC["缺曠通知單(雙語部)"].Click += delegate { if (K12.Presentation.NLDPanels.Class.SelectedSource.Count > 0) { new AbsenceNotification.Report("class").Print(); } else { MsgBox.Show("請選擇班級!!"); } }; btnC["獎懲通知單(雙語部)"].Enable = Permissions.班級獎懲通知單_雙語部權限; btnC["獎懲通知單(雙語部)"].Click += delegate { if (K12.Presentation.NLDPanels.Class.SelectedSource.Count > 0) { new DisciplineNotification.Report("class").Print(); } else { MsgBox.Show("請選擇班級!!"); } }; FISCA.Presentation.MenuButton btnS = FISCA.Presentation.MotherForm.RibbonBarItems["學生", "資料統計"]["報表"]["學務相關報表"]; //學生 btnS["缺曠通知單(雙語部)"].Enable = Permissions.學生缺曠通知單_雙語部權限; btnS["缺曠通知單(雙語部)"].Click += delegate { if (K12.Presentation.NLDPanels.Student.SelectedSource.Count > 0) { new AbsenceNotification.Report("student").Print(); } else { MsgBox.Show("請選擇學生!!"); } }; //學生 btnS["獎懲通知單(雙語部)"].Enable = Permissions.學生獎懲通知單_雙語部權限; btnS["獎懲通知單(雙語部)"].Click += delegate { if (K12.Presentation.NLDPanels.Student.SelectedSource.Count > 0) { new DisciplineNotification.Report("student").Print(); } else { MsgBox.Show("請選擇學生!!"); } }; RibbonBarButton rbItemImport = K12.Presentation.NLDPanels.Student.RibbonBarItems["資料統計"]["匯入"]; RibbonBarButton rbItemExport = K12.Presentation.NLDPanels.Student.RibbonBarItems["資料統計"]["匯出"]; //rbItemExport["學籍相關匯出"]["匯出學生基本資料(雙語部)"].Enable = Permissions.匯出學生基本資料_雙語部權限; //rbItemExport["學籍相關匯出"]["匯出學生基本資料(雙語部)"].Click += delegate //{ // SmartSchool.API.PlugIn.Export.Exporter exporter = new ExportSchoolObject(); // ExportStudentV2 wizard = new ExportStudentV2(exporter.Text, exporter.Image); // exporter.InitializeExport(wizard); // wizard.ShowDialog(); //}; //rbItemImport["學籍相關匯入"]["匯入學生基本資料(雙語部)"].Enable = Permissions.匯入學生基本資料_雙語部權限; //rbItemImport["學籍相關匯入"]["匯入學生基本資料(雙語部)"].Click += delegate //{ // SmartSchool.API.PlugIn.Import.Importer importer = new ImportSchoolObject(); // ImportStudentV2 wizard = new ImportStudentV2(importer.Text, importer.Image); // importer.InitializeImport(wizard); // wizard.ShowDialog(); //}; rbItemExport["學籍相關匯出"]["匯出學生基本資料(2015)"].Enable = Permissions.匯出學生基本資料New_雙語部權限; rbItemExport["學籍相關匯出"]["匯出學生基本資料(2015)"].Click += delegate { SmartSchool.API.PlugIn.Export.Exporter exporter = new ExportStudentData(); ExportStudentV2 wizard = new ExportStudentV2(exporter.Text, exporter.Image); exporter.InitializeExport(wizard); wizard.ShowDialog(); }; rbItemImport["學籍相關匯入"]["匯入學生基本資料(2015)"].Enable = Permissions.匯入學生基本資料New_雙語部權限; rbItemImport["學籍相關匯入"]["匯入學生基本資料(2015)"].Click += delegate { SmartSchool.API.PlugIn.Import.Importer importer = new ImportStudentData(); ImportStudentV2 wizard = new ImportStudentV2(importer.Text, importer.Image); importer.InitializeImport(wizard); wizard.ShowDialog(); }; FISCA.Presentation.RibbonBarButton btnSDAdmin = FISCA.Presentation.MotherForm.RibbonBarItems["學務作業", "資料統計"]["報表"]; //學務作業 btnSDAdmin.Size = RibbonBarButton.MenuButtonSize.Large; btnSDAdmin["獎懲公告單(雙語部)"].Enable = Permissions.獎懲公告單_雙語部權限; btnSDAdmin["獎懲公告單(雙語部)"].Click += delegate { new AnnouncementSingle().ShowDialog(); }; FISCA.Permission.Catalog TestCatalog1 = FISCA.Permission.RoleAclSource.Instance["班級"]["報表"]; TestCatalog1.Add(new FISCA.Permission.RibbonFeature(Permissions.班級點名單_雙語部, "班級點名表(雙語部)")); TestCatalog1.Add(new FISCA.Permission.RibbonFeature(Permissions.班級缺曠通知單_雙語部, "缺曠通知單(雙語部)")); TestCatalog1.Add(new FISCA.Permission.RibbonFeature(Permissions.班級獎懲通知單_雙語部, "獎懲通知單(雙語部)")); TestCatalog1.Add(new FISCA.Permission.RibbonFeature(Permissions.缺曠週報表_依假別_雙語部, "缺曠週報表_依假別(雙語部)")); FISCA.Permission.Catalog TestCatalog2 = FISCA.Permission.RoleAclSource.Instance["學生"]["報表"]; TestCatalog2.Add(new FISCA.Permission.RibbonFeature(Permissions.學生缺曠通知單_雙語部, "缺曠通知單(雙語部)")); TestCatalog2.Add(new FISCA.Permission.RibbonFeature(Permissions.學生獎懲通知單_雙語部, "獎懲通知單(雙語部)")); FISCA.Permission.Catalog TestCatalog3 = FISCA.Permission.RoleAclSource.Instance["學務作業"]["報表"]; TestCatalog3.Add(new FISCA.Permission.RibbonFeature(Permissions.獎懲公告單_雙語部, "獎懲公告單(雙語部)")); FISCA.Permission.Catalog TestCatalog4 = FISCA.Permission.RoleAclSource.Instance["學生"]["功能按鈕"]; TestCatalog4.Add(new FISCA.Permission.RibbonFeature(Permissions.批次修改入學及畢業日期_雙語部, "批次修改入學及畢業日期")); //TestCatalog2.Add(new FISCA.Permission.RibbonFeature(Permissions.匯出學生基本資料_雙語部, "匯出學生基本資料(雙語部)")); //TestCatalog2.Add(new FISCA.Permission.RibbonFeature(Permissions.匯入學生基本資料_雙語部, "匯入學生基本資料(雙語部)")); TestCatalog2.Add(new FISCA.Permission.RibbonFeature(Permissions.匯出學生基本資料New_雙語部, "匯出學生基本資料(2015)")); TestCatalog2.Add(new FISCA.Permission.RibbonFeature(Permissions.匯入學生基本資料New_雙語部, "匯入學生基本資料(2015)")); }
public static void Main() { #region 處理垃圾資料用 FISCA.UDT.AccessHelper accessHelper = new FISCA.UDT.AccessHelper(); string query = "action='匯入更新'"; List <SchoolLog> SchoolLogList = accessHelper.Select <SchoolLog>(query); List <SchoolLog> WaitDel = new List <SchoolLog>(); StringBuilder sb = new StringBuilder(); foreach (SchoolLog log in SchoolLogList) { sb.Clear(); sb.Append("<root>"); sb.Append(log.Detail); sb.Append("</root>"); try { bool chkDel = false; XElement elmRoot = XElement.Parse(sb.ToString()); foreach (XElement elm in elmRoot.Elements("Student")) { if (elm.Element("ClassName") != null && elm.Element("NewClassName") != null && elm.Element("StudentStatus") != null && elm.Element("NewStudentStatus") != null) { if (elm.Element("ClassName").Value == elm.Element("NewClassName").Value&& elm.Element("StudentStatus").Value == elm.Element("NewStudentStatus").Value) { chkDel = true; break; } } } if (chkDel) { WaitDel.Add(log); } } catch (Exception ex) { } } #endregion Campus.Configuration.Config.Initialize( new Campus.Configuration.UserConfigManager(new Campus.Configuration.ConfigProvider_User(), FISCA.Authentication.DSAServices.UserAccount), new Campus.Configuration.ConfigurationManager(new Campus.Configuration.ConfigProvider_App()), new Campus.Configuration.ConfigurationManager(new Campus.Configuration.ConfigProvider_Global()) ); InitMainPanel(); SchemaManager Manager = new SchemaManager(FISCA.Authentication.DSAServices.DefaultConnection); Manager.SyncSchema(new SchoolLog()); Manager.SyncSchema(new Action()); Manager.SyncSchema(new upload_url()); MainPanel.RibbonBarItems["自動編班"]["動作設定"].Image = Properties.Resources.achievement_config_128; MainPanel.RibbonBarItems["自動編班"]["動作設定"].Size = RibbonBarButton.MenuButtonSize.Medium; MainPanel.RibbonBarItems["自動編班"]["動作設定"].Click += (sender, e) => new frmActionList().ShowDialog(); MainPanel.RibbonBarItems["自動編班"]["動作設定"].Enable = Permissions.動作設定權限; MainPanel.RibbonBarItems["自動編班"]["查詢紀錄"].Image = Properties.Resources.admissions_search_128; MainPanel.RibbonBarItems["自動編班"]["查詢紀錄"].Size = RibbonBarButton.MenuButtonSize.Medium; MainPanel.RibbonBarItems["自動編班"]["查詢紀錄"].Click += (sender, e) => new QueryLog().ShowDialog(); MainPanel.RibbonBarItems["自動編班"]["查詢紀錄"].Enable = Permissions.查詢紀錄權限; //Jean 新增 局端解鎖 20191231 MainPanel.RibbonBarItems["自動編班"]["局端手動解鎖"].Click += (sender, e) => new frmUnlock().ShowDialog(); MainPanel.RibbonBarItems["自動編班"]["局端手動解鎖"].Image = Properties.Resources.classmate_128; MainPanel.RibbonBarItems["自動編班"]["局端手動解鎖"].Size = RibbonBarButton.MenuButtonSize.Medium; MainPanel.RibbonBarItems["自動編班"]["查詢編班"].Click += (sender, e) => new frmClassOrder().ShowDialog(); MainPanel.RibbonBarItems["自動編班"]["查詢編班"].Image = Properties.Resources.classmate_128; MainPanel.RibbonBarItems["自動編班"]["查詢編班"].Size = RibbonBarButton.MenuButtonSize.Medium; MainPanel.RibbonBarItems["自動編班"]["查詢特殊身份學生"].Click += (sender, e) => new frmSpecial().ShowDialog(); MainPanel.RibbonBarItems["自動編班"]["查詢特殊身份學生"].Image = Properties.Resources.student_a_128; MainPanel.RibbonBarItems["自動編班"]["查詢特殊身份學生"].Size = RibbonBarButton.MenuButtonSize.Medium; MainPanel.RibbonBarItems["自動編班"]["各校人數超過上限班級統計"].Click += (sender, e) => new frmSchoolClassCount().ShowDialog(); MainPanel.RibbonBarItems["自動編班"]["各校人數超過上限班級統計"].Image = Properties.Resources.classmate_128; MainPanel.RibbonBarItems["自動編班"]["各校人數超過上限班級統計"].Size = RibbonBarButton.MenuButtonSize.Medium; // 2017/1/4 穎驊新增 局端可列印統計 全市班級類別統計 MainPanel.RibbonBarItems["自動編班"]["各校人數班級類別統計"].Click += (sender, e) => new frmSchoolClassTypeCount().ShowDialog(); MainPanel.RibbonBarItems["自動編班"]["各校人數班級類別統計"].Image = Properties.Resources.classmate_128; MainPanel.RibbonBarItems["自動編班"]["各校人數班級類別統計"].Size = RibbonBarButton.MenuButtonSize.Medium; MainPanel.RibbonBarItems["自動編班"]["查詢學生調整班級"].Click += (sender, e) => new frmStudentChangeClass().ShowDialog(); MainPanel.RibbonBarItems["自動編班"]["查詢學生調整班級"].Image = Properties.Resources.classmate_128; MainPanel.RibbonBarItems["自動編班"]["查詢學生調整班級"].Size = RibbonBarButton.MenuButtonSize.Medium; MainPanel.SelectedSourceChanged += delegate { if (MainPanel.SelectedSource.Count > 0) { MainPanel.RibbonBarItems["查詢"]["查詢社團狀態"].Enable = true; MainPanel.RibbonBarItems["查詢"]["查詢無導師班級"].Enable = true; } else { MainPanel.RibbonBarItems["查詢"]["查詢社團狀態"].Enable = false; MainPanel.RibbonBarItems["查詢"]["查詢無導師班級"].Enable = false; } }; MainPanel.RibbonBarItems["查詢"]["查詢社團狀態"].Enable = false; MainPanel.RibbonBarItems["查詢"]["查詢社團狀態"].Click += (sender, e) => new frmClubStatus().ShowDialog(); MainPanel.RibbonBarItems["查詢"]["查詢社團狀態"].Image = Properties.Resources.recreation_zoom_64; MainPanel.RibbonBarItems["查詢"]["查詢社團狀態"].Size = RibbonBarButton.MenuButtonSize.Medium; MainPanel.RibbonBarItems["查詢"]["查詢無導師班級"].Enable = false; MainPanel.RibbonBarItems["查詢"]["查詢無導師班級"].Click += (sender, e) => new frmClassDetail().ShowDialog(); MainPanel.RibbonBarItems["查詢"]["查詢無導師班級"].Image = Properties.Resources.mask_zoom_64; MainPanel.RibbonBarItems["查詢"]["查詢無導師班級"].Size = RibbonBarButton.MenuButtonSize.Medium; FISCA.Permission.Catalog AdminCatalog = FISCA.Permission.RoleAclSource.Instance["自動編班"]["功能按鈕"]; AdminCatalog.Add(new RibbonFeature(Permissions.查詢紀錄, "查詢紀錄")); AdminCatalog.Add(new RibbonFeature(Permissions.動作設定, "動作設定")); }