protected override IEnumerable <IToolbaritem> EditToolbar(IGestionService service, IModelView model)
        {
            var objModel = model as OportunidadesModel;
            var result   = base.EditToolbar(service, model).ToList();

            result.Add(new ToolbarSeparatorModel());

            if (!objModel.Cerrado)
            {
                result.Add(new ToolbarActionModel()
                {
                    Icono = "fa fa-gear",
                    Texto = General.LblGenerarSeguimiento,
                    Url   = Url.Action("Generar", "Seguimientos", new
                    {
                        id            = objModel.Id,
                        referencia    = objModel.Referencia,
                        tipodocumento = DocumentoEstado.Oportunidades,
                        fkempresa     = objModel.Fkempresa,
                        fkcontacto    = objModel.Fkcontacto,
                        fketapa       = objModel.Fketapa
                    })
                });

                result.Add(new ToolbarSeparatorModel());
            }

            return(result);
        }
        protected override IEnumerable <IToolbaritem> EditToolbar(IGestionService service, IModelView model)
        {
            var objModel = model as FacturasModel;
            var result   = base.EditToolbar(service, model).ToList();

            result.Add(new ToolbarSeparatorModel());
            if (objModel.Estado?.Tipoestado < TipoEstado.Finalizado)
            {
                result.Add(new ToolbarActionModel()
                {
                    Icono = "fa fa-gear",
                    Texto = General.LblContabilizar,
                    Url   = Url.Action("Contabilizar", "Movs", new { IdFactura = objModel.Id, NombreTipo = typeof(FacturasModel).ToString(), returnUrl = Url.Action("Edit", new { id = objModel.Id }) })
                });
                result.Add(new ToolbarSeparatorModel());
            }
            result.Add(CreateComboImprimir(objModel));
            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-envelope-o",
                OcultarTextoSiempre = true,
                Texto = General.LblEnviaremail,
                Url   = "javascript:eventAggregator.Publish('Enviarfactura',\'\')"
            });


            return(result);
        }
        protected override ToolbarModel GenerateToolbar(IGestionService service, TipoOperacion operacion, dynamic model = null)
        {
            var result = base.GenerateToolbar(service, operacion, model as object);

            result.Titulo = "Cartera";
            return(result);
        }
Ejemplo n.º 4
0
        private IEnumerable <IToolbaritem> GenerateActionsToolbar(IGestionService service, TipoOperacion operacion, IModelView model = null)
        {
            var result = new List <IToolbaritem>();

            switch (operacion)
            {
            case TipoOperacion.Index:
                result = IndexToolbar().ToList();
                break;

            case TipoOperacion.Alta:
                result = CreateToolbar(service, model).ToList();
                break;

            case TipoOperacion.Baja:
                result = DeleteToolbar(service, model).ToList();
                break;

            case TipoOperacion.Custom:
                result = CustomToolbar(service, model).ToList();
                break;

            case TipoOperacion.Editar:
                result = EditToolbar(service, model).ToList();
                break;

            case TipoOperacion.Ver:
                result = VerToolbar(service, model).ToList();
                break;
            }

            result.InsertRange(0, HelpItem());

            return(result);
        }
