Commit 5bf64710 authored by agaikwad's avatar agaikwad

spec_code get header item_code and survyor code of qc item spec table


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@165181 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 68f7db25
......@@ -105,6 +105,7 @@ public class QcOrdResultAct extends ActionHandlerEJB implements QcOrdResultActLo
String specCode="";
String descr="";
Document dom = null;
String itemCode="",survCode="";
try
{
valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n");
......@@ -149,11 +150,18 @@ public class QcOrdResultAct extends ActionHandlerEJB implements QcOrdResultActLo
if( !update_flag.equals("N") )
{*/
qcOrder = genericUtility.getColumnValue("qorder_no",dom);
itemCode = genericUtility.getColumnValue("item_code",dom);
survCode = genericUtility.getColumnValue("emp_code",dom);
System.out.println("qcOrder["+qcOrder+"]");
System.out.println("itemCode["+itemCode+"]");
System.out.println("survCode["+survCode+"]");
if( qcOrder != null && qcOrder.trim().length() > 0 )
{
sql ="select spec_code from qcitem_spec_det";
sql ="select d.spec_code from qcitem_spec h ,qcitem_spec_det d where h.item_code=d.item_code and h.surv_code= ? and d.item_code= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,survCode);
pstmt.setString(2,itemCode);
rs = pstmt.executeQuery();
while ( 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