コード例 #1
0
ファイル: GetTypes.cs プロジェクト: solutema/ultralight
                public override object Run()
                {
                        Lfx.Components.RegisteredTypeCollection Res = new Lfx.Components.RegisteredTypeCollection();

                        // Ordenados por TipoLbl

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Impuestos.Alicuota),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Alicuotas.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Alicuotas.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Articulos.Articulo),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Articulos.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Articulos.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Bancos.Banco),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Bancos.Inicio))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Articulos.Categoria),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Articulos.Categorias.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Articulos.Categorias.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Articulos.Marca),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Articulos.Marcas.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Articulos.Marcas.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Articulos.Margen),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Articulos.Margenes.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Articulos.Margenes.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Articulos.Rubro),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Articulos.Rubros.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Articulos.Rubros.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Articulos.Situacion),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Articulos.Situaciones.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Articulos.Situaciones.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Bancos.ChequeEmitido),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Bancos.Cheques.InicioEmitidos)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Bancos.Cheques.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Bancos.ChequeRecibido),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Bancos.Cheques.InicioRecibidos)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Bancos.Cheques.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Bancos.Chequera),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Bancos.Chequeras.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Bancos.Chequeras.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Cajas.Caja),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Cajas.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Cajas.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Cajas.Concepto),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Cajas.Conceptos.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Cajas.Conceptos.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Vencimientos.Vencimiento),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Cajas.Vencimientos.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Cajas.Vencimientos.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.Comprobante),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.ComprobanteDeCompra),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Compra.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Compra.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
                                }));


                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.ComprobanteFacturable),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Facturas.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Facturas.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.Factura),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Facturas.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Facturas.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.NotaDeCredito),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Facturas.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Facturas.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.NotaDeDebito),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Facturas.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Facturas.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.Presupuesto),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Presupuestos.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Presupuestos.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorPresupuesto))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.Recibo),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Recibos.InicioCobro)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Recibos.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorRecibo))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.ReciboDeCobro),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Recibos.InicioCobro)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Recibos.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorRecibo))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.ReciboDePago),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Recibos.InicioPago)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Recibos.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorRecibo))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.Remito),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Remitos.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.Ticket),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Facturas.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Facturas.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.PuntoDeVenta),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Pvs.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Pvs.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Comprobantes.Tipo),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Tipo.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Tipo.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Impresion.Impresora),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Impresoras.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Impresoras.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Entidades.Localidad),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Ciudades.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Ciudades.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Impresion.Plantilla),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Plantillas.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Plantillas.Editar)),
                                        new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorPlantilla))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Pagos.Cupon),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Tarjetas.Cupones.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Tarjetas.Cupones.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Pagos.FormaDePago),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Pagos.FormasDePago.Inicio))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Pagos.Plan),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Pagos.Planes.Inicio))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Personas.Grupo),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Personas.Grupos.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Personas.Grupos.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Personas.Persona),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Personas.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Personas.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Personas.Proveedor),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Personas.Proveedores.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Personas.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Personas.Usuario),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Personas.Usuarios.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Personas.Usuarios.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Entidades.Sucursal),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Sucursales.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Sucursales.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Tareas.Tarea),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Tareas.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Tareas.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Tareas.Estado),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Tareas.Estados.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Tareas.Estados.Editar))
                                }));

                        Res.Add(new Lfx.Components.RegisteredType(
                                typeof(Lbl.Tareas.Tipo),
                                new Lfx.Components.ActionCollection() {
                                        new Lfx.Components.Action("list", typeof(Lfc.Tareas.Tipos.Inicio)),
                                        new Lfx.Components.Action("edit", typeof(Lfc.Tareas.Tipos.Editar))
                                }));

                        return Res;
                }
コード例 #2
0
ファイル: GetTypes.cs プロジェクト: solutema/ultralight
        public override object Run()
        {
            Lfx.Components.RegisteredTypeCollection Res = new Lfx.Components.RegisteredTypeCollection();

            // Ordenados por TipoLbl

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Impuestos.Alicuota),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Alicuotas.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Alicuotas.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Articulos.Articulo),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Articulos.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Articulos.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Bancos.Banco),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Bancos.Inicio))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Articulos.Categoria),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Articulos.Categorias.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Articulos.Categorias.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Articulos.Marca),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Articulos.Marcas.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Articulos.Marcas.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Articulos.Margen),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Articulos.Margenes.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Articulos.Margenes.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Articulos.Rubro),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Articulos.Rubros.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Articulos.Rubros.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Articulos.Situacion),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Articulos.Situaciones.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Articulos.Situaciones.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Bancos.ChequeEmitido),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Bancos.Cheques.InicioEmitidos)),
                new Lfx.Components.Action("edit", typeof(Lfc.Bancos.Cheques.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Bancos.ChequeRecibido),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Bancos.Cheques.InicioRecibidos)),
                new Lfx.Components.Action("edit", typeof(Lfc.Bancos.Cheques.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Bancos.Chequera),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Bancos.Chequeras.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Bancos.Chequeras.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Cajas.Caja),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Cajas.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Cajas.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Cajas.Concepto),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Cajas.Conceptos.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Cajas.Conceptos.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Vencimientos.Vencimiento),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Cajas.Vencimientos.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Cajas.Vencimientos.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.Comprobante),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.ComprobanteDeCompra),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Compra.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Compra.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
            }));


            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.ComprobanteFacturable),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Facturas.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Facturas.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.Factura),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Facturas.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Facturas.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.NotaDeCredito),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Facturas.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Facturas.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.NotaDeDebito),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Facturas.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Facturas.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.Presupuesto),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Presupuestos.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Presupuestos.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorPresupuesto))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.Recibo),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Recibos.InicioCobro)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Recibos.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorRecibo))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.ReciboDeCobro),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Recibos.InicioCobro)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Recibos.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorRecibo))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.ReciboDePago),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Recibos.InicioPago)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Recibos.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorRecibo))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.Remito),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Remitos.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.Ticket),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Facturas.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Facturas.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorComprobanteConArticulos))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.PuntoDeVenta),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Pvs.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Pvs.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Comprobantes.Tipo),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Tipo.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Tipo.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Impresion.Impresora),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Impresoras.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Impresoras.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Entidades.Localidad),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Ciudades.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Ciudades.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Impresion.Plantilla),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Comprobantes.Plantillas.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Comprobantes.Plantillas.Editar)),
                new Lfx.Components.Action("print", typeof(Lazaro.Impresion.Comprobantes.ImpresorPlantilla))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Pagos.Cupon),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Tarjetas.Cupones.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Tarjetas.Cupones.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Pagos.FormaDePago),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Pagos.FormasDePago.Inicio))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Pagos.Plan),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Pagos.Planes.Inicio))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Personas.Grupo),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Personas.Grupos.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Personas.Grupos.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Personas.Persona),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Personas.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Personas.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Personas.Proveedor),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Personas.Proveedores.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Personas.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Personas.Usuario),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Personas.Usuarios.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Personas.Usuarios.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Entidades.Sucursal),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Sucursales.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Sucursales.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Tareas.Tarea),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Tareas.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Tareas.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Tareas.Estado),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Tareas.Estados.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Tareas.Estados.Editar))
            }));

            Res.Add(new Lfx.Components.RegisteredType(
                        typeof(Lbl.Tareas.Tipo),
                        new Lfx.Components.ActionCollection()
            {
                new Lfx.Components.Action("list", typeof(Lfc.Tareas.Tipos.Inicio)),
                new Lfx.Components.Action("edit", typeof(Lfc.Tareas.Tipos.Editar))
            }));

            return(Res);
        }
