Package sn.unitech.stock.entity

Examples of sn.unitech.stock.entity.SysUsersId


        detailEvent.getEvents().setMntTot(new Double(100000));
        detailEvent.setPrixTot(new Double(40000));
        SysUsers sysUsers=new SysUsers();
        sysUsers.setCompte(new Compte());
        sysUsers.getCompte().setIdCompte("2");
        sysUsers.setId(new SysUsersId());
        sysUsers.getId().setIdAdherent("1");
        detailEvent.getEvents().setSysUsers(sysUsers);
        detailEvent.getEvents().setSysEvents(new SysEvents());
        detailEvent.getEvents().getSysEvents().setIdEvent("VT");
        listDetailEvent.add(detailEvent);
View Full Code Here


private static final String NAV_WELCOME = "/welcome";
private static final String NAV_REDIRECT = "?faces-redirect=true";
private static final String NAV_DECONNEXION="/stock/connexion/connexion.unit";

  public ConnexionBean() {
    user=new SysUsers(new SysUsersId());
    user.getId().setIdAdherent("1");
    FacesContext context = FacesContext.getCurrentInstance();
    Collection<Locale> list=new ArrayList<Locale>();
    list.add(Locale.FRENCH);
    list.add(Locale.ENGLISH);
View Full Code Here

      detailEvent.getEvents().setMntNet(new Double(100000));
      detailEvent.setPrixTot(new Double(40000));
      SysUsers sysUsers=new SysUsers();
      sysUsers.setCompte(new Compte());
      sysUsers.getCompte().setIdCompte("2");
      sysUsers.setId(new SysUsersId());
      sysUsers.getId().setIdAdherent("1");
      detailEvent.getEvents().setSysUsers(sysUsers);
      detailEvent.getEvents().setSysEvents(new SysEvents());
      detailEvent.getEvents().getSysEvents().setIdEvent("VT");
      listDetailEvent.add(detailEvent);
View Full Code Here

    tx.begin();
    DetailCommand detailCommand=new DetailCommand();
    detailCommand= listDetailCommand.get(0);
    commande.setFournisseur( new Fournisseur(detailCommand.getCodFourn()));
    SysUsers sysUsers=new SysUsers();
    sysUsers.setId(new SysUsersId(detailCommand.getCodUser(),detailCommand.getSysProduit().getSysAdherent().getIdAdherent()));
    commande.setSysDate(new Date());
    commande.setSysUsers(sysUsers);
    this.persist(commande, em);
    for(int i=0;i<listDetailCommand.size();i++){
        detailCommand=new DetailCommand();
View Full Code Here

      return false;
    }
  }
 
  public SysUsers findUser(SysUsers user){
    return (SysUsers) iuser.find(SysUsers.class, new SysUsersId(user.getId().getIdUser(),user.getId().getIdAdherent()), null);
  }
View Full Code Here

    return (List<SysMenu>) this.citems.dataModelMenu.getWrappedData();
  }
 
  public void saveUser(ActionEvent e){
    ParamsUser paramUser=getParamsUser();
    this.sysUsers.setId(new SysUsersId(this.sysUsers.getId().getIdUser(),paramUser.adherent.getIdAdherent()));
    this.sysUsers.setSysProfil(sysUsersM.findProfilMenu(this.cproperties.getProfilMenu(), null));
    boolean response = sysUsersM.saveUser(sysUsers);
    if(response){
      this.cmessages.setSaveMessage("Utilisateur cree avec succes!");
    }
View Full Code Here

    this.getModelMenu().clear();
    this.getModelMenu().addAll(mapMenu.values());
  }
 
  public void clickAnnuler(ActionEvent e){
    this.sysUsers=new SysUsers(new SysUsersId("",""));
    this.cmessages.saveMessage="";
  }
View Full Code Here

  }
 
  public void clickUpdate(ActionEvent e){
    if(this.sysUsers.getSysProfil()==null){
      this.sysUsers.setSysProfil(sysUsersM.findProfilMenu(this.cproperties.getProfilMenu(), null));
      this.sysUsers.setId(new SysUsersId(this.sysUsers.getId().getIdUser(),getParamsUser().adherent.getIdAdherent()));
    }
    Resultat result=this.sysUsersM.updateUser(this.getModelMenu(),this.sysUsers);
    this.cmessages.setSaveMessage(result.getMessage());
  }
View Full Code Here

TOP

Related Classes of sn.unitech.stock.entity.SysUsersId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.