| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- package xin.glue.ui.J.J01;
- 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 CancBJ extends PosActivity{
- public String runActivity(PosContext context){
- //行状态
- String[] rowStuts = (String[]) context.get("rowStuts");
- //钢卷号
- String[] OLD_SAMPL_NO = (String[]) context.get("OLD_SAMPL_NO");
- //钢卷重量
- String[] ACT_WGT = (String[]) context.get("ACT_WGT");
- //预装车标志位
- String[] CHK = (String[]) context.get("CHK");
- //录入人
- String[] REG_ID = (String[]) context.get("REG_ID");
-
- String coil_no = null;
-
- for(int i=0;i<OLD_SAMPL_NO.length;i++){
- if(CHK[i].equals("Y")){
-
-
- //查询此垛位上面是否存在钢卷
- PosParameter param11 = new PosParameter();
- param11.setWhereClauseParameter(0,OLD_SAMPL_NO[i]);
-
- PosRowSet rows = getDao("mesdao").find("UIJ010060_BJ.SELECT", param11);
-
- if(rows.hasNext()){
- PosRow row = rows.next();
-
- coil_no = (String) row.getAttribute("MOVE_ST");
-
- if(coil_no == "0"){
- // 清除垛位表信息
- PosParameter param2 = new PosParameter();
-
- param2.setWhereClauseParameter(0, OLD_SAMPL_NO[i]);
- getDao("mesdao").update("UIJ010060_BJ02.UPDATE", param2);
-
- PosParameter param1 = new PosParameter();
- param1.setWhereClauseParameter(0, OLD_SAMPL_NO[i]);
- this.getDao("mesdao").delete("UIJ010060_BJ.DELETE", param1);
- }else{
- logger.logInfo("已移送的卷"+OLD_SAMPL_NO[i]+"已被板加接收,请联系板加退回!");
- String vtemp="ERROR";
- context.put("rs", vtemp);
- }
- }
-
-
- }
- }
-
- return PosBizControlConstants.SUCCESS;
- }
- }
|