Exemple #1
0
        private void ShowSpecialtyPropertyForm(bool isCheck)
        {
            SpecialtyPropertyForm specialtyPropertyForm = new SpecialtyPropertyForm(division, isCheck);

            specialtyPropertyForm.Owner = this;
            specialtyPropertyForm.ShowDialog();
        }
        public void ShowWindow(FormParameters formParams)
        {
            string division = (string)formParams.Parameters[0];
            string grade    = (string)formParams.Parameters[1];

            switch (formParams.Name)
            {
            case "录入管培生基本信息":
                SelectInputTypeDialog i_t_dialog = new SelectInputTypeDialog();
                if (i_t_dialog.ShowDialog() == DialogResult.OK)
                {
                    TraineeInfoForm traineeInfoForm = new TraineeInfoForm(division, grade, i_t_dialog.是验证录入);
                    traineeInfoForm.Owner = this;
                    traineeInfoForm.ShowDialog();
                }
                break;

            case "专业属性确认":
                SelectInputTypeDialog s_p_dialog = new SelectInputTypeDialog();
                if (s_p_dialog.ShowDialog() == DialogResult.OK)
                {
                    SpecialtyPropertyForm specialtyPropertyForm = new SpecialtyPropertyForm(division, s_p_dialog.是验证录入);
                    specialtyPropertyForm.Owner = this;
                    specialtyPropertyForm.ShowDialog();
                }
                break;

            case "录入提资及增幅计划":
                SelectInputTypeDialog r_r_dialog = new SelectInputTypeDialog();
                if (r_r_dialog.ShowDialog() == DialogResult.OK)
                {
                    ShowRiseRateInputForm(formParams, r_r_dialog.是验证录入);
                }
                break;

            case "录入综合能力评定结果":
                SelectInputTypeDialog taa_dialog = new SelectInputTypeDialog();
                if (taa_dialog.ShowDialog() == DialogResult.OK)
                {
                    TraineeAnnualAssessmentForm form = new TraineeAnnualAssessmentForm(division, grade, DateTime.Today.Year, taa_dialog.是验证录入);
                    form.Owner = this;
                    form.ShowDialog();
                }
                break;

            case "录入个人提资表":
            case "个人年度评定结果及提资表":
                TraineePersonalAbilityListForm trainee_list_4_show_dialog = new TraineePersonalAbilityListForm(division, grade);
                trainee_list_4_show_dialog.Owner = this;
                trainee_list_4_show_dialog.ShowDialog();
                break;

            case "年薪提资周期及各次提幅标准表":
                ShowRiseRateForm(formParams);
                break;

            case "薪酬计划表":
                ShowWindow(typeof(TraineeSalaryPlanForm), formParams.Parameters);
                break;

            case "年薪计算表":
                ShowWindow(typeof(TraineeYearlySalaryCalculatorForm), new object[] { division, grade, DateTime.Today.Year });
                break;

            case "月薪计算表":
                ShowWindow(typeof(TraineeMonthlySalaryCalculatorForm), new object[] { division, grade, DateTime.Today.Year });
                break;

            case "月薪明细表":
                ShowWindow(typeof(TraineeMonthlySalaryItemsForm), new object[] { division, grade, DateTime.Today.Year });
                break;
            }
        }