static public void Main() { string URL學生獎勵懲戒明細 = "ischool/高中系統/共用/學務/學生/報表/獎勵懲戒明細"; FISCA.Features.Register(URL學生獎勵懲戒明細, arg => { new Report().Print(); }); RibbonBarItem StudentReports = K12.Presentation.NLDPanels.Student.RibbonBarItems["資料統計"]; StudentReports["報表"]["學務相關報表"]["學生獎勵懲戒明細"].Enable = false; StudentReports["報表"]["學務相關報表"]["學生獎勵懲戒明細"].Click += delegate { Features.Invoke(URL學生獎勵懲戒明細); }; K12.Presentation.NLDPanels.Student.SelectedSourceChanged += delegate { if (K12.Presentation.NLDPanels.Student.SelectedSource.Count <= 0) { StudentReports["報表"]["學務相關報表"]["學生獎勵懲戒明細"].Enable = false; } else { StudentReports["報表"]["學務相關報表"]["學生獎勵懲戒明細"].Enable = Permissions.學生獎勵懲戒明細權限; } }; Catalog ribbon = RoleAclSource.Instance["學生"]["報表"]; ribbon.Add(new RibbonFeature(Permissions.學生獎勵懲戒明細, "學生獎勵懲戒明細")); }
public static void Main() { SenateTab st = new SenateTab(); MotherForm.AddPanel(st); RibbonBarItem StuItem4 = FISCA.Presentation.MotherForm.RibbonBarItems["說明手冊", "網頁功能"]; //StuItem4["上一頁"].Size = RibbonBarButton.MenuButtonSize.Large; //StuItem4["上一頁"].Click += delegate //{ // st.browser.Back(); //}; //StuItem4["下一頁"].Size = RibbonBarButton.MenuButtonSize.Large; //StuItem4["下一頁"].Click += delegate //{ // st.browser.Forward(); //}; StuItem4["重新整理"].Image = Properties.Resources.reload_64_2; StuItem4["重新整理"].Size = RibbonBarButton.MenuButtonSize.Large; StuItem4["重新整理"].Click += delegate { st.browser.Reload(); }; IList <IFeature> list = Features.EnumerateFeatures(); foreach (IFeature each in list) { Console.WriteLine(each.Code); } }
public static void Main() { RibbonBarItem rbItem1 = MotherForm.RibbonBarItems["班級", "資料統計"]; rbItem1["報表"]["成績相關報表"]["班級學期成績通知單(固定排名)"].Enable = UserAcl.Current["JH.Student.HsinChuSemesterScoreClassFixedRank"].Executable; rbItem1["報表"]["成績相關報表"]["班級學期成績通知單(固定排名)"].Click += delegate { if (K12.Presentation.NLDPanels.Class.SelectedSource.Count > 0) { PrintForm pf = new PrintForm(); pf.SetClassIDList(K12.Presentation.NLDPanels.Class.SelectedSource); pf.ShowDialog(); } else { FISCA.Presentation.Controls.MsgBox.Show("請選擇選班級"); return; } }; // 學期成績通知單 Catalog catalog1 = RoleAclSource.Instance["班級"]["功能按鈕"]; catalog1.Add(new RibbonFeature("JH.Student.HsinChuSemesterScoreClassFixedRank", "班級學期成績通知單(固定排名)")); }
// Methods public SchoolYearScoreReportNew() { string reportName = "學年成績單(新制)"; string reportPath = "成績相關報表"; this.buttonStudent = new ButtonAdapter(); this.buttonStudent.Text = reportName; this.buttonStudent.Path = reportPath; this.buttonStudent.OnClick += new EventHandler(this.buttonStudent_OnClick); this.buttonClass = new ButtonAdapter(); this.buttonClass.Text = reportName; this.buttonClass.Path = reportPath; this.buttonClass.OnClick += new EventHandler(this.buttonClass_OnClick); StudentReport.AddReport(this.buttonStudent); ClassReport.AddReport(this.buttonClass); string Student = "SHEvaluation.SchoolYearScoreReportNew.Student"; string Class = "SHEvaluation.SchoolYearScoreReportNew.Class"; RibbonBarItem item1 = FISCA.Presentation.MotherForm.RibbonBarItems["學生", "資料統計"]; item1["報表"][reportPath][reportName].Enable = FISCA.Permission.UserAcl.Current[Student].Executable; RibbonBarItem item2 = FISCA.Presentation.MotherForm.RibbonBarItems["班級", "資料統計"]; item2["報表"][reportPath][reportName].Enable = FISCA.Permission.UserAcl.Current[Class].Executable; //權限設定 Catalog permission1 = RoleAclSource.Instance["學生"]["報表"]; permission1.Add(new RibbonFeature(Student, reportName)); Catalog permission2 = RoleAclSource.Instance["班級"]["報表"]; permission2.Add(new RibbonFeature(Class, reportName)); }
static public void Main() { string ReportName = "社團參與學生清單(新竹高中)"; RibbonBarItem InClass = FISCA.Presentation.MotherForm.RibbonBarItems["班級", "資料統計"]; InClass["報表"]["社團相關報表"][ReportName].Enable = false; InClass["報表"]["社團相關報表"][ReportName].Click += delegate { ElectionForm ef = new ElectionForm(); ef.ShowDialog(); }; K12.Presentation.NLDPanels.Class.SelectedSourceChanged += delegate { //是否選擇大於0的社團 bool SourceCount = (K12.Presentation.NLDPanels.Class.SelectedSource.Count > 0); bool a = (SourceCount && Permissions.班級學生選社狀況一覽表權限); InClass["報表"]["社團相關報表"][ReportName].Enable = a; }; Catalog detail1 = RoleAclSource.Instance["班級"]["報表"]; detail1.Add(new RibbonFeature(Permissions.班級學生選社狀況一覽表, ReportName)); }
public static void Main() { RibbonBarItem rbRptItem1 = MotherForm.RibbonBarItems["課程", "資料統計"]; rbRptItem1["報表"].Size = RibbonBarButton.MenuButtonSize.Large; rbRptItem1["報表"]["成績相關報表"]["課程成績總表"].Enable = UserAcl.Current["KaoHsiung.ExportCourseScore"].Executable; rbRptItem1["報表"]["成績相關報表"]["課程成績總表"].Click += delegate { if (NLDPanels.Course.SelectedSource.Count > 0) { ExportScore es = new ExportScore(Utility.sortCourseIDList(NLDPanels.Course.SelectedSource)); es.Export(); } else { FISCA.Presentation.Controls.MsgBox.Show("請選擇課程."); } }; // 課程成績總表 Catalog catalog = RoleAclSource.Instance["課程"]["報表"]; catalog.Add(new RibbonFeature("KaoHsiung.ExportCourseScore", "課程成績總表")); }
protected override bool SetCreateTypeInfo(IComponent pComponent) { if (pComponent is RibbonPageItem) { RibbonPageItem item = (RibbonPageItem)pComponent; IRibbonControl pRibbonControl = item.TryGetDependRibbonControl(); if (pRibbonControl != null) { item.LineDistance = 2; item.ColumnDistance = 2; //item.ShowBackgroud = true; } } else if (pComponent is RibbonBarItem) { RibbonBarItem item = (RibbonBarItem)pComponent; IRibbonControl pRibbonControl = item.TryGetDependRibbonControl(); if (pRibbonControl != null) { item.Padding = new Padding(3, 3, 3, 2); } } else if (pComponent is TextBoxItem) { TextBoxItem item = (TextBoxItem)pComponent; IRibbonControl pRibbonControl = item.TryGetDependRibbonControl(); if (pRibbonControl != null) { item.Size = new Size(100, 21); } } // return(base.SetCreateTypeInfo(pComponent)); }
static public void Main() { ServerModule.AutoManaged("https://module.ischool.com.tw/module/193005/k12.service_learning.creationitems/udm.xml"); //服務學習資料項目 RibbonBarItem insert = MotherForm.RibbonBarItems["學務作業", "線上作業"]; insert["服務學習線上開設"].Size = RibbonBarButton.MenuButtonSize.Medium; insert["服務學習線上開設"].Enable = Permissions.務學習線上開設權限; insert["服務學習線上開設"].Click += delegate { new CreationItem().ShowDialog(); }; Catalog ribbon1 = RoleAclSource.Instance["學務作業"]; ribbon1.Add(new FISCA.Permission.RibbonFeature(Permissions.務學習線上開設, "服務學習線上開設")); MenuButton mb = MotherForm.RibbonBarItems["學生", "資料統計"]["報表"]["學務相關報表"]; mb["服務學習記錄卡"].Enable = Permissions.務學習記錄卡權限; mb["服務學習記錄卡"].Click += delegate { new RecordCard().ShowDialog(); }; Catalog ribbon2 = RoleAclSource.Instance["學生"]["報表"]; ribbon2.Add(new FISCA.Permission.RibbonFeature(Permissions.務學習記錄卡, "服務學習記錄卡")); }
public static void Main() { string ItemRegCode = "53D58211-8A4E-4795-9142-5B44FD5DD7B1"; RibbonBarItem item = MotherForm.RibbonBarItems["班級", "資料統計"]; item["報表"]["成績相關報表"]["補考成績匯入表"].Enable = false; item["報表"]["成績相關報表"]["補考成績匯入表"].Click += delegate { MainForm mf = new MainForm(K12.Presentation.NLDPanels.Class.SelectedSource); mf.ShowDialog(); }; K12.Presentation.NLDPanels.Class.SelectedSourceChanged += delegate { if (K12.Presentation.NLDPanels.Class.SelectedSource.Count > 0 && FISCA.Permission.UserAcl.Current[ItemRegCode].Executable) { item["報表"]["成績相關報表"]["補考成績匯入表"].Enable = true; } else { item["報表"]["成績相關報表"]["補考成績匯入表"].Enable = false; } }; Catalog cal = RoleAclSource.Instance["班級"]["功能按鈕"]; cal.Add(new RibbonFeature(ItemRegCode, "補考成績匯入表")); }
public static void Main() { // 匯出課程修課學生 RibbonBarItem rbItemCourseImportExport = K12.Presentation.NLDPanels.Course.RibbonBarItems["資料統計"]; rbItemCourseImportExport["匯出"]["匯出課程修課學生"].Enable = UserAcl.Current["SHSchool.Course.ExportCourseStudent"].Executable; rbItemCourseImportExport["匯出"]["匯出課程修課學生"].Click += delegate { SmartSchool.API.PlugIn.Export.Exporter exporter = new SHEvaluationExtensions.Course.ExportCourseStudents(""); SHEvaluationExtensions.Course.ExportStudentV2 wizard = new SHEvaluationExtensions.Course.ExportStudentV2(exporter.Text, exporter.Image); exporter.InitializeExport(wizard); wizard.ShowDialog(); }; // 匯入課程修課學生 rbItemCourseImportExport["匯入"]["匯入課程修課學生"].Enable = UserAcl.Current["SHSchool.Course.ImportCourseStudent"].Executable; rbItemCourseImportExport["匯入"]["匯入課程修課學生"].Click += delegate { SmartSchool.API.PlugIn.Import.Importer importer = new SHEvaluationExtensions.Course.ImportCourseStudents(""); SHEvaluationExtensions.Course.ImportStudentV2 wizard = new SHEvaluationExtensions.Course.ImportStudentV2(importer.Text, importer.Image); importer.InitializeImport(wizard); wizard.ShowDialog(); }; // 註冊 // 匯出匯入課程修課學生 Catalog catalog1 = RoleAclSource.Instance["課程"]["功能按鈕"]; catalog1.Add(new RibbonFeature("SHSchool.Course.ExportCourseStudent", "匯出課程修課學生")); catalog1.Add(new RibbonFeature("SHSchool.Course.ImportCourseStudent", "匯入課程修課學生")); }
public static void Main() { RibbonBarItem rptItem = MotherForm.RibbonBarItems["學生", "資料統計"]; rptItem["報表"]["學籍相關報表"]["通訊錄(郵寄格式)"].Enable = UserAcl.Current["SHSContacts_Student"].Executable; //.Executable可以設定不同權限 例:可看的權限,Viewable rptItem["報表"]["學籍相關報表"]["通訊錄(郵寄格式)"].Click += delegate //匿名寫法 { if (NLDPanels.Student.SelectedSource.Count > 0) { //取得資料學生id(SIDList) List <string> classRefid = new List <string>(); List <string> StudentIDList = Utitlty.GetStudentIDListByStudentID(K12.Presentation.NLDPanels.Student.SelectedSource); List <StudentRecord> StudentList = K12.Data.Student.SelectByIDs(StudentIDList); foreach (StudentRecord stuid in StudentList) { classRefid.Add(stuid.RefClassID); } Forms.SHSContactsForm scf = new Forms.SHSContactsForm(StudentIDList, classRefid); scf.ShowDialog(); } else { FISCA.Presentation.Controls.MsgBox.Show("請選擇學生"); return; } }; RibbonBarItem rptItemC = MotherForm.RibbonBarItems["班級", "資料統計"]; rptItemC["報表"]["學籍相關報表"]["通訊錄(郵寄格式)"].Enable = UserAcl.Current["SHSContacts_Class"].Executable; rptItemC["報表"]["學籍相關報表"]["通訊錄(郵寄格式)"].Click += delegate { if (NLDPanels.Class.SelectedSource.Count > 0) { //取得資料學生id(SIDList) List <string> ClassIDList = K12.Presentation.NLDPanels.Class.SelectedSource; List <string> SIDList = Utitlty.GetStudentIDList1ByClassID(K12.Presentation.NLDPanels.Class.SelectedSource); Forms.SHSContactsForm scf = new Forms.SHSContactsForm(SIDList, ClassIDList); scf.ShowDialog(); } else { FISCA.Presentation.Controls.MsgBox.Show("請選擇班級"); return; } }; // 列印學生通訊錄郵寄格式(學生) Catalog catalog1 = RoleAclSource.Instance["學生"]["功能按鈕"]; catalog1.Add(new RibbonFeature("SHSContacts_Student", "學生通訊錄郵寄格式(學生)")); // 列印學生通訊錄郵寄格式(班級) Catalog catalog2 = RoleAclSource.Instance["班級"]["功能按鈕"]; catalog2.Add(new RibbonFeature("SHSContacts_Class", "學生通訊錄郵寄格式(班級)")); }
static public void Main() { RibbonBarItem stud = FISCA.Presentation.MotherForm.RibbonBarItems["學生", "其他"]; stud["測試"].Click += delegate { TestReport cpr = new TestReport(); }; }
public static void Main() { #region 屏東免試入學-班級服務表現 RibbonBarItem rbItem1 = MotherForm.RibbonBarItems["班級", "資料統計"]; rbItem1["報表"]["屏東免試入學"]["班級服務表現"].Enable = UserAcl.Current["CDBF4D69-AD83-46AB-8F2B-7DEE4ADD03AE"].Executable; rbItem1["報表"]["屏東免試入學"]["班級服務表現"].Click += delegate { if (K12.Presentation.NLDPanels.Class.SelectedSource.Count > 0) { ServiceReportForm srf = new ServiceReportForm(); srf.SetClassIDs(K12.Presentation.NLDPanels.Class.SelectedSource); srf.ShowDialog(); } else { FISCA.Presentation.Controls.MsgBox.Show("請選擇選班級"); return; } }; // 屏東免試入學-班級服務表現 Catalog catalog1 = RoleAclSource.Instance["班級"]["功能按鈕"]; catalog1.Add(new RibbonFeature("CDBF4D69-AD83-46AB-8F2B-7DEE4ADD03AE", "屏東免試入學-班級服務表現")); #endregion #region 送審用匯入檔 RibbonBarItem rbItem2 = MotherForm.RibbonBarItems["教務作業", "資料統計"]; rbItem2["報表"]["屏東免試入學"]["送審用匯入檔"].Enable = UserAcl.Current["D67C5AB8-4DBB-413A-9688-DD9F0075B479"].Executable; rbItem2["報表"]["屏東免試入學"]["送審用匯入檔"].Click += delegate { SubmitForReviewForm sfr = new SubmitForReviewForm(); sfr.ShowDialog(); }; // 屏東免試入學-送審用匯入檔 Catalog catalog2 = RoleAclSource.Instance["教務作業"]["功能按鈕"]; catalog2.Add(new RibbonFeature("D67C5AB8-4DBB-413A-9688-DD9F0075B479", "屏東免試入學-送審用匯入檔")); #endregion #region 設定幹部限制 RibbonBarItem rbItem3 = MotherForm.RibbonBarItems["教務作業", "資料統計"]; rbItem2["報表"]["屏東免試入學"]["設定幹部限制"].Enable = UserAcl.Current["8443B0A6-A7B6-478B-9120-63C4F7B6AE14"].Executable; rbItem2["報表"]["屏東免試入學"]["設定幹部限制"].Click += delegate { setCadreNameForm scnf = new setCadreNameForm(); scnf.ShowDialog(); }; // 屏東免試入學-設定幹部限制 Catalog catalog3 = RoleAclSource.Instance["教務作業"]["功能按鈕"]; catalog2.Add(new RibbonFeature("8443B0A6-A7B6-478B-9120-63C4F7B6AE14", "屏東免試入學-設定幹部限制")); #endregion }
static public void Main() { RibbonBarItem InClass = FISCA.Presentation.MotherForm.RibbonBarItems["學生", "其它"]; InClass["訊息ADD範例"].Click += delegate { Form1 f = new Form1(); f.ShowDialog(); }; }
private bool SelectCompnentMouseUp_DG(RibbonBarItem ribbonBarItem, Point point) { if (ribbonBarItem == null) { return(false); } // foreach (BaseItem one in ribbonBarItem.BaseItems) { if (this.SelectCompnentMouseUp(one as RibbonGalleryItem, point)) { return(true); } if (this.SelectCompnentMouseUp(one as ButtonGroupItem, point)) { return(true); } if (this.SelectCompnentMouseUp_DG(one as BaseItemStackExItem, point)) { return(true); } if (this.SelectCompnentMouseUp_DG(one as BaseItemStackItem, point)) { return(true); } if (this.SelectCompnentMouseUp_DG(one as CanvasItem, point)) { return(true); } // if (one.DesignMouseClickRectangleContainsEx(point)) { ISelectionService pSelectionService = GetService(typeof(ISelectionService)) as ISelectionService; if (pSelectionService != null) { this.m_Item2 = one; if (ribbonBarItem.BaseItems.ExchangeItem(this.m_Item1, this.m_Item2)) { pSelectionService.SetSelectedComponents(new Component[] { this.m_Item1 as Component }, SelectionTypes.Primary); this.m_RibbonPage.Refresh(); return(true); } else { pSelectionService.SetSelectedComponents(new Component[] { one as Component }, SelectionTypes.Primary); this.m_RibbonPage.Refresh(); return(true); } } } } // return(false); }
public static void Main() { RibbonBarItem rbItem = MotherForm.RibbonBarItems["學生", "工具"]; rbItem["加入待處理"].Enable = true; rbItem["加入待處理"].Click += delegate { AddTempStudent ats = new AddTempStudent(); ats.ShowDialog(); }; }
public override void Initialize(IComponent component) { base.Initialize(component); // this.m_RibbonBarItem = base.Component as RibbonBarItem; if (this.m_RibbonBarItem == null) { GISShare.Controls.WinForm.WFNew.Forms.TBMessageBox.Show("RibbonBarItem == null"); return; } }
public static void Main() { #region 學生留察通知單 RibbonBarItem StudentReports = K12.Presentation.NLDPanels.Student.RibbonBarItems["資料統計"]; //StudentReports["報表"]["學務相關報表"].Image = Properties.Resources.boolean_field_fav_64; StudentReports["報表"]["學務相關報表"]["通知單"]["留察通知單"].Enable = Permissions.學生留察通知單權限; StudentReports["報表"]["學務相關報表"]["通知單"]["留察通知單"].Click += delegate { new SHSchool.留察通知單.Report("student").Print(); }; #endregion RibbonBarItem ClassReports = K12.Presentation.NLDPanels.Class.RibbonBarItems["資料統計"]; //ClassReports["報表"]["學務相關報表"].Image = Properties.Resources.boolean_field_fav_64; ClassReports["報表"]["學務相關報表"]["通知單"]["留察通知單"].Enable = Permissions.班級留察通知單權限; ClassReports["報表"]["學務相關報表"]["通知單"]["留察通知單"].Click += delegate { new SHSchool.留察通知單.Report("class").Print(); }; #region 事件 K12.Presentation.NLDPanels.Student.SelectedSourceChanged += delegate { if (K12.Presentation.NLDPanels.Student.SelectedSource.Count <= 0) { StudentReports["報表"]["學務相關報表"]["通知單"]["留察通知單"].Enable = false; } else { StudentReports["報表"]["學務相關報表"]["通知單"]["留察通知單"].Enable = Permissions.學生留察通知單權限; } }; K12.Presentation.NLDPanels.Class.SelectedSourceChanged += delegate { if (K12.Presentation.NLDPanels.Class.SelectedSource.Count <= 0) { ClassReports["報表"]["學務相關報表"]["通知單"]["留察通知單"].Enable = false; } else { ClassReports["報表"]["學務相關報表"]["通知單"]["留察通知單"].Enable = Permissions.班級留察通知單權限; } }; #endregion Catalog ribbon = RoleAclSource.Instance["學生"]["報表"]; ribbon.Add(new RibbonFeature(Permissions.學生留察通知單, "留察通知單")); ribbon = RoleAclSource.Instance["班級"]["報表"]; ribbon.Add(new RibbonFeature(Permissions.班級留察通知單, "留察通知單")); }
static public void Main() { #region 處理UDT Table沒有的問題 ConfigData cd = K12.Data.School.Configuration["跨部別社團UDT載入設定"]; bool checkClubUDT = false; string name = "社團UDT是否已載入_20140709"; //如果尚無設定值,預設為 if (string.IsNullOrEmpty(cd[name])) { cd[name] = "false"; } //檢查是否為布林 bool.TryParse(cd[name], out checkClubUDT); if (!checkClubUDT) { tool._A.Select <EnglishTable>("UID = '00000'"); cd[name] = "true"; cd.Save(); } #endregion //RibbonBarItem InClub = FISCA.Presentation.MotherForm.RibbonBarItems["志願序社團", "其它"]; //InClub["社團中英文管理"].Image = Properties.Resources.copy_refresh_64; //InClub["社團中英文管理"].Enable = Permissions.社團中英文對照表權限; //InClub["社團中英文管理"].Click += delegate //{ // EnglishTableForm sot = new EnglishTableForm(); // sot.ShowDialog(); //}; RibbonBarItem InStudent = FISCA.Presentation.MotherForm.RibbonBarItems["學生", "資料統計"]; InStudent["報表"]["社團相關報表"]["社團參與證明單(英文)"].Enable = Permissions.社團參與證明單_英文權限; InStudent["報表"]["社團相關報表"]["社團參與證明單(英文)"].Click += delegate { EnglishSocietiesProveSingle esps = new EnglishSocietiesProveSingle(); esps.ShowDialog(); }; Catalog detail1; //detail1 = RoleAclSource.Instance["社團"]["功能項目"]; //detail1.Add(new RibbonFeature(Permissions.社團中英文對照表, "社團中英文對照表")); detail1 = RoleAclSource.Instance["學生"]["報表"]; detail1.Add(new RibbonFeature(Permissions.社團參與證明單_英文, "社團參與證明單_英文")); }
public static void Main() { RibbonBarItem rptItem = MotherForm.RibbonBarItems["學生", "資料統計"]; rptItem["報表"]["學籍相關報表"]["學生證"].Enable = UserAcl.Current["SHStudentCard_Student"].Executable; rptItem["報表"]["學籍相關報表"]["學生證"].Click += delegate { if (NLDPanels.Student.SelectedSource.Count > 0) { List <string> SIDList = Utitlty.GetStudentIDListByStudentID(K12.Presentation.NLDPanels.Student.SelectedSource); Forms.StudentCardForm scf = new Forms.StudentCardForm(SIDList); scf.ShowDialog(); } else { FISCA.Presentation.Controls.MsgBox.Show("請選擇學生"); return; } }; RibbonBarItem rptItemC = MotherForm.RibbonBarItems["班級", "資料統計"]; rptItemC["報表"]["學籍相關報表"]["學生證"].Enable = UserAcl.Current["SHStudentCard_Class"].Executable; rptItemC["報表"]["學籍相關報表"]["學生證"].Click += delegate { if (NLDPanels.Class.SelectedSource.Count > 0) { List <string> SIDList = Utitlty.GetStudentIDList1ByClassID(K12.Presentation.NLDPanels.Class.SelectedSource); Forms.StudentCardForm scf = new Forms.StudentCardForm(SIDList); scf.ShowDialog(); } else { FISCA.Presentation.Controls.MsgBox.Show("請選擇班級"); return; } }; // 列印學生證(學生) Catalog catalog1 = RoleAclSource.Instance["學生"]["功能按鈕"]; catalog1.Add(new RibbonFeature("SHStudentCard_Student", "學生證")); // 列印學生證(班級) Catalog catalog2 = RoleAclSource.Instance["班級"]["功能按鈕"]; catalog2.Add(new RibbonFeature("SHStudentCard_Class", "學生證")); }
public static void Main() { RibbonBarItem rbItem = FISCA.Presentation.MotherForm.RibbonBarItems["課程", "讀卡"]; RibbonBarButton importButton = rbItem["匯入讀卡成績"]; importButton.Size = RibbonBarButton.MenuButtonSize.Large; importButton.Enable = User.Acl["KaoHsiung.JHEvaluation.Course.ReaderScoreImport01"].Executable; importButton.Image = Properties.Resources.proyector_save_64; importButton.Click += delegate { ImportStartupForm form = new ImportStartupForm(); form.ShowDialog(); }; RibbonBarButton classButton = rbItem["班級代碼設定"]; classButton.Size = RibbonBarButton.MenuButtonSize.Small; classButton.Enable = User.Acl["KaoHsiung.JHEvaluation.Course.ReaderScoreImport02"].Executable;; classButton.Click += delegate { new ClassCodeConfig().ShowDialog(); }; RibbonBarButton examButton = rbItem["試別代碼設定"]; examButton.Size = RibbonBarButton.MenuButtonSize.Small; examButton.Enable = User.Acl["KaoHsiung.JHEvaluation.Course.ReaderScoreImport03"].Executable;; examButton.Click += delegate { new ExamCodeConfig().ShowDialog(); }; RibbonBarButton subjectButton = rbItem["科目代碼設定"]; subjectButton.Size = RibbonBarButton.MenuButtonSize.Small; subjectButton.Enable = User.Acl["KaoHsiung.JHEvaluation.Course.ReaderScoreImport04"].Executable;; subjectButton.Click += delegate { new SubjectCodeConfig().ShowDialog(); }; Catalog detail = RoleAclSource.Instance["課程"]["功能按鈕"]; detail.Add(new ReportFeature("KaoHsiung.JHEvaluation.Course.ReaderScoreImport01", "匯入讀卡成績")); detail.Add(new ReportFeature("KaoHsiung.JHEvaluation.Course.ReaderScoreImport02", "班級代碼設定")); detail.Add(new ReportFeature("KaoHsiung.JHEvaluation.Course.ReaderScoreImport03", "試別代碼設定")); detail.Add(new ReportFeature("KaoHsiung.JHEvaluation.Course.ReaderScoreImport04", "科目代碼設定")); }
public static void Main() { RibbonBarItem rbItem = FISCA.Presentation.MotherForm.RibbonBarItems["課程", "讀卡"]; RibbonBarButton importButton = rbItem["匯入讀卡成績"]; importButton.Size = RibbonBarButton.MenuButtonSize.Large; importButton.Enable = Permissions.匯入讀卡成績權限; importButton.Image = Properties.Resources.byte_add_64; importButton.Click += delegate { ImportStartupForm form = new ImportStartupForm(); form.ShowDialog(); }; RibbonBarButton classButton = rbItem["班級代碼設定"]; classButton.Size = RibbonBarButton.MenuButtonSize.Small; classButton.Enable = Permissions.班級代碼設定權限; classButton.Click += delegate { new ClassCodeConfig().ShowDialog(); }; RibbonBarButton examButton = rbItem["試別代碼設定"]; examButton.Size = RibbonBarButton.MenuButtonSize.Small; examButton.Enable = Permissions.試別代碼設定權限; examButton.Click += delegate { new ExamCodeConfig().ShowDialog(); }; RibbonBarButton subjectButton = rbItem["科目代碼設定"]; subjectButton.Size = RibbonBarButton.MenuButtonSize.Small; subjectButton.Enable = Permissions.科目代碼設定權限; subjectButton.Click += delegate { new SubjectCodeConfig().ShowDialog(); }; Catalog detail = RoleAclSource.Instance["課程"]["功能按鈕"]; detail.Add(new ReportFeature(Permissions.匯入讀卡成績, "匯入讀卡成績")); detail.Add(new ReportFeature(Permissions.班級代碼設定, "班級代碼設定")); detail.Add(new ReportFeature(Permissions.試別代碼設定, "試別代碼設定")); detail.Add(new ReportFeature(Permissions.科目代碼設定, "科目代碼設定")); }
static public void Main() { RibbonBarItem Print = FISCA.Presentation.MotherForm.RibbonBarItems["班級", "資料統計"]; Print["報表"]["學務相關報表"]["日常生活表現預警表"].Enable = Permissions.日常生活表現預警表權限; Print["報表"]["學務相關報表"]["日常生活表現預警表"].Click += delegate { PerformanceAlertForm paf = new PerformanceAlertForm(); paf.ShowDialog(); }; Catalog ribbon = RoleAclSource.Instance["班級"]["報表"]; ribbon.Add(new RibbonFeature(Permissions.日常生活表現預警表, "日常生活表現預警表")); }
private void AddRibbonBarItem(object sender, EventArgs ea) { IDesignerHost host = (IDesignerHost)GetService(typeof(IDesignerHost)); if (host != null) { RibbonBarItem ribbonBarItem = host.CreateComponent(typeof(RibbonBarItem)) as RibbonBarItem; ribbonBarItem.Name = ribbonBarItem.Site.Name; ribbonBarItem.Padding = new Padding(3, 3, 3, 2); ribbonBarItem.ShowNomalState = false; ribbonBarItem.Size = new Size(60, 23); ribbonBarItem.Text = ribbonBarItem.Name; this.m_RibbonPage.BaseItems.Add(ribbonBarItem); } }
static public void Main() { tool._A.Select <AbsenceUDT>(); tool._A.Select <RollCallLog>(); ServerModule.AutoManaged("http://module.ischool.com.tw/module/138/OnlineNamed/udm.xml"); RibbonBarItem Print = FISCA.Presentation.MotherForm.RibbonBarItems["學務作業", "APP線上點名"]; Print["點名節次缺曠別設定"].Click += delegate { ConfigFrom cf = new ConfigFrom(); cf.ShowDialog(); }; }
static public void Main() { RibbonBarItem Print = FISCA.Presentation.MotherForm.RibbonBarItems["學生", "資料統計"]; Print["報表"]["社團相關報表"]["社團幹部證明單"].Enable = Permissions.社團幹部證明單權限; Print["報表"]["社團相關報表"]["社團幹部證明單"].Click += delegate { CadreProveReport cpr = new CadreProveReport(); cpr.ShowDialog(); }; Catalog detail1 = RoleAclSource.Instance["學生"]["報表"]; detail1.Add(new RibbonFeature(Permissions.社團幹部證明單, "社團幹部證明單")); }
static public void Main() { RibbonBarItem reportClassBar = NLDPanels.Class.RibbonBarItems["資料統計"]; reportClassBar["報表"]["學務相關報表"]["班級服務學習統計表(多學期)"].Enable = Permissions.班級服務學習統計表_多學期_權限; reportClassBar["報表"]["學務相關報表"]["班級服務學習統計表(多學期)"].Click += delegate { SLRClassTotalMulti frm = new SLRClassTotalMulti(); frm.ShowDialog(); }; Catalog ribbon = RoleAclSource.Instance["班級"]["功能按鈕"]; ribbon.Add(new RibbonFeature(Permissions.班級服務學習統計表_多學期, "班級服務學習統計表(多學期)")); }
static public void Main() { RibbonBarItem Print = FISCA.Presentation.MotherForm.RibbonBarItems["學生", "資料統計"]; Print["報表"]["社團相關報表"]["社團參與證明單(高雄)"].Enable = Permissions.社團參與證明單權限_高雄; Print["報表"]["社團相關報表"]["社團參與證明單(高雄)"].Click += delegate { MainForm mf = new MainForm(); mf.ShowDialog(); }; Catalog detail1 = RoleAclSource.Instance["學生"]["報表"]; detail1.Add(new RibbonFeature(Permissions.社團參與證明單_高雄, "社團參與證明單(高雄)")); }
public static void Main() { string regCode = "StudentDuplicateSubjectCheck"; RibbonBarItem rptItem = MotherForm.RibbonBarItems["教務作業", "批次作業/檢視"]; rptItem["成績作業"]["開課檢查"].Enable = UserAcl.Current[regCode].Executable; rptItem["成績作業"]["開課檢查"].Click += delegate { SelectGradeYear sgyf = new SelectGradeYear(); sgyf.ShowDialog(); }; Catalog catalog1a = RoleAclSource.Instance["教務作業"]["功能按鈕"]; catalog1a.Add(new RibbonFeature(regCode, "開課檢查")); }
public static void Main() { RibbonBarItem rbItem1 = MotherForm.RibbonBarItems["學生", "資料統計"]; rbItem1["報表"]["成績相關報表"]["評量成績通知單(測試版)"].Enable = UserAcl.Current["JH.Student.HsinChuExamScore_JH_Student"].Executable; rbItem1["報表"]["成績相關報表"]["評量成績通知單(測試版)"].Click += delegate { if (K12.Presentation.NLDPanels.Student.SelectedSource.Count > 0) { PrintForm pf = new PrintForm(K12.Presentation.NLDPanels.Student.SelectedSource); pf.ShowDialog(); } else { FISCA.Presentation.Controls.MsgBox.Show("請選擇選學生"); return; } }; RibbonBarItem rbItem2 = MotherForm.RibbonBarItems["班級", "資料統計"]; rbItem2["報表"]["成績相關報表"]["評量成績通知單(測試版)"].Enable = UserAcl.Current["JH.Student.HsinChuExamScore_JH_Class"].Executable; rbItem2["報表"]["成績相關報表"]["評量成績通知單(測試版)"].Click += delegate { if (K12.Presentation.NLDPanels.Class.SelectedSource.Count > 0) { List <string> StudentIDList = Utility.GetClassStudentIDList1ByClassID(K12.Presentation.NLDPanels.Class.SelectedSource); PrintForm pf = new PrintForm(StudentIDList); pf.ShowDialog(); } else { FISCA.Presentation.Controls.MsgBox.Show("請選擇選班級"); return; } }; // 評量成績通知單 Catalog catalog1a = RoleAclSource.Instance["學生"]["功能按鈕"]; catalog1a.Add(new RibbonFeature("JH.Student.HsinChuExamScore_JH_Student", "評量成績通知單(測試版)")); // 評量成績通知單 Catalog catalog1b = RoleAclSource.Instance["班級"]["功能按鈕"]; catalog1b.Add(new RibbonFeature("JH.Student.HsinChuExamScore_JH_Class", "評量成績通知單(測試版)")); }