Exemple #1
0
        public async void OnSelectedRackPartant(string rackPartant)
        {
            if (!string.IsNullOrEmpty(rackPartant))
            {
                Rack rackSelected = RacksFull.FirstOrDefault(x => x.GisementPos == rackPartant);

                if (rackSelected != null)
                {
                    TransfertRackValidation.IdRackPartant = rackSelected.IdRack;

                    var temp = await SqlContext.GetCommandeByIdRack(rackSelected.IdRack);

                    ClientTransfert.NomClient      = temp.NomClient;
                    ClientTransfert.DescriptionCmd = temp.DescriptionCmd;
                    ClientTransfert.IdClient       = temp.IdClient;
                    ClientTransfert.IdCommande     = temp.IdCommande;

                    TransfertRackValidation.GisementRackPartant = rackSelected.GisementPos;
                    StateChange.Invoke();
                }
                else
                {
                    TransfertRackValidation.IdRackPartant       = 0;
                    TransfertRackValidation.GisementRackPartant = string.Empty;

                    ClientTransfert = new CommandeView();
                }
            }
        }
Exemple #2
0
        private void SelectedRackFull <T>(string selected, T validator) where T : BaseValidation
        {
            if (!string.IsNullOrEmpty(selected))
            {
                Rack rackSelected = RacksFull.FirstOrDefault(x => x.GisementPos == selected);

                if (rackSelected != null)
                {
                    validator.IdRack       = rackSelected.IdRack;
                    validator.GisementRack = rackSelected.GisementPos;
                }
                else
                {
                    validator.GisementRack = string.Empty;
                    validator.IdRack       = 0;
                }
            }
        }
Exemple #3
0
 private void OnSelectedRackArrivantIntervertir(string rackArrivant)
 {
     if (!string.IsNullOrEmpty(rackArrivant))
     {
         Rack rackSelected = RacksFull.FirstOrDefault(x => x.GisementPos == rackArrivant);
         if (rackSelected != null)
         {
             IntervertirValidation.IdRackArrivant       = rackSelected.IdRack;
             IntervertirValidation.IdCommandeArrivant   = AllHangar.Find(x => x.IdRack == rackSelected.IdRack).IdCommande;
             IntervertirValidation.GisementRackArrivant = rackSelected.GisementPos;
         }
         else
         {
             IntervertirValidation.IdRackArrivant       = 0;
             IntervertirValidation.GisementRackArrivant = string.Empty;
         }
     }
 }