Commit 8e709aef authored by asikarwar's avatar asikarwar

made change bcoz stduom and rateuom is not working in last version


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92838 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e36aebbe
...@@ -82,13 +82,13 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -82,13 +82,13 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
String itemCode = "",ditemCode = ""; String itemCode = "",ditemCode = "";
String packCode = ""; String packCode = "";
String hitemCode = "",tranId = ""; String hitemCode = "",tranId = "";
String rate = "",drate = "";
Double rate1 = 0.0;
String indentNo = ""; String indentNo = "";
String tranDateS = ""; String tranDateS = "";
String unitRate=""; String unitRate="";
System.out.println("editFlag ---->>>["+editFlag+"]"); System.out.println("editFlag ---->>>["+editFlag+"]");
String unit = ""; String unit = "";
String rate = "",drate = "";
Double rate1 = 0.0;
String updateFlag = "",status = ""; String updateFlag = "",status = "";
int ctr = 0; int ctr = 0;
int currentFormNo = 0; int currentFormNo = 0;
...@@ -143,7 +143,6 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -143,7 +143,6 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
if (indentNo != null && indentNo.trim().length() > 0 ) if (indentNo != null && indentNo.trim().length() > 0 )
{ {
itemCode=checkNull(this.genericUtility.getColumnValue("item_code", dom)); itemCode=checkNull(this.genericUtility.getColumnValue("item_code", dom));
tranId=checkNull(this.genericUtility.getColumnValue("tran_id", dom));
// added by cpandey Validation for duplicate tran id in boqhdr on 07/03/13 // added by cpandey Validation for duplicate tran id in boqhdr on 07/03/13
sql = "select count(*) from boqhdr where tran_id = ?"; sql = "select count(*) from boqhdr where tran_id = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -184,6 +183,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -184,6 +183,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
//end of addition //end of addition
//changes done by cpandey for approved indent no status = 'A' //changes done by cpandey for approved indent no status = 'A'
sql = "select count(*) from indent where status = 'A' and item_code = ?"; sql = "select count(*) from indent where status = 'A' and item_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -282,6 +282,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -282,6 +282,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
} }
} }
//end of changes on 05/11/12 //end of changes on 05/11/12
//end of changes on 05/11/12
else if (childNodeName.trim().equalsIgnoreCase("unit__rate")) else if (childNodeName.trim().equalsIgnoreCase("unit__rate"))
{ {
unitRate=checkNull(this.genericUtility.getColumnValue("unit__rate", dom)); unitRate=checkNull(this.genericUtility.getColumnValue("unit__rate", dom));
...@@ -543,6 +544,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -543,6 +544,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
} }
}*/ }*/
} }
//end of changes on 05/11/12
else if (childNodeName.trim().equalsIgnoreCase("rate")) else if (childNodeName.trim().equalsIgnoreCase("rate"))
{ {
drate=checkNull(this.genericUtility.getColumnValue("rate", dom)); drate=checkNull(this.genericUtility.getColumnValue("rate", dom));
...@@ -558,8 +560,6 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -558,8 +560,6 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
} }
} }
//end of changes on 05/11/12
else if (childNodeName.trim().equalsIgnoreCase("unit__rate")) else if (childNodeName.trim().equalsIgnoreCase("unit__rate"))
{ {
unitRate=checkNull(this.genericUtility.getColumnValue("unit__rate", dom)); unitRate=checkNull(this.genericUtility.getColumnValue("unit__rate", dom));
...@@ -855,7 +855,6 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -855,7 +855,6 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
valueXmlString.append("<Detail1>"); valueXmlString.append("<Detail1>");
childNodeListLength = childNodeList.getLength(); childNodeListLength = childNodeList.getLength();
do do
{ {
...@@ -869,7 +868,6 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -869,7 +868,6 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
ctr++; ctr++;
} }
while ((ctr < childNodeListLength) && (!childNodeName.equals(currentColumn))); while ((ctr < childNodeListLength) && (!childNodeName.equals(currentColumn)));
System.out.println("CURRENT COLUMN ["+currentColumn+"]"); System.out.println("CURRENT COLUMN ["+currentColumn+"]");
if (currentColumn.trim().equalsIgnoreCase("itm_defaultedit")) if (currentColumn.trim().equalsIgnoreCase("itm_defaultedit"))
...@@ -1023,7 +1021,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -1023,7 +1021,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
valueXmlString.append("<site_descr>").append("<![CDATA["+descr+"]]>").append("</site_descr>"); valueXmlString.append("<site_descr>").append("<![CDATA["+descr+"]]>").append("</site_descr>");
} }
else if (currentColumn.trim().equalsIgnoreCase("unit__rate")) else if (childNodeName.trim().equalsIgnoreCase("unit__rate"))
{ {
unitRate=checkNull(this.genericUtility.getColumnValue("unit__rate", dom)); unitRate=checkNull(this.genericUtility.getColumnValue("unit__rate", dom));
quantity=checkDoubleNull(this.genericUtility.getColumnValue("quantity", dom)); quantity=checkDoubleNull(this.genericUtility.getColumnValue("quantity", dom));
...@@ -1172,7 +1170,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -1172,7 +1170,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
valueXmlString.append("<supplier_sh_name>").append("<![CDATA["+shName+"]]>").append("</supplier_sh_name>"); valueXmlString.append("<supplier_sh_name>").append("<![CDATA["+shName+"]]>").append("</supplier_sh_name>");
} }
else if (currentColumn.equalsIgnoreCase("proj_code")) else if (childNodeName.equalsIgnoreCase("proj_code"))
{ {
projCode=checkNull(this.genericUtility.getColumnValue("proj_code", dom)); projCode=checkNull(this.genericUtility.getColumnValue("proj_code", dom));
sql = "select descr from project where proj_code = ?"; sql = "select descr from project where proj_code = ?";
...@@ -1216,13 +1214,11 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -1216,13 +1214,11 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
valueXmlString.append("<Detail2>"); valueXmlString.append("<Detail2>");
childNodeListLength = childNodeList.getLength(); childNodeListLength = childNodeList.getLength();
System.out.println("childNodeList"+childNodeList.getLength()); for (ctr = 0; ctr < childNodeListLength; ctr++)
/*for (ctr = 0; ctr < childNodeListLength; ctr++)
{ {
childNode = childNodeList.item(ctr); childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();*/ childNodeName = childNode.getNodeName();
if (childNodeName.trim().equalsIgnoreCase("itm_default"))
if (currentColumn.trim().equalsIgnoreCase("itm_default"))
{ {
} }
...@@ -1270,7 +1266,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -1270,7 +1266,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
valueXmlString.append("<packing_descr >").append("<![CDATA["+descrPackCode+"]]>").append("</packing_descr>"); valueXmlString.append("<packing_descr >").append("<![CDATA["+descrPackCode+"]]>").append("</packing_descr>");
} }
else if (currentColumn.trim().equalsIgnoreCase("unit__rate")) else if (childNodeName.trim().equalsIgnoreCase("unit__rate"))
{ {
System.out.println("unit__rate ITEM CHANGE ="); System.out.println("unit__rate ITEM CHANGE =");
unitRate=checkNull(this.genericUtility.getColumnValue("unit__rate", dom)); unitRate=checkNull(this.genericUtility.getColumnValue("unit__rate", dom));
...@@ -1386,7 +1382,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -1386,7 +1382,7 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
valueXmlString.append("<packing_descr >").append("<![CDATA["+descrPackCode+"]]>").append("</packing_descr>"); valueXmlString.append("<packing_descr >").append("<![CDATA["+descrPackCode+"]]>").append("</packing_descr>");
} }
//} }
valueXmlString.append("</Detail2>"); valueXmlString.append("</Detail2>");
......
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