Esempio n. 1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            //读取系统初始参数,此参数为服务地址
            //if (!App.Current.Resources.Contains("PlatformWShost"))
            //{
            //    string hostAddress = "";
            //    hostAddress = hostAddress + e.InitParams["p1"];
            //    hostAddress = hostAddress + e.InitParams["p2"].Replace('.', '/');
            //    App.Current.Resources.Add("PlatformWShost", hostAddress);
            //}

            EntryPointPage page = new EntryPointPage();

            page.Content = rootGrid;
            //TODO: 按需取出字典值
            //LoadDicts();
            InitTheme();
            InitComonConverter();
            rootGrid.Children.Add(new SMT.FBAnalysis.UI.Login());

            this.RootVisual = page;
            //this.RootVisual = new CompanyYearPlan();
            //this.RootVisual = new SMT.FBAnalysis.UI.Form.SubjectManagement.EditDepartmentYearPlan();
            //this.RootVisual = new AnnlualSessionView();
        }
Esempio n. 2
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            InitTheme();
            EntryPointPage page = new EntryPointPage();

            page.Content = rootGrid;
            CultureInfo culture = new CultureInfo("zh-CN");

            Thread.CurrentThread.CurrentUICulture = culture;
            Thread.CurrentThread.CurrentCulture   = culture;
            SMT.SaaS.FrameworkUI.Validator.ValidatorService.ResourceMgr = SMT.SaaS.Globalization.Localization.ResourceMgr;
            // this.RootVisual = new MainPage();
            this.RootVisual = page;

            //rootGrid.Style = (Style)this.Resources["loginbg"];
            rootGrid.Children.Add(new Views.Login.Login());

            //已屏蔽,改为按需加载
            //安凯航,2011年7月17日
            //LoadDicts();
            //LoadDictss();
            //end

            InitComonConverter();
        }
Esempio n. 3
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {

            EntryPointPage page = new EntryPointPage();
            page.Content = rootGrid;
            CultureInfo culture = new CultureInfo("zh-CN");
            Thread.CurrentThread.CurrentUICulture = culture;
            Thread.CurrentThread.CurrentCulture = culture;

            //TODO: 按需取出字典值
            LoadDicts();

            this.RootVisual = page;
            InitTheme();
            InitComonConverter();
            rootGrid.Children.Add(new SMT.SaaS.Permission.UI.Form.Login());         
        }
Esempio n. 4
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            EntryPointPage page = new EntryPointPage();

            page.Content = rootGrid;
            CultureInfo culture = new CultureInfo("zh-CN");

            Thread.CurrentThread.CurrentUICulture = culture;
            Thread.CurrentThread.CurrentCulture   = culture;

            //TODO: 按需取出字典值
            LoadDicts();

            this.RootVisual = page;
            InitTheme();
            InitComonConverter();
            rootGrid.Children.Add(new SMT.SaaS.Permission.UI.Form.Login());
        }
Esempio n. 5
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            EntryPointPage page = new EntryPointPage();
            page.Content = rootGrid;
            //TODO: 按需取出字典值
            LoadDicts();
            
            this.RootVisual = page;
            InitTheme();
            InitComonConverter();
             rootGrid.Children.Add(new Login());  
            //rootGrid.Children.Add(new Views.Salary.Payment());
            
            //测试
            //OrganizationWS.OrganizationServiceClient oclient = new SMT.Saas.Tools.OrganizationWS.OrganizationServiceClient();
            //oclient.GetCompanyByEntityPermAsync("4afd1d50-b84d-4ea3-8c81-0078c35fea5e", "0", "T_FB_CHARGEAPPLYMASTER");

            //PersonnelWS.PersonnelServiceClient pclient = new SMT.Saas.Tools.PersonnelWS.PersonnelServiceClient();
            //System.Collections.ObjectModel.ObservableCollection<string> ids = new System.Collections.ObjectModel.ObservableCollection<string>();
            //ids.Add("67A8D37C-15C6-4002-A740-1787EC5CEEDF");
            //ids.Add("11CC84DF-2B78-499f-AF14-FB8F36A5FE22");
            //pclient.GetEmployeeByIDsAsync(ids);

        }
Esempio n. 6
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            //读取系统初始参数,此参数为服务地址   
            //if (!App.Current.Resources.Contains("PlatformWShost"))
            //{
            //    string hostAddress = "";
            //    hostAddress = hostAddress + e.InitParams["p1"];
            //    hostAddress = hostAddress + e.InitParams["p2"].Replace('.', '/');
            //    App.Current.Resources.Add("PlatformWShost", hostAddress);
            //}

            EntryPointPage page = new EntryPointPage();
            page.Content = rootGrid;
            //TODO: 按需取出字典值
            //LoadDicts();
            InitTheme();
            InitComonConverter();
            rootGrid.Children.Add(new SMT.FBAnalysis.UI.Login());

            this.RootVisual = page;
            //this.RootVisual = new CompanyYearPlan();
            //this.RootVisual = new SMT.FBAnalysis.UI.Form.SubjectManagement.EditDepartmentYearPlan();
            //this.RootVisual = new AnnlualSessionView();
        }
Esempio n. 7
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            EntryPointPage page = new EntryPointPage();

            page.Content = rootGrid;
            //TODO: 按需取出字典值
            LoadDicts();

            this.RootVisual = page;
            InitTheme();
            InitComonConverter();
            rootGrid.Children.Add(new Login());
            //rootGrid.Children.Add(new Views.Salary.Payment());

            //测试
            //OrganizationWS.OrganizationServiceClient oclient = new SMT.Saas.Tools.OrganizationWS.OrganizationServiceClient();
            //oclient.GetCompanyByEntityPermAsync("4afd1d50-b84d-4ea3-8c81-0078c35fea5e", "0", "T_FB_CHARGEAPPLYMASTER");

            //PersonnelWS.PersonnelServiceClient pclient = new SMT.Saas.Tools.PersonnelWS.PersonnelServiceClient();
            //System.Collections.ObjectModel.ObservableCollection<string> ids = new System.Collections.ObjectModel.ObservableCollection<string>();
            //ids.Add("67A8D37C-15C6-4002-A740-1787EC5CEEDF");
            //ids.Add("11CC84DF-2B78-499f-AF14-FB8F36A5FE22");
            //pclient.GetEmployeeByIDsAsync(ids);
        }
Esempio n. 8
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            InitTheme();
            EntryPointPage page = new EntryPointPage();
            page.Content = rootGrid;
            CultureInfo culture = new CultureInfo("zh-CN");
            Thread.CurrentThread.CurrentUICulture = culture;
            Thread.CurrentThread.CurrentCulture = culture;
            SMT.SaaS.FrameworkUI.Validator.ValidatorService.ResourceMgr = SMT.SaaS.Globalization.Localization.ResourceMgr;
            // this.RootVisual = new MainPage();
            this.RootVisual = page;

            //rootGrid.Style = (Style)this.Resources["loginbg"];
            rootGrid.Children.Add(new Views.Login.Login());
            
            //已屏蔽,改为按需加载
            //安凯航,2011年7月17日
            //LoadDicts();
            //LoadDictss();
            //end

            InitComonConverter();

        }