public static bool ChangeEtat(Facture f) { try { return(FactureDao.getChangeEtatFacture(f)); } catch (Exception ex) { throw new Exception("Impossible de modifier cette enregistrement", ex); } }
public bool Update() { try { return(FactureDao.getUpdateFacture(facture)); } catch (Exception ex) { throw new Exception("Impossible de modifier cette enregistrement", ex); } }
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); } }
public static Facture One_(String reference) { try { return(FactureDao.getOneFacture_(reference)); } catch (Exception ex) { throw new Exception("Impossible d'atteindre l'enregistrement", ex); } }
public Facture Insert() { try { return(FactureDao.getAjoutFacture(facture)); } catch (Exception ex) { throw new Exception("Impossible d'inserer cette enregistrement", ex); } }
public static Facture One(long id) { try { return(FactureDao.getOneFacture(id)); } catch (Exception ex) { throw new Exception("Impossible d'atteindre l'enregistrement", ex); } }
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); } }
public static bool Delete(long id) { try { return(FactureDao.getDeleteFacture(id)); } catch (Exception ex) { throw new Exception("Impossible de supprimer cette enregistrement", ex); } }
public bool ChangeImpression() { try { return(FactureDao.getChangeImpressionFacture(facture)); } catch (Exception ex) { throw new Exception("Impossible de modifier cette enregistrement", ex); } }
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; }