//Charger liste des Tarif Facturation
 public List <CsTarifFacturation> LoadAllTarifFacturation(int?idCentre, int?idProduit, int?idRedevance, int?idCodeRecherche)
 {
     try
     {
         List <CsCommune>        lstCommune       = new DBAccueil().ChargerLesCommune();
         List <CsCentre>         lstCentre        = new DBAccueil().ChargerLesCentre();
         List <CsRechercheTarif> lstRchercheTarif = new DBRECHERCHETARIF().SelectAllRechercheTarif();
         List <CsRedevance>      lstRedevance     = new DBREDEVANCE().GetAll();
         CsCentre leCentre = lstCentre.FirstOrDefault(t => t.PK_ID == idCentre);
         if (leCentre != null)
         {
             if (leCentre.CODENIVEAUTARIF == Enumere.NiveauTarif_Nat)
             {
                 CsCentre leCentreGeneral = lstCentre.FirstOrDefault(t => t.CODE == Enumere.Generale);
                 if (leCentreGeneral != null)
                 {
                     idCentre = leCentreGeneral.PK_ID;
                 }
             }
         }
         return(TarificationProcedure.LoadAllTarifFacturation(idCentre, idProduit, idRedevance, idCodeRecherche, lstCommune, lstRchercheTarif, lstRedevance));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 public List <CsModeApplicationTarif> LoadAllModeApplicationTarif()
 {
     try
     {
         return(TarificationProcedure.LoadAllModeApplicationTarif());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <CsContenantCritereTarif> LoadAllContenantCritereTarif()
 {
     try
     {
         return(TarificationProcedure.LoadAllContenantCritereTarif());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #4
0
 public List <CsModeCalcul> LoadAllModeCalcule()
 {
     try
     {
         return(TarificationProcedure.LoadAllModeCalcule());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        //Charger liste des Tarif Facturation
        //public  List<CsTarifFacturation> LoadAllTarifFacturation()
        //{
        //      try
        //        {
        //            List<CsCommune> lstCommune = new DBAccueil().ChargerLesCommune();
        //            List<CsRechercheTarif> lstRchercheTarif = new DBRECHERCHETARIF().SelectAllRechercheTarif();
        //            List<CsRedevance> lstRedevance = new DBREDEVANCE().GetAll();
        //            return TarificationProcedure.LoadAllTarifFacturation(lstRedevance, lstRchercheTarif, lstCommune);
        //        }
        //        catch (Exception ex)
        //        {
        //            throw ex;
        //        }
        //}

        public List <CsDetailTarifFacturation> LoadAllDetailTarifFacturation()
        {
            try
            {
                return(TarificationProcedure.LoadAllDetailTarifFacturation());
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Example #6
0
 public List <CsRechercheTarif> LoadAllRechercheTarif()
 {
     try
     {
         return(TarificationProcedure.LoadAllRechercheTarif());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <CsTypeLienProduit> ListeTypeLienProduit()
 {
     try
     {
         return(TarificationProcedure.ListeTypeLienProduit());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <CsRedevance> LoadAllRedevance()
 {
     try
     {
         return(TarificationProcedure.LoadAllRedevance());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public List <CsTypeLienRedevence> ListeTypeLienRedevance()
 {
     try
     {
         return(TarificationProcedure.ListeTypeLienRedevance());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #10
0
 public List <CsUniteComptage> LoadAllUniteComptage()
 {
     try
     {
         return(TarificationProcedure.LoadAllUniteComptage());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #11
0
 public List <CsVariableDeTarification> LoadAllVariableTarif()
 {
     try
     {
         return(TarificationProcedure.LoadAllVariableTarif());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #12
0
 public bool CheickCodeRedevanceExist(string Code)
 {
     try
     {
         return(TarificationProcedure.CheickCodeRedevanceExist(Code));
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(true);
 }
Example #13
0
 public List <CsTarifFacturation> LoadTarifGenerer(string FK_IDRECHERCHETARIF, string FK_IDVARIABLETARIF, string Produit)
 {
     try
     {
         return(TarificationProcedure.LoadTarifGenerer(FK_IDRECHERCHETARIF, FK_IDVARIABLETARIF, Produit));
         //return null;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #14
0
 public bool CreateTarif(List <CsTarifFacturation> Tarification)
 {
     try
     {
         return(TarificationProcedure.CreateTarif(Tarification));
     }
     catch (Exception ex)
     {
         throw ex;
     }
     //return true;
 }
Example #15
0
 public bool SaveTarifFacturation(CsTarifFacturation Tarification, int Action)
 {
     try
     {
         return(TarificationProcedure.SaveTarifFacturation(Tarification, Action));
     }
     catch (Exception ex)
     {
         throw ex;
     }
     //return true;
 }
Example #16
0
 public int SaveRechercheTarif(List <CsRechercheTarif> ListeLotsScelleRecuToUpdate, List <CsRechercheTarif> ListeLotsScelleRecuToInserte, List <CsRechercheTarif> ListeLotsScelleRecuToDelete)
 {
     try
     {
         return(TarificationProcedure.SaveRechercheTarif(ListeLotsScelleRecuToUpdate, ListeLotsScelleRecuToInserte, ListeLotsScelleRecuToDelete));
     }
     catch (Exception ex)
     {
         throw ex;
     }
     //return true;
 }
Example #17
0
 public int SaveVariableTarif(List <CsVariableDeTarification> ListeVariableDeTarificationToUpdate_, List <CsVariableDeTarification> ListeVariableDeTarificationToInserte_, List <CsVariableDeTarification> ListeVariableDeTarificationToDelete_)
 {
     try
     {
         return(TarificationProcedure.SaveVariableTarif(ListeVariableDeTarificationToUpdate_, ListeVariableDeTarificationToInserte_, ListeVariableDeTarificationToDelete_));
     }
     catch (Exception ex)
     {
         throw ex;
     }
     //return true;
 }