コード例 #3
0
ファイル: Componente.cs プロジェクト: solutema/ultralight
        public Lfx.Types.OperationResult Load()
        {
            if (this.Assembly == null)
            {
                string[] WhereToLook;

                if (Lfx.Workspace.Master.DebugMode)
                {
                    WhereToLook = new string[] {
                        System.IO.Path.Combine(Lfx.Environment.Folders.ApplicationFolder, @"../../../Componentes/bin/dev/" + this.EspacioNombres + ".dll"),
                        System.IO.Path.Combine(Lfx.Environment.Folders.ComponentsFolder, this.EspacioNombres + System.IO.Path.DirectorySeparatorChar + this.EspacioNombres + ".dll"),
                        Lfx.Environment.Folders.ComponentsFolder + this.EspacioNombres + ".dll",
                        Lfx.Environment.Folders.ApplicationFolder + this.EspacioNombres + ".dll"
                    };
                }
                else
                {
                    WhereToLook = new string[] {
                        Lfx.Environment.Folders.ComponentsFolder + this.EspacioNombres + System.IO.Path.DirectorySeparatorChar + this.EspacioNombres + ".dll",
                        Lfx.Environment.Folders.ComponentsFolder + this.EspacioNombres + ".dll",
                        Lfx.Environment.Folders.ApplicationFolder + this.EspacioNombres + ".dll"
                    };
                }

                foreach (string Archivo in WhereToLook)
                {
                    if (System.IO.File.Exists(Archivo))
                    {
                        try {
                            this.Assembly = System.Reflection.Assembly.LoadFrom(Archivo);
                            break;
                        } catch {
                            // Nada
                        }
                    }
                }
            }

            if (this.Assembly == null)
            {
                return(new Lfx.Types.FailureOperationResult("No se puede cargar el componente " + this.Nombre));
            }
            else
            {
                // Cargo las estructuras de datos adicionales que el componente necesita
                using (System.IO.Stream DbStructXml = this.Assembly.GetManifestResourceStream(this.EspacioNombres + ".dbstruct.xml")) {
                    if (DbStructXml != null)
                    {
                        // FIXME: puedo cargarlo con un lector de texto
                        using (System.IO.StreamReader Lector = new System.IO.StreamReader(DbStructXml)) {
                            this.Estructura = Lector.ReadToEnd();
                            Lector.Close();
                        }
                    }
                }

                this.TiposRegistrados = new Lfx.Components.RegisteredTypeCollection();
                this.Funciones        = new Lfx.Components.FunctionInfoCollection();

                // Creo la función Try, que la tienen que definir todos los componentes
                Lfx.Components.FunctionInfo TryFunc = new Lfx.Components.FunctionInfo(this);
                TryFunc.Nombre = "Try";
                this.Funciones.Add(TryFunc);

                // Creo la función Register, que la tienen que definir todos los componentes
                Lfx.Components.FunctionInfo RegisterFunc = new Lfx.Components.FunctionInfo(this);
                RegisterFunc.Nombre = "Register";
                this.Funciones.Add(RegisterFunc);

                // Creo la función GetTypes, que la tienen que definir todos los componentes
                Lfx.Components.FunctionInfo GetTypesFunc = new Lfx.Components.FunctionInfo(this);
                GetTypesFunc.Nombre = "GetTypes";
                this.Funciones.Add(GetTypesFunc);

                this.LoadCif();

                // Agrego los tipos registrados
                this.Funciones["Register"].Run();

                Lfx.Components.RegisteredTypeCollection Col = this.Funciones["GetTypes"].Run() as Lfx.Components.RegisteredTypeCollection;
                if (Col != null)
                {
                    this.TiposRegistrados.AddRange(Col);
                }

                return(new Lfx.Types.SuccessOperationResult());
            }
        }