Commit d19cf56d authored by cpandey's avatar cpandey

changes std quantity and std rate


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92734 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 53fd5aef
...@@ -169,8 +169,8 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -169,8 +169,8 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
status = rs.getString("status"); status = rs.getString("status");
System.out.println("Status of indent no-->> ["+status+"]"); System.out.println("Status of indent no-->> ["+status+"]");
} }
rs.close(); rs.close();
rs = null; rs = null;
...@@ -443,7 +443,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -443,7 +443,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
System.out.println("Header item code ["+hitemCode+"] and detail item code ["+itemCode+"]"); System.out.println("Header item code ["+hitemCode+"] and detail item code ["+itemCode+"]");
itemCode = itemCode.trim(); itemCode = itemCode.trim();
hitemCode = hitemCode.trim(); hitemCode = hitemCode.trim();
if (itemCode != null && itemCode.trim().length() > 0 ) if (itemCode != null && itemCode.trim().length() > 0 )
{ {
sql = "select count(*) from item where item_code = ?"; sql = "select count(*) from item where item_code = ?";
...@@ -472,7 +472,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -472,7 +472,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
//added by cpandey validation for matching item code from header and detial on 05/11/12 //added by cpandey validation for matching item code from header and detial on 05/11/12
/*if(itemCode.trim().equalsIgnoreCase(hitemCode.trim())) /*if(itemCode.trim().equalsIgnoreCase(hitemCode.trim()))
{ {
System.out.println("edit flag --4>>["+editFlag+"]"); System.out.println("edit flag --4>>["+editFlag+"]");
if(("E").equalsIgnoreCase(editFlag) || ("A").equalsIgnoreCase(editFlag)) if(("E").equalsIgnoreCase(editFlag) || ("A").equalsIgnoreCase(editFlag))
...@@ -618,8 +618,8 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -618,8 +618,8 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
String bifurErrString = errString.substring(errString.indexOf("<Errors>") + String bifurErrString = errString.substring(errString.indexOf("<Errors>") +
8, errString.indexOf("<trace>")); 8, errString.indexOf("<trace>"));
bifurErrString = bifurErrString + bifurErrString = bifurErrString +
errString.substring(errString.indexOf("</trace>") + errString.substring(errString.indexOf("</trace>") +
8, errString.indexOf("</Errors>")); 8, errString.indexOf("</Errors>"));
errStringXml.append(bifurErrString); errStringXml.append(bifurErrString);
errString = ""; errString = "";
} }
...@@ -676,8 +676,8 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -676,8 +676,8 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams)
throws RemoteException, ITMException throws RemoteException, ITMException
{ {
Document dom = null; Document dom = null;
Document dom1 = null; Document dom1 = null;
Document dom2 = null; Document dom2 = null;
...@@ -703,11 +703,11 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -703,11 +703,11 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
} }
System.out.println("VALUE HELLO PRINTA["+valueXmlString+"]"); System.out.println("VALUE HELLO PRINTA["+valueXmlString+"]");
return valueXmlString; return valueXmlString;
} }
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams)
throws RemoteException, ITMException throws RemoteException, ITMException
{ {
System.out.println("sTART PRINT "); System.out.println("sTART PRINT ");
NodeList parentNodeList = null; NodeList parentNodeList = null;
NodeList childNodeList = null; NodeList childNodeList = null;
...@@ -1187,8 +1187,11 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -1187,8 +1187,11 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
{ {
valueXmlString.append("<conv__qty_stduom >").append("<![CDATA["+1+"]]>").append("</conv__qty_stduom>"); valueXmlString.append("<conv__qty_stduom >").append("<![CDATA["+1+"]]>").append("</conv__qty_stduom>");
valueXmlString.append("<conv__rate_stduom >").append("<![CDATA["+1+"]]>").append("</conv__rate_stduom>"); valueXmlString.append("<conv__rate_stduom >").append("<![CDATA["+1+"]]>").append("</conv__rate_stduom>");
valueXmlString.append("<rate__stduom >").append("<![CDATA["+quantity+"]]>").append("</rate__stduom>"); //changes done by cpandey rate__stduom - rate, quantity__stduom - quantity
valueXmlString.append("<quantity__stduom >").append("<![CDATA["+rate+"]]>").append("</quantity__stduom>"); //valueXmlString.append("<rate__stduom >").append("<![CDATA["+quantity+"]]>").append("</rate__stduom>");
valueXmlString.append("<rate__stduom >").append("<![CDATA["+rate+"]]>").append("</rate__stduom>");
//valueXmlString.append("<quantity__stduom >").append("<![CDATA["+rate+"]]>").append("</quantity__stduom>");
valueXmlString.append("<quantity__stduom >").append("<![CDATA["+quantity+"]]>").append("</quantity__stduom>");
} }
else else
{ {
...@@ -1198,25 +1201,26 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -1198,25 +1201,26 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
System.out.println("convQtyList = "+convQtyList); System.out.println("convQtyList = "+convQtyList);
convQtuomStduom = Double.parseDouble(convQtyList.get(0).toString()); convQtuomStduom = Double.parseDouble(convQtyList.get(0).toString());
//arraylist for rate stduom
ArrayList convRateList = distCommon.getConvQuantityFact(unit, unitRate, itemCode, rate, 0, conn);
convQtuomStduom = Double.parseDouble(convRateList.get(0).toString());
rateStduom = Double.parseDouble(convRateList.get(1).toString());
System.out.println("meffQty ["+convQtuomStduom+"]"); System.out.println("meffQty ["+convQtuomStduom+"]");
//changes done by cpandey for rate__stduom -- rateStduom
quantityStduom = Double.parseDouble(convQtyList.get(1).toString()); System.out.println("meffQty ["+rateStduom+"]");
System.out.println("meffQty ["+quantityStduom+"]");
valueXmlString.append("<conv__qty_stduom >").append("<![CDATA["+convQtuomStduom+"]]>").append("</conv__qty_stduom>"); valueXmlString.append("<conv__qty_stduom >").append("<![CDATA["+convQtuomStduom+"]]>").append("</conv__qty_stduom>");
valueXmlString.append("<rate__stduom >").append("<![CDATA["+quantityStduom+"]]>").append("</rate__stduom>"); //valueXmlString.append("<rate__stduom >").append("<![CDATA["+quantityStduom+"]]>").append("</rate__stduom>");
valueXmlString.append("<rate__stduom >").append("<![CDATA["+rateStduom+"]]>").append("</rate__stduom>");
ArrayList convRateList = distCommon.getConvQuantityFact(unit, unitRate, itemCode, rate, 0, conn);
System.out.println("convRateList = "+convRateList); System.out.println("convRateList = "+convRateList);
convQtuomStduom = Double.parseDouble(convRateList.get(0).toString());
System.out.println("meffQty ["+convQtuomStduom+"]"); System.out.println("meffQty ["+convQtuomStduom+"]");
rateStduom = Double.parseDouble(convRateList.get(1).toString()); quantityStduom = Double.parseDouble(convQtyList.get(1).toString());
System.out.println("meffQty ["+quantityStduom+"]"); System.out.println("meffQty ["+quantityStduom+"]");
//changes done by cpandey for quantity__stduom -- quantityStduom
valueXmlString.append("<conv__rate_stduom >").append("<![CDATA["+convQtuomStduom+"]]>").append("</conv__rate_stduom>"); valueXmlString.append("<conv__rate_stduom >").append("<![CDATA["+convQtuomStduom+"]]>").append("</conv__rate_stduom>");
valueXmlString.append("<quantity__stduom >").append("<![CDATA["+rateStduom+"]]>").append("</quantity__stduom>"); // valueXmlString.append("<quantity__stduom >").append("<![CDATA["+rateStduom+"]]>").append("</quantity__stduom>");
valueXmlString.append("<quantity__stduom >").append("<![CDATA["+quantityStduom+"]]>").append("</quantity__stduom>");
} }
} }
...@@ -1228,8 +1232,8 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -1228,8 +1232,8 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
amount = quantity*rate; amount = quantity*rate;
System.out.println("amountsssssssss"+quantity+""+rate+""+stdExrt+""+amount+""+amountBc); System.out.println("amountsssssssss"+quantity+""+rate+""+stdExrt+""+amount+""+amountBc);
valueXmlString.append("<amount>").append("<![CDATA["+amount+"]]>").append("</amount>"); valueXmlString.append("<amount>").append("<![CDATA["+amount+"]]>").append("</amount>");
unitRate=checkNull(this.genericUtility.getColumnValue("unit__rate", dom)); unitRate=checkNull(this.genericUtility.getColumnValue("unit__rate", dom));
unit=checkNull(this.genericUtility.getColumnValue("unit", dom)); unit=checkNull(this.genericUtility.getColumnValue("unit", dom));
itemCode=checkNull(this.genericUtility.getColumnValue("item_code", dom)); itemCode=checkNull(this.genericUtility.getColumnValue("item_code", dom));
...@@ -1324,7 +1328,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -1324,7 +1328,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
} }
} }
return valueXmlString.toString(); return valueXmlString.toString();
} }
......
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