9c5f68ce05798976de3817f34196b8befa730424.svn-base 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package xin.glue.ui.K.K01;
  2. import com.posdata.glue.biz.activity.PosActivity;
  3. import com.posdata.glue.biz.constants.PosBizControlConstants;
  4. import com.posdata.glue.context.PosContext;
  5. import com.posdata.glue.dao.PosGenericDao;
  6. import com.posdata.glue.dao.vo.PosParameter;
  7. import com.posdata.glue.dao.vo.PosRow;
  8. import com.posdata.glue.dao.vo.PosRowSet;
  9. public class savecoil extends PosActivity {
  10. public String runActivity(PosContext context) {
  11. String[] OLD_SAMPL_NO = (String[])context.get("OLD_SAMPL_NO");
  12. String[] chk = (String[])context.get("CHK");
  13. String[] REG_ID = (String[])context.get("REG_ID");
  14. String[] APPOINT_NOTE = (String[])context.get("APPOINT_NOTE");
  15. String[] EXIST_YN = (String[])context.get("EXIST_YN");
  16. String SEQ="";
  17. PosRowSet rows11 = getDao("mesdao").find("UIK010010_01FJH.SELECT");
  18. if(rows11.hasNext()){
  19. PosRow row11 = rows11.next();
  20. SEQ = (String) row11.getAttribute("MATSEQ");
  21. }
  22. for(int i = 0 ; i < chk.length ; i++){
  23. if(chk[i].equals("")||chk[i] == null||chk[i].equals("N"))continue;
  24. PosParameter param1 = new PosParameter();
  25. param1.setWhereClauseParameter(0, SEQ);
  26. param1.setWhereClauseParameter(1, SEQ);
  27. param1.setWhereClauseParameter(2, OLD_SAMPL_NO[i]);
  28. this.getDao("mesdao").update("UIK010010_01FJH.UPDATE", param1); //
  29. }
  30. PosParameter param = new PosParameter();
  31. param.setWhereClauseParameter(0, SEQ );
  32. param.setWhereClauseParameter(1, REG_ID[0]);
  33. int updtCnt = getDao("mesdao").update("UIK010010_01FJH.INSERT", param);
  34. return PosBizControlConstants.SUCCESS;
  35. }
  36. }