예제 #1
0
        public void GenerarRecibo()
        {
            if (transaccion == "VENTA")
            {
                Program.GnumeroRecibo  = 0;
                Program.GtipoRecibo    = "Recibo";
                Program.Greporte       = "Recibo de Pago";
                Program.GidVehiculoRpt = idVehiculo;
                Program.GidCCRpt       = idCC;
            }

            else if (transaccion == "TRASPASO")
            {
                Program.GnumeroRecibo  = 0;
                Program.GtipoRecibo    = "Recibo";
                Program.Greporte       = "Recibo de Pago Traspaso";
                Program.GidVehiculoRpt = idVehiculo;
                Program.GidCCRpt       = idCC;
            }

            else if (transaccion == "SEGURO")
            {
                Program.GnumeroRecibo  = 0;
                Program.GtipoRecibo    = "Recibo";
                Program.Greporte       = "Recibo de Pago Seguro";
                Program.GidVehiculoRpt = idVehiculo;
                Program.GidCCRpt       = idCC;
            }


            ReportesForm form1 = new ReportesForm();

            form1.Show();
        }
예제 #2
0
        private void repGeneral_btn_Click(object sender, EventArgs e)
        {
            Program.Gdesde       = desde_dtp.Value;
            Program.Ghasta       = hasta_dtp.Value;
            Program.Gpropietario = propietario_cb.Text;
            if (propietario_cb.SelectedIndex == -1)
            {
                Program.GidPropietario = 0;
            }
            else
            {
                Program.GidPropietario = Convert.ToInt32(propietario_cb.SelectedValue);
            }

            if (estado_cb.SelectedIndex == 0)
            {
                Program.Greporte = "general proceso";
            }

            else if (estado_cb.SelectedIndex == 1)
            {
                Program.Greporte = "general terminados";
            }
            else
            {
                Program.Greporte = "general vendidos";
            }

            ReportesForm form = new ReportesForm();

            form.Show();
        }
예제 #3
0
        private void repIndividual_btn_Click(object sender, EventArgs e)
        {
            Program.GidVehiculoRpt = Convert.ToInt32(vehiculos_dtg.CurrentRow.Cells[0].Value.ToString());
            if (estado_cb.SelectedIndex == 0)
            {
                Program.Greporte = "En Proceso";
            }

            else if (estado_cb.SelectedIndex == 1)
            {
                Program.Greporte = "Terminado";
            }
            else
            {
                Program.Greporte = "Vendido";
            }

            ReportesForm form = new ReportesForm();

            form.Show();
        }
예제 #4
0
        private void reporte_btn_Click(object sender, EventArgs e)
        {
            Program.Gdesde = desde_dtp.Value;
            Program.Ghasta = hasta_dtp.Value;

            if (reportes_cb.Text == "Vehículos Comprados")
            {
                Program.Greporte = "Reporte Vehículos Comprados";
                ReportesForm form1 = new ReportesForm();
                form1.Show();
            }

            else if (reportes_cb.Text == "Vehículos Inventario")
            {
                Program.Greporte = "Reporte Vehículos en Inventario";
                ReportesForm form1 = new ReportesForm();
                form1.Show();
            }

            else if (reportes_cb.Text == "Vehículos Vendidos")
            {
                Program.Greporte = "Reporte Vehículos Vendidos";
                ReportesForm form1 = new ReportesForm();
                form1.Show();
            }

            else if (reportes_cb.Text == "Historial Facturas")
            {
                if (vehiculos_dtg.Rows.Count > 0)
                {
                    Program.GidVehiculoRpt = Convert.ToInt32(vehiculos_dtg.CurrentRow.Cells[6].Value);
                    Program.Greporte       = "Factura Venta Vehículo";
                    ReportesForm form1 = new ReportesForm();
                    form1.Show();
                }
            }

            else if (reportes_cb.Text == "Cuentas por Pagar")
            {
                if (vehiculos_dtg.Rows.Count > 0)
                {
                    Program.GidTransaccionRpt = Convert.ToInt32(tipoTransaccion_cb.SelectedValue);
                    Program.Greporte          = "Cuentas por Pagar";
                    ReportesForm form1 = new ReportesForm();
                    form1.Show();
                }
            }

            else if (reportes_cb.Text == "Cuentas por Cobrar")
            {
                if (vehiculos_dtg.Rows.Count > 0)
                {
                    Program.Greporte = "Cuentas por Cobrar";
                    ReportesForm form1 = new ReportesForm();
                    form1.Show();
                }
            }

            else if (reportes_cb.Text == "Reporte Resultados")
            {
                if (vehiculos_dtg.Rows.Count > 0)
                {
                    if (rdDinero_radiobtn.Checked)
                    {
                        Program.Greporte = "Reporte de Resultados ($RD)";
                    }
                    else
                    {
                        Program.Greporte = "Reporte de Resultados ($USD)";
                    }

                    ReportesForm form1 = new ReportesForm();
                    form1.Show();
                }
            }

            else if (reportes_cb.Text == "Reporte de Efectivo")
            {
                if (vehiculos_dtg.Rows.Count > 0)
                {
                    Program.Greporte = "Reporte Efectivo Cobrado";
                    ReportesForm form1 = new ReportesForm();
                    form1.Show();
                }
            }

            else if (reportes_cb.Text == "Historial Recibos Cobros")
            {
                if (vehiculos_dtg.Rows.Count > 0)
                {
                    DataTable dt = new DataTable();
                    Program.GidCCRpt = Convert.ToInt32(vehiculos_dtg.CurrentRow.Cells[5].Value);
                    P.Id             = Program.GidCCRpt;
                    dt = P.ObtenerTipoCC();
                    if (dt.Rows[0][0].ToString() == "VENTA")
                    {
                        Program.Greporte = "Recibo de Pago";
                    }

                    else if (dt.Rows[0][0].ToString() == "TRASPASO")
                    {
                        Program.Greporte = "Recibo de Pago Traspaso";
                    }

                    else if (dt.Rows[0][0].ToString() == "TRASPASO")
                    {
                        Program.Greporte = "Recibo de Pago Seguro";
                    }
                    Program.GnuevaCC       = Convert.ToBoolean(vehiculos_dtg.CurrentRow.Cells[6].Value);
                    Program.GidVehiculoRpt = Convert.ToInt32(vehiculos_dtg.CurrentRow.Cells[0].Value);
                    Program.GtipoRecibo    = "Historial Recibo";
                    Program.GnumeroRecibo  = Convert.ToInt32(vehiculos_dtg.CurrentRow.Cells[1].Value);
                    ReportesForm form1 = new ReportesForm();
                    form1.Show();
                }
            }
        }