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;
 }
 public FacturaController(IFacturaAppService facturaAppService, IUsuarioAppService usuarioAppService,
     ITerceroAppService terceroAppService)
 {
     _facturaAppService = facturaAppService;
     _usuarioAppService = usuarioAppService;
     _terceroAppService = terceroAppService;
 }
Exemple #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;
 }
Exemple #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;
 }
 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;
 }
 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>();
        }