public bool ValiderChargementTSP(List <CsEvenement> lstEvenementTransfere, bool EstComplet)
        {
            try
            {
                if (EstComplet == true)
                {
                    lstEvenementTransfereok.AddRange(lstEvenementTransfere);
                    List <CsMapperTransfert> lst = Galatee.Tools.Utility.ConvertListType <CsMapperTransfert, CsEvenement>(lstEvenementTransfereok);
                    new DBIndex().ValiderChargementTSP(lst);
                    lstEvenementTransfereok = new List <CsEvenement>();
                    return(true);
                }
                else
                {
                    lstEvenementTransfereok.AddRange(lstEvenementTransfere);
                    return(true);
                }
            }
            catch (Exception ex)
            {
                ErrorManager.WriteInLogFile(this, ex.Message);
                lstEvenementTransfereok = new List <CsEvenement>();

                return(false);
            }
        }
        public List <CsProfil> RetourneListeAllProfilUser()
        {
            try
            {
                List <CsProfil> _profils = new DBProfils().GetAll();

                /* List<CsFonction> _functions = new DBFonction().SelectAllFonction();
                 *
                 * // convert function to profil liste
                 *
                 * foreach (var item in _functions)
                 * {
                 *   _profils.Add(new CsProfil() {
                 *
                 *    FK_IDFONCTION = item.PK_ID,
                 *    LIBELLE = item.ROLENAME,
                 *    PK_ID = item.PK_ID,
                 *    CODE = item.CODE
                 *   });
                 * }*/

                return(_profils);
            }
            catch (Exception zw)
            {
                ErrorManager.WriteInLogFile(this, zw.Message);
                return(null);
            }
        }
 public List <CsProfil> RetourneProfilByID(int idprofil)
 {
     try
     {
         return(new DBProfils().RetourneProfilByID(idprofil));
     }
     catch (Exception zw)
     {
         ErrorManager.WriteInLogFile(this, zw.Message);
         return(null);
     }
 }
 public List <CsHabilitationMenu> RetourneFonctionProfilMenu(string codefonction)
 {
     try
     {
         return(new DBUserHabilitation().RetourneFonctionProfilMenu(codefonction));
     }
     catch (Exception zw)
     {
         ErrorManager.WriteInLogFile(this, zw.Message);
         return(null);
     }
 }
 public List <CsHabilitationMenu> RetourneProfilUtilisateur(List <int> idUtilisateur)
 {
     try
     {
         return(new DBUserHabilitation().RetourneProfilUtilisateur(idUtilisateur));
     }
     catch (Exception zw)
     {
         ErrorManager.WriteInLogFile(this, zw.Message);
         return(null);
     }
 }
 public List <CsModuleAdmMenu> RetourneCsModuleAdmMenu()
 {
     try
     {
         return(new List <CsModuleAdmMenu>());///dd
     }
     catch (Exception zw)
     {
         ErrorManager.WriteInLogFile(this, zw.Message);
         return(null);
     }
 }
 public bool saveProfilHabilitation(CsProfil csProfil, List <CsHabilitationProgram> menuProfil)
 {
     try
     {
         return(new DBProfils().saveProfilHabilitation(csProfil, menuProfil));
     }
     catch (Exception zw)
     {
         ErrorManager.WriteInLogFile(this, zw.Message);
         return(false);
     }
 }
 public List <CsCentreDuProfil> RetourneCentreDuProfil()
 {
     try
     {
         return(new List <CsCentreDuProfil>());
     }
     catch (Exception zw)
     {
         ErrorManager.WriteInLogFile(this, zw.Message);
         return(null);
     }
 }
 public List <CsProfil> RetourneProfilByFonction(string fonction)
 {
     try
     {
         return(new DBProfils().GetProfilByFonction(fonction));
     }
     catch (Exception zw)
     {
         ErrorManager.WriteInLogFile(this, zw.Message);
         return(null);
     }
 }
 public List <CsUtilisateur> RetourneListeAllUserPerimetre(List <int> lstCentrePerimetreAction)
 {
     try
     {
         return(new DBAdmUsers().GetAllPerimetre(lstCentrePerimetreAction));
     }
     catch (Exception zw)
     {
         ErrorManager.WriteInLogFile(this, zw.Message);
         return(null);
     }
 }
 public List <CsUtilisateur> RetourneListeAllUser()
 {
     try
     {
         ErrorManager.WriteInLogFile(this, "ok");
         return(new DBAdmUsers().GetAll());
     }
     catch (Exception zw)
     {
         ErrorManager.WriteInLogFile(this, zw.Message);
         return(null);
     }
 }
