Commit 240d0c48 authored by caluka's avatar caluka

position description set from function and position code set editable


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100074 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 762b3189
...@@ -119,7 +119,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -119,7 +119,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
String custType="",custType1=""; String custType="",custType1="";
String fromDateStr ="",toDateStr="",custTypeDom=""; String fromDateStr ="",toDateStr="",custTypeDom="";
String loginSiteCode="",periodStatus="",editSatus=""; String loginSiteCode="",periodStatus="",editSatus="";
String salePer="",countryCode1="",empCode=""; String salePer="",countryCode1="",empCode="",positionCode="";
int pohelpCnt=0,empCnt=0; int pohelpCnt=0,empCnt=0;
int ctr = 0,currentFormNo=0,cnt=0,countCustRef=0,refSerCnt=0,childNodeListLength=0,invCnt=0,clStockInteger=0; int ctr = 0,currentFormNo=0,cnt=0,countCustRef=0,refSerCnt=0,childNodeListLength=0,invCnt=0,clStockInteger=0;
int custstockCnt=0,custstockCnt1=0; int custstockCnt=0,custstockCnt1=0;
...@@ -361,6 +361,8 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -361,6 +361,8 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
System.out.println("custCode :"+custCode); System.out.println("custCode :"+custCode);
itemSer = this.genericUtility.getColumnValue("item_ser", dom); itemSer = this.genericUtility.getColumnValue("item_ser", dom);
System.out.println("itemSer :"+itemSer); System.out.println("itemSer :"+itemSer);
positionCode = this.genericUtility.getColumnValue("pos_code", dom);
System.out.println("positionCode :"+positionCode);
salePer = this.genericUtility.getColumnValue("sale_per", dom); salePer = this.genericUtility.getColumnValue("sale_per", dom);
...@@ -465,7 +467,30 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -465,7 +467,30 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
}else }else
{ {
sql="select count(*) " +
sql="select count(*) from org_structure org,org_structure_cust orgcust,customer cust ," +
"station stn,customer_series custser,state state where org.version_id=orgcust.version_id " +
"and org.pos_code=orgcust.pos_code and org.table_no=orgcust.table_no " +
"and orgcust.cust_code=cust.cust_code and cust.stan_code=stn.stan_code" +
" and custser.cust_code=cust.cust_code and custser.black_listed !='Y' " +
"and custser.item_ser=org.table_no AND orgcust.pos_code =? " +
"AND org.table_no =? " +
"and org.version_id in (select max(version_id) from org_structure ) " +
" AND (cust.SH_NAME LIKE upper(?) or cust.cust_code LIKE upper(?) " +
"OR cust.cust_name LIKE upper(?)) " +
"and state.count_code=? " +
"and state.state_code=stn.state_code " +
"order by stn.descr asc";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,positionCode);
pstmt.setString(2,itemSer);
pstmt.setString(3,custCode+"%");
pstmt.setString(4,custCode+"%");
pstmt.setString(5,custCode+"%");
pstmt.setString(6,countryCode1);
rs = pstmt.executeQuery();
/* sql="select count(*) " +
"from org_structure org,org_structure_cust orgcust,customer cust ,station stn,customer_series custser," + "from org_structure org,org_structure_cust orgcust,customer cust ,station stn,customer_series custser," +
"state state where org.version_id=orgcust.version_id and " + "state state where org.version_id=orgcust.version_id and " +
"org.pos_code=orgcust.pos_code and org.table_no=orgcust.table_no and " + "org.pos_code=orgcust.pos_code and org.table_no=orgcust.table_no and " +
...@@ -482,12 +507,9 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -482,12 +507,9 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
pstmt.setString(1,salePer); pstmt.setString(1,salePer);
pstmt.setString(2,salePer); pstmt.setString(2,salePer);
pstmt.setString(3,salePer); pstmt.setString(3,salePer);
//pstmt.setString(4,salePer);
//pstmt.setTimestamp(4,FromDate);
//pstmt.setTimestamp(5,ToDate);
pstmt.setString(4,countryCode1); pstmt.setString(4,countryCode1);
pstmt.setString(5,custCode); pstmt.setString(5,custCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();*/
if (rs.next()) if (rs.next())
{ {
pohelpCnt = rs.getInt(1); pohelpCnt = rs.getInt(1);
...@@ -541,9 +563,9 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -541,9 +563,9 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
empCode = this.genericUtility.getColumnValue("emp_code",dom); empCode = this.genericUtility.getColumnValue("emp_code",dom);
if(empCode == null || empCode.trim().length()==0) if(empCode == null || empCode.trim().length()==0)
{ {
errCode = "VTEMPCDNUL"; /*errCode = "VTEMPCDNUL";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());*/
} }
else else
{ {
...@@ -569,6 +591,11 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -569,6 +591,11 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
} }
if(childNodeName.equalsIgnoreCase("pos_code"))
{
positionCode = this.genericUtility.getColumnValue("pos_code",dom);
System.out.println("positionCode validation");
}
} }
break; break;
...@@ -1122,6 +1149,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1122,6 +1149,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
String toDateStr="",fromDateStr="",sretunTranId="",tranIdItem="",invoiceIdStr=""; String toDateStr="",fromDateStr="",sretunTranId="",tranIdItem="",invoiceIdStr="";
String startForm="", netAmtFinal="",netAmtStr="",countryIemSer="",priceList=""; String startForm="", netAmtFinal="",netAmtStr="",countryIemSer="",priceList="";
String confirmed="",status="",errString="",empCode="",positionCode="",empName=""; String confirmed="",status="",errString="",empCode="",positionCode="",empName="";
String positionDescr="";
double opStockLast=0.0,sales=0.0,transitQty=0.0,salesLast=0.0,receiptLast=0.0,clStockLast=0.0,returnLast=0.0,rateLast=0.0,salesQty=0.0,clStock=0.0; double opStockLast=0.0,sales=0.0,transitQty=0.0,salesLast=0.0,receiptLast=0.0,clStockLast=0.0,returnLast=0.0,rateLast=0.0,salesQty=0.0,clStock=0.0;
double netAmt=0.0,opStkItem=0.0,retQty = 0.0,rcpQty=0.0,rate=0.0,adjQty=0.0,adhocQty=0.0,totRcpQtyAll=0.0; double netAmt=0.0,opStkItem=0.0,retQty = 0.0,rcpQty=0.0,rate=0.0,adjQty=0.0,adhocQty=0.0,totRcpQtyAll=0.0;
double sretQty = 0.0,replQty=0.0,rcpQtyBon=0.0,primarySales=0.0,transitQtyAll=0.0; double sretQty = 0.0,replQty=0.0,rcpQtyBon=0.0,primarySales=0.0,transitQtyAll=0.0;
...@@ -1166,7 +1194,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1166,7 +1194,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
Timestamp tranDtTstmp = null,frmDateTstmp=null,toDateTstmp=null,orderDtTstmp=null; Timestamp tranDtTstmp = null,frmDateTstmp=null,toDateTstmp=null,orderDtTstmp=null;
Timestamp fromDatetmstmp=null,previousDay=null,frmDate1=null; Timestamp fromDatetmstmp=null,previousDay=null,frmDate1=null;
Timestamp thirdMonthDay=null,thirdMonthFrDt=null; Timestamp thirdMonthDay=null,thirdMonthFrDt=null;
Boolean isClStockInt=true,isDouble= true; Boolean isClStockInt=true,isDouble= true,isTableNo=false,isCustomer=false;
SimpleDateFormat sdf; SimpleDateFormat sdf;
ArrayList defData = null; ArrayList defData = null;
windowName = (new StringBuilder("w_")).append(getObjName(dom, objContext)).toString(); windowName = (new StringBuilder("w_")).append(getObjName(dom, objContext)).toString();
...@@ -1245,7 +1273,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1245,7 +1273,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
System.out.println("countryCode@@@@@>>>"+countryCode); System.out.println("countryCode@@@@@>>>"+countryCode);
// Added By Chandrashekar - Suggested by Prajyot - Start // Added By Chandrashekar - Suggested by Prajyot - Start
String sqlFirstDefData = " SELECT CS.EMP_CODE,CS.CUST_CODE CUST_CODE, C.CUST_NAME CUST_NAME, C.CUST_TYPE CUST_TYPE, C.ORDER_TYPE ORDER_TYPE, CS.SITE_CODE SITE_CODE," + String sqlFirstDefData = " SELECT CS.POS_CODE,CS.EMP_CODE,CS.CUST_CODE CUST_CODE, C.CUST_NAME CUST_NAME, C.CUST_TYPE CUST_TYPE, C.ORDER_TYPE ORDER_TYPE, CS.SITE_CODE SITE_CODE," +
" CS.FROM_DATE FROM_DATE, CS.TO_DATE TO_DATE, CS.ITEM_SER ITEM_SER, CS.STMT_DATE STMT_DATE, CS.PRD_CODE PRD_CODE,CS.TRAN_DATE TRAN_DATE,CS.TRAN_ID__LAST TRAN_ID__LAST,C.STAN_CODE STAN_CODE " + " CS.FROM_DATE FROM_DATE, CS.TO_DATE TO_DATE, CS.ITEM_SER ITEM_SER, CS.STMT_DATE STMT_DATE, CS.PRD_CODE PRD_CODE,CS.TRAN_DATE TRAN_DATE,CS.TRAN_ID__LAST TRAN_ID__LAST,C.STAN_CODE STAN_CODE " +
" FROM CUST_STOCK CS , CUSTOMER C " + " FROM CUST_STOCK CS , CUSTOMER C " +
" WHERE CS.CUST_CODE = C.CUST_CODE AND CS.TRAN_ID = ? " ; " WHERE CS.CUST_CODE = C.CUST_CODE AND CS.TRAN_ID = ? " ;
...@@ -1302,9 +1330,10 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1302,9 +1330,10 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
System.out.println("tranDateEdit>>>>"+tranDateEdit); System.out.println("tranDateEdit>>>>"+tranDateEdit);
System.out.println("print@@@@@@@@"+sdf.format(tranDateEdit).toString()); System.out.println("print@@@@@@@@"+sdf.format(tranDateEdit).toString());
sql= " select FR_DATE,TO_DATE from period_tbl where " sql= " select FR_DATE,TO_DATE from period_tbl where "
+ "prd_code = ? "; + "prd_code = ? and prd_tblno =? ";
pstmt1 = conn.prepareStatement(sql); pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, rs.getString("PRD_CODE")); pstmt1.setString(1, rs.getString("PRD_CODE"));
pstmt1.setString(2, countryCode.trim()+"_"+rs.getString("ITEM_SER").trim());
rs1 = pstmt1.executeQuery(); rs1 = pstmt1.executeQuery();
if(rs1.next()) if(rs1.next())
{ {
...@@ -1392,6 +1421,18 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1392,6 +1421,18 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
pstmt1 = null; pstmt1 = null;
} }
sql = "select FN_GET_POSCODE_DESCR(?) as descr from dual ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, rs.getString("POS_CODE"));
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
positionDescr = checkNull(rs1.getString("descr"));
}
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
/* /*
valueXmlString.append("<cust_code>").append("<![CDATA["+ rs.getString("CUST_CODE") +"]]>").append("</cust_code>"); valueXmlString.append("<cust_code>").append("<![CDATA["+ rs.getString("CUST_CODE") +"]]>").append("</cust_code>");
valueXmlString.append("<cust_name>").append("<![CDATA["+ rs.getString("CUST_NAME") +"]]>").append("</cust_name>"); valueXmlString.append("<cust_name>").append("<![CDATA["+ rs.getString("CUST_NAME") +"]]>").append("</cust_name>");
...@@ -1441,7 +1482,9 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1441,7 +1482,9 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
valueXmlString.append("<startForm>").append("<![CDATA["+startForm +"]]>").append("</startForm>"); valueXmlString.append("<startForm>").append("<![CDATA["+startForm +"]]>").append("</startForm>");
valueXmlString.append("<country_code>").append("<![CDATA["+countryCode +"]]>").append("</country_code>"); valueXmlString.append("<country_code>").append("<![CDATA["+countryCode +"]]>").append("</country_code>");
valueXmlString.append("<emp_code protect='1'>").append("<![CDATA["+empCode+"]]>").append("</emp_code>"); valueXmlString.append("<emp_code protect='1'>").append("<![CDATA["+empCode+"]]>").append("</emp_code>");
valueXmlString.append("<pos_code protect='1'>").append("<![CDATA["+rs.getString("POS_CODE")+"]]>").append("</pos_code>");
valueXmlString.append("<emp_name>").append("<![CDATA["+empName+"]]>").append("</emp_name>"); valueXmlString.append("<emp_name>").append("<![CDATA["+empName+"]]>").append("</emp_name>");
valueXmlString.append("<position_descr>").append("<![CDATA["+positionDescr+"]]>").append("</position_descr>");
//country_code //country_code
} }
...@@ -1457,10 +1500,56 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1457,10 +1500,56 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
System.out.println("************************ADD mode @@@@@@@@@@@@@@@@@@@@@22"); System.out.println("************************ADD mode @@@@@@@@@@@@@@@@@@@@@22");
loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" )); loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
System.out.println("loginSite :"+loginSite); System.out.println("loginSite :"+loginSite);
//Start added by chandrashekar on 25-jan-2016
sql = "select emp_fname||' '||emp_mname||' '||emp_lname as name,pos_code from employee where emp_code=? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, spCode);
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
empName = checkNull(rs1.getString("name"));
positionCode = checkNull(rs1.getString("pos_code")).trim();
System.out.println("empName edit :" + empName);
}
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
sql = "select table_no from org_structure where pos_code=? and emp_code=? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, positionCode);
pstmt1.setString(2, spCode);
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
itemSer = checkNull(rs1.getString("table_no"));
}
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
sql = "select FN_GET_POSCODE_DESCR(?) as descr from dual ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, positionCode);
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
positionDescr = checkNull(rs1.getString("descr"));
}
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
// End added by chandrashekar on 25-jan-2016
//Start added by chandrashekar on 26-10-2015 //Start added by chandrashekar on 26-10-2015
sql = "select item_ser from department where dept_code in(select dept_code from employee where emp_code=? )"; /*sql = "select item_ser from department where dept_code in(select dept_code from employee where emp_code=? )";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, spCode); pstmt.setString(1, spCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -1472,8 +1561,8 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1472,8 +1561,8 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null;*/
pstmt = null;
sql= " select descr from itemser where item_ser = ?"; sql= " select descr from itemser where item_ser = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemSer); pstmt.setString(1, itemSer);
...@@ -1489,15 +1578,68 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1489,15 +1578,68 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
pstmt = null; pstmt = null;
countryIemSer=countryCode.trim()+"_"+itemSer.trim(); countryIemSer=countryCode.trim()+"_"+itemSer.trim();
System.out.println("countryIemSer@@@@@@@@@"+countryIemSer); System.out.println("countryIemSer@@@@@@@@@"+countryIemSer);
//Start added by chandrashekar on 18-jan-2016
sql = "SELECT fr_date,prd_code,to_date FROM period_tbl WHERE prd_tblno" +
" IN(SELECT PRD_TBLNO FROM PERIOD_APPL WHERE SITE_CODE=? AND REF_CODE=? AND PRD_TBLNO =? ) " +
"and CASE WHEN prd_closed IS NULL THEN 'N' ELSE prd_closed END='N' " ;
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginSiteCode);
pstmt.setString(2, countryIemSer);
pstmt.setString(3, countryIemSer);
rs = pstmt.executeQuery();
if (rs.next())
{
period = rs.getString("prd_code");
fromDate1 = rs.getDate("fr_date");
toDate1 = rs.getDate("to_date");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("fromDate1>>>>>>"+fromDate1);
System.out.println("toDate1>>>>>>"+toDate1);
SimpleDateFormat sdt = new SimpleDateFormat("dd-MMM-yyyy");
if(fromDate1 !=null)
{
fromDateStr = sdt.format(fromDate1.getTime());
}
if(toDate1 !=null)
{
toDateStr = sdt.format(toDate1.getTime());
}
System.out.println("fromDateStr>>>>"+fromDateStr);
System.out.println("toDateStr>>>>"+toDateStr);
sql= " select FR_DATE,TO_DATE from period_tbl where "
+ "prd_code = ? and prd_tblno=? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, period);
pstmt.setString(2, countryIemSer);
rs = pstmt.executeQuery();
if(rs.next())
{
FromDate = rs.getTimestamp("FR_DATE");
ToDate = rs.getTimestamp("TO_DATE");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
//End added by chandrashekar on 18-jan-2016
//Start Added by chandrshekar on 17-nov-2015 //Start Added by chandrshekar on 17-nov-2015
sql = "SELECT fr_date,prd_code FROM period_tbl WHERE prd_tblno" + /* sql = "SELECT fr_date,prd_code FROM period_tbl WHERE prd_tblno" +
" IN(SELECT PRD_TBLNO FROM PERIOD_APPL WHERE SITE_CODE=? AND REF_CODE=? AND PRD_TBLNO =? ) " + " IN(SELECT PRD_TBLNO FROM PERIOD_APPL WHERE SITE_CODE=? AND REF_CODE=? AND PRD_TBLNO =? ) " +
"and CASE WHEN prd_closed IS NULL THEN 'N' ELSE prd_closed END='N' " + "and CASE WHEN prd_closed IS NULL THEN 'N' ELSE prd_closed END='N' " +
"and ? between fr_date and to_date"; "and ? between fr_date and to_date";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginSiteCode); pstmt.setString(1, loginSiteCode);
//pstmt.setString(2, itemSer);
pstmt.setString(2, countryIemSer); pstmt.setString(2, countryIemSer);
pstmt.setString(3, countryIemSer); pstmt.setString(3, countryIemSer);
pstmt.setTimestamp(4, dbSysDate); pstmt.setTimestamp(4, dbSysDate);
...@@ -1522,7 +1664,6 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1522,7 +1664,6 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
"and CASE WHEN prd_closed IS NULL THEN 'N' ELSE prd_closed END='N'"; "and CASE WHEN prd_closed IS NULL THEN 'N' ELSE prd_closed END='N'";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, loginSiteCode); pstmt.setString(1, loginSiteCode);
//pstmt.setString(2, itemSer);
pstmt.setString(2, countryIemSer); pstmt.setString(2, countryIemSer);
pstmt.setString(3, countryIemSer); pstmt.setString(3, countryIemSer);
pstmt.setTimestamp(4, previousDay); pstmt.setTimestamp(4, previousDay);
...@@ -1567,21 +1708,9 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1567,21 +1708,9 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }*/
sql = "select emp_fname||' '||emp_mname||' '||emp_lname as name from employee where emp_code=? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, spCode);
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
empName = checkNull(rs1.getString("name"));
System.out.println("empName edit :" + empName);
}
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
/*valueXmlString.append("<Detail1 domID='1' objContext='1'>"); /*valueXmlString.append("<Detail1 domID='1' objContext='1'>");
valueXmlString.append("<sale_per>").append("<![CDATA["+spCode+"]]>").append("</sale_per>"); valueXmlString.append("<sale_per>").append("<![CDATA["+spCode+"]]>").append("</sale_per>");
valueXmlString.append("<tran_date>").append("<![CDATA[]]>").append("</tran_date>"); valueXmlString.append("<tran_date>").append("<![CDATA[]]>").append("</tran_date>");
...@@ -1624,7 +1753,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1624,7 +1753,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
valueXmlString.append("<to_date protect='1'>").append("<![CDATA[]]>").append("</to_date>"); valueXmlString.append("<to_date protect='1'>").append("<![CDATA[]]>").append("</to_date>");
} }
valueXmlString.append("<itemser_descr protect='1'>").append("<![CDATA[" + itemSerName + "]]>").append("</itemser_descr>"); valueXmlString.append("<itemser_descr protect='1'>").append("<![CDATA[" + itemSerName + "]]>").append("</itemser_descr>");
valueXmlString.append("<site_code>").append("<![CDATA[" + siteCode + "]]>").append("</site_code>"); valueXmlString.append("<site_code>").append("<![CDATA[" + loginSite + "]]>").append("</site_code>");
valueXmlString.append("<tran_id__last>").append("<![CDATA[" + tranIdLast + "]]>").append("</tran_id__last>"); valueXmlString.append("<tran_id__last>").append("<![CDATA[" + tranIdLast + "]]>").append("</tran_id__last>");
valueXmlString.append("<sordertype_descr protect='1'>").append("<![CDATA[" + orderTypeName + "]]>").append("</sordertype_descr>"); valueXmlString.append("<sordertype_descr protect='1'>").append("<![CDATA[" + orderTypeName + "]]>").append("</sordertype_descr>");
valueXmlString.append("<stmt_date>").append("<![CDATA[" + stmtDateStr + "]]>").append("</stmt_date>"); valueXmlString.append("<stmt_date>").append("<![CDATA[" + stmtDateStr + "]]>").append("</stmt_date>");
...@@ -1646,9 +1775,10 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1646,9 +1775,10 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
valueXmlString.append("<prv_tran_id>").append("<![CDATA["+tranId +"]]>").append("</prv_tran_id>"); valueXmlString.append("<prv_tran_id>").append("<![CDATA["+tranId +"]]>").append("</prv_tran_id>");
valueXmlString.append("<startForm>").append("<![CDATA["+startForm +"]]>").append("</startForm>"); valueXmlString.append("<startForm>").append("<![CDATA["+startForm +"]]>").append("</startForm>");
valueXmlString.append("<country_code>").append("<![CDATA["+countryCode +"]]>").append("</country_code>"); valueXmlString.append("<country_code>").append("<![CDATA["+countryCode +"]]>").append("</country_code>");
valueXmlString.append("<emp_code >").append("<![CDATA["+spCode+"]]>").append("</emp_code>"); valueXmlString.append("<emp_code protect='1' >").append("<![CDATA["+spCode+"]]>").append("</emp_code>");
valueXmlString.append("<pos_code>").append("<![CDATA["+positionCode+"]]>").append("</pos_code>"); valueXmlString.append("<pos_code>").append("<![CDATA["+positionCode+"]]>").append("</pos_code>");
valueXmlString.append("<emp_name>").append("<![CDATA["+empName+"]]>").append("</emp_name>"); valueXmlString.append("<emp_name>").append("<![CDATA["+empName+"]]>").append("</emp_name>");
valueXmlString.append("<position_descr>").append("<![CDATA["+positionDescr+"]]>").append("</position_descr>");
valueXmlString.append("</Detail1>\r\n"); valueXmlString.append("</Detail1>\r\n");
} }
...@@ -1662,8 +1792,10 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1662,8 +1792,10 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
spCode= genericUtility.getColumnValue("sale_per", dom); spCode= genericUtility.getColumnValue("sale_per", dom);
System.out.println("spCode :"+spCode); System.out.println("spCode :"+spCode);
stmtDateStr= genericUtility.getColumnValue("stmt_date", dom); stmtDateStr= genericUtility.getColumnValue("stmt_date", dom);
System.out.println("stmtDateStr :"+stmtDateStr); siteCode= genericUtility.getColumnValue("site_code", dom);
itemSer= genericUtility.getColumnValue("item_ser", dom);
//System.out.println("siteCode :"+siteCode);
positionCode = checkNull(genericUtility.getColumnValue("pos_code",dom));
empCode = checkNull(genericUtility.getColumnValue("emp_code",dom)); empCode = checkNull(genericUtility.getColumnValue("emp_code",dom));
spCode=empCode; spCode=empCode;
sql= " select cust_name,cust_type,order_type,STAN_CODE from customer where cust_code=? "; sql= " select cust_name,cust_type,order_type,STAN_CODE from customer where cust_code=? ";
...@@ -1676,6 +1808,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1676,6 +1808,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
custType=checkNull(rs.getString("cust_type")); custType=checkNull(rs.getString("cust_type"));
orderType=checkNull(rs.getString("order_type")); orderType=checkNull(rs.getString("order_type"));
stancode=checkNull(rs.getString("STAN_CODE")); stancode=checkNull(rs.getString("STAN_CODE"));
isCustomer=true;
} }
rs.close(); rs.close();
rs = null; rs = null;
...@@ -1714,7 +1847,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1714,7 +1847,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
pstmt = null; pstmt = null;
sql= "SELECT SITE_CODE FROM SITE_CUSTOMER WHERE CUST_CODE = ? "; /*sql= "SELECT SITE_CODE FROM SITE_CUSTOMER WHERE CUST_CODE = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, custCode); pstmt.setString(1, custCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -1731,7 +1864,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1731,7 +1864,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;*/
sql = "select descr from sordertype where order_type =? "; sql = "select descr from sordertype where order_type =? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -1803,7 +1936,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1803,7 +1936,7 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
if(rs.next()) if(rs.next())
{ {
positionCode=checkNull(rs.getString("pos_code")); positionCode=checkNull(rs.getString("pos_code"));
System.out.println("positionCode :"+positionCode); System.out.println("positionCode at employee item change :"+positionCode);
} }
rs.close(); rs.close();
rs = null; rs = null;
...@@ -1812,11 +1945,14 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1812,11 +1945,14 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
//End added by chandra shekar on 07-jan-2016 //End added by chandra shekar on 07-jan-2016
valueXmlString.append("<Detail1 domID='1' objContext='1'>"); valueXmlString.append("<Detail1 domID='1' objContext='1'>");
if(isCustomer)
{
valueXmlString.append("<item_ser protect='1'>").append("<![CDATA["+itemSer+"]]>").append("</item_ser>"); valueXmlString.append("<item_ser protect='1'>").append("<![CDATA["+itemSer+"]]>").append("</item_ser>");
valueXmlString.append("<itemser_descr protect='1'>").append("<![CDATA["+itemSerName+"]]>").append("</itemser_descr>"); valueXmlString.append("<itemser_descr protect='1'>").append("<![CDATA["+itemSerName+"]]>").append("</itemser_descr>");
}
valueXmlString.append("<cust_code>").append("<![CDATA["+custCode+"]]>").append("</cust_code>"); valueXmlString.append("<cust_code>").append("<![CDATA["+custCode+"]]>").append("</cust_code>");
valueXmlString.append("<cust_name>").append("<![CDATA["+custNameStation+"]]>").append("</cust_name>"); valueXmlString.append("<cust_name>").append("<![CDATA["+custNameStation+"]]>").append("</cust_name>");
valueXmlString.append("<site_code>").append("<![CDATA["+siteCode+"]]>").append("</site_code>"); valueXmlString.append("<site_code>").append("<![CDATA["+siteCode+"]]>").append("</site_code>");//change by chandrashekar on 18-jan-2016
valueXmlString.append("<order_type protect='1'>").append("<![CDATA["+orderType+"]]>").append("</order_type>"); valueXmlString.append("<order_type protect='1'>").append("<![CDATA["+orderType+"]]>").append("</order_type>");
valueXmlString.append("<sordertype_descr protect='1'>").append("<![CDATA["+orderTypeName+"]]>").append("</sordertype_descr>"); valueXmlString.append("<sordertype_descr protect='1'>").append("<![CDATA["+orderTypeName+"]]>").append("</sordertype_descr>");
valueXmlString.append("<cust_type protect='1'>").append("<![CDATA["+custType+"]]>").append("</cust_type>"); valueXmlString.append("<cust_type protect='1'>").append("<![CDATA["+custType+"]]>").append("</cust_type>");
...@@ -1832,10 +1968,12 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1832,10 +1968,12 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
period = checkNull(genericUtility.getColumnValue("prd_code",dom)); period = checkNull(genericUtility.getColumnValue("prd_code",dom));
System.out.println("period>>>>> :"+period); System.out.println("period>>>>> :"+period);
itemSer = checkNull(genericUtility.getColumnValue("item_ser",dom));
sql = "select prd_code,fr_date,to_date from period_tbl where prd_code= ? " ; countryIemSer=countryCode.trim()+"_"+itemSer.trim();
sql = "select prd_code,fr_date,to_date from period_tbl where prd_code= ? and prd_tblno=? " ;
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, period); pstmt.setString(1, period);
pstmt.setString(2, countryIemSer);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
...@@ -1857,9 +1995,10 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1857,9 +1995,10 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
} }
sql= " select FR_DATE,TO_DATE from period_tbl where " sql= " select FR_DATE,TO_DATE from period_tbl where "
+ "prd_code = ? "; + "prd_code = ? and prd_tblno=? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, period); pstmt.setString(1, period);
pstmt.setString(2, countryIemSer);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
...@@ -1896,34 +2035,140 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1896,34 +2035,140 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
valueXmlString.append("</Detail1>"); valueXmlString.append("</Detail1>");
} }
//Start added by chandrashekar on 07-jan-2016 //Start added by chandrashekar on 07-jan-2016
if(currentColumn.trim().equals("emp_code")) /*if(currentColumn.trim().equals("emp_code"))
{ {
empCode = checkNull(genericUtility.getColumnValue("emp_code",dom)); empCode = checkNull(genericUtility.getColumnValue("emp_code",dom));
System.out.println("Employee code itemchange value"+empCode); System.out.println("Employee code itemchange value"+empCode);
if(empCode != null && empCode.trim().length()>0) if(empCode != null && empCode.trim().length()>0)
{ {
sql = "select emp_fname||' '||emp_mname||' '||emp_lname as name from employee where emp_code=? "; sql = "select emp_fname||' '||emp_mname||' '||emp_lname as name,pos_code from employee where emp_code=? ";
pstmt1 = conn.prepareStatement(sql); pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, empCode); pstmt1.setString(1, empCode);
rs1 = pstmt1.executeQuery(); rs1 = pstmt1.executeQuery();
if (rs1.next()) if (rs1.next())
{ {
empName = checkNull(rs1.getString("name")); empName = checkNull(rs1.getString("name"));
System.out.println("empName item change :" + empName); //positionCode = checkNull(rs1.getString("pos_code"));
} }
rs1.close(); rs1.close();
rs1 = null; rs1 = null;
pstmt1.close(); pstmt1.close();
pstmt1 = null; pstmt1 = null;
sql = " select table_no,pos_code,emp_code from org_structure " +
" where VERSION_ID IN(SELECT MAX(VERSION_ID) FROM ORG_STRUCTURE D) " +
" and emp_code=? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, empCode);
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
isTableNo=true;
itemSer = checkNull(rs1.getString("table_no"));
positionCode = checkNull(rs1.getString("pos_code"));
}
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
sql= " select descr from itemser where item_ser = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemSer);
rs = pstmt.executeQuery();
if(rs.next())
{
itemSerName=checkNull(rs.getString("descr"));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
} }
valueXmlString.append("<Detail1 domID='1' objContext='1'>"); valueXmlString.append("<Detail1 domID='1' objContext='1'>");
valueXmlString.append("<emp_code >").append("<![CDATA["+empCode+"]]>").append("</emp_code>"); valueXmlString.append("<emp_code >").append("<![CDATA["+empCode+"]]>").append("</emp_code>");
valueXmlString.append("<sale_per protect='1'>").append("<![CDATA["+empCode+"]]>").append("</sale_per>"); valueXmlString.append("<sale_per protect='1'>").append("<![CDATA["+empCode+"]]>").append("</sale_per>");
valueXmlString.append("<emp_name>").append("<![CDATA["+empName+"]]>").append("</emp_name>"); valueXmlString.append("<emp_name>").append("<![CDATA["+empName+"]]>").append("</emp_name>");
valueXmlString.append("<pos_code>").append("<![CDATA["+positionCode+"]]>").append("</pos_code>");
if(isTableNo)
{
valueXmlString.append("<item_ser protect='1'>").append("<![CDATA["+itemSer+"]]>").append("</item_ser>");
valueXmlString.append("<itemser_descr protect='1'>").append("<![CDATA["+itemSerName+"]]>").append("</itemser_descr>");
}
valueXmlString.append("</Detail1>"); valueXmlString.append("</Detail1>");
}*/
if(currentColumn.trim().equals("pos_code"))
{
System.out.println("@@@@position code item change called@@@@");
positionCode = checkNull(genericUtility.getColumnValue("pos_code",dom));
System.out.println("positionCode code itemchange value"+positionCode);
sql= " select table_no,emp_code from org_structure where pos_code=? " +
" and version_id in (select max(version_id) from org_structure )";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, positionCode);
rs = pstmt.executeQuery();
if(rs.next())
{
itemSer=checkNull(rs.getString("table_no"));
empCode=checkNull(rs.getString("emp_code"));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
sql= " select descr from itemser where item_ser = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemSer);
rs = pstmt.executeQuery();
if(rs.next())
{
itemSerName=checkNull(rs.getString("descr"));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
sql = "select emp_fname||' '||emp_mname||' '||emp_lname as name,pos_code from employee where emp_code=? ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, empCode);
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
empName = checkNull(rs1.getString("name"));
}
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
sql = "select FN_GET_POSCODE_DESCR(?) as descr from dual ";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, positionCode);
rs1 = pstmt1.executeQuery();
if (rs1.next())
{
positionDescr = checkNull(rs1.getString("descr"));
}
rs1.close();
rs1 = null;
pstmt1.close();
pstmt1 = null;
valueXmlString.append("<Detail1 domID='1' objContext='1'>");
valueXmlString.append("<emp_code protect='1' >").append("<![CDATA["+empCode+"]]>").append("</emp_code>");
valueXmlString.append("<sale_per protect='1'>").append("<![CDATA["+empCode+"]]>").append("</sale_per>");
valueXmlString.append("<emp_name>").append("<![CDATA["+empName+"]]>").append("</emp_name>");
valueXmlString.append("<pos_code>").append("<![CDATA["+positionCode.trim()+"]]>").append("</pos_code>");
valueXmlString.append("<item_ser protect='1'>").append("<![CDATA["+itemSer+"]]>").append("</item_ser>");
valueXmlString.append("<itemser_descr protect='1'>").append("<![CDATA["+itemSerName+"]]>").append("</itemser_descr>");
valueXmlString.append("<position_descr>").append("<![CDATA["+positionDescr+"]]>").append("</position_descr>");
valueXmlString.append("</Detail1>");
} }
System.out.println("valueXmlString from case 1 :"+valueXmlString); System.out.println("valueXmlString from case 1 :"+valueXmlString);
...@@ -3069,22 +3314,22 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -3069,22 +3314,22 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
valueXmlString.append("<rate_old>").append("<![CDATA["+rateOld+"]]>").append("</rate_old>"); valueXmlString.append("<rate_old>").append("<![CDATA["+rateOld+"]]>").append("</rate_old>");
valueXmlString.append("<rate_org_old>").append("<![CDATA["+rateOrgOld+"]]>").append("</rate_org_old>"); valueXmlString.append("<rate_org_old>").append("<![CDATA["+rateOrgOld+"]]>").append("</rate_org_old>");
valueXmlString.append("<rcp_value>").append("<![CDATA["+rcpquantityRate+"]]>").append("</rcp_value>"); valueXmlString.append("<rcp_value>").append("<![CDATA["+getRequiredDecimal(rcpquantityRate,3)+"]]>").append("</rcp_value>");
valueXmlString.append("<repl_value>").append("<![CDATA["+returnReciptRepl*sretRate+"]]>").append("</repl_value>"); valueXmlString.append("<repl_value>").append("<![CDATA["+getRequiredDecimal(returnReciptRepl*sretRate,3)+"]]>").append("</repl_value>");
valueXmlString.append("<cm_invoice>").append("<![CDATA["+cmQuantity+"]]>").append("</cm_invoice>"); valueXmlString.append("<cm_invoice>").append("<![CDATA["+getRequiredDecimal(cmQuantity,3)+"]]>").append("</cm_invoice>");
valueXmlString.append("<cm_value>").append("<![CDATA["+cmValue+"]]>").append("</cm_value>"); valueXmlString.append("<cm_value>").append("<![CDATA["+getRequiredDecimal(cmValue,3)+"]]>").append("</cm_value>");
valueXmlString.append("<secondary_value>").append("<![CDATA["+0+"]]>").append("</secondary_value>"); valueXmlString.append("<secondary_value>").append("<![CDATA["+0+"]]>").append("</secondary_value>");
valueXmlString.append("<formula_value>").append("<![CDATA["+0+"]]>").append("</formula_value>"); valueXmlString.append("<formula_value>").append("<![CDATA["+0+"]]>").append("</formula_value>");
valueXmlString.append("<free_value>").append("<![CDATA["+rcpFreesValue+"]]>").append("</free_value>"); valueXmlString.append("<free_value>").append("<![CDATA["+getRequiredDecimal(rcpFreesValue,3)+"]]>").append("</free_value>");
valueXmlString.append("<sret_vale>").append("<![CDATA["+billRetQty*sretRate+"]]>").append("</sret_vale>"); valueXmlString.append("<sret_vale>").append("<![CDATA["+getRequiredDecimal(billRetQty*sretRate,3)+"]]>").append("</sret_vale>");
valueXmlString.append("<sales__org>").append("<![CDATA["+(long)Math.round(salesOrg)+"]]>").append("</sales__org>"); valueXmlString.append("<sales__org>").append("<![CDATA["+(long)Math.round(salesOrg)+"]]>").append("</sales__org>");
valueXmlString.append("<pur_value>").append("<![CDATA["+rcpquantityRate+"]]>").append("</pur_value>"); valueXmlString.append("<pur_value>").append("<![CDATA["+getRequiredDecimal(rcpquantityRate, 3)+"]]>").append("</pur_value>");
valueXmlString.append("<op_value>").append("<![CDATA["+opValue+"]]>").append("</op_value>"); valueXmlString.append("<op_value>").append("<![CDATA["+getRequiredDecimal(opValue,3)+"]]>").append("</op_value>");
valueXmlString.append("<sales_value>").append("<![CDATA["+salesValue+"]]>").append("</sales_value>"); valueXmlString.append("<sales_value>").append("<![CDATA["+getRequiredDecimal(salesValue,3)+"]]>").append("</sales_value>");
valueXmlString.append("<cl_value>").append("<![CDATA["+clValue+"]]>").append("</cl_value>"); valueXmlString.append("<cl_value>").append("<![CDATA["+getRequiredDecimal(clValue,3)+"]]>").append("</cl_value>");
valueXmlString.append("</Detail3>"); valueXmlString.append("</Detail3>");
} }
...@@ -3407,14 +3652,14 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -3407,14 +3652,14 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
valueXmlString.append("<rate_old>").append("<![CDATA["+itemMap.get("oldRate@"+itemDomId).toString()+"]]>").append("</rate_old>"); valueXmlString.append("<rate_old>").append("<![CDATA["+itemMap.get("oldRate@"+itemDomId).toString()+"]]>").append("</rate_old>");
valueXmlString.append("<rate_org_old>").append("<![CDATA["+itemMap.get("oldRateOrg@"+itemDomId).toString()+"]]>").append("</rate_org_old>"); valueXmlString.append("<rate_org_old>").append("<![CDATA["+itemMap.get("oldRateOrg@"+itemDomId).toString()+"]]>").append("</rate_org_old>");
valueXmlString.append("<rcp_value>").append("<![CDATA["+itemMap.get("rcpValue@"+itemDomId).toString()+"]]>").append("</rcp_value>"); valueXmlString.append("<rcp_value>").append("<![CDATA["+getRequiredDecimal(Double.parseDouble(itemMap.get("rcpValue@"+itemDomId).toString()),3)+"]]>").append("</rcp_value>");
valueXmlString.append("<repl_value>").append("<![CDATA["+itemMap.get("replValue@"+itemDomId).toString()+"]]>").append("</repl_value>"); valueXmlString.append("<repl_value>").append("<![CDATA["+getRequiredDecimal(Double.parseDouble(itemMap.get("replValue@"+itemDomId).toString()),3)+"]]>").append("</repl_value>");
valueXmlString.append("<cm_invoice>").append("<![CDATA["+itemMap.get("cmInvoice@"+itemDomId).toString()+"]]>").append("</cm_invoice>"); valueXmlString.append("<cm_invoice>").append("<![CDATA["+getRequiredDecimal(Double.parseDouble(itemMap.get("cmInvoice@"+itemDomId).toString()),3)+"]]>").append("</cm_invoice>");
valueXmlString.append("<cm_value>").append("<![CDATA["+itemMap.get("cmValue@"+itemDomId).toString()+"]]>").append("</cm_value>"); valueXmlString.append("<cm_value>").append("<![CDATA["+getRequiredDecimal(Double.parseDouble(itemMap.get("cmValue@"+itemDomId).toString()),3)+"]]>").append("</cm_value>");
valueXmlString.append("<secondary_value>").append("<![CDATA["+itemMap.get("secondaryValue@"+itemDomId).toString()+"]]>").append("</secondary_value>"); valueXmlString.append("<secondary_value>").append("<![CDATA["+getRequiredDecimal(Double.parseDouble(itemMap.get("secondaryValue@"+itemDomId).toString()),3)+"]]>").append("</secondary_value>");
valueXmlString.append("<formula_value>").append("<![CDATA["+itemMap.get("formulaValue@"+itemDomId).toString()+"]]>").append("</formula_value>"); valueXmlString.append("<formula_value>").append("<![CDATA["+itemMap.get("formulaValue@"+itemDomId).toString()+"]]>").append("</formula_value>");
valueXmlString.append("<free_value>").append("<![CDATA["+itemMap.get("freeValue@"+itemDomId).toString()+"]]>").append("</free_value>"); valueXmlString.append("<free_value>").append("<![CDATA["+getRequiredDecimal(Double.parseDouble(itemMap.get("freeValue@"+itemDomId).toString()),3)+"]]>").append("</free_value>");
valueXmlString.append("<sret_vale>").append("<![CDATA["+itemMap.get("sretValue@"+itemDomId).toString()+"]]>").append("</sret_vale>"); valueXmlString.append("<sret_vale>").append("<![CDATA["+getRequiredDecimal(Double.parseDouble(itemMap.get("sretValue@"+itemDomId).toString()),3)+"]]>").append("</sret_vale>");
valueXmlString.append("<rate__org>").append("<![CDATA[0]]>").append("</rate__org>"); valueXmlString.append("<rate__org>").append("<![CDATA[0]]>").append("</rate__org>");
valueXmlString.append("<sales__org>").append("<![CDATA["+(long)Math.round(Double.parseDouble(itemMap.get("salesOrg@"+itemDomId).toString()))+"]]>").append("</sales__org>"); valueXmlString.append("<sales__org>").append("<![CDATA["+(long)Math.round(Double.parseDouble(itemMap.get("salesOrg@"+itemDomId).toString()))+"]]>").append("</sales__org>");
......
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