Beispiel #1
0
        private void btnGenerar_Click(object sender, EventArgs e)
        {
            InventarioBL ObjetoInventario = new InventarioBL();
            //Codigo Inicio de busqueda
            Int32 CodigoDesde = Convert.ToInt32(cbDesde.SelectedValue.ToString());
            //Codigo Hasta la busqueda
            Int32 CodigoHasta = Convert.ToInt32(cbHasta.SelectedValue.ToString());
            //Familia de articulos
            Int32 FamiliaID = -1;


            if (cbFamilia.SelectedValue != null)
            {
                Int32 Familia;
                if (Int32.TryParse(cbFamilia.SelectedValue.ToString(), out Familia))
                {
                    FamiliaID = Convert.ToInt32(cbFamilia.SelectedValue.ToString());
                }
            }
            else
            {
                FamiliaID = -1;
            }

            List <cInventario> ListaInventario = ObjetoInventario.ReporteExistenciaCosto(CodigoDesde, CodigoHasta, FamiliaID);

            frmrptListaProductos ReporteListaProductos = new frmrptListaProductos(ListaInventario);

            ReporteListaProductos.ShowDialog(this);
        }
Beispiel #2
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            InventarioBL ObjetoInventario = new InventarioBL();
            //Codigo Inicio de busqueda
            String CodigoDesde = ObtenerCodigo(cbbCodigoDesde.SelectedValue);
            //Codigo Hasta la busqueda
            String CodigoHasta = ObtenerCodigo(cbbCodigoHasta.SelectedValue);
            //Familia de articulos
            Int32?FamiliaID = ObtenerFamilia();
            //Orden de reporte
            String OrdenarPor = ObtenerOrden();



            List <cInventario> ListaInventario = ObjetoInventario.ReporteExistenciaCosto(CodigoDesde, CodigoHasta, FamiliaID, OrdenarPor);

            frmrptCostoInventario ReporteListaProductos = new frmrptCostoInventario(ListaInventario);

            ReporteListaProductos.ShowDialog(this);
        }