示例#1
0
 public static bool ChangeEtat(Facture f)
 {
     try
     {
         return(FactureDao.getChangeEtatFacture(f));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de modifier cette enregistrement", ex);
     }
 }
示例#2
0
 public bool Update()
 {
     try
     {
         return(FactureDao.getUpdateFacture(facture));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de modifier cette enregistrement", ex);
     }
 }
示例#3
0
 public static bool ChangeSupp(long id, bool supp)
 {
     try
     {
         return(FactureDao.getChangeSuppFacture(id, supp));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de modifier cette enregistrement", ex);
     }
 }
示例#4
0
 public static Facture One_(String reference)
 {
     try
     {
         return(FactureDao.getOneFacture_(reference));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'atteindre l'enregistrement", ex);
     }
 }
示例#5
0
 public Facture Insert()
 {
     try
     {
         return(FactureDao.getAjoutFacture(facture));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'inserer cette enregistrement", ex);
     }
 }
示例#6
0
 public static Facture One(long id)
 {
     try
     {
         return(FactureDao.getOneFacture(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'atteindre l'enregistrement", ex);
     }
 }
示例#7
0
 public static List <Facture> Liste(String query)
 {
     try
     {
         return(FactureDao.getListFacture(query));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de retourner la liste des élements", ex);
     }
 }
示例#8
0
 public static bool Delete(long id)
 {
     try
     {
         return(FactureDao.getDeleteFacture(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de supprimer cette enregistrement", ex);
     }
 }
示例#9
0
 public bool ChangeImpression()
 {
     try
     {
         return(FactureDao.getChangeImpressionFacture(facture));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de modifier cette enregistrement", ex);
     }
 }
示例#10
0
        public TK_et_FK(int id)
        {
            this.id = id;
            FactureDao  daof = new FactureDao();
            CommandeDAO daoc = new CommandeDAO();
            Commande    c    = daoc.getById(id);
            Facture     f    = new Facture();

            f.totalHT  = c.prixtotal - ((c.prixtotal * 18) / 100);
            f.totalTTC = c.prixtotal;
            f.totalTVA = ((c.prixtotal * 18) / 100);
            daof.add(f);
            daoc.updatefct(c, daof.getlastfct());

            InitializeComponent();
            reportTicket.Load  += ReportViewer_Load;
            reportFacture.Load += ReportViewer2_Load;
        }