private void cargar_combos(int IdEmpresa)
        {
            var lst_catalogos = bus_catalogo.get_list(1);

            ViewBag.lst_catalogos = lst_catalogos;

            in_movi_inven_tipo_Bus bus_tipo = new in_movi_inven_tipo_Bus();
            var lst_tipo = bus_tipo.get_list(IdEmpresa, "+", false);

            ViewBag.lst_tipo = lst_tipo;

            in_Motivo_Inven_Bus bus_motivo = new in_Motivo_Inven_Bus();
            var lst_motivo = bus_motivo.get_list(IdEmpresa, false);

            ViewBag.lst_motivo = lst_motivo;

            tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus();
            var             lst_sucursal = bus_sucursal.get_list(IdEmpresa, false);

            ViewBag.lst_sucursal = lst_sucursal;

            tb_bodega_Bus bus_bodega = new tb_bodega_Bus();
            var           lst_bodega = bus_bodega.get_list(IdEmpresa, false);

            ViewBag.lst_bodega = lst_bodega;
        }
Example #2
0
        private void cargar_combos()
        {
            try
            {
                string mensaje = "";
                lst_moneda = bus_moneda.Get_List_Moneda();
                cmb_moneda_destino.Properties.DataSource = lst_moneda;
                cmb_moneda_origen.Properties.DataSource  = lst_moneda;

                lst_pais = bus_pais.Get_List_pais();
                cmb_pais_embarque.Properties.DataSource = lst_pais;
                cmb_pais_origen.Properties.DataSource   = lst_pais;

                lst_producto = bus_producto.Get_list_Producto(param.IdEmpresa);
                cmb_producto_det.DataSource = lst_producto;

                lst_proveedor = bus_proveedor.Get_List_proveedor(param.IdEmpresa);
                cmb_proveedor.Properties.DataSource = lst_proveedor;

                lst_unidad_medida = bus_unidad_medida.Get_list_UnidadMedida();
                cmb_unidad_medida_det.DataSource = lst_unidad_medida;

                lst_plancta = bus_plancta.Get_List_Plancta_x_ctas_Movimiento(param.IdEmpresa, ref mensaje);
                cmb_plancta.Properties.DataSource = lst_plancta;

                List <imp_catalogo_Info> lst_catalogo = new List <imp_catalogo_Info>();
                imp_catalogo_Bus         bus_catalogo = new imp_catalogo_Bus();

                lst_catalogo = bus_catalogo.get_list(Convert.ToInt32(Cl_Enumeradores.eImp_catalogo.VIAS));
                cmb_catalogo_vias.Properties.DataSource = lst_catalogo;

                lst_catalogo = bus_catalogo.get_list(Convert.ToInt32(Cl_Enumeradores.eImp_catalogo.FORMA_PAGO));
                cmb_catalogo_forma_pago.Properties.DataSource = lst_catalogo;

                lst_ciudad = bus_ciudad.Get_List_Ciudad();
                cmb_ciudad_destino.Properties.DataSource = lst_ciudad;

                de_Fecha.DateTime          = DateTime.Now.Date;
                gridControl_det.DataSource = blst_det;
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                MessageBox.Show(ex.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Example #3
0
        private void cargar_combos()
        {
            var lst_paises = bus_paises.get_list(false);

            ViewBag.lst_paises = lst_paises;

            var lst_ciudades = bus_ciudad.get_list("09", false);

            ViewBag.lst_ciudades = lst_ciudades;

            var lst_forma_pago = bus_catalogo.get_list(2);

            ViewBag.lst_forma_pago = lst_forma_pago;

            var lst_catalogos = bus_catalogo.get_list(1);

            ViewBag.lst_catalogos = lst_catalogos;

            var lst_monedas = bus_moneda.get_list();

            ViewBag.lst_monedas = lst_monedas;
        }
Example #4
0
 private void load_data_catalogo()
 {
     try
     {
         lst_catalogo = bus_catalogo.get_list(listBoxControl_catalogo_tipo.SelectedValue == null ? 0 : Convert.ToInt32(listBoxControl_catalogo_tipo.SelectedValue));
         gridControl_catalogo.DataSource = lst_catalogo;
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        private void cargar_combos(int IdEmpresa)
        {
            tb_sucursal_Bus bus_sucursal = new tb_sucursal_Bus();
            var             lst_sucursal = bus_sucursal.get_list(IdEmpresa, false);

            ViewBag.lst_sucursal = lst_sucursal;

            tb_bodega_Bus bus_bodega = new tb_bodega_Bus();
            var           lst_bodega = bus_bodega.get_list(IdEmpresa, false);

            ViewBag.lst_bodega = lst_bodega;

            var lst_catalogos = bus_catalogo.get_list(1);

            ViewBag.lst_catalogos = lst_catalogos;
        }
Example #6
0
        private void cargar_combos(int IdEmpresa)
        {
            var lst_catalogos = bus_catalogo.get_list(1);

            ViewBag.lst_catalogos = lst_catalogos;
        }
        public ActionResult GridViewPartial_catalogo_imp(int IdCatalogo_tipo = 0)
        {
            List <imp_catalogo_Info> model = bus_catalogo.get_list(IdCatalogo_tipo);

            return(PartialView("_GridViewPartial_catalogo_imp", model));
        }