Esempio n. 1
0
 public FacturaController(IFacturaAppService facturaAppService, IUsuarioAppService usuarioAppService,
                          ITerceroAppService terceroAppService)
 {
     _facturaAppService = facturaAppService;
     _usuarioAppService = usuarioAppService;
     _terceroAppService = terceroAppService;
 }
 public DetalleFacturaController(IDetalleFacturaAppService detalleFacturaAppService, IFacturaAppService facturaAppService,
     IProductoAppService productoAppService)
 {
     _detalleFacturaAppService = detalleFacturaAppService;
     _facturaAppService = facturaAppService;
     _productoAppService = productoAppService;
 }
Esempio n. 3
0
 public FacturaController(IFacturaAppService facturaAppService, IUsuarioAppService usuarioAppService,
     ITerceroAppService terceroAppService)
 {
     _facturaAppService = facturaAppService;
     _usuarioAppService = usuarioAppService;
     _terceroAppService = terceroAppService;
 }
Esempio n. 4
0
 public DetalleFacturaController(IDetalleFacturaAppService detalleFacturaAppService, IFacturaAppService facturaAppService,
                                 IProductoAppService productoAppService)
 {
     _detalleFacturaAppService = detalleFacturaAppService;
     _facturaAppService        = facturaAppService;
     _productoAppService       = productoAppService;
 }
 public TransaccionController(ITransaccionAppService transaccionAppService, IUsuarioAppService usuarioAppService,
     ITerceroAppService terceroAppService, IFacturaAppService facturaAppService, ITipoTransaccionAppService tipoTransaccionAppService,
     IFormaPagoAppService formaPagoAppService)
 {
     _transaccionAppService = transaccionAppService;
     _usuarioAppService = usuarioAppService;
     _terceroAppService = terceroAppService;
     _facturaAppService = facturaAppService;
     _tipoTransaccionAppService = tipoTransaccionAppService;
     _formaPagoAppService = formaPagoAppService;
 }
Esempio n. 6
0
 public TransaccionController(ITransaccionAppService transaccionAppService, IUsuarioAppService usuarioAppService,
                              ITerceroAppService terceroAppService, IFacturaAppService facturaAppService, ITipoTransaccionAppService tipoTransaccionAppService,
                              IFormaPagoAppService formaPagoAppService)
 {
     _transaccionAppService     = transaccionAppService;
     _usuarioAppService         = usuarioAppService;
     _terceroAppService         = terceroAppService;
     _facturaAppService         = facturaAppService;
     _tipoTransaccionAppService = tipoTransaccionAppService;
     _formaPagoAppService       = formaPagoAppService;
 }
Esempio n. 7
0
 public VentaController(ITerceroAppService terceroAppService, IFormaPagoAppService formapagoAppService, IUsuarioAppService
                        usuarioAppService, IFacturaAppService facturaAppService, IDetalleFacturaAppService detallefacturaAppService,
                        ITransaccionAppService transaccionAppService, IDetalleTransaccionAppService detalletransaccionAppService,
                        IProductoAppService productoAppService)
 {
     _terceroAppService            = terceroAppService;
     _formapagoAppService          = formapagoAppService;
     _usuarioAppService            = usuarioAppService;
     _facturaAppService            = facturaAppService;
     _detallefacturaAppService     = detallefacturaAppService;
     _transaccionAppService        = transaccionAppService;
     _detalletransaccionAppService = detalletransaccionAppService;
     _productoAppService           = productoAppService;
 }
Esempio n. 8
0
 public VentaController(ITerceroAppService terceroAppService, IFormaPagoAppService formapagoAppService, IUsuarioAppService
     usuarioAppService, IFacturaAppService facturaAppService, IDetalleFacturaAppService detallefacturaAppService,
     ITransaccionAppService transaccionAppService, IDetalleTransaccionAppService detalletransaccionAppService,
     IProductoAppService productoAppService)
 {
     _terceroAppService = terceroAppService;
     _formapagoAppService = formapagoAppService;
     _usuarioAppService = usuarioAppService;
     _facturaAppService = facturaAppService;
     _detallefacturaAppService = detallefacturaAppService;
     _transaccionAppService = transaccionAppService;
     _detalletransaccionAppService = detalletransaccionAppService;
     _productoAppService = productoAppService;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="FacturaControl"/> class.
        /// </summary>
        /// <remarks>
        /// Class Constructor
        /// </remarks>       
        public FacturaControl()
            : base()
        {
            this.InitializeComponent();
            this.SetdataGridViewClientesGridStyle();
            this.SetdataGridViewFacturasGridStyle();
            this.SetdataGridViewFacturaLineGridStyle();
            this.useRealEntity = true;
            if (!Container.IsRegistered<IClientAppService>())
            {
                Container.RegisterType<IClientAppService, ClientAppService>();
            }

            if (!Container.IsRegistered<IFacturaAppService>())
            {
                Container.RegisterType<IFacturaAppService, FacturasAppService>();
            }

            this.clientAppService = Container.Resolve<IClientAppService>();
            this.facturaAppService = Container.Resolve<IFacturaAppService>();
        }