public void load() { try { /* * proveedorInfoList = new List<cp_proveedor_Info>(); * proveedorInfoList = proveedorBus.Get_List_proveedor(param.IdEmpresa); */ //cmbProveedor.Properties.DataSource = proveedorInfoList; ucCp_Proveedor1.cargar_proveedores(); catalogoInfoList = new List <cp_catalogo_Info>(); catalogoInfoList = catalogoBus.Get_List_catalogo(TipodeCatalogo); cmbEstado.Properties.DataSource = catalogoInfoList; cmbEstado.EditValue = "NO IMPRESO"; CargarGrillaGeneral(); DateTime Fecha = DateTime.Now.Date; Fecha = Fecha.AddMonths(+1); dtpDesde.EditValue = DateTime.Now.Date; dtpHasta.EditValue = Fecha; UC_Retencion.IdEstablecimiento = "001"; UC_Retencion.IdPuntoEmision = "001"; UC_Retencion.Get_Ult_Documento_no_usado(); inicio = 1; } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void cargar_Combo() { try { cp_catalogo_Bus CatBus = new cp_catalogo_Bus(); List <cp_TipoServicioxProvee_Info> lEstado = new List <cp_TipoServicioxProvee_Info>(); List <cp_catalogo_Info> lEstado1 = new List <cp_catalogo_Info>(); lEstado1 = CatBus.Get_List_catalogo("T_SERVI"); foreach (var item in lEstado1) { lEstado.Add(new cp_TipoServicioxProvee_Info(item.IdCatalogo, item.Nombre)); } this.cmb_tipoServicioxProve.DataSource = lEstado; this.cmb_tipoServicioxProve.DisplayMember = "descripcion"; this.cmb_tipoServicioxProve.ValueMember = "codigo"; } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; MessageBox.Show(NameMetodo + " - " + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); } }
private void Cargar_combos() { try { list_Activos = bus_Activos.Get_List_ActivoFijo(param.IdEmpresa); ucFa_Cliente_x_centro_costo_cmb1.Cargar_combos(); list_catalogo_facturacion = Catalogo_Facturacion_Bus.Get_List_catalogo(10); cmb_Estado_Facturacion.DataSource = list_catalogo_facturacion; cmb_Estado_Facturacion.ValueMember = "IdCatalogo"; cmb_Estado_Facturacion.DisplayMember = "Nombre"; cmb_EstadoFacturacion_Activo.DataSource = list_catalogo_facturacion; cmb_EstadoFacturacion_Activo.ValueMember = "IdCatalogo"; cmb_EstadoFacturacion_Activo.DisplayMember = "Nombre"; lista_catalogo_CxP = catalogo_CxP_bus.Get_List_catalogo("EST_DOC"); cmb_Estado_Cancelacion.DataSource = lista_catalogo_CxP; cmb_Estado_Cancelacion.ValueMember = "IdCatalogo"; cmb_Estado_Cancelacion.DisplayMember = "Nombre"; foreach (var item in list_Activos) { Af_Poliza_x_AF_det_Info info_ = new Af_Poliza_x_AF_det_Info(); info_.IdActivoFijo = item.IdActivoFijo; info_.Af_Nombre = item.Af_Nombre; list_Detalle_x_Activo_info.Add(info_); } gridControlActivos.DataSource = list_Detalle_x_Activo_info; cmb_proveedor.cargar_proveedores(); txt_base0.EditValue = 0; txt_base12.EditValue = 0; txt_pago_contado.EditValue = 0; txt_valorCuota.EditValue = 0; } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas) + ex.Message + " ", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); } }
public void cargar_Combo() { try { List <cp_catalogo_Info> catalogoInfoList = new List <cp_catalogo_Info>(); cp_catalogo_Bus catalogoBus = new cp_catalogo_Bus(); catalogoInfoList = new List <cp_catalogo_Info>(); catalogoInfoList = catalogoBus.Get_List_catalogo(IdTipoCatalogo); this.cmb_TipoGasto.DataSource = catalogoInfoList; this.cmb_TipoGasto.DisplayMember = "Nombre"; this.cmb_TipoGasto.ValueMember = "Idcatalogo"; } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; MessageBox.Show(NameMetodo + " - " + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); } }