f585d0257780e2ce5e52eb1698dbe0d917f889b9.svn-base 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package xin.glue.ui.G.G02;
  2. import com.posdata.glue.biz.activity.PosActivity;
  3. import com.posdata.glue.biz.constants.PosBizControlConstants;
  4. import com.posdata.glue.context.PosContext;
  5. import com.posdata.glue.dao.PosGenericDao;
  6. import com.posdata.glue.dao.vo.PosParameter;
  7. import com.posdata.glue.dao.vo.PosRowSet;
  8. /**
  9. * 连铸实绩查询的化学成分查询
  10. * @author: 王小炎
  11. * @date: 2008.09.02
  12. */
  13. public class PosSearchCCMResult extends PosActivity
  14. {
  15. public String runActivity(PosContext context)
  16. {
  17. PosRowSet rowSet = context.getRowSet("CCMResult");
  18. PosGenericDao posDao = this.getDao("mesdao");
  19. //PosRow[] row = rowSet.getAllRow();
  20. if (rowSet.count() != 0)
  21. {
  22. PosParameter param = new PosParameter();
  23. String[] CHARGE_NO = (String[]) context.get("CHARGE_NO");
  24. param.setWhereClauseParameter(0, CHARGE_NO[0]);
  25. param.setWhereClauseParameter(1, CHARGE_NO[0]);
  26. param.setWhereClauseParameter(2, CHARGE_NO[0]);
  27. param.setWhereClauseParameter(3, "J");
  28. PosRowSet prs = posDao.find("UIG020COMM_04.select", param);
  29. context.put("CCMChemResult", prs);
  30. }
  31. return PosBizControlConstants.SUCCESS;
  32. }
  33. }