IDEMPIERE-2479:Printformat, Surpress Repeats doesnt works for HTML and XLS
include format override main format
This commit is contained in:
parent
9f8a14d79f
commit
3c6e87f564
|
@ -632,7 +632,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
|
||||||
thead thead = new thead();
|
thead thead = new thead();
|
||||||
tbody tbody = new tbody();
|
tbody tbody = new tbody();
|
||||||
|
|
||||||
Boolean [] colSuppressRepeats = m_layout == null ? LayoutEngine.getColSuppressRepeats(m_printFormat):m_layout.colSuppressRepeats;
|
Boolean [] colSuppressRepeats = m_layout == null || m_layout.colSuppressRepeats == null? LayoutEngine.getColSuppressRepeats(m_printFormat):m_layout.colSuppressRepeats;
|
||||||
Object [] preValues = new Object [colSuppressRepeats.length];
|
Object [] preValues = new Object [colSuppressRepeats.length];
|
||||||
int printColIndex = -1;
|
int printColIndex = -1;
|
||||||
// for all rows (-1 = header row)
|
// for all rows (-1 = header row)
|
||||||
|
@ -902,7 +902,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
|
||||||
delimiter = '\t';
|
delimiter = '\t';
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Boolean [] colSuppressRepeats = m_layout == null ? LayoutEngine.getColSuppressRepeats(m_printFormat):m_layout.colSuppressRepeats;
|
Boolean [] colSuppressRepeats = m_layout == null || m_layout.colSuppressRepeats == null? LayoutEngine.getColSuppressRepeats(m_printFormat):m_layout.colSuppressRepeats;
|
||||||
Object [] preValues = new Object [colSuppressRepeats.length];
|
Object [] preValues = new Object [colSuppressRepeats.length];
|
||||||
int printColIndex = -1;
|
int printColIndex = -1;
|
||||||
// for all rows (-1 = header row)
|
// for all rows (-1 = header row)
|
||||||
|
@ -1234,7 +1234,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
|
||||||
public void createXLS(File outFile, Language language)
|
public void createXLS(File outFile, Language language)
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
Boolean [] colSuppressRepeats = m_layout == null ? LayoutEngine.getColSuppressRepeats(m_printFormat):m_layout.colSuppressRepeats;
|
Boolean [] colSuppressRepeats = m_layout == null || m_layout.colSuppressRepeats == null? LayoutEngine.getColSuppressRepeats(m_printFormat):m_layout.colSuppressRepeats;
|
||||||
PrintDataExcelExporter exp = new PrintDataExcelExporter(getPrintData(), getPrintFormat(), colSuppressRepeats);
|
PrintDataExcelExporter exp = new PrintDataExcelExporter(getPrintData(), getPrintFormat(), colSuppressRepeats);
|
||||||
exp.export(outFile, language);
|
exp.export(outFile, language);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1606,7 +1606,7 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
||||||
int[] columnMaxWidth = new int[columnCount];
|
int[] columnMaxWidth = new int[columnCount];
|
||||||
int[] columnMaxHeight = new int[columnCount];
|
int[] columnMaxHeight = new int[columnCount];
|
||||||
boolean[] fixedWidth = new boolean [columnCount];
|
boolean[] fixedWidth = new boolean [columnCount];
|
||||||
colSuppressRepeats = new Boolean[columnCount];
|
Boolean [] colSuppressRepeats = new Boolean[columnCount];
|
||||||
String[] columnJustification = new String[columnCount];
|
String[] columnJustification = new String[columnCount];
|
||||||
HashMap<Integer,Integer> additionalLines = new HashMap<Integer,Integer>();
|
HashMap<Integer,Integer> additionalLines = new HashMap<Integer,Integer>();
|
||||||
|
|
||||||
|
@ -1781,6 +1781,9 @@ public class LayoutEngine implements Pageable, Printable, Doc
|
||||||
table.layout(0,0,false, MPrintFormatItem.FIELDALIGNMENTTYPE_LeadingLeft);
|
table.layout(0,0,false, MPrintFormatItem.FIELDALIGNMENTTYPE_LeadingLeft);
|
||||||
if (m_tableElement == null)
|
if (m_tableElement == null)
|
||||||
m_tableElement = table;
|
m_tableElement = table;
|
||||||
|
|
||||||
|
if (format == m_format)
|
||||||
|
this.colSuppressRepeats = colSuppressRepeats;
|
||||||
return table;
|
return table;
|
||||||
} // layoutTable
|
} // layoutTable
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue