Example #1
0
 protected void txtRefEnt_textChanged(object sender, EventArgs args)
 {
     try
     {
         List <Orden_trabajo> lst = MaquilaCtrl.OrdenTrabajoGetLstCloseOrOpen(true);
         var results = (from c in lst
                        where c.PEnt.Referencia.Contains(((TextBox)sender).Text)
                        select new Orden_trabajo()
         {
             Id = c.Id,
             Folio = c.Folio,
             Referencia = c.Referencia,
             Fecha = c.Fecha,
             Cerrada = c.Cerrada,
             PEnt = c.PEnt,
             Servicios = c.Servicios,
             Supervisor = c.Supervisor
         }).ToList();
         grd_ot_cerrada.DataSource = results;
         grd_ot_cerrada.DataBind();
     }
     catch (Exception e)
     {
         throw;
     }
 }
Example #2
0
 private void fillGrdOt()
 {
     grd_ot_cerrada.DataSource = MaquilaCtrl.OrdenTrabajoGetLstCloseOrOpen(true);
     grd_ot_cerrada.DataBind();
     grd_ot_cerrada.SelectRow(-1);
 }