コード例 #1
0
 //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;
     }
 }
コード例 #2
0
 public List <CsCentre> RetourneListeDeSite()
 {
     try
     {
         DBAccueil db = new DBAccueil();
         return(db.ChargerLesDonneesDesSite(false));
     }
     catch (Exception ex)
     {
         ErrorManager.LogException(this, ex);
         return(null);
     }
 }
コード例 #3
0
        public void ImprimerImage()
        {
            DBAccueil dt = new DBAccueil();
            List <ObjDOCUMENTSCANNE> leDocument = new List <ObjDOCUMENTSCANNE>();
            int nbr = 0;

            while (nbr == 0)
            {
                leDocument = new DBAccueil().Select_DocumentNonMigre();
                foreach (ObjDOCUMENTSCANNE image in leDocument)
                {
                    SqlCommand laCommande = DBBase.InitTransaction(ConnectionString);
                    dt.CreateFiles(image.CONTENU, image.CHEMINCOPY, image.NOMDUFICHIER);
                    image.CONTENU = null;
                    image.ismigre = true;
                    dt.InsertOrUpdateDocumentScane(image, laCommande);
                    laCommande.Transaction.Commit();
                }
                nbr = leDocument.Where(p => p.CONTENU != null).Count();
            }
        }
コード例 #4
0
        //public List<CsLclient> GenererFichierImpayes(int idSite, int idCentre)
        public bool GenererFichierImpayes(int idSite, int idCentre, string nomposte)
        {
            try
            {
                bool retour = false;

                List <CsLclient> impayes = new DBAccueil().GetImpayes(idSite, idCentre);

                if (impayes != null && impayes.Count > 0)
                {
                    retour = CreerFichier(impayes, nomposte);
                }

                return(retour);
            }
            catch (Exception ex)
            {
                ErrorManager.LogException(this, ex);
                return(false);
            }
        }