BF [ 2865527 ] 2pack is exporting printformats from other clients

https://sourceforge.net/tracker/?func=detail&aid=2865527&group_id=176962&atid=879332
This commit is contained in:
teo_sarca 2009-09-24 05:24:52 +00:00
parent 9276db4193
commit eef558327a
1 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ public class ReportViewElementHandler extends AbstractElementHandler {
String Object_Status = null; String Object_Status = null;
Attributes atts = element.attributes; Attributes atts = element.attributes;
log.info(elementValue + " " + atts.getValue("ADReportviewnameID")); log.info(elementValue + " " + atts.getValue("ADReportviewnameID"));
String entitytype = atts.getValue("EntityType"); //String entitytype = atts.getValue("EntityType");
String name = atts.getValue("ADReportviewnameID"); String name = atts.getValue("ADReportviewnameID");
int id = get_ID(ctx, "AD_ReportView", name); int id = get_ID(ctx, "AD_ReportView", name);
@ -138,8 +138,8 @@ public class ReportViewElementHandler extends AbstractElementHandler {
document.startElement("", "", "reportview", atts); document.startElement("", "", "reportview", atts);
document.endElement("", "", "reportview"); document.endElement("", "", "reportview");
String sql1 = "SELECT * FROM AD_Printformat WHERE AD_Reportview_ID= " String sql1 = "SELECT * FROM AD_Printformat WHERE AD_Reportview_ID="+AD_ReportView_ID
+ AD_ReportView_ID; +" AND AD_Client_ID="+Env.getAD_Client_ID(ctx);
PreparedStatement pstmt1 = null; PreparedStatement pstmt1 = null;
pstmt1 = DB.prepareStatement(sql1, getTrxName(ctx)); pstmt1 = DB.prepareStatement(sql1, getTrxName(ctx));
try { try {