Ejemplo n.º 5
0
        protected override IEnumerable <IToolbaritem> EditToolbar(IGestionService service, IModelView model)
        {
            var objModel = model as ReservasstockModel;

            var result = base.EditToolbar(service, model).ToList();

            result.Add(new ToolbarSeparatorModel());

            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-gear",
                Texto = General.LblEntregar,
                Url   = Url.Action("GenerarEntrega", "EntregasStock", new { id = objModel.Id })
            });

            result.Add(new ToolbarSeparatorModel());
            result.Add(CreateComboImprimir(objModel));
            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-envelope-o",
                OcultarTextoSiempre = true,
                Texto = General.LblEnviaremail,
                Url   = "javascript:eventAggregator.Publish('Enviaralbaran',\'\')"
            });
            if (objModel.Estado.Tipoestado != TipoEstado.Finalizado && objModel.Estado.Tipoestado != TipoEstado.Anulado)
            {
                result.Add(new ToolbarSeparatorModel());
                result.Add(CreateComboEstados(objModel));
            }
            return(result);
        }
        //Generamos un nuevo toolbar
        protected override ToolbarModel GenerateToolbar(IGestionService service, TipoOperacion operacion, dynamic model = null)
        {
            var result = base.GenerateToolbar(service, operacion, model as object);

            result.Titulo = RImputacionCostes.TituloEntidad;

            return(result);
        }
        protected override IEnumerable <IToolbaritem> EditToolbar(IGestionService service, IModelView model)
        {
            CarteraVencimientosModel objModel = model as CarteraVencimientosModel;
            var result = base.VerToolbar(service, model).ToList();

            result.Add(new ToolbarSeparatorModel());
            result.Add(CreateComboImprimir(objModel));
            return(result);
        }
Ejemplo n.º 8
0
        protected override IEnumerable <IToolbaritem> EditToolbar(IGestionService service, IModelView model)
        {
            var objModel = model as PedidosModel;
            var result   = base.EditToolbar(service, model).ToList();

            result.Add(new ToolbarSeparatorModel());
            if (objModel.Estado?.Tipoestado < TipoEstado.Finalizado)
            {
                result.Add(new ToolbarActionModel()
                {
                    Icono = "fa fa-gear",
                    Texto = General.LblGenerarAlbaran,
                    Url   = Url.Action("Importar", "Albaranes", new { id = objModel.Id, returnUrl = Url.Action("Edit", new { id = objModel.Id }) })
                });

                result.Add(new ToolbarActionModel()
                {
                    Icono = "fa fa-gear",
                    Texto = General.LblGenerarEntrega,
                    Url   = Url.Action("Importar", "EntregasStock", new { id = objModel.Id, returnUrl = Url.Action("Edit", new { id = objModel.Id }) })
                });
            }

            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-gear",
                Texto = PedidosCompras.Generarpedidoscompras,
                Url   = Url.Action("GenerarPedidosCompra", "Pedidos", new { pedido = objModel.Referencia })
            });

            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-gear",
                Texto = General.LblGenerarImputacionMateriales,
                Url   = Url.Action("ImputacionMateriales", "EntregasStock", new { id = objModel.Id, returnUrl = Url.Action("Edit", new { id = objModel.Id }) })
            });

            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-copy",
                Texto = General.LblClonar,
                Url   = Url.Action("Clonar", new { id = objModel.Id })
            });

            result.Add(new ToolbarSeparatorModel());
            result.Add(CreateComboImprimir(objModel));
            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-envelope-o",
                OcultarTextoSiempre = true,
                Texto = General.LblEnviaremail,
                Url   = "javascript:eventAggregator.Publish('Enviarpedido',\'\')"
            });
            result.Add(new ToolbarSeparatorModel());
            result.Add(CreateComboEstados(objModel));
            return(result);
        }
Ejemplo n.º 9
0
        protected override IEnumerable <IToolbaritem> EditToolbar(IGestionService service, IModelView model)
        {
            var result    = base.EditToolbar(service, model).ToList();
            var viewmodel = model as BundleModel;

            result.Add(new ToolbarSeparatorModel());
            result.Add(CreateComboImprimir(viewmodel));
            return(result);
        }
        protected override IEnumerable <IToolbaritem> EditToolbar(IGestionService service, IModelView model)
        {
            var list           = base.EditToolbar(service, model).ToList();
            var nuevoregistro  = list.OfType <IToolbarActionModel>().Single(f => f.Texto == General.BtnNuevoRegistro);
            var borrarregistro = list.OfType <IToolbarActionModel>().Single(f => f.Texto == General.LblBorrar);

            list.Remove(nuevoregistro);
            list.Remove(borrarregistro);
            return(list);
        }
        //En Details el toolbar tiene solo la opcion de imprimir
        protected override IEnumerable <IToolbaritem> VerToolbar(IGestionService service, IModelView model)
        {
            var objModel = model as ImputacionCostesModel;
            var result   = base.VerToolbar(service, model).ToList();

            result.Add(new ToolbarSeparatorModel());
            result.Add(CreateComboImprimir(objModel));

            return(result);
        }
