public ActionResult ModificarDetalles(string Detalles, int ID_ORDEN_PRODUCCION)
        {
            var service = new OrdenesProduccionService();

            var result = service.ModificarDetalles(Detalles, ID_ORDEN_PRODUCCION);

            //IQueryable result = null;
            return(Json(result));
        }
        public ActionResult EliminarDetalle(int ID_DETALLE_ORDEN)
        {
            var service = new OrdenesProduccionService();

            var result = service.EliminarDetalle(ID_DETALLE_ORDEN);

            //IQueryable result = null;
            return(Json(result));
        }
        public ActionResult CrearDetallesOrden(EE_DETALLES_ORDEN orden, string tallas, int ID_ORDEN_PRODUCCION)
        {
            var service = new OrdenesProduccionService();

            var result = service.CrearDetallesOrden(orden, tallas, ID_ORDEN_PRODUCCION);

            //IQueryable result = null;
            return(Json(result));
        }
        public ActionResult GetAllHojasCalculo(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 OrdenesProduccionService();
            var jsondata = service.GetAllHojasCalculo(filter, codigo);
            JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer();
            string callback1 = callback + "(" + javaScriptSerializer.Serialize(jsondata) + ");";

            return(JavaScript(callback1));
        }