Exemplo n.º 1
0
 public async Task NewTemplate()
 {
     BinTemplate          newbt = new BinTemplate();
     BinTemplateViewModel btvm  = new BinTemplateViewModel(Navigation, newbt)
     {
         CreateMode = true
     };
     NewBinTemplatePage nbtp = new NewBinTemplatePage(btvm);
     await Navigation.PushAsync(nbtp);
 }
Exemplo n.º 2
0
        public BinTemplateViewModel(INavigation navigation, BinTemplate bintemplate) : base(navigation)
        {
            FillFields(bintemplate);
            OKCommand            = new Command(async() => await OK().ConfigureAwait(false));
            CancelCommand        = new Command(async() => await Cancel().ConfigureAwait(false));
            CancelChangesCommand = new Command(CancelChanges);

            BinTypes  = new List <BinType>();
            Locations = new List <Location>();
            Zones     = new List <Zone>();
            State     = ModelState.Undefined;
        }
Exemplo n.º 3
0
 public void SaveFields(BinTemplate bintemplate)
 {
     bintemplate.Code                 = Code;
     bintemplate.Description          = Description;
     bintemplate.LocationCode         = LocationCode;
     bintemplate.ZoneCode             = ZoneCode;
     bintemplate.BinTypeCode          = BinTypeCode;
     bintemplate.BinDescription       = BinDescription;
     bintemplate.WarehouseClassCode   = WarehouseClassCode;
     bintemplate.SpecialEquipmentCode = SpecialEquipmentCode;
     bintemplate.BinRanking           = BinRanking;
     bintemplate.MaximumCubage        = MaximumCubage;
     bintemplate.MaximumWeight        = MaximumWeight;
     bintemplate.Dedicated            = Dedicated;
 }
Exemplo n.º 4
0
 public void FillFields(BinTemplate bintemplate)
 {
     Code                 = bintemplate.Code;
     Description          = bintemplate.Description;
     LocationCode         = bintemplate.LocationCode;
     ZoneCode             = bintemplate.ZoneCode;
     BinTypeCode          = bintemplate.BinTypeCode;
     BinDescription       = bintemplate.BinDescription;
     WarehouseClassCode   = bintemplate.WarehouseClassCode;
     SpecialEquipmentCode = bintemplate.SpecialEquipmentCode;
     BinRanking           = bintemplate.BinRanking;
     MaximumCubage        = bintemplate.MaximumCubage;
     MaximumWeight        = bintemplate.MaximumWeight;
     Dedicated            = bintemplate.Dedicated;
 }
Exemplo n.º 5
0
 public void ChangeBinTemplate(BinTemplate bt)
 {
     NewModel.BinsViewModel.BinTemplate = bt;
 }