public ViewRowImpl createInstanceFromResultSet(QueryCollection queryCollection, ResultSet resultSet) {
ViewRowImpl viewRowImpl = super.createInstanceFromResultSet(queryCollection, resultSet);
Map pageFlowScope = ADFContext.getCurrent().getPageFlowScope();
String compCode = (String)pageFlowScope.get("loginCompCode");
String stkunit = (String)viewRowImpl.getAttribute("StkUnit");
String sloc="ALL";
String prodcode = (String)viewRowImpl.getAttribute("ProdCode");
String atr1Code = (String)viewRowImpl.getAttribute("Atr1Code");
String atr2Code = (String)viewRowImpl.getAttribute("Atr2Code");
String tAtr1Code = atr1Code ==null?"ALL":atr1Code;
String tAtr2Code = atr2Code ==null?"ALL":atr2Code;
String obtype ="C";
System.out.println("**compCode** "+compCode+" "+stkunit+" "+sloc+" "+prodcode+" "+tAtr1Code+" "+tAtr2Code+" "+obtype);
BigDecimal avbQty = getStockOfProd(compCode,stkunit,sloc,prodcode,tAtr1Code,tAtr2Code,obtype);
System.out.println("at voimpl avbQty: "+avbQty);
viewRowImpl.setAttribute("TAvbQty", avbQty);
return viewRowImpl;
}
ViewRowImpl viewRowImpl = super.createInstanceFromResultSet(queryCollection, resultSet);
Map pageFlowScope = ADFContext.getCurrent().getPageFlowScope();
String compCode = (String)pageFlowScope.get("loginCompCode");
String stkunit = (String)viewRowImpl.getAttribute("StkUnit");
String sloc="ALL";
String prodcode = (String)viewRowImpl.getAttribute("ProdCode");
String atr1Code = (String)viewRowImpl.getAttribute("Atr1Code");
String atr2Code = (String)viewRowImpl.getAttribute("Atr2Code");
String tAtr1Code = atr1Code ==null?"ALL":atr1Code;
String tAtr2Code = atr2Code ==null?"ALL":atr2Code;
String obtype ="C";
System.out.println("**compCode** "+compCode+" "+stkunit+" "+sloc+" "+prodcode+" "+tAtr1Code+" "+tAtr2Code+" "+obtype);
BigDecimal avbQty = getStockOfProd(compCode,stkunit,sloc,prodcode,tAtr1Code,tAtr2Code,obtype);
System.out.println("at voimpl avbQty: "+avbQty);
viewRowImpl.setAttribute("TAvbQty", avbQty);
return viewRowImpl;
}
No comments:
Post a Comment