Commit 8803ec4f authored by vkadam's avatar vkadam

Changes for loc code transfer. Add function in sql (fn_getquarloc).


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97202 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 614ed5ed
...@@ -233,14 +233,29 @@ QcOdrProvisionalReleaseConfLocal, QcOdrProvisionalReleaseConfRemote ...@@ -233,14 +233,29 @@ QcOdrProvisionalReleaseConfLocal, QcOdrProvisionalReleaseConfRemote
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("Location code from &&&&&&&&&:- "+locCodeFrm); sql = "select fn_getquarloc(?) as locCodTo from dual;";
locCodeTo=locCodeFrm+"Q"; //Generate Location To pstmt = conn.prepareStatement(sql);
System.out.println("Location code to &&&&&&&&&&&:- "+locCodeTo); pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
if (rs.next())
{
locCodeTo = checkNull(rs.getString("locCodTo").trim());
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
// System.out.println("Location code from &&&&&&&&&:- "+locCodeFrm);
// locCodeTo=locCodeFrm+"Q"; //Generate Location To
// System.out.println("Location code to &&&&&&&&&&&:- "+locCodeTo);
System.out.println("TransQUANTITY before :-"+trnfQty); System.out.println("TransQUANTITY before :-"+trnfQty);
System.out.println("QUANTITY before :-"+quantity); System.out.println("QUANTITY before :-"+quantity);
trnfQty=trnfQty==null?"0":trnfQty; trnfQty=trnfQty==null?"0":trnfQty;
quantity=quantity==null?"0":quantity; quantity=quantity==null?"0":quantity;
locCodeTo=locCodeTo==null?"":locCodeTo;
System.out.println("TransQUANTITY after :-"+trnfQty); System.out.println("TransQUANTITY after :-"+trnfQty);
System.out.println("QUANTITY after :-"+quantity); System.out.println("QUANTITY after :-"+quantity);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment