@Override
protected void beforeExcutQuery(EntityViewInfo arg0)
{
if(arg0!=null && arg0.getFilter()!=null)
{
FilterInfo filter = new FilterInfo();
filter.getFilterItems().add(new FilterItemInfo("isFromContract",1,CompareType.EQUALS));
try {
arg0.getFilter().mergeFilter(filter, "AND");
} catch (BOSException e) {
e.printStackTrace();
}
}
super.beforeExcutQuery(arg0);
}