1955c817bb13f0bef24344efef3c149360b89858.svn-base 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package xin.glue.ui.D.D06;
  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. /**
  7. * ¶©µ¥Ô¤ÅÅÆÚÈ·ÈÏ
  8. * @author ÍõÀè
  9. * @date 2009-9-17
  10. */
  11. public class SaveOrderForPlanDate extends PosActivity
  12. {
  13. public String runActivity(PosContext context)
  14. {
  15. String[] ORD_NO = (String[]) context.get("ORD_NO");
  16. String[] ORD_SEQ = (String[]) context.get("ORD_SEQ");
  17. String[] ORD_PLAN_DATA = (String[]) context.get("ORD_PLAN_DATA");
  18. String[] ORD_DEVLMT_DATE = (String[]) context.get("ORD_DEVLMT_DATE");
  19. String[] H_ORD_DEVLMT_DATE = (String[]) context.get("H_ORD_DEVLMT_DATE");
  20. String[] CHK = (String[])context.get("CHK");
  21. PosParameter parameter = null;
  22. if(ORD_PLAN_DATA != null && ORD_PLAN_DATA.length != 0)
  23. {
  24. for (int i = 0; i < ORD_PLAN_DATA.length; i++)
  25. {
  26. if(CHK[i].equals("Y")){
  27. parameter = new PosParameter();
  28. parameter.setValueParamter(0, ORD_PLAN_DATA[i]);
  29. parameter.setValueParamter(1, ORD_DEVLMT_DATE[i]);
  30. parameter.setValueParamter(2, ORD_DEVLMT_DATE[i]);
  31. parameter.setValueParamter(3, H_ORD_DEVLMT_DATE[i]);
  32. parameter.setValueParamter(4, ORD_NO[i]);
  33. parameter.setValueParamter(5, ORD_SEQ[i]);
  34. getDao("mesdao").update("UID060010.savePlanDate.update", parameter);
  35. }
  36. }
  37. }
  38. return PosBizControlConstants.SUCCESS;
  39. }
  40. }