| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- package xin.glue.ui.G.G04;
- 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.PosRowSet;
-
- public class PosCmdRollerDelete extends PosActivity{
-
-
- public String runActivity(PosContext context)
- {
- String[] rowStatus = (String[]) context.get("rowStatus");
- String[] YARD_ADDR = (String[]) context.get("YARD_ADDR");
- String[] SLAB_NO = (String[]) context.get("SLAB_NO");
- //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[] ORD_SEQ = (String[]) context.get("ORD_SEQ");
-
- logger.logInfo("PosCmdRollerDelete---> rowStatus["+ rowStatus.length+"]" );
-
- for(int i=0;i<rowStatus.length;i++){
-
-
- if (ORD_SEQ[i] != null && !ORD_SEQ[i].equals("") ) {
-
- logger.logInfo("PosCmdRollerDelete---> ORD_SEQ["+ ORD_SEQ[i]+"]" );
-
- PosParameter param1 = new PosParameter();
- param1.setWhereClauseParameter(0, ORD_SEQ[i]);
- PosRowSet CrOrdVO = this.getDao("mesdao").find("UIG040060_CR_ORD.select", param1);
- if(CrOrdVO.hasNext()) {
- PosParameter param2 = new PosParameter();
- param2.setValueParamter(0, "3");
- param2.setValueParamter(1, "UIG040060");
- param2.setValueParamter(2, ORD_SEQ[i]);
- getDao("mesdao").update("UIG040060_CR_COMM_DEL.update",param2);
-
- }
-
- PosParameter param4 = new PosParameter();
- param4.setValueParamter(0, "");
- param4.setValueParamter(1, "UIG040060");
- param4.setValueParamter(2, SLAB_NO[i]);
- param4.setValueParamter(3, YARD_ADDR[i]);
- getDao("mesdao").update("UIG040060_SLAB_YARD.update",param4);
-
- }
- }
-
- return PosBizControlConstants.SUCCESS;
- }
-
- }
|