コード例 #1
0
        public static void main()
        {
            CheckUDTExist();

            RibbonBarItem rbRptItem1 = MotherForm.RibbonBarItems["學生", "資料統計"];
            rbRptItem1["報表"]["成績相關報表"]["中投區積分比序"].Enable = Permissions.IsEnablePointsReport;
            rbRptItem1["報表"]["成績相關報表"]["中投區積分比序"].Click += delegate
            {
                if (NLDPanels.Student.SelectedSource.Count > 0)
                {
                    Forms.MainForm frm = new Forms.MainForm(NLDPanels.Student.SelectedSource);
                    frm.ShowDialog();
                }
            };

            // 在權限畫面出現"評量成績未達標準名單"權限
            Catalog catalog1 = RoleAclSource.Instance["學生"]["報表"];
            catalog1.Add(new RibbonFeature(Permissions.KeyPointsReport, "中投區積分比序"));
        }
コード例 #2
0
        public static void main()
        {
            CheckUDTExist();

            RibbonBarItem rbRptItem1 = MotherForm.RibbonBarItems["學生", "資料統計"];

            rbRptItem1["報表"]["成績相關報表"]["中投區積分比序"].Enable = Permissions.IsEnablePointsReport;
            rbRptItem1["報表"]["成績相關報表"]["中投區積分比序"].Click += delegate
            {
                if (NLDPanels.Student.SelectedSource.Count > 0)
                {
                    Forms.MainForm frm = new Forms.MainForm(NLDPanels.Student.SelectedSource);
                    frm.ShowDialog();
                }
            };

            // 在權限畫面出現"評量成績未達標準名單"權限
            Catalog catalog1 = RoleAclSource.Instance["學生"]["報表"];

            catalog1.Add(new RibbonFeature(Permissions.KeyPointsReport, "中投區積分比序"));
        }