Commit 80569996 authored by cpandey's avatar cpandey

comment item_code validation on edit emode


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92511 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3b422306
...@@ -135,7 +135,6 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -135,7 +135,6 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
} }
else if (childNodeName.trim().equalsIgnoreCase("indent_no")) else if (childNodeName.trim().equalsIgnoreCase("indent_no"))
{ {
indentNo=this.genericUtility.getColumnValue("indent_no", dom); indentNo=this.genericUtility.getColumnValue("indent_no", dom);
...@@ -224,36 +223,36 @@ implements BillofQuantityICLocal, BillofQuantityICRemote ...@@ -224,36 +223,36 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
//changes done by cpandey for matche item code from header and detail on in case of edite. on 05/11/12 //changes done by cpandey for matche item code from header and detail on in case of edite. on 05/11/12
if(("E").equalsIgnoreCase(editFlag)) // if(("E").equalsIgnoreCase(editFlag))
{
sql = "select item_code from boqdet where tran_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
while(rs.next())
{
ditemCode = checkNull(rs.getString("item_code"));
ditemCode = ditemCode.trim();
System.out.println("item code from boq det table--11--["+ditemCode+"]->>");
// if(ditemCode.trim().equalsIgnoreCase(itemCode.trim()))
// { // {
// System.out.println("edit flag --4>>["+editFlag+"]"); // sql = "select item_code from boqdet where tran_id = ?";
// //|| ("A").equalsIgnoreCase(editFlag) // pstmt = conn.prepareStatement(sql);
// // pstmt.setString(1, tranId);
// System.out.println("edit flag --2>>["+editFlag+"]"); // rs = pstmt.executeQuery();
// errCode = "VMITMSM"; // while(rs.next())
// errList.add(errCode); // {
// errFields.add(childNodeName.toLowerCase()); // ditemCode = checkNull(rs.getString("item_code"));
// ditemCode = ditemCode.trim();
// System.out.println("item code from boq det table--11--["+ditemCode+"]->>");
// // if(ditemCode.trim().equalsIgnoreCase(itemCode.trim()))
//// {
//// System.out.println("edit flag --4>>["+editFlag+"]");
//// //|| ("A").equalsIgnoreCase(editFlag)
////
//// System.out.println("edit flag --2>>["+editFlag+"]");
//// errCode = "VMITMSM";
//// errList.add(errCode);
//// errFields.add(childNodeName.toLowerCase());
//// }
//// }
//// rs.close();
//// rs = null;
//// pstmt.close();
//// pstmt = null;
//// System.out.println("edit flag --4>>["+editFlag+"]");
////
// } // }
} }
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("edit flag --4>>["+editFlag+"]");
}
}
//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"))
{ {
......
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