[ 1842516 ] 2pack do not Import SubReport

- Merge fix from 350 branch.
This commit is contained in:
Heng Sin Low 2007-12-13 07:50:48 +00:00
parent 2da6fff06e
commit 905c4f9187
1 changed files with 12 additions and 3 deletions

View File

@ -77,9 +77,7 @@ public class PrintFormatItemElementHandler extends AbstractElementHandler {
return; return;
} }
m_PrintFormatItem.setAD_PrintFormat_ID(id); m_PrintFormatItem.setAD_PrintFormat_ID(id);
// name = atts.getValue("ADPrintFormatChildNameID");
// id = get_IDWithColumn("AD_PrintFormat", "Name", name);
// m_PrintFormatItem.setAD_PrintFormatChild_ID(id);
name = atts.getValue("ADTableNameID"); name = atts.getValue("ADTableNameID");
int tableid = get_IDWithColumn(ctx, "AD_Table", "TableName", name); int tableid = get_IDWithColumn(ctx, "AD_Table", "TableName", name);
name = atts.getValue("ADColumnNameID"); name = atts.getValue("ADColumnNameID");
@ -87,6 +85,17 @@ public class PrintFormatItemElementHandler extends AbstractElementHandler {
"AD_Table", tableid); "AD_Table", tableid);
if (id > 0) if (id > 0)
m_PrintFormatItem.setAD_Column_ID(id); m_PrintFormatItem.setAD_Column_ID(id);
name = atts.getValue("ADPrintFormatChildNameID");
if (name != null && name.trim().length() > 0) {
id = get_IDWithColumn(ctx, "AD_PrintFormat", "Name", name);
if (id <= 0) {
element.defer = true;
element.unresolved = "AD_PrintFormat: " + name;
return;
}
m_PrintFormatItem.setAD_PrintFormatChild_ID(id);
}
name = atts.getValue("ADPrintGraphID"); name = atts.getValue("ADPrintGraphID");
if (name != null && name.trim().length() > 0) { if (name != null && name.trim().length() > 0) {