IDEMPIERE-1871 Inactive records should be distinguishable from Active records in grid view / implement the same if current row is inactive

This commit is contained in:
Carlos Ruiz 2014-04-02 11:24:43 -05:00
parent 8d6a31defd
commit 63b3aac408
2 changed files with 23 additions and 0 deletions

View File

@ -511,6 +511,20 @@ public class GridTabRowRenderer implements RowRenderer<Object[]>, RowRendererExt
} }
String script = "jq('#"+row.getUuid()+"').addClass('highlight').siblings().removeClass('highlight')"; String script = "jq('#"+row.getUuid()+"').addClass('highlight').siblings().removeClass('highlight')";
Boolean isActive = null;
Object isActiveValue = gridTab.getValue(currentRowIndex, "IsActive");
if (isActiveValue != null) {
if ("true".equalsIgnoreCase(isActiveValue.toString())) {
isActive = Boolean.TRUE;
} else {
isActive = Boolean.FALSE;
}
}
if (isActive != null && !isActive.booleanValue()) {
script = "jq('#"+row.getUuid()+"').addClass('grid-inactive-row').siblings().removeClass('highlight')";
}
Clients.response(new AuScript(script)); Clients.response(new AuScript(script));
} }

View File

@ -927,6 +927,15 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
background-image: none !important; background-image: none !important;
background-color: #DCDAD4 !important; background-color: #DCDAD4 !important;
} }
.z-grid tbody tr.grid-inactive-row td.row-indicator-seld {
background-color: transparent !important;
background-image: url(${c:encodeURL('/theme/default/images/EditRecord16.png')}) !important;
background-position: center;
background-repeat: no-repeat;
background-size: 16px 16px;
cursor: pointer;
}
.z-grid tbody tr.highlight td.z-cell { .z-grid tbody tr.highlight td.z-cell {
background-color: #FFFFCC !important; background-color: #FFFFCC !important;