Ejemplo n.º 12
0
        protected virtual ToolbarModel GenerateToolbar(IGestionService service, TipoOperacion operacion, dynamic model = null)
        {
            var modelDisplayName = model as ICanDisplayName;
            var modelToolbar     = model as IModelView;

            return(new ToolbarModel()
            {
                Operacion = operacion,
                Titulo = modelDisplayName.DisplayName,
                Acciones = GenerateActionsToolbar(service, operacion, modelToolbar)
            });
        }
Ejemplo n.º 13
0
        protected virtual IEnumerable <IToolbaritem> GenerarNavegadorRegistros(IGestionService service, TipoOperacion operacion, IModelView model)
        {
            var result     = new List <IToolbaritem>();
            var actionView = operacion == TipoOperacion.Editar && CanModificar ? "Edit" : "Details";

            var firstId = service.FirstRegister();

            result.Add(new ToolbarActionModel()
            {
                Icono               = "fa fa-step-backward",
                Texto               = General.LblPrimero,
                Url                 = string.IsNullOrEmpty(firstId)? string.Empty: Url.Action(actionView, new { id = firstId }),
                Desactivado         = model.GetPrimaryKey() == firstId || string.IsNullOrEmpty(firstId),
                OcultarTextoSiempre = true
            });

            var prevId = operacion == TipoOperacion.Editar || operacion == TipoOperacion.Ver? service.PreviousRegister(model.GetPrimaryKey()): string.Empty;

            result.Add(new ToolbarActionModel()
            {
                Icono               = "fa fa-caret-left",
                Texto               = General.LblAnterior,
                Url                 = Url.Action(actionView, new { id = prevId }),
                Desactivado         = operacion == TipoOperacion.Alta || string.IsNullOrEmpty(prevId),
                OcultarTextoSiempre = true
            });

            var nextId = operacion == TipoOperacion.Editar || operacion == TipoOperacion.Ver ? service.NextRegister(model.GetPrimaryKey()) : string.Empty;

            result.Add(new ToolbarActionModel()
            {
                Icono               = "fa fa-caret-right",
                Texto               = General.LblSiguiente,
                Url                 = Url.Action(actionView, new { id = nextId }),
                Desactivado         = operacion == TipoOperacion.Alta || string.IsNullOrEmpty(nextId),
                OcultarTextoSiempre = true
            });

            var lastId = service.LastRegister();

            result.Add(new ToolbarActionModel()
            {
                Icono               = "fa fa-step-forward",
                Texto               = General.LblUltimo,
                Url                 = string.IsNullOrEmpty(lastId) ? string.Empty : Url.Action(actionView, new { id = lastId }),
                Desactivado         = model.GetPrimaryKey() == lastId || string.IsNullOrEmpty(lastId),
                OcultarTextoSiempre = true
            });

            return(result);
        }
        //En editar tiene imprimir y si el estado es introducido, tiene la opcion de finalizar el documento
        protected override IEnumerable <IToolbaritem> EditToolbar(IGestionService service, IModelView model)
        {
            var objModel = model as ImputacionCostesModel;
            var result   = base.EditToolbar(service, model).ToList();

            result.Add(new ToolbarSeparatorModel());
            result.Add(CreateComboImprimir(objModel));
            if (objModel.Estado.Tipoestado < TipoEstado.Finalizado)
            {
                result.Add(new ToolbarSeparatorModel());
                result.Add(CreateComboEstados(objModel));
            }
            return(result);
        }
        protected override IEnumerable <IToolbaritem> VerToolbar(IGestionService service, IModelView model)
        {
            var objModel = model as AlbaranesComprasModel;
            var result   = base.VerToolbar(service, model).ToList();

            result.Add(new ToolbarSeparatorModel());

            result.Add(CreateComboImprimir(objModel));
            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-envelope-o",
                OcultarTextoSiempre = true,
                Texto = General.LblEnviaremail,
                Url   = "javascript:eventAggregator.Publish('Enviaralbaran',\'\')"
            });
            return(result);
        }
        protected override IEnumerable <IToolbaritem> GenerarNavegadorRegistros(IGestionService service, TipoOperacion operacion, IModelView model)
        {
            var result            = new List <IToolbaritem>();
            var seguimientosModel = model as SeguimientosModel;

            string Newurl = "javascript:eventAggregator.Publish('EnviarSeguimiento','" + seguimientosModel.Id + "')";

            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-envelope-o",
                OcultarTextoSiempre = true,
                Texto = General.LblEnviaremail,
                Url   = Newurl
            });

            return(result);
        }
