void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            string loginArea = CO_IA.Client.RiasPortal.Current.SystemConfig.LoginArea;

            if (!string.IsNullOrWhiteSpace(loginArea) && loginArea.Length >= 2)
            {
                this.textBlockArea.Text = CO_IA.Client.Utility.GetAreaName(CO_IA.Client.RiasPortal.Current.SystemConfig.LoginArea.Substring(0, 2));
            }
            this.textBlockLoginUser.Text = CO_IA.Client.RiasPortal.Current.UserSetting.UserName;
            RiasPortal.UpdateUserRights();
        }
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            string loginArea = CO_IA.Client.RiasPortal.Current.SystemConfig.LoginArea;

            if (!string.IsNullOrWhiteSpace(loginArea) && loginArea.Length >= 2)
            {
                this.textBlockArea.Text = CO_IA.Client.Utility.GetAreaName(CO_IA.Client.RiasPortal.Current.SystemConfig.LoginArea.Substring(0, 2));
            }
            this.textBlockLoginUser.Text = CO_IA.Client.RiasPortal.Current.UserSetting.UserName;
            RiasPortal.UpdateUserRights();

            if (cdtype == "lh")
            {
                this.SetupModule(this.GetUIBuilder().BuildStatistic2, null, "数据管理");
            }
            else if (cdtype == "wc")
            {
                this.SetupModule(this.GetUIBuilder().BuildStatistic, null, "外出数据");
            }
            else if (cdtype == "ry")
            {
            }
            else if (cdtype == "wh")
            {
                this.SetupModule(this.GetUIBuilder().BuildPlanDatabase, sender, "信息维护");
            }
            else if (cdtype == "all")
            {
                this.SetupModule(this.GetUIBuilder().BuildStatistic2, null, "数据管理");

                this.SetupModule(this.GetUIBuilder().BuildStatistic, null, "外出数据");

                this.documentActivityInfo.IsActive = true;
                this.documentActivityInfo.Focus();
            }
            else if (cdtype == "all2")
            {
                this.SetupModule(this.GetUIBuilder().BuildStatistic2, null, "数据管理");

                this.SetupModule(this.GetUIBuilder().BuildStatistic, null, "外出数据");
                this.SetupModule(this.GetUIBuilder().BuildPlanDatabase, sender, "信息维护");

                this.documentActivityInfo.IsActive = true;
                this.documentActivityInfo.Focus();
            }
        }