e0e57a585bca9c81120ac7272d8e790d8d0adb1c.svn-base 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package xin.glue.ui.B.B02.O1;
  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. /**
  9. *
  10. * @Description 送样时间记录{界面ID:UIB020111}
  11. * @author 梅贵平{meiguiping}
  12. * @date 2009-8-2 下午02:41:09
  13. * @JDK Version jdk1.4.2
  14. */
  15. public class SaveSendSMPNOTime extends PosActivity
  16. {
  17. public String runActivity(PosContext context)
  18. {
  19. PosParameter param = null;
  20. PosRowSet rowset = null;
  21. PosGenericDao dao = this.getDao("mesdao");
  22. String[] rowStatus = (String[])context.get("rowStatus");
  23. String[] SMP_NO = (String[])context.get("SMP_NO");
  24. String[] REG_NM = (String[])context.get("REG_NM");
  25. if(rowStatus == null) return PosBizControlConstants.SUCCESS;
  26. int len = rowStatus.length;
  27. for(int i = 0; i < len; i++)
  28. {
  29. param = new PosParameter();
  30. param.setWhereClauseParameter(0, REG_NM[0]);
  31. param.setWhereClauseParameter(1, SMP_NO[i]);
  32. dao.update("UIB020111_01.UPDATE", param);
  33. }
  34. return PosBizControlConstants.SUCCESS;
  35. }
  36. }