Exemplo n.º 1
0
 public FrmFacturaGlobal3()
 {
     InitializeComponent();
     ventaController  = new VentaController();
     ventapController = new VentapController();
     moneda           = new Moneda();
 }
Exemplo n.º 2
0
 public CFDI33()
 {
     //Controladores
     ventaController    = new VentaController();
     ventapController   = new VentapController();
     clienteController  = new ClienteController();
     empresaController  = new EmpresaController();
     dymErrorController = new DymErrorController();
 }
Exemplo n.º 3
0
        private void ActualizarDatos()
        {
            controller = new VentaController();
            var cate = controller.GetVentas(txtBuscar.Text);

            dgDatos.DataSource = cate;

            dgDatos.Columns[4].DefaultCellStyle.Format         = "c2";
            dgDatos.Columns[4].DefaultCellStyle.FormatProvider = CultureInfo.GetCultureInfo("es-HN");
        }
Exemplo n.º 4
0
 public FrmFacturas()
 {
     InitializeComponent();
     ventaController    = new VentaController();
     clienteController  = new ClienteController();
     empresaController  = new EmpresaController();
     reporteController  = new ReporteController();
     dymErrorController = new DymErrorController();
     oCFDI   = new CFDI();
     cliente = null;
     empresa = empresaController.SelectTopOne();
     reporte = reporteController.SelectOneByName(empresa.FormatoParaFacturas);
 }
Exemplo n.º 5
0
        private void Reset()
        {
            ventaController   = new VentaController();
            ventapController  = new VentapController();
            clienteController = new ClienteController();
            empresaController = new EmpresaController();
            reporteController = new ReporteController();
            partidas          = new List <Ventap>();
            report            = new StiReport();
            ds = new DataSet();

            empresa = empresaController.SelectTopOne();
            reporte = reporteController.SelectOneByName(empresa.FormatoParaFacturas);

            cliente = null;
            venta   = null;
        }
Exemplo n.º 6
0
        public FrmVentaInsert()
        {
            InitializeComponent();

            controller = new VentaController();

            tbProductos = tabProductos;

            tabOpciones.TabPages.Remove(tabProductos);

            txtUsuarioId.Text     = "4";
            txtUsuarioNombre.Text = "Juan Perez";

            txtClienteId.Text     = "1";
            txtClienteNombre.Text = "Maria Meji";

            venta.VentaDetalle = new List <VentaDetalleViewModel>();
        }
Exemplo n.º 7
0
        //Inicizalizar
        public void Inicializar()
        {
            //Controladores
            ventaController    = new VentaController();
            ventapController   = new VentapController();
            clienteController  = new ClienteController();
            empresaController  = new EmpresaController();
            dymErrorController = new DymErrorController();

            //Utils
            respuestaCFDI  = new RespuestaCFDi();
            timbradoClient = new TimbradoClient();
            selloDigital   = new SelloDigital();
            transformador  = new XslCompiledTransform();

            //Comprobante
            comprobante = new Comprobante();
            emisor      = new ComprobanteEmisor();
            receptor    = new ComprobanteReceptor();


            // Nivel concepto
            conceptos         = new List <ComprobanteConcepto>();
            concepto          = new ComprobanteConcepto();
            impuestosConcepto = new List <ComprobanteConceptoImpuestosTraslado>();
            ivaConcepto       = new ComprobanteConceptoImpuestosTraslado();
            iepsConcepto      = new ComprobanteConceptoImpuestosTraslado();



            //Nivel comprobante
            impuestosComprobante      = new List <ComprobanteImpuestosTraslado>();
            totalImpuestosComprobante = new ComprobanteImpuestos();
            ivaComprobante            = new ComprobanteImpuestosTraslado();
            iepsComprobante           = new ComprobanteImpuestosTraslado();


            //inicializacion de propiedades
            empresa  = empresaController.SelectTopOne();
            partidas = ventapController.SelectPartidas(Venta.VentaId);
            cliente  = clienteController.SelectOne(Venta.ClienteId);
            s        = "";
        }
