private void cargar_combos() { try { string mensaje = ""; lst_centro_costo = bus_centro_costo.Get_list_Centro_Costo_x_cliente(param.IdEmpresa, ref mensaje); cmb_centro_costo.Properties.DataSource = lst_centro_costo; lst_activo = bus_activo.Get_List_ActivoFijo(param.IdEmpresa); cmb_activo.DataSource = lst_activo; lst_producto = bus_producto.Get_list_Producto_modulo_x_Ventas(param.IdEmpresa); cmb_producto_horas_extra.Properties.DataSource = lst_producto; cmb_producto_horas_normales.Properties.DataSource = lst_producto; lst_impuesto = bus_impuesto.Get_List_impuesto("IVA"); cmb_impuesto.Properties.DataSource = lst_impuesto; ucCon_Periodo_ini.Cargar_combos(); ucCon_Periodo_fin.Cargar_combos(); blst_det = new BindingList <fa_tarifario_horometro_det_Info>(); gridControl_tarifario.DataSource = blst_det; } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void cargar_combos() { try { de_fecha.DateTime = DateTime.Now.Date; string mensaje = ""; ucIn_Sucursal_Bodega1.set_Idsucursal(param.IdSucursal); ucCon_Periodo1.Cargar_combos(); lst_centro_costo = bus_centro_costo.Get_list_Centro_Costo_x_cliente(param.IdEmpresa, ref mensaje); cmb_centro_costo.Properties.DataSource = lst_centro_costo; blst_registro_unidades_x_af = new BindingList <fa_registro_unidades_x_equipo_det_ini_x_Af_Info>(); gridControl_unidades.DataSource = blst_registro_unidades_x_af; lst_etipo_horas = Enum.GetValues(typeof(Cl_Enumeradores.eTipo_horas_facturar)). Cast <Cl_Enumeradores.eTipo_horas_facturar>().ToDictionary(x => (int)x, x => x.ToString()); cmb_tipo_horas.Properties.DataSource = lst_etipo_horas.ToList(); cmb_tipo_horas.EditValue = 1;//Horas normales } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void CargarCombo() { try { lista_centro_costo = bus_centro_costo.Get_list_Centro_Costo_x_cliente(param.IdEmpresa, ref mensaje); cmbcentrocosto.Properties.DataSource = lista_centro_costo; } 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()); } }
private void Cargar_CentroCosto_x_cliente() { try { _List_centro_costo_Info = _Centro_costo_Bus.Get_list_Centro_Costo_x_cliente(param.IdEmpresa, ref MensajeError); if (_List_centro_costo_Info.Count() != 0) { this.treeListClient_CC.DataSource = _List_centro_costo_Info; treeListClient_CC.ExpandAll(); } } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; NameMetodo = NameMetodo + " - " + ex.ToString(); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); MessageBox.Show(NameMetodo + " " + param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas) , param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); } }