protected void btn_consultar_click(object sender, EventArgs args) { try { DateTime fecha_ini = DateTime.Now; DateTime fecha_fin = DateTime.Now; List <Orden_trabajo> lst = MaquilaCtrl.OrdenTrabajoGetLst(); grd_ordenes.DataSource = lst; grd_ordenes.DataBind(); } catch (Exception e) { ((MstCasc)this.Master).setError = e.Message; } }
private string ordTrabajo(HttpContext context) { string response = string.Empty; string option = context.Request["opt"].ToString(); //string email = context.Request["email"].ToString(); //string pass = context.Request["pass"].ToString(); try { switch (option) { case "getOrdenes": response = JsonConvert.SerializeObject(MaquilaCtrl.OrdenTrabajoGetLst()); break; } } catch (Exception e) { response = e.Message; } return(response); }