Beispiel #1
0
 public static Sincronizar_tablet_producto getSincronizar_tablet_producto(int id)
 {
     try
     {
         Query query = new Query("select", "Sincronizar_tablet_producto");
         query.AddWhere("ID", id.ToString());
         query.AddSelect("*");
         Sincronizar_tablet_producto objeto = new Sincronizar_tablet_producto();
         DataSet dataset  = FachadaSincronizar_tablet_producto.getListado(query);
         int     contador = 0;
         if (dataset != null)
         {
             foreach (DataRow fila in dataset.Tables[0].Rows)
             {
                 objeto = new Sincronizar_tablet_producto(fila);
                 contador++;
             }
         }
         return(objeto);
     }
     catch (Exception ex)
     {
         Utils.EscribeLog(ex);
         return(null);
     }
 }
Beispiel #2
0
 public static Sincronizar_tablet_producto[] getListadoPorWhere(string where)
 {
     try
     {
         string[] arrString = where.Split('=');
         Query    query     = new Query("select", "sincronizar_tablet_producto");
         query.AddWhere(arrString[0], arrString[1]);
         query.AddSelect("*");
         DataSet dataset = FachadaSincronizar_tablet_producto.getListado(query);
         Sincronizar_tablet_producto[] arrsincronizar_tablet_producto = new Sincronizar_tablet_producto[dataset.Tables[0].Rows.Count];
         int contador = 0;
         if (dataset != null)
         {
             foreach (DataRow fila in dataset.Tables[0].Rows)
             {
                 Sincronizar_tablet_producto objeto = new Sincronizar_tablet_producto(fila);
                 arrsincronizar_tablet_producto[contador] = objeto;
                 contador++;
             }
         }
         return(arrsincronizar_tablet_producto);
     }
     catch (Exception ex)
     {
         Utils.EscribeLog(ex);
         return(null);
     }
 }
Beispiel #3
0
 public static Sincronizar_tablet_producto[] getListado(Query query)
 {
     try
     {
         //query.AddWhereExacto(ST_Sincronizar_tablet_producto.estado_vigente, "vigente");
         DataSet dataset = FachadaSincronizar_tablet_producto.getListado(query);
         Sincronizar_tablet_producto[] arrsincronizar_tablet_producto = new Sincronizar_tablet_producto[dataset.Tables[0].Rows.Count];
         int contador = 0;
         if (dataset != null)
         {
             foreach (DataRow fila in dataset.Tables[0].Rows)
             {
                 Sincronizar_tablet_producto objeto = new Sincronizar_tablet_producto(fila);
                 arrsincronizar_tablet_producto[contador] = objeto;
                 contador++;
             }
         }
         return(arrsincronizar_tablet_producto);
     }
     catch (Exception ex)
     {
         Utils.EscribeLog(ex);
         return(null);
     }
 }