package xin.glue.ui.H.H05; import xin.glue.ui.common.PosGridSave; //import xin.glue.ui.common.component.PosSiteConfig; import xin.glue.ui.common.component.PosSiteLog; 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; import com.posdata.glue.dao.vo.PosRow; import com.posdata.glue.dao.vo.PosRowSet; public class PosWkBeamCmdDelete extends PosActivity{ public String runActivity(PosContext context) { String[] rowStatus = (String[]) context.get("rowStatus"); String[] WK_BEAM = (String[]) context.get("WK_BEAM"); String[] COIL_NO = (String[]) context.get("COIL_NO"); String[] TO_ADDR = (String[]) context.get("TO_ADDR"); String[] CR_NO = (String[]) context.get("CR_NO"); String[] ORD_SEQ = (String[]) context.get("ORD_SEQ"); logger.logInfo("PosWkBeamCmdDelete---> rowStatus["+ rowStatus.length+"]" ); for(int i=0;i ORD_SEQ["+ ORD_SEQ[i]+"]" ); PosParameter param1 = new PosParameter(); param1.setWhereClauseParameter(0, ORD_SEQ[i]); PosRowSet CrOrdVO = this.getDao("mesdao").find("UIH050050_CR_ORD.select", param1); if(CrOrdVO.hasNext()) { PosParameter param2 = new PosParameter(); param2.setValueParamter(0, "3"); param2.setValueParamter(1, "UIH050050"); param2.setValueParamter(2, ORD_SEQ[i]); getDao("mesdao").update("UIH050050_CR_ORD_DEL.update",param2); PosParameter param3 = new PosParameter(); param3.setValueParamter(0, ""); param3.setValueParamter(1, TO_ADDR[i]); getDao("mesdao").update("NIH050010_RES_YARD.update",param3); PosParameter param4 = new PosParameter(); param4.setValueParamter(0, ""); param4.setValueParamter(1, "UIH050050"); param4.setValueParamter(2, WK_BEAM[i]); getDao("mesdao").update("UIH050050_WKBEAM_RESV.update",param4); } } } return PosBizControlConstants.SUCCESS; } }