public List <pre_presupuesto_tipoRubro_Info> Get_List_pre_presupuesto_tipoRubro() { try { List <pre_presupuesto_tipoRubro_Info> lista = new List <pre_presupuesto_tipoRubro_Info>(); EntitiesPresupuesto pre = new EntitiesPresupuesto(); var select = from q in pre.pre_presupuesto_tipoRubro select q; foreach (var item in select) { pre_presupuesto_tipoRubro_Info info = new pre_presupuesto_tipoRubro_Info(); info.IdTipoRubro = item.IdTipoRubro; info.Descripcion = item.Descripcion; info.Tabla = item.Tabla; lista.Add(info); } return(lista); } catch (Exception ex) { string arreglo = ToString(); tb_sis_Log_Error_Vzen_Data oDataLog = new tb_sis_Log_Error_Vzen_Data(); tb_sis_Log_Error_Vzen_Info Log_Error_sis = new tb_sis_Log_Error_Vzen_Info(ex.ToString(), "", arreglo, "", "", "", "", "", DateTime.Now); oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje); mensaje = ex.ToString() + " " + ex.Message; throw new Exception(ex.ToString()); } }
private void gridTipoRubro_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e) { try { infoTipo = GetSelectedRowTIPO((DevExpress.XtraGrid.Views.Grid.GridView)sender); if (infoTipo.IdTipoRubro == "CLIENT") { // GridLookUpEditNombreRubro.DataSource = busCliente.ObtenerParaPresupuesto(param.IdEmpresa); } //if (infoTipo.IdTipoRubro == "PROVE") //{ // GridLookUpEditNombreRubro.DataSource = busProveedor.ObtenerListProveedorPresupuesto(param.IdEmpresa); //} if (infoTipo.IdTipoRubro == "SINTIPO") { GridLookUpEditNombreRubro.DataSource = null; gridView.SetFocusedRowCellValue(PREIdTipoRubro, infoTipo.IdTipoRubro); } gridView.SetFocusedRowCellValue(PREIdTipoRubro, infoTipo.IdTipoRubro); gridView.SetFocusedRowCellValue(PRECodRubro, ""); gridView.SetFocusedRowCellValue(PRENombreRubro, ""); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); } }
private void gridTipoRubro_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e) { try { infoTipo = GetSelectedRowTIPO((DevExpress.XtraGrid.Views.Grid.GridView)sender); if (infoTipo.IdTipoRubro == "CLIENT") { } gridView.SetFocusedRowCellValue(PREIdTipoRubro, infoTipo.IdTipoRubro); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); } }