| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- package xin.glue.ui.H.H05;
- import java.math.BigDecimal;
- import xin.glue.ui.common.PosGridSave;
- 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;
- /*
- * 钢卷库内下车的行车命令执行,为了方便业务员使用
- * @author TangLiang 唐亮
- * @data 2009.02.6
- */
- public class XinSaveCrNoT extends PosActivity{
- public String runActivity(PosContext context)
- {
- // 原存放位置
- String[] FROM_ADDR = (String[]) context.get("FROM_ADDR");
- //到放置位置
- String[] TO_ADDR = (String[]) context.get("TO_ADDR");
- //行车编号
- String[] CR_NO = (String[]) context.get("CR_NO");
- //批次号
- String[] COIL_NO = (String[]) context.get("OLD_SAMPL_NO");
- //登录人
- String[] REG_ID = (String[])context.get("REG_ID");
- //行车命令编号
- String[] ORD_SEQ = (String[])context.get("ORD_SEQ");
-
- // 下车行车命令
- //更新原放置位置表
- PosParameter param1 = new PosParameter();
- param1.setWhereClauseParameter(0, FROM_ADDR[0]);
-
- getDao("mesdao").update("UIH050030_FROM.update", param1);
-
- //更新命令制订表中的信息
- PosParameter param3 = new PosParameter();
- param3.setWhereClauseParameter(0, REG_ID[0]);
- param3.setWhereClauseParameter(1, ORD_SEQ[0]);
-
- getDao("mesdao").update("UIH050030_cr_cmd.update", param3);
-
- //需要改变钢卷库内位置状态,把锁定的来源位置释放出来
- PosParameter param4 = new PosParameter();
- param4.setWhereClauseParameter(0, FROM_ADDR[0]);
-
- getDao("mesdao").update("UIH050030_RESERV_FL.update", param4);
-
- //更新钢卷公共表的SHIP_PROG_CD状态,从05-06
- PosParameter param8 = new PosParameter();
- param8.setWhereClauseParameter(0, TO_ADDR[0]);
- param8.setWhereClauseParameter(1, COIL_NO[0]);
-
- getDao("mesdao").update("UIH050030_CUR_PROG_CD", param8);
-
- return PosBizControlConstants.SUCCESS;
- }
- }
|