Exemplo n.º 12
0
 public bool InsertTransfertData(string NumeroLot, string Tournee)
 {
     try
     {
         DBIndex db = new DBIndex();
         return(db.InsertTransfertData(NumeroLot, Tournee));
     }
     catch (Exception ex)
     {
         ErrorManager.WriteInLogFile(this, ex.Message);
         return(false);
     }
 }
Exemplo n.º 13
0
 public List <CsCasind> ChargerCas()
 {
     try
     {
         FacturationService db = new FacturationService();
         return(db.RetourneListeDesCas(string.Empty, string.Empty));
     }
     catch (Exception ex)
     {
         ErrorManager.WriteInLogFile(this, ex.Message);
         return(null);
     }
 }
Exemplo n.º 14
0
 public List <CsEvenement> ChargerEvenementTSP(string NumeroLot, List <string> Tournee, bool IsEnquete)
 {
     try
     {
         DBIndex db = new DBIndex();
         return(db.ChargerEvenementTsp(NumeroLot, Tournee, IsEnquete));
     }
     catch (Exception ex)
     {
         ErrorManager.WriteInLogFile(this, ex.Message);
         return(null);
     }
 }
Exemplo n.º 15
0
 public List <CsLotri> ChargerLotri(string NumeroLot, List <string> lstLotDejaCharge, bool ReleveIndexChecked)
 {
     try
     {
         DBIndex db = new DBIndex();
         return(db.ChargerLotTsp(NumeroLot, lstLotDejaCharge, ReleveIndexChecked));
     }
     catch (Exception ex)
     {
         ErrorManager.WriteInLogFile(this, ex.Message);
         return(null);
     }
 }
Exemplo n.º 16
0
 public List <CsMarqueCompteur> ChargerMarqueCompteur()
 {
     try
     {
         AcceuilService db = new AcceuilService();
         return(db.RetourneToutMarque());
     }
     catch (Exception ex)
     {
         ErrorManager.WriteInLogFile(this, ex.Message);
         return(null);
     }
 }
Exemplo n.º 17
0
 public List <CsStatutTransfert> ChargerStatusTransfert()
 {
     try
     {
         DBIndex db = new DBIndex();
         return(db.RetourneListeDesStatusTransfert());
     }
     catch (Exception ex)
     {
         ErrorManager.WriteInLogFile(this, ex.Message);
         return(null);
     }
 }
Exemplo n.º 18
0
 public List <CsClient> RetourneClient(int fk_idcentre, string centre, string client, string Ordre)
 {
     try
     {
         DBFRAUDE db = new DBFRAUDE();
         return(db.RetourneClient(fk_idcentre, centre, client, Ordre));
     }
     catch (Exception ex)
     {
         ErrorManager.WriteInLogFile(this, ex.Message);
         throw ex;
     }
 }
Exemplo n.º 19
0
 public static void LogException(object pModule, Exception ex)
 {
     try
     {
         if (ex.InnerException != null)
         {
             LogException(pModule, ex.InnerException);
         }
         ErrorManager.WriteInLogFile(pModule, ex.Message);
     }
     catch (Exception e)
     {
         throw e;
     }
 }