Exemple #1
0
        protected void PopulateOfficeLocations()
        {
            ListItem li = new ListItem("Select an Office", "-1");

            DropDownListOffice.Items.Add(li);

            List <ListItem> offices = bearCode.GetLocations(VariablesCashManager.ERROR_LOG_FILE_NAME);

            for (int i = 0; i < offices.Count; i++)
            {
                DropDownListOffice.Items.Add(offices[i]);
            }
        }
        protected void PopulateOfficeLocations()
        {
            ListItem li = new ListItem("All Offices", "All");
            DropDownListOffice.Items.Add(li);

            BearCode bearCode = new BearCode();
            List<ListItem> offices = bearCode.GetLocations(VariablesCashManager.ERROR_LOG_FILE_NAME);

            for (int i = 0; i < offices.Count; i++)
            {
                DropDownListOffice.Items.Add(offices[i]);
            }
        }
        /// <summary>
        /// Populates Office DropDownList.
        /// SQL is called from the BearCode class
        /// </summary>
        protected void PopulateOfficeLocations()
        {
            ListItem li = new ListItem("Select an Office", "-1");
            DropDownListDetailsOffice.Items.Add(li);

            BearCode bearCode = new BearCode();
            List<ListItem> offices = bearCode.GetLocations(VariablesCAS.ERROR_LOG_FILE_NAME);

            for (int i = 0; i < offices.Count; i++)
            {
                DropDownListDetailsOffice.Items.Add(offices[i]);
            }
        }