Esempio n. 1
0
        private void ShowRiseRateInputForm(FormParameters formParams, bool isCheck)
        {
            string division = (string)formParams.Parameters[0];
            string grade    = (string)formParams.Parameters[1];
            string type     = (string)formParams.Parameters[2];

            UpStepType ust = ManagementTraineePayStandard.GetUpStepType(division, grade, type);

            switch (ust)
            {
            case UpStepType.五年两段三类:
                RiseRate52InputForm riseRate52InputForm = new RiseRate52InputForm(division, grade, type, isCheck);
                riseRate52InputForm.Owner = this;
                riseRate52InputForm.ShowDialog();
                break;

            case UpStepType.五年两段四类:
                RiseRate51InputForm riseRate51InputForm = new RiseRate51InputForm(division, grade, type, isCheck);
                riseRate51InputForm.Owner = this;
                riseRate51InputForm.ShowDialog();
                break;

            case UpStepType.五年三段四类:
                RiseRate53InputForm riseRate62InputForm = new RiseRate53InputForm(division, grade, type, isCheck);
                riseRate62InputForm.Owner = this;
                riseRate62InputForm.ShowDialog();
                break;

            case UpStepType.七年两段五类:
                RiseRate71InputForm riseRate71InputForm = new RiseRate71InputForm(division, grade, type, isCheck);
                riseRate71InputForm.Owner = this;
                riseRate71InputForm.ShowDialog();
                break;

            case UpStepType.七年三段五类:
                RiseRate72InputForm riseRate72InputForm = new RiseRate72InputForm(division, grade, type, isCheck);
                riseRate72InputForm.Owner = this;
                riseRate72InputForm.ShowDialog();
                break;
            }
        }
Esempio n. 2
0
        private void ShowRiseRateInputForm(bool isCheck)
        {
            UpStepType ust = ManagementTraineePayStandard.GetUpStepType(division, grade, type);

            switch (ust)
            {
            case UpStepType.五年两段三类:
                RiseRate52InputForm riseRate52InputForm = new RiseRate52InputForm(division, grade, type, isCheck);
                riseRate52InputForm.Owner = this;
                riseRate52InputForm.ShowDialog();
                break;

            case UpStepType.五年两段四类:
                RiseRate51InputForm riseRate51InputForm = new RiseRate51InputForm(division, grade, type, isCheck);
                riseRate51InputForm.Owner = this;
                riseRate51InputForm.ShowDialog();
                break;

            case UpStepType.五年三段四类:
                RiseRate53InputForm riseRate62InputForm = new RiseRate53InputForm(division, grade, type, isCheck);
                riseRate62InputForm.Owner = this;
                riseRate62InputForm.ShowDialog();
                break;

            case UpStepType.七年两段五类:
                RiseRate71InputForm riseRate71InputForm = new RiseRate71InputForm(division, grade, type, isCheck);
                riseRate71InputForm.Owner = this;
                riseRate71InputForm.ShowDialog();
                break;

            case UpStepType.七年三段五类:
                RiseRate72InputForm riseRate72InputForm = new RiseRate72InputForm(division, grade, type, isCheck);
                riseRate72InputForm.Owner = this;
                riseRate72InputForm.ShowDialog();
                break;
            }
        }