| 123456789101112131415161718192021222324252627282930313233343536373839 |
- package xin.glue.ui.B.B02;
- import java.sql.CallableStatement;
- 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.PosGenericDao;
- import com.posdata.glue.dao.vo.PosParameter;
- public class ShenBao extends PosActivity{
-
- public String runActivity(PosContext context)
- {
- PosParameter param = null;
- String []SLAB_NO = (String [])context.get("SLAB_NO"); //板坯号
- String []REG_NM = (String[])context.get("REG_NM");
- int iCount=SLAB_NO.length;
- PosGenericDao dao = this.getDao("mesdao");
- CallableStatement cstm = dao.getCallableStatement("UIB030202_07.CALLSTATEMENT");
- try{
- for(int i=0;i<iCount;i++)
- {
- /*param = new PosParameter();
- param.setValueParamter( 0, SLAB_NO[i] );
- getDao("mesdao").update("UIB030202_06.UPDATE",param);*/
- cstm.setString(1, SLAB_NO[i]);//板坯号
- cstm.setString(2, REG_NM[0]);//操作人
- cstm.setString(3, "Add");//为L或者为F,L为正常流转,F为判废
- cstm.registerOutParameter(5, java.sql.Types.VARCHAR);
- cstm.execute();
-
- }
- }catch(Exception e){
- e.printStackTrace();
- }
- return PosBizControlConstants.SUCCESS;
- }
- }
|