Commit a762e20f authored by agaikwad's avatar agaikwad

checked spec code from qc item spec and detail table

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@165191 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5129a7d5
...@@ -304,10 +304,14 @@ public class QcOrderResultIC extends ValidatorEJB ...@@ -304,10 +304,14 @@ public class QcOrderResultIC extends ValidatorEJB
if(childNodeName.equalsIgnoreCase("spec_code")) if(childNodeName.equalsIgnoreCase("spec_code"))
{ {
String mVal = "", mscode = ""; String mscode = "",itemCode="",empCode="";
int cnt=0; int cnt=0;
mscode = genericUtility.getColumnValue("spec_code", dom); mscode = genericUtility.getColumnValue("spec_code", dom);
itemCode = genericUtility.getColumnValue("item_code", dom1);
empCode = genericUtility.getColumnValue("emp_code", dom1);
System.out.println("Spec Code["+mscode+"]"); System.out.println("Spec Code["+mscode+"]");
System.out.println("item_code["+itemCode+"]");
System.out.println("emp_code["+empCode+"]");
//mVal = genericUtility.getColumnValue("qorder_no", dom); //mVal = genericUtility.getColumnValue("qorder_no", dom);
if(mscode == null || mscode.trim().length() == 0) if(mscode == null || mscode.trim().length() == 0)
{ {
...@@ -317,10 +321,13 @@ public class QcOrderResultIC extends ValidatorEJB ...@@ -317,10 +321,13 @@ public class QcOrderResultIC extends ValidatorEJB
} }
else else
{ {
sql = "select count(*) from qcitem_spec_det where spec_code = ?"; sql = "select count(*) from qcitem_spec h ,qcitem_spec_det d where " +
"h.item_code=d.item_code and h.surv_code=? " +
"and d.item_code= ? and d.spec_code= ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, mscode); pstmt.setString(1, empCode);
// pstmt.setString(2, mscode); pstmt.setString(2, itemCode);
pstmt.setString(3, mscode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
......
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