Exemplo n.º 1
0
 public VmUld ReplaceUld( VmUld uld)
 {
     VmAirportData.Default.AirportOutputData.UldFile.Replace(uld);
     return uld;
 }
Exemplo n.º 2
0
        public VmUld _AddUld(
            String type,
            String serialNumber,
            String owner,
            String note,
            String breakdownLocationCode)
        {
            int nestId = _CreateNest(VmNestType.ULD);

            VmUld nest = new VmUld();
            nest.Id                     = nestId;
            nest.Type                   = type;
            nest.SerialNumber           = serialNumber;
            nest.Owner                  = owner;
            nest.Note                   = note;
            nest.BreakDownLocationCode  = breakdownLocationCode;
            VmAirportData.Default.AirportOutputData.UldFile.Append(nest);
            _AddNest(nest);
            return nest;
        }
Exemplo n.º 3
0
        public void HandleScan(String value)
        {
            VmUld uld = new VmUld();

            bool b = uld.PopulateFromString(value);
            if( !b )
            {

                if( ! VmProperties.Default.ShouldAllowKnownTagTypesAsGeneralData() && VmTag.IsKnownTagType(value) )
                {
                    Engine.ShowUnexpectedItemPanel();
                    return;
                }

                // kludge (err) - language
                VmApplication.Default.ShowNotification("The scan is not a valid ULD.");
                return;
            }

            _uldTypeCB.Items.Add(uld.Type);
            _uldTypeCB.SelectedItem = uld.Type;
            _uldNumberTB.Text = uld.SerialNumber;
            _uldOwnerCB.Items.Add(uld.Owner);
            _uldOwnerCB.SelectedItem = uld.Owner;

            if ( ! _inputControlManager.ValidateControls() ) return;

            _inputControlManager.FocusUpon(_noteTB);
        }