Ejemplo n.º 17
0
        protected virtual IEnumerable <IToolbaritem> CreateToolbar(IGestionService service, IModelView model)
        {
            var result = new List <IToolbaritem>();

            //Guardar
            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-check green",
                Texto = General.LblCrear,
                OcultarTextoSiempre = true,
                Url = "javascript:$(\"#mainform\").submit()"
            });

            result.Add(new ToolbarSeparatorModel());
            //Navegador
            result.AddRange(GenerarNavegadorRegistros(service, TipoOperacion.Alta, model));

            return(result);
        }
Ejemplo n.º 18
0
        protected override IEnumerable <IToolbaritem> EditToolbar(IGestionService service, IModelView model)
        {
            var result    = base.EditToolbar(service, model).ToList();
            var viewmodel = model as KitModel;

            if (viewmodel.Estado == EstadoKit.Montado)
            {
                result.Add(new ToolbarSeparatorModel());
                result.Add(new ToolbarActionModel()
                {
                    Texto = RKit.Desmontar,
                    Icono = "fa fa-wrench",
                    Url   = Url.Action("Desmontar", new { id = viewmodel.Id })
                });
            }
            result.Add(new ToolbarSeparatorModel());
            result.Add(CreateComboImprimir(viewmodel));
            return(result);
        }
Ejemplo n.º 19
0
        protected virtual IEnumerable <IToolbaritem> VerToolbar(IGestionService service, IModelView model)
        {
            var result = new List <IToolbaritem>();

            //Guardar
            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-plus",
                Texto = General.BtnNuevoRegistro,
                OcultarTextoSiempre = true,
                Url         = Url.Action("Create"),
                Desactivado = !CanCrear
            });

            result.Add(new ToolbarSeparatorModel());

            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-pencil",
                Texto = General.LblEditar,
                OcultarTextoSiempre = true,
                Url         = Url.Action("Edit", new { id = model.GetPrimaryKey() }),
                Desactivado = !CanModificar
            });
            result.Add(new ToolbarSeparatorModel());
            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-trash red",
                Texto = General.LblBorrar,
                OcultarTextoSiempre = true,
                Url         = Url.Action("Delete", new { id = model.GetPrimaryKey() }),
                Desactivado = !CanEliminar
            });

            result.Add(new ToolbarSeparatorModel());

            //Navegador
            result.AddRange(GenerarNavegadorRegistros(service, TipoOperacion.Ver, model));

            return(result);
        }
        protected override IEnumerable <IToolbaritem> EditToolbar(IGestionService service, IModelView model)
        {
            var objModel = model as AlbaranesComprasModel;
            var result   = base.EditToolbar(service, model).ToList();

            result.Add(new ToolbarSeparatorModel());
            if (objModel.Tipoalbaran < (int)TipoAlbaran.Devolucion)
            {
                result.Add(new ToolbarActionModel()
                {
                    Icono = "fa fa-share",
                    Texto = Albaranes.LblGestionDevoluciones,
                    Url   = "javascript:CallGenerarDevolucion();"
                });
            }


            if (!string.IsNullOrEmpty(objModel.Fkseriefactura) && objModel.Estado?.Tipoestado < TipoEstado.Finalizado)
            {
                result.Add(new ToolbarActionModel()
                {
                    Icono = "fa fa-gear",
                    Texto = General.LblFacturar,
                    Url   = "javascript:CallFacturarAlbaran()"
                });
            }

            result.Add(new ToolbarSeparatorModel());
            result.Add(CreateComboImprimir(objModel));
            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-envelope-o",
                OcultarTextoSiempre = true,
                Texto = General.LblEnviaremail,
                Url   = "javascript:eventAggregator.Publish('Enviaralbaran',\'\')"
            });
            result.Add(new ToolbarSeparatorModel());
            result.Add(CreateComboEstados(objModel));
            return(result);
        }
