3f2d68aa24839e92f04f2cf9a32a2b55166f85fe.svn-base 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package xin.glue.ui.D.D03;
  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 2008-12-6
  10. */
  11. public class SaveCastInfoAfter extends PosActivity
  12. {
  13. public String runActivity(PosContext context)
  14. {
  15. String[] MAT_SPEC_SEQ = (String[])context.get("MAT_SPEC_SEQ");//炉次号
  16. String[] PMAT_SPEC_SEQ = (String[])context.get("PMAT_SPEC_SEQ");//上一级浇次号
  17. String[] WITHIN_SUB_SEQ = (String[])context.get("WITHIN_SUB_SEQ");//顺序号
  18. PosParameter parameter = null;
  19. if(MAT_SPEC_SEQ != null)
  20. {
  21. for(int i = 0; i < MAT_SPEC_SEQ.length; i++)
  22. {
  23. parameter = new PosParameter();
  24. parameter.setValueParamter(0, PMAT_SPEC_SEQ[i]);
  25. parameter.setValueParamter(1, WITHIN_SUB_SEQ[i]);
  26. parameter.setValueParamter(2, MAT_SPEC_SEQ[i]);
  27. getDao("mesdao").update("castInfoAfter.update2", parameter);
  28. }
  29. }
  30. return PosBizControlConstants.SUCCESS;
  31. }
  32. }