Exemplo n.º 8
0
        private void ResetPDV()
        {
            venta            = new Venta();
            partidas         = new List <Ventap>();
            cliente          = null;
            producto         = null;
            SigPartida       = 0;
            datosCliente     = "PUBLICO EN GENERAL";
            TxtSubtotal.Text = "";
            TxtTotal.Text    = "";
            TxtCliente.Text  = "";

            ventaController    = new VentaController();
            ventapController   = new VentapController();
            productoController = new ProductoController();
            clienteController  = new ClienteController();

            ImpuestoController   = new ImpuestoController();
            empresaController    = new EmpresaController();
            loteController       = new LoteController();
            movInvController     = new MovInvController();
            flujoController      = new FlujoController();
            reporteController    = new ReporteController();
            dymErrorController   = new DymErrorController();
            formaPagoController  = new FormaPagoController();
            loteVentapController = new LoteVentapController();
            oCFDI = new CFDI();
            lote  = null;
            TxtProductoId.Focus();


            //Reset malla
            Malla.Rows.Clear();
            for (int i = 0; i < NPARTIDAS; i++)
            {
                Malla.Rows.Add();
                Malla.Rows[i].Cells[2].Style.BackColor = Color.Yellow;
                Malla.Rows[i].Cells[8].Style.BackColor = Color.Yellow;
            }
            CreaVenta();
        }
        private void Inicializa()
        {
            //Controladores
            ventaController  = new VentaController();
            ventapController = new VentapController();

            //Listas
            ventas   = new List <Venta>();
            partidas = new List <Ventap>();

            //Objetos
            venta   = null;
            partida = null;
            moneda  = new Moneda();
            oCFDI   = new CFDI();

            //Variables
            subtotal  = 0;
            impuestos = 0;
            total     = 0;
        }
        public MasterController(MasterViewController masterViewController)
        {
            NotificationMessagess notificationMessages = new NotificationMessagess();
            MySQLContection       SQLService           = new MySQLContection();

            SQLService.setNotificationMessages(notificationMessages);

            ModeloController     modeloBusinessController = new ModeloController();
            ModeloViewController modeloViewController     = new ModeloViewController();

            modeloBusinessController.setSQLService(SQLService);
            modeloBusinessController.setPresenter(modeloViewController);
            modeloViewController.setBusinessController(modeloBusinessController);

            TipoController     tipoBusinessController = new TipoController();
            TipoViewController tipoViewController     = new TipoViewController();

            tipoBusinessController.setSQLService(SQLService);
            tipoBusinessController.setPresenter(tipoViewController);
            tipoViewController.setBusinessController(tipoBusinessController);

            ProductoController     productoBusinessController = new ProductoController();
            ProductoViewController productoViewController     = new ProductoViewController();

            productoBusinessController.setSQLService(SQLService);
            productoBusinessController.setPresenter(productoViewController);
            productoViewController.setBusinessController(productoBusinessController);
            productoViewController.setBusinessController(tipoBusinessController);
            productoViewController.setBusinessController(modeloBusinessController);

            VentaController     ventaBusinessController = new VentaController();
            VentaViewController ventaViewController     = new VentaViewController();

            ventaBusinessController.setSQLService(SQLService);
            ventaBusinessController.setPresenter(ventaViewController);
            ventaViewController.setBusinessController(ventaBusinessController);
            ventaViewController.setBusinessController(productoBusinessController);

            LoginViewController loginViewController = new LoginViewController();

            loginViewController.setMasterViewController(masterViewController);

            InventoryViewController inventoryViewController = new InventoryViewController();

            inventoryViewController.setBusinessController(productoBusinessController);

            CorteDiaViewController corteDiaViewController = new CorteDiaViewController();

            corteDiaViewController.setBusinessController(ventaBusinessController);

            CorteMensualViewController corteMensualViewController = new CorteMensualViewController();

            corteMensualViewController.setBusinessController(ventaBusinessController);

            masterViewController.setViewController(modeloViewController);
            masterViewController.setViewController(inventoryViewController);
            masterViewController.setViewController(tipoViewController);
            masterViewController.setViewController(productoViewController);
            masterViewController.setViewController(ventaViewController);
            masterViewController.setViewController(loginViewController);
            masterViewController.setViewController(corteDiaViewController);
            masterViewController.setViewController(corteMensualViewController);

            masterViewController.init();
        }