private void FillGroup() { var textFields = new string[] { "GradeCode", "GradeName" }; var pattern = "{0} - {1}"; var orderBy = new string[] { "GradeCode" }; StaffGroupEx.LoadCombo(ref cmbStaffGrade, textFields, pattern, true, false, "", "", orderBy); }
private void FillParentGradeList() { var textFields = new string[] { "GradeCode", "GradeName" }; var pattern = "{0} - {1}"; var sql = "GroupId NOT IN ('" + this.StaffGroupId.ToString() + "')"; var orderBy = new string[] { "GradeCode" }; StaffGroupEx.LoadCombo(ref cboParentGrade, textFields, pattern, true, true, "", sql, orderBy); }
private void FillGradeList() { StaffGroupEx.LoadCombo(ref cboGrade, "GradeCode", false); }