private void ShowRiseRateForm(FormParameters formParams) { 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.五年两段三类: RiseRate52Form riseRate52Form = new RiseRate52Form(division, grade, type); riseRate52Form.Owner = this; riseRate52Form.ShowDialog(); break; case UpStepType.五年两段四类: RiseRate51Form riseRate51Form = new RiseRate51Form(division, grade, type); riseRate51Form.Owner = this; riseRate51Form.ShowDialog(); break; case UpStepType.五年三段四类: RiseRate53Form riseRate62Form = new RiseRate53Form(division, grade, type); riseRate62Form.Owner = this; riseRate62Form.ShowDialog(); break; case UpStepType.七年两段五类: RiseRate71Form riseRate71Form = new RiseRate71Form(division, grade, type); riseRate71Form.Owner = this; riseRate71Form.ShowDialog(); break; case UpStepType.七年三段五类: RiseRate72Form riseRate72Form = new RiseRate72Form(division, grade, type); riseRate72Form.Owner = this; riseRate72Form.ShowDialog(); break; } }
private void ShowRiseRateForm() { UpStepType ust = ManagementTraineePayStandard.GetUpStepType(division, grade, type); switch (ust) { case UpStepType.五年两段三类: RiseRate52Form riseRate52Form = new RiseRate52Form(division, grade, type); riseRate52Form.Owner = this; riseRate52Form.ShowDialog(); break; case UpStepType.五年两段四类: RiseRate51Form riseRate51Form = new RiseRate51Form(division, grade, type); riseRate51Form.Owner = this; riseRate51Form.ShowDialog(); break; case UpStepType.五年三段四类: RiseRate53Form riseRate62Form = new RiseRate53Form(division, grade, type); riseRate62Form.Owner = this; riseRate62Form.ShowDialog(); break; case UpStepType.七年两段五类: RiseRate71Form riseRate71Form = new RiseRate71Form(division, grade, type); riseRate71Form.Owner = this; riseRate71Form.ShowDialog(); break; case UpStepType.七年三段五类: RiseRate72Form riseRate72Form = new RiseRate72Form(division, grade, type); riseRate72Form.Owner = this; riseRate72Form.ShowDialog(); break; } }