Commit d6c79104 authored by agaikwad's avatar agaikwad

method 'gbfCreateSordPord' set the line no with spaces


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105188 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 612ba9bb
...@@ -2232,6 +2232,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por ...@@ -2232,6 +2232,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
Date pordDate= null ,tranDate = null; Date pordDate= null ,tranDate = null;
PreparedStatement pstmt = null,pstmt1=null; PreparedStatement pstmt = null,pstmt1=null;
int cnt = 0,lineNo = 0; int cnt = 0,lineNo = 0;
String lineNoStr="";
double exchRateComm = 0.0 ,exchRatefrt = 0.0 ,exchRate = 0.0,rate = 0.0 ,discount= 0.0 , double exchRateComm = 0.0 ,exchRatefrt = 0.0 ,exchRate = 0.0,rate = 0.0 ,discount= 0.0 ,
rateClg= 0.0 ,quantityFc = 0.0 ,quantity = 0.0 , rateConv= 0.0 , rateDiff= 0.0 ,taxAmt = 0.0 , totAmt = 0.0 , rateClg= 0.0 ,quantityFc = 0.0 ,quantity = 0.0 , rateConv= 0.0 , rateDiff= 0.0 ,taxAmt = 0.0 , totAmt = 0.0 ,
totAmtHdr = 0.0,taxAmtHdr = 0.0,ordAmtHdr = 0.0; totAmtHdr = 0.0,taxAmtHdr = 0.0,ordAmtHdr = 0.0;
...@@ -2804,7 +2805,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por ...@@ -2804,7 +2805,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
pstmt1.setString(1,pOrder ); pstmt1.setString(1,pOrder );
rs1 = pstmt1.executeQuery(); rs1 = pstmt1.executeQuery();
StringBuffer xmlBuffDet = new StringBuffer(); StringBuffer xmlBuffDet = new StringBuffer();
lineNo = 1; //lineNo = 1;
while(rs1.next()) while(rs1.next())
{ {
...@@ -2825,13 +2826,19 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por ...@@ -2825,13 +2826,19 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
taxClass = checkNull(rs1.getString("tax_class")); taxClass = checkNull(rs1.getString("tax_class"));
taxEnv = checkNull(rs1.getString("tax_env")); taxEnv = checkNull(rs1.getString("tax_env"));
lineNo=lineNo+1;
lineNoStr="";
lineNoStr = " "+lineNo;
lineNoStr = lineNoStr.substring(lineNoStr.length()-3,lineNoStr.length());
System.out.println("lineNo["+lineNo+"]");
System.out.println("lineNoStr["+lineNoStr+"]");
System.out.println("itemCode"+itemCode+"quantity"+quantity+"unit"+unit+"rate"+rate+"discount"+discount+ System.out.println("itemCode"+itemCode+"quantity"+quantity+"unit"+unit+"rate"+rate+"discount"+discount+
"linenopord"+linenopord+"linenosord"+linenosord+"specificinstr"+specificinstr+"rateClg"+rateClg "linenopord"+linenopord+"linenosord"+linenosord+"specificinstr"+specificinstr+"rateClg"+rateClg
+"taxChap"+taxChap+"taxClass"+taxClass+"taxEnv"+taxEnv); +"taxChap"+taxChap+"taxClass"+taxClass+"taxEnv"+taxEnv);
xmlBuffDet.append("<Detail2 dbID='' domID=\""+lineNo +"\" objName=\"sorder\" objContext=\"2\">"); xmlBuffDet.append("<Detail2 dbID='' domID=\""+lineNo +"\" objName=\"sorder\" objContext=\"2\">");
xmlBuffDet.append("<attribute pkNames=\"\" selected=\"N\" updateFlag=\"A\" status=\"N\" />"); xmlBuffDet.append("<attribute pkNames=\"\" selected=\"N\" updateFlag=\"A\" status=\"N\" />");
xmlBuffDet.append("<sale_order/>"); xmlBuffDet.append("<sale_order/>");
xmlBuffDet.append("<line_no><![CDATA["+lineNo +"]]></line_no>"); xmlBuffDet.append("<line_no><![CDATA["+lineNoStr +"]]></line_no>");
xmlBuffDet.append("<specific_instr><![CDATA["+specificinstr +"]]></specific_instr>"); xmlBuffDet.append("<specific_instr><![CDATA["+specificinstr +"]]></specific_instr>");
xmlBuffDet.append("<item_code__ord><![CDATA["+itemCode +"]]></item_code__ord>"); xmlBuffDet.append("<item_code__ord><![CDATA["+itemCode +"]]></item_code__ord>");
xmlBuffDet.append("<item_code><![CDATA["+itemCode +"]]></item_code>"); xmlBuffDet.append("<item_code><![CDATA["+itemCode +"]]></item_code>");
......
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