예제 #1
0
        /// <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);
        }
예제 #2
0
        private void FillComboBox()
        {
            StaffEx.LoadCombo(ref cmbFrmStaffCode, "StaffNumber", false);

            StaffEx.LoadCombo(ref cmbToStaffCode, "StaffNumber", false);

            cmbToStaffCode.SelectedIndex = cmbToStaffCode.Items.Count - 1;
        }
예제 #3
0
        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;
        }
예제 #4
0
 private void FillStaffList()
 {
     StaffEx.LoadCombo(ref cboOperator, "StaffNumber", false);
 }
예제 #5
0
        private void FillStaffList()
        {
            StaffEx.LoadCombo(ref cboOperatorCode, "StaffNumber", false);

            cboOperatorCode.SelectedValue = ConfigHelper.CurrentUserId;
        }
예제 #6
0
 /// <summary>
 /// Fills the operation list.
 /// </summary>
 private void FillOperationList()
 {
     StaffEx.LoadCombo(ref this.cboOperatorCode, "StaffNumber", false);
 }