package xin.glue.ui.D.D03; import com.posdata.glue.biz.activity.PosActivity; import com.posdata.glue.biz.constants.PosBizControlConstants; import com.posdata.glue.context.PosContext; import com.posdata.glue.dao.vo.PosParameter; /** * 保存浇次调整之后的信息 * @author 王黎 * @date 2008-12-6 */ public class SaveCastInfoAfter extends PosActivity { public String runActivity(PosContext context) { String[] MAT_SPEC_SEQ = (String[])context.get("MAT_SPEC_SEQ");//炉次号 String[] PMAT_SPEC_SEQ = (String[])context.get("PMAT_SPEC_SEQ");//上一级浇次号 String[] WITHIN_SUB_SEQ = (String[])context.get("WITHIN_SUB_SEQ");//顺序号 PosParameter parameter = null; if(MAT_SPEC_SEQ != null) { for(int i = 0; i < MAT_SPEC_SEQ.length; i++) { parameter = new PosParameter(); parameter.setValueParamter(0, PMAT_SPEC_SEQ[i]); parameter.setValueParamter(1, WITHIN_SUB_SEQ[i]); parameter.setValueParamter(2, MAT_SPEC_SEQ[i]); getDao("mesdao").update("castInfoAfter.update2", parameter); } } return PosBizControlConstants.SUCCESS; } }