Exemple #1
0
        public static void Main()
        {
            DSAServices.AutoDisplayLoadingMessageOnMotherForm();

            if (DSAServices.AccessPoint.ToLower() != "dsaserverman.ischool.com.tw")
            {
                throw new ApplicationStartupException("不支援,請登入 dsaserverman.ischool.com.tw!");
            }

            GlobalSchoolCache = new DynamicCache(); //建立一個空的快取。

            InitAsposeLicense();
            InitStartMenu();
            InitConfigurationStorage();
            InitMainPanel();

            new Fields.FieldManager();
            new DetailItems();
            new RibbonButtons();
            //new ImportExport();//匯入學校資料

            RefreshFilteredSource();

            FISCA.Presentation.MotherForm.Form.Text = GetTitleText();
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        public static void Main()
        {
            DSAServices.AutoDisplayLoadingMessageOnMotherForm();

            if (DSAServices.AccessPoint.ToLower() != "campusman.ischool.com.tw")
            {
                throw new ApplicationStartupException("不支援,請登入 campusman.ischool.com.tw!");
            }

            GlobalSchoolCache = new DynamicCache(); //建立一個空的快取。

            InitAsposeLicense();
            InitStartMenu();
            InitConfigurationStorage();
            InitMainPanel();


            MainPanel.ListPaneContexMenu["執行 SQL 並匯出"].Enable = false;
            MainPanel.ListPaneContexMenu["執行 SQL 並匯出"].Click += delegate
            {
                new ExportQueryData().Export();
            };



            new FieldManager();
            new DetailItems();
            new RibbonButtons();
            new ImportExport();//匯入學校資料

            Program.MainPanel.RibbonBarItems["批次作業"]["發送最新消息"].Enable = false;
            Program.MainPanel.RibbonBarItems["批次作業"]["發送最新消息"].Image  = Properties.Resources.speech_balloon_64;
            Program.MainPanel.RibbonBarItems["批次作業"]["發送最新消息"].Size   = FISCA.Presentation.RibbonBarButton.MenuButtonSize.Large;
            Program.MainPanel.RibbonBarItems["批次作業"]["發送最新消息"].Click += delegate
            {
                SendNews send = new SendNews(Program.MainPanel.SelectedSource);
                send.ShowDialog();
            };

            Program.MainPanel.RibbonBarItems["批次作業"]["SQL大神"].Enable = false;
            Program.MainPanel.RibbonBarItems["批次作業"]["SQL大神"].Image  = Properties.Resources.technology_64;
            Program.MainPanel.RibbonBarItems["批次作業"]["SQL大神"].Size   = FISCA.Presentation.RibbonBarButton.MenuButtonSize.Large;
            Program.MainPanel.RibbonBarItems["批次作業"]["SQL大神"].Click += delegate
            {
                RunSQL RUN = new RunSQL();
                RUN.ShowDialog();
            };

            Program.MainPanel.SelectedSourceChanged += delegate
            {
                if (Program.MainPanel.SelectedSource.Count == 0)
                {
                    SetEnable(false);
                }
                else
                {
                    SetEnable(true);
                }
            };


            RefreshFilteredSource();

            FISCA.Presentation.MotherForm.Form.Text = GetTitleText();
        }