public FormListadoVentas() { InitializeComponent(); ventaService = new FacturaVentaService(ConfigConnection.connectionString); dateTimeListadoCompra.Format = DateTimePickerFormat.Custom; dateTimeListadoCompra.CustomFormat = "dd/MM/yyyy"; dateTimeListadoCompra1.Format = DateTimePickerFormat.Custom; dateTimeListadoCompra1.CustomFormat = "dd/MM/yyyy"; }
public FormCrearVenta() { InitializeComponent(); service = new ClienteService(ConfigConnection.connectionString); productoService = new ProductoService(ConfigConnection.connectionString); VentaService = new FacturaVentaService(ConfigConnection.connectionString); detalleFactura = new DetalleFacturaVentaService(ConfigConnection.connectionString); //txtNumFactura.Text = VentaService.ConsultarIdFactura().ToString(); InhabiltarText(); LbelFechaFacturaVenta.Text = DateTime.Now.ToString("dd/MM/yyyy"); }
public FacturaVentaController(NaacCelularesContext context, IOptions <AppSetting> appSettings) { JwtService = new JwtService(appSettings); Service = new FacturaVentaService(context); dispositivoMovilService = new DispositivoMovilService(context); }