Exemple #1
0
        public void GetShipperNumbers()
        {
            string error = "";

            var shipperNumbers = shipping.GetShipperNumbers(out error);

            if (error != "")
            {
                alert.ShowError(alertLevel.High, error, "GetShipperNumbers() Error");
                return;
            }
            if (shipperNumbers == null)
            {
                alert.ShowError(alertLevel.High, "There are no active Shippers.", "GetShipperNubmers() Error");
                return;
            }
            shippingForm.cbxShippers.DataSource    = shipperNumbers;
            shippingForm.cbxShippers.DisplayMember = "id";
            shippingForm.cbxShippers.ValueMember   = "id";
            shippingForm.cbxShippers.SelectedItem  = null;
        }
Exemple #2
0
        public void GetCycleCountList()
        {
            string error = "";

            isDatabindingCycleCountList = true;

            var cycleCountNumbers = cycle.GetCycleCountNumbers(out error);

            if (error != "")
            {
                alert.ShowError(alertLevel.High, error, "GetCycleCountList() Error");
                return;
            }
            if (cycleCountNumbers == null)
            {
                alert.ShowError(alertLevel.High, "There are no active Cycle Counts.", "GetCycleCountList() Error");
                return;
            }
            cycleCountForm.cbxCycleCount.DataSource    = cycleCountNumbers;
            cycleCountForm.cbxCycleCount.DisplayMember = "Description";
            cycleCountForm.cbxCycleCount.ValueMember   = "CycleCountNumber";

            SelectedCycleCount = cycleCountForm.cbxCycleCount.SelectedValue.ToString();
            cycleCountForm.pnlDataForm.Enabled = true;
            cycleCountForm.tbxLocation.Focus();

            isDatabindingCycleCountList = false;
        }