/// <summary> /// Fills the staff list. /// </summary> private void FillStaffList() { string[] textField = new string[] { "StaffNumber", "FullName" }; string pattern = "{0} - {1}"; string[] orderBy = new string[] { "StaffNumber" }; StaffEx.LoadCombo(ref cboStaffList, textField, pattern, true, true, WestwindHelper.GetWord("glossary.all", "General"), "Retired = 0", orderBy); }
private void FillComboBox() { StaffEx.LoadCombo(ref cmbFrmStaffCode, "StaffNumber", false); StaffEx.LoadCombo(ref cmbToStaffCode, "StaffNumber", false); cmbToStaffCode.SelectedIndex = cmbToStaffCode.Items.Count - 1; }
private void FillAssistants() { var textFields = new string[] { "StaffNumber", "StaffCode" }; var pattern = "{0} - {1}"; var sql = string.Format("StaffId NOT IN ('{0}') AND Status > 0", _StaffId.ToString()); var orderBy = new string[] { "StaffNumber" }; StaffEx.LoadCombo(ref cboSmartTag5, textFields, pattern, true, true, string.Empty, sql, orderBy); //if (cboSmartTag6.Items.Count > 0) cboSmartTag6.SelectedIndex = 0; StaffEx.LoadCombo(ref cboSmartTag6, textFields, pattern, true, true, string.Empty, sql, orderBy); //if (cboSmartTag7.Items.Count > 0) cboSmartTag7.SelectedIndex = 0; }
private void FillStaffList() { StaffEx.LoadCombo(ref cboOperator, "StaffNumber", false); }
private void FillStaffList() { StaffEx.LoadCombo(ref cboOperatorCode, "StaffNumber", false); cboOperatorCode.SelectedValue = ConfigHelper.CurrentUserId; }
/// <summary> /// Fills the operation list. /// </summary> private void FillOperationList() { StaffEx.LoadCombo(ref this.cboOperatorCode, "StaffNumber", false); }