Exemplo n.º 1
0
 public AdaugarePreparatViewModel(Preparat preparat, bool existingRecord, Cont user)
 {
     this.id_preparat      = preparat.id_preparat;
     this.id_categorie     = int.Parse(preparat.id_categorie.ToString());
     this.denumire         = preparat.denumire;
     this.pret             = double.Parse(preparat.pret.ToString());
     this.cantitate        = double.Parse(preparat.cantitate.ToString());
     this.cantitate_totala = double.Parse(preparat.cantitate_totala.ToString());
     this.categorii        = new ObservableCollection <Categorie>();
     this.existingRecord   = existingRecord;
     pAct = new AdaugarePreparatActions(this);
     User = user;
     if (user.statut == "Angajat")
     {
         Visibility = "Visible";
     }
     else
     {
         Visibility = "Hidden";
     }
 }
Exemplo n.º 2
0
 public AdaugarePreparatViewModel(Cont user)
 {
     pAct           = new AdaugarePreparatActions(this);
     ExistingRecord = false;
     User           = user;
 }
Exemplo n.º 3
0
 public AdaugarePreparatViewModel()
 {
     pAct           = new AdaugarePreparatActions(this);
     ExistingRecord = false;
 }