private string GetNameTipoOperacion(int id, ref CatalogoModel model) { string name = string.Empty; if (model != null) { CatalogoDetalleModel cataloDetalle = model.SAX_CATALOGO_DETALLE.Where(x => x.CD_ESTATUS == id).FirstOrDefault(); if (cataloDetalle != null) { name = cataloDetalle.CD_VALOR; } } return(name); }
private string GetNameCodigo(string id, string Tabla) { var model = catalagoService.GetAll(c => c.CA_TABLA == Tabla, null, c => c.SAX_CATALOGO_DETALLE).FirstOrDefault(); string name = string.Empty; if (model != null) { CatalogoDetalleModel cataloDetalle = model.SAX_CATALOGO_DETALLE.Where(x => x.CD_ESTATUS.ToString() == id).FirstOrDefault(); if (cataloDetalle != null) { name = cataloDetalle.CD_VALOR; } } return(name); }
private string GetNameTipoOperacion(string id, ref CatalogoModel model, string UsuarioMod) { string name = string.Empty; string anulacion = "ANULACIÓN DE "; if (model != null) { CatalogoDetalleModel cataloDetalle = model.SAX_CATALOGO_DETALLE.Where(x => x.CD_ESTATUS.ToString() == id).FirstOrDefault(); if (cataloDetalle != null) { name = cataloDetalle.CD_VALOR; } if (UsuarioMod != null && UsuarioMod != "No") { name = anulacion + name; } } return(name); }