示例#1
0
 public static bool Connect(int id, int iMachine)
 {
     try
     {
         return(PointeuseDAO.setConnect(id, iMachine));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#2
0
 public static Pointeuse OneByIp(string ip, Societe s)
 {
     try
     {
         return(PointeuseDAO.getOneByIp(ip, s.Id));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#3
0
 public static List <Pointeuse> List(string query)
 {
     try
     {
         return(PointeuseDAO.getList(query));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#4
0
 public static Pointeuse OneById(int id)
 {
     try
     {
         return(PointeuseDAO.getOneById(id));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#5
0
 public static bool Delete(int id)
 {
     try
     {
         return(PointeuseDAO.getDelete(id));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#6
0
 public static bool Update(Pointeuse bean, int id)
 {
     try
     {
         return(PointeuseDAO.getUpdate(bean, id));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#7
0
 public static bool ActifByIp(string ip, bool actif)
 {
     try
     {
         return(PointeuseDAO.setActifByIp(ip, actif));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
示例#8
0
 public static bool Insert(Pointeuse bean)
 {
     try
     {
         return(PointeuseDAO.getInsert(bean));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }