Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        void OpenWindow()
        {
            division = Convert.ToString(spin年度.Value);
            grade    = cb岗位级别.Text;
            type     = (string)listBoxControl类别.SelectedItem;

            switch (command)
            {
            case "录入管培生基本信息":
                if (listBoxControl类别.SelectedIndex == -1)
                {
                    MessageBox.Show("请选择专业属性或岗位类别");
                }
                else
                {
                    SelectInputTypeDialog i_t_dialog = new SelectInputTypeDialog();
                    i_t_dialog.OnSelected += i_t_dialog_OnSelected;
                    i_t_dialog.ShowDialog();
                }
                break;

            case "专业属性确认":
                SelectInputTypeDialog s_p_dialog = new SelectInputTypeDialog();
                s_p_dialog.OnSelected += s_p_dialog_OnSelected;
                s_p_dialog.ShowDialog();
                break;

            case "录入提资及增幅计划":
                SelectInputTypeDialog r_r_dialog = new SelectInputTypeDialog();
                r_r_dialog.OnSelected += r_r_dialog_OnSelected;
                r_r_dialog.ShowDialog();
                break;

            case "薪酬计划表":
                ShowTraineeSalaryPlanForm();
                break;

            case "录入综合能力评定结果":
                SelectInputTypeDialog taa_dialog = new SelectInputTypeDialog();
                taa_dialog.OnSelected += taa_dialog_OnSelected;
                taa_dialog.ShowDialog();
                break;

            case "录入个人提资表":
                TraineePersonalAbilityListForm trainee_list_dialog = new TraineePersonalAbilityListForm(division, grade);
                trainee_list_dialog.OnSelected += trainee_list_dialog_OnSelected;
                trainee_list_dialog.ShowDialog();
                break;

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

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

            case "年薪计算表":
                TraineeYearlySalaryCalculatorForm trsc_form = new TraineeYearlySalaryCalculatorForm(division, grade, DateTime.Today.Year);
                trsc_form.Owner = this;
                trsc_form.ShowDialog();
                break;

            case "月薪计算表":
                TraineeMonthlySalaryCalculatorForm msc_form = new TraineeMonthlySalaryCalculatorForm(division, grade, DateTime.Today.Year);
                msc_form.Owner = this;
                msc_form.ShowDialog();
                break;

            case "月薪明细表":
                TraineeMonthlySalaryItemsForm msci_form = new TraineeMonthlySalaryItemsForm(division, grade, DateTime.Today.Year);
                msci_form.Owner = this;
                msci_form.ShowDialog();
                break;
            }
        }