Ejemplo n.º 21
0
        protected virtual IEnumerable <IToolbaritem> DeleteToolbar(IGestionService service, IModelView model)
        {
            var result = new List <IToolbaritem>();

            //Guardar
            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-plus",
                Texto = General.BtnNuevoRegistro,
                OcultarTextoSiempre = true,
                Url         = Url.Action("Create"),
                Desactivado = !CanCrear
            });

            result.Add(new ToolbarSeparatorModel());

            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-pencil",
                Texto = General.LblEditar,
                OcultarTextoSiempre = true,
                Url         = Url.Action("Edit", new { id = model.GetPrimaryKey() }),
                Desactivado = !CanModificar
            });

            result.Add(new ToolbarSeparatorModel());

            result.Add(new ToolbarActionModel()
            {
                Icono = "fa fa-eye",
                Texto = General.LblVer,
                OcultarTextoSiempre = true,
                Url         = Url.Action("Details", new { id = model.GetPrimaryKey() }),
                Desactivado = !IsActivado
            });

            return(result);
        }
        public IEnumerable <IItemResultadoMovile> Get <T, TLineas>(IGestionService service, string referencia)
        {
            var serviceReferencia = service as IDocumentosVentasPorReferencia <T>;
            var model             = serviceReferencia.GetByReferencia(referencia) as IModelView;

            model = service.get(Funciones.Qnull(model.get("Id")));
            var result = new List <IItemResultadoMovile>();

            result.Add(new ItemCabeceraResultadoMoviles()
            {
                Valor = General.LblGeneral
            });
            result.Add(new ItemResultadoMovile()
            {
                Campo = RPresupuestos.Referencia, Valor = Funciones.Qnull(model.get("Referencia"))
            });
            result.Add(new ItemResultadoMovile()
            {
                Campo = RPresupuestos.Fechadocumento, Valor = Funciones.Qnull(model.get("Fechadocumento"))
            });


            result.Add(new ItemCabeceraResultadoMoviles()
            {
                Valor = General.LblDesglose
            });
            var lineas = model.get("Lineas") as List <TLineas>;

            foreach (var elem in lineas)
            {
                var item = elem as ILineasDocumentosBusquedaMovil;
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Fkarticulos, Valor = item.Fkarticulos
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Descripcion, Valor = item.Descripcion
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Cantidad, Valor = item.Cantidad?.ToString() ?? string.Empty
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Largo, Valor = item.SLargo
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Ancho, Valor = item.SAncho
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Grueso, Valor = item.SGrueso
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Metros, Valor = item.SMetros
                });
                if (elem.GetType().GetProperties().Any(f => f.Name == "Estado"))
                {
                    result.Add(new ItemResultadoMovile()
                    {
                        Campo = RPresupuestos.Estado, Valor = Funciones.Qnull(elem.GetType().GetProperty("Estado").GetValue(elem))
                    });
                }

                result.Add(new ItemSeparadorResultadoMoviles());
            }



            return(result);
        }
