public ActionResult GetAllDetallesEntrega(int page, int start, int limit, string sort, string dir, long _dc, string callback, string condicion = null, string codigo = null) { var filter = new PagingInfo { page = page, start = start, limit = limit, sort = sort, dir = dir, _dc = _dc, callback = callback, search = condicion }; var service = new EntregasService(); var jsondata = service.GetAllDetallesEntrega(filter, codigo); JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer(); string callback1 = callback + "(" + javaScriptSerializer.Serialize(jsondata) + ");"; return(JavaScript(callback1)); }
public ActionResult ModificarDetalles(string Detalles, int ID_ENTREGA, int ID_ORDEN) { var service = new EntregasService(); var result = service.ModificarDetalles(Detalles, ID_ENTREGA); try { var context = new Entities(); int idusuario = Convert.ToInt32(Session["ID_USR"]); var v_resp = new ObjectParameter("p_res", typeof(Int32)); var data = context.P_EE_ACTUALIZAR_ENTREGA_OP(ID_ORDEN, v_resp); } catch (Exception) { result.msg = "Error"; result.success = false; } return(Json(result)); }