| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- package xin.glue.ui.D.D02;
- import java.util.HashMap;
- import java.util.Map;
- 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 ����
- * @date 2008-12-11
- */
- public class SureCastInfoToPro extends PosActivity
- {
- public String runActivity(PosContext context)
- {
- String[] sDB_RegId = (String[])context.get("RegId" );
- String[] sDB_ModId = (String[])context.get("ModId" );
- String[] MAT_SPEC_SEQ = (String[])context.get("CastNo");
- PosRow row = null;
- Map map = new HashMap();
- PosRowSet rowSet = null;
- String matSpecSeq = "";
- PosParameter param = null;
- if(MAT_SPEC_SEQ != null)
- {
- param = new PosParameter();
- param.setValueParamter(0, sDB_RegId[0]);
- param.setValueParamter(1, sDB_ModId[0]);
- param.setValueParamter(2, MAT_SPEC_SEQ[0]);
- getDao("mesdao").insert("matdnRstBackup.insert", param);
-
- param = new PosParameter();
- param.setWhereClauseParameter(0, MAT_SPEC_SEQ[0]);
- rowSet = getDao("mesdao").find("UID020020.DeleteMatDnRst.Row.Select", param);
- while(rowSet.hasNext())
- {
- param = new PosParameter();
- row = rowSet.next();
- map = row.getAttributes();
- matSpecSeq = (String)map.get("MAT_SPEC_SEQ");
- param.setWhereClauseParameter(0, matSpecSeq);
- getDao("mesdao").delete("UID020020.DeleteMatDnRst.Row.Delete", param);
- }
- }
- return PosBizControlConstants.SUCCESS;
- }
- }
|