Exemple #1
0
        private void btn_Nuevo_Click(object sender, EventArgs e)
        {
            btn_Nuevo.Enabled = false;
            this.Hide();
            operacionFactura = "N";
            Boleta Check = new Boleta();

            Check.Show();
            btn_Nuevo.Enabled = true;
        }
Exemple #2
0
 public BuscarCliente(String DocumentoTipo)
 {
     InitializeComponent();
     TipoDocumento = DocumentoTipo;
     if (DocumentoTipo == "F")
     {
         formFac = Factura.formFactura;
     }
     else if (DocumentoTipo == "B")
     {
         formBole = Boleta.boletaForm;
     }
     else if (DocumentoTipo == "R")
     {
         formReport = ReporteDocumentosPorCliente.formReporteClientes;
     }
     else if (DocumentoTipo == "RT")
     {
         formReport = ReporteDocumentosPorCliente.formReporteClientes;
     }
     else if (DocumentoTipo == "T" || DocumentoTipo == "A")
     {
         formLetraCambio = LetraCambio.letraCambioForm;
     }
     else if (DocumentoTipo == "RT")
     {
         formRetencion = Retencion.retencionForm;
     }
     else if (DocumentoTipo == "AB")
     {
         formAbono = AbonoBanco.AbonoForm;
     }
     else if (DocumentoTipo == "VC")
     {
         formVoucher = ReporteVoucher.formReporteCheques;
     }
     else if (DocumentoTipo == "BAN")
     {
         formVoucher = ReporteVoucher.formReporteCheques;
     }
     objClienteDao        = new ClienteDAO();
     objListCliente       = objClienteDao.listarCliente(Ventas.UNIDADNEGOCIO);
     objListBusquedaTotal = objListCliente;
     gridParams();
     listCliente(objListCliente);
     txt_BuscarCliente.TextChanged += Txt_BuscarCliente_TextChanged;
 }
Exemple #3
0
        private void btn_ver_Click(object sender, EventArgs e)
        {
            operacionFactura = "V";
            try
            {
                int index = grd_Facturas.SelectedCells[0].RowIndex;

                numeroDocumento = objListaDocumentoCab[index].DocumentoCabNro;
                numeroSerie     = objListaDocumentoCab[index].DocumentoCabSerie;
                objDocumentoCab = objListaDocumentoCab[index];
                this.Hide();

                Boleta Check = new Boleta();
                Check.Show();
            }
            catch
            {
                MessageBox.Show("No ha seleccionado ningún registro");
            }
        }
 public BuscarProducto(String DocumentoTipo)
 {
     InitializeComponent();
     TipoDocumento = DocumentoTipo;
     if (DocumentoTipo == "F")
     {
         formFac = Factura.formFactura;
     }
     else if (DocumentoTipo == "B")
     {
         formBole = Boleta.boletaForm;
     }
     else if (DocumentoTipo == "NC")
     {
         formNCredito = NotaDeCredito.creditoForm;
     }
     objProductoDao                  = new ProductoDAO();
     objListProducto                 = objProductoDao.listarProducto(Ventas.UNIDADNEGOCIO);
     objListBusquedaTotal            = objListProducto;
     txt_BuscarProducto.TextChanged += Txt_BuscarProducto_TextChanged;
     gridParams();
     listCliente(objListProducto);
 }
Exemple #5
0
        public Boleta()
        {
            InitializeComponent();
            this.ControlBox = false;
            this.Text       = "BOLETAS";
            boletaForm      = this;
            objMonedaDao    = new MonedaDAO();
            objTipoPagoDao  = new TipoPagoDAO();
            objDocumento    = new DocumentoDAO();
            objProceso      = new Proceso();
            comboMoneda();
            comboPago();
            gridParams();
            if (ListaBoleta.operacionFactura == "V")
            {
                if (ListaFactura.objDocumentoCab.EstadoSunat == 0)
                {
                    lbl_Anulado.Visible = true;
                }
                habilitarBotones(false, false);
                habilitarCampos(false);
                txt_Guia.Enabled       = false;
                txt_OT.Enabled         = false;
                txt_Pedido.Enabled     = false;
                txt_GlosaCab.Enabled   = false;
                btn_BuscarOT.Enabled   = false;
                btn_Limpiar.Enabled    = false;
                btn_SaveData.Enabled   = false;
                btn_Buscar.Enabled     = false;
                dpck_Fechavcto.Enabled = false;
                dpick_Fecha.Enabled    = false;
                cmb_Moneda.Enabled     = false;
                cmb_Pago.Enabled       = false;

                txt_Cliente.Text         = ListaBoleta.objDocumentoCab.DocumentoCabCliente;
                txt_Ruc.Text             = ListaBoleta.objDocumentoCab.DocumentoCabClienteDocumento;
                txt_Serie.Text           = ListaBoleta.objDocumentoCab.DocumentoCabSerie;
                txt_Numero.Text          = ListaBoleta.objDocumentoCab.DocumentoCabNro;
                txt_GlosaCab.Text        = ListaBoleta.objDocumentoCab.DocumentoCabGlosa;
                cmb_Moneda.SelectedValue = ListaBoleta.objDocumentoCab.DocumentoCabTipoMoneda;
                cmb_Pago.SelectedValue   = ListaBoleta.objDocumentoCab.DocumentoCabTipoPago;
                txt_Direccion.Text       = ListaBoleta.objDocumentoCab.DocumentoCabClienteDireccion;
                txt_Guia.Text            = ListaBoleta.objDocumentoCab.DocumentoCabGuia;
                txt_Pedido.Text          = ListaBoleta.objDocumentoCab.DocumentoCabOrdenCompra;
                objListDocumentoDet      = objDocumento.listarDetalle(ListaBoleta.numeroDocumento, ListaBoleta.numeroSerie, Ventas.UNIDADNEGOCIO);
                grd_Detalle.DataSource   = objListDocumentoDet;
                grd_Detalle.Refresh();
                dpick_Fecha.Value = ListaBoleta.objDocumentoCab.DocumentoCabFecha;
                tipoCambio(dpick_Fecha.Value.ToShortDateString());
                llenarSumatorias();
            }
            else
            {
                if (Ventas.UNIDADNEGOCIO == "01")
                {
                    txt_Serie.Text = "B001";
                }
                else
                {
                    txt_Serie.Text = "B005";
                }
                txt_Numero.Text = objDocumento.correlativoFactura("03", Ventas.UNIDADNEGOCIO, txt_Serie.Text);
                habilitarCampos(false);
                tipoCambio(DateTime.Now.ToShortDateString());
            }

            rb_OT.Select();



            dpick_Fecha.TextChanged += Dpick_Fecha_TextChanged;

            txt_PrecioUnitario.TextChanged += Txt_PrecioUnitario_TextChanged;
            txt_Cantidad.TextChanged       += Txt_Cantidad_TextChanged;
            txt_Percepcion.Text             = "0";
            grd_Detalle.CellClick          += Grd_Detalle_CellClick;

            cmb_Moneda.SelectedValueChanged += Cmb_Moneda_SelectedValueChanged;
        }