88766a6814aafb0a5a9d64ac3bf45bdf29eab5d1.svn-base 1005 B

1234567891011121314151617181920212223242526272829303132333435
  1. package xin.glue.ui.H.H05;
  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.vo.PosParameter;
  6. public class PosDeleteCraneOrder extends PosActivity
  7. {
  8. public String runActivity(PosContext context)
  9. {
  10. // 从页面获取参数数据,供更新页面使用
  11. String[] status = (String[]) context.get("status");
  12. String[] fromAddress = (String[])context.get("FROM_ADDR");
  13. String[] craneNo = (String[])context.get("CR_NO");
  14. String[] toAddress = (String[])context.get("TO_ADDR");
  15. if (status != null)
  16. {
  17. for(int i = 0 ;i<status.length; i++)
  18. {
  19. PosParameter param0 = new PosParameter();
  20. param0.setWhereClauseParameter(0,fromAddress[i] );
  21. param0.setWhereClauseParameter(1, craneNo[i]);
  22. param0.setWhereClauseParameter(2, toAddress[i]);
  23. getDao("mesdao").update("UIH050020_02.update", param0);
  24. }
  25. }
  26. return PosBizControlConstants.SUCCESS;
  27. }
  28. }