55c8bb65a7943004a64296f1585a60732bed7101.svn-base 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.PosRowSet;
  8. public class SaveAPPOINT extends PosActivity {
  9. public String runActivity(PosContext context) {
  10. String[] OLD_SAMPL_NO = (String[])context.get("OLD_SAMPL_NO");
  11. String[] chk = (String[])context.get("CHK");
  12. String[] REG_ID = (String[])context.get("REG_ID");
  13. String[] APPOINT_NOTE = (String[])context.get("APPOINT_NOTE");
  14. String[] EXIST_YN = (String[])context.get("EXIST_YN");
  15. for(int i = 0 ; i < chk.length ; i++){
  16. if(chk[i].equals("")||chk[i] == null||chk[i].equals("N"))continue;
  17. if(EXIST_YN[i].equals("Y")){
  18. PosParameter param1 = new PosParameter();
  19. param1.setWhereClauseParameter(0, OLD_SAMPL_NO[i]);
  20. int updtCnt1 = getDao("mesdao").update("UIH052400_04.update", param1); //Çå³ý¶âλ
  21. PosParameter param = new PosParameter();
  22. param.setWhereClauseParameter(0, OLD_SAMPL_NO[i]);
  23. param.setWhereClauseParameter(1, OLD_SAMPL_NO[i]);
  24. int updtCnt = getDao("mesdao").update("UIK010010_02.insert", param);}
  25. else{
  26. PosParameter param1 = new PosParameter();
  27. param1.setWhereClauseParameter(0, OLD_SAMPL_NO[i]);
  28. this.getDao("mesdao").update("UIH052400_04.update", param1); //Çå³ý¶âλ
  29. PosParameter param = new PosParameter();
  30. param.setWhereClauseParameter(0, REG_ID[0]);
  31. //param.setWhereClauseParameter(1, APPOINT_NOTE[i]);
  32. param.setWhereClauseParameter(1, OLD_SAMPL_NO[i]);
  33. int updtCnt = getDao("mesdao").update("UIK010010_01.insert", param);}
  34. }
  35. return PosBizControlConstants.SUCCESS;
  36. }
  37. }