| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- package xin.glue.ui.common;
- import java.math.BigDecimal;
- import java.sql.CallableStatement;
- import java.sql.SQLException;
- import xin.glue.ui.common.PosDateFormat;
- import com.posdata.glue.PosException;
- import com.posdata.glue.biz.activity.PosActivity;
- import com.posdata.glue.biz.constants.PosBizControlConstants;
- import com.posdata.glue.biz.control.PosBizControlIF;
- import com.posdata.glue.biz.control.PosBizProvider;
- import com.posdata.glue.component.PosConstants;
- import com.posdata.glue.context.PosContext;
- import com.posdata.glue.dao.PosGenericDao;
- import com.posdata.glue.dao.vo.PosParameter;
- import com.posdata.glue.dao.vo.PosRow;
- import com.posdata.glue.dao.vo.PosRowSet;
- import com.posdata.glue.msg.PosMESMessageImpl;
- import com.posdata.glue.msg.PosMessage;
- public class ProduceFactory extends PosActivity
- {
- public String runActivity(PosContext context)
- {
- logger.logInfo("XinSaveSlabReject START " );
-
- return PosBizControlConstants.SUCCESS;
- }
- public void ErpDataCover(String PLINE ,String P_COILNO ,String PRDACTION
- ,String ISCP,String TypeIdx,String REGID,String refinfo )
- {
-
- //调用存货异动点存储过程
- CallableStatement PlRtn = getDao("mesdao").getCallableStatement("ERPPDOSLAB");//NIH020020
- try {
- if(PlRtn != null) {
- PlRtn.setString(1,PLINE);
- PlRtn.setString(2,P_COILNO);
- PlRtn.setString(3,PRDACTION);
- PlRtn.setString(4,ISCP);
- PlRtn.setString(5,TypeIdx);
- PlRtn.setString(6,REGID);
- PlRtn.setString(7,refinfo);
- PlRtn.execute();
-
- }
- } catch (SQLException e) {
- throw new PosException(e.getMessage());
- }finally
- {
- if (PlRtn != null)
- {
- try
- {
- PlRtn.close();
- }
- catch (SQLException e)
- {
- logger.logWarn(e.getMessage(), e);
- }
- }
- }
-
- }
-
- public void ErpDataCoverFJ(String PLINE, String P_COILNO,
- String PRDACTION,String ISCP,String TypeIdx,String DFLAG, String TMPWGT, String ORICOILNO, String REGID, String refinfo )
- {
-
- //调用存货异动点存储过程
- CallableStatement PlRtn = getDao("mesdao").getCallableStatement("ERPPDOSLABFJ");//NIH020020
- try {
- if(PlRtn != null) {
- PlRtn.setString(1,PLINE);
- PlRtn.setString(2,P_COILNO);
- PlRtn.setString(3,PRDACTION);
- PlRtn.setString(4,ISCP);
- PlRtn.setString(5,TypeIdx);
- PlRtn.setString(6,DFLAG);
- PlRtn.setString(7,TMPWGT);
- PlRtn.setString(8,ORICOILNO);
- PlRtn.setString(9,REGID);
- PlRtn.setString(10,refinfo);
- PlRtn.execute();
-
- }
- } catch (SQLException e) {
- throw new PosException(e.getMessage());
- }finally
- {
- if (PlRtn != null)
- {
- try
- {
- PlRtn.close();
- }
- catch (SQLException e)
- {
- logger.logWarn(e.getMessage(), e);
- }
- }
- }
-
- }
- }
|