1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Common;
using System.Data.SqlClient;
using System.Data;
using System.Timers;
namespace DataAccess
{
public abstract class SqlAPPELSConnect
{
private static SqlConnection _myConnect;
public static SqlConnection GetConnection()
{
if (_myConnect == null)
{
SocleDA mySocle = new SocleDA();
_myConnect = (SqlConnection)mySocle.GetConnection();
}
return _myConnect;
}
// appel du data set pour le remplissage du gridview avec tous les appels
public static DsAPPELS getAPPELS()
{
DsAPPELSTableAdapters.SP_GET_APPELSTableAdapter dt = new DsAPPELSTableAdapters.SP_GET_APPELSTableAdapter();
DsAPPELS ds = new DsAPPELS();
dt.Fill(ds.SP_GET_APPELS,string ETAT, string NUMERO_APPEL,string DEST_GROUPE,string DEST_EMPLOYE,
string NOM_SOCIETE, string NOM_INT, string TELEPHONE, string FAX,string URGENCE,string NATURE_PROBLEME,
string DESCRIPTION,string REPONSE,string CREATEUR_DOSSIER,new DateTime DATE_CREATION,DateTime HEURE_CREATION,
string VECTEUR_APPEL,new DateTime DERNIERE_MODIF,new DateTime HEURE_MODIF,string PAR ,string LOCK ,
new int CODE_INT ,
new int CODE_SOC ,
string MOT_CLE ,
new datetime DATE_DELAI_REPONSE ,
new decimal DELAI_REPONSE ,
string PARTENAIRE ,
string PRODUIT ,
string MOTIF_APPEL,
new decimal NB_TRAITEMENTS ,
string EVALUATION ,
new decimal CONTRAT ,
new decimal ID_PRODUIT ,
string FAQ_ETAT,
new decimal FAQ_ID_USER ,
new datetime FAQ_DATE_CREATION ,
new datetime FAQ_DATE_WEB ,
new Datetime ALERTE_DEBUT,
new Datetime ALERTE_FIN);
return ds;
}
}
} |
Partager