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
errFields.add(childNodeName.toLowerCase());
}
}
else if (childNodeName.trim().equalsIgnoreCase("indent_no"))
{
indentNo=this.genericUtility.getColumnValue("indent_no", dom);
......@@ -224,35 +223,35 @@ implements BillofQuantityICLocal, BillofQuantityICRemote
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
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+"]");
// //|| ("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+"]");
}
// 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+"]");
//// //|| ("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+"]");
////
// }
}
//end of changes on 05/11/12
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