Giter VIP home page Giter VIP logo

gestion-commercial's Introduction

Diagramme de classe

Diagramme de classe

Categorie

Categorie

Article

Article

Client

Client

Commande

Commande

Ligne de commande

ligne Commande

Liste des clients

Liste des clients

Commande d'un client avec pagination quand on clique sur le bouton au niveau de la page client

Commande d'un client

Quelque avantage d'utiliser dto :

  • balancer a la view que les données dont il a besoin et non l'entité directement
  • Question de securité t'as capté : quand on balance l'entité et qu'il ya des relations etc , on pourra acceder au differents entité qui sont en relation or avec dto , on limite cela
//Builder pour generer des méthodes de création d'instances de manière fluide et concis
//Rendre dynamique le bouton etat commande
/*quand une commande est encours btn devient => Payer
quand une commande est   Facturer    => Payer
                         Facturer    => Terminer
                         Payer    => Payer
 */



    public static CommandeShowEntityResponseDto toDto(Commande commande){
            //rendre etat suivant dynamique dans la view
            EtatCommande EtatSuivant = EtatCommande.Payer;
            if(commande.getEtat() != EtatCommande.Payer){
                long indexEnumEtat = commande.getEtat().getIndexEnumEtat()+1;
                EtatSuivant = EtatCommande.values()[Long.valueOf(indexEnumEtat).intValue()];
    
            }
            return CommandeShowEntityResponseDto
                    .builder()
                    .id(commande.getId())
                    .dateCommand(commande.getDateCommand())
                    .montant(commande.getMontant())
                    .etat(commande.getEtat())
                    .etatSuivant(EtatSuivant)
                    .adresse(commande.getAdresse())
                    .build();
        }

Formulaire d'ajout de client

formulaire d'ajout d'un client


formulaire d'ajout d'un client

Ajouter une nouvelle commande

nouvelle commande

Formulaire ajout d'une nouvelle commande + affichage des infos du client dans le formulaire

nouvelle commande

Enregistrement d'une commande

nouvelle commande

gestion-commercial's People

Contributors

nouha404 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

onyxah keukjunior

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.