Ejemplo n.º 23
0
 protected virtual IEnumerable <IToolbaritem> CustomToolbar(IGestionService service, IModelView model)
 {
     return(new List <IToolbaritem>());
 }
Ejemplo n.º 24
0
 public GestionController(IGestionService formationService)
 {
     _formationService = formationService;
 }
        public IEnumerable <IItemResultadoMovile> Get <T, TLineas, TTotales>(IGestionService service, string referencia)
        {
            var serviceReferencia = service as IDocumentosVentasPorReferencia <T>;
            var model             = serviceReferencia.GetByReferencia(referencia) as IModelView;

            model = service.get(Funciones.Qnull(model.get("Id")));
            var result = new List <IItemResultadoMovile>();

            result.Add(new ItemCabeceraResultadoMoviles()
            {
                Valor = General.LblGeneral
            });
            result.Add(new ItemResultadoMovile()
            {
                Campo = RPresupuestos.Estado, Valor = Funciones.Qnull(model.get("Fkestados"))
            });
            result.Add(new ItemResultadoMovile()
            {
                Campo = RPresupuestos.Referencia, Valor = Funciones.Qnull(model.get("Referencia"))
            });
            result.Add(new ItemResultadoMovile()
            {
                Campo = RPresupuestos.Fechadocumento, Valor = Funciones.Qnull(model.get("Fechadocumento"))
            });
            if (model.getProperties().Any(f => f.property.Name == "Fechavalidez"))
            {
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Fechavalidez, Valor = Funciones.Qnull(model.get("Fechavalidez"))
                });
            }
            result.Add(new ItemResultadoMovile()
            {
                Campo = RPresupuestos.Fkclientes, Valor = Funciones.Qnull(model.get("Fkclientes"))
            });
            result.Add(new ItemResultadoMovile()
            {
                Campo = RPresupuestos.Nombrecliente, Valor = Funciones.Qnull(model.get("Nombrecliente"))
            });
            result.Add(new ItemCabeceraResultadoMoviles()
            {
                Valor = RPresupuestos.Importetotaldoc
            });
            result.Add(new ItemCabeceraResultadoMoviles()
            {
                Valor = Funciones.Qnull(model.get("Importetotaldoc"))
            });

            var totales = model.get("Totales") as List <TTotales>;

            result.Add(new ItemCabeceraResultadoMoviles()
            {
                Valor = "Totales"
            });
            foreach (var elem in totales)
            {
                var item = elem as ITotalesDocumentosBusquedaMovil;
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.BrutoTotal, Valor = item.SBrutototal
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Basetotal, Valor = item.SBaseimponible
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Porcentajeiva, Valor = item.Porcentajeiva.ToString()
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Cuotaiva, Valor = item.SCuotaiva
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Importetotaldoc, Valor = item.SSubtotal
                });
                result.Add(new ItemSeparadorResultadoMoviles());
            }

            result.Add(new ItemCabeceraResultadoMoviles()
            {
                Valor = General.LblDesglose
            });
            var lineas = model.get("Lineas") as List <TLineas>;

            foreach (var elem in lineas)
            {
                var item = elem as ILineasDocumentosBusquedaMovil;
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Fkarticulos, Valor = item.Fkarticulos
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Descripcion, Valor = item.Descripcion
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Cantidad, Valor = item.Cantidad?.ToString() ?? string.Empty
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Largo, Valor = item.SLargo
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Ancho, Valor = item.SAncho
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Grueso, Valor = item.SGrueso
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Metros, Valor = item.SMetros
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Precio, Valor = item.SPrecio
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Porcentajedescuento, Valor = item.Porcentajedescuento.ToString()
                });
                result.Add(new ItemResultadoMovile()
                {
                    Campo = RPresupuestos.Subtotal, Valor = item.SImporte
                });
                result.Add(new ItemSeparadorResultadoMoviles());
            }



            return(result);
        }