package xin.glue.ui.K.K01; import com.posdata.glue.biz.activity.PosActivity; import com.posdata.glue.biz.constants.PosBizControlConstants; import com.posdata.glue.context.PosContext; import com.posdata.glue.dao.PosGenericDao; import com.posdata.glue.dao.vo.PosParameter; import com.posdata.glue.dao.vo.PosRow; import com.posdata.glue.dao.vo.PosRowSet; public class savecoil extends PosActivity { public String runActivity(PosContext context) { String[] OLD_SAMPL_NO = (String[])context.get("OLD_SAMPL_NO"); String[] chk = (String[])context.get("CHK"); String[] REG_ID = (String[])context.get("REG_ID"); String[] APPOINT_NOTE = (String[])context.get("APPOINT_NOTE"); String[] EXIST_YN = (String[])context.get("EXIST_YN"); String SEQ=""; PosRowSet rows11 = getDao("mesdao").find("UIK010010_01FJH.SELECT"); if(rows11.hasNext()){ PosRow row11 = rows11.next(); SEQ = (String) row11.getAttribute("MATSEQ"); } for(int i = 0 ; i < chk.length ; i++){ if(chk[i].equals("")||chk[i] == null||chk[i].equals("N"))continue; PosParameter param1 = new PosParameter(); param1.setWhereClauseParameter(0, SEQ); param1.setWhereClauseParameter(1, SEQ); param1.setWhereClauseParameter(2, OLD_SAMPL_NO[i]); this.getDao("mesdao").update("UIK010010_01FJH.UPDATE", param1); // } PosParameter param = new PosParameter(); param.setWhereClauseParameter(0, SEQ ); param.setWhereClauseParameter(1, REG_ID[0]); int updtCnt = getDao("mesdao").update("UIK010010_01FJH.INSERT", param); return PosBizControlConstants.SUCCESS; } }