806ca19989aee95b5f24caea978414dbcf832859.svn-base 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package xin.glue.ui.B.B01;
  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. public class FindReqCustSpecNo extends PosActivity
  9. {
  10. public String runActivity(PosContext context)
  11. {
  12. String[] QueryContent = (String[])context.get("QueryContent");
  13. String[] CUSTCD = (String[])context.get("CUSTCD");
  14. PosParameter param = new PosParameter();
  15. param.setWhereClauseParameter(0 , CUSTCD[0]);
  16. PosGenericDao dao = this.getDao("mesdao");
  17. PosRowSet rowset = null;
  18. if("CUST_SPEC_NO_INGR".equals(QueryContent[0]))//±ê×¼ºÅ
  19. {
  20. rowset = dao.find("UIB010250_02.INITSELECT" , param);
  21. }
  22. else if("CUST_SPEC_NO_QLTY".equals(QueryContent[0]))
  23. {
  24. rowset = dao.find("UIB010250_03.INITSELECT" , param);
  25. }
  26. else if("CUST_SPEC_NO_DEL".equals(QueryContent[0]))
  27. {
  28. rowset = dao.find("UIB010250_04.INITSELECT" , param);
  29. }
  30. context.put("CustReqInfomation", rowset);
  31. return PosBizControlConstants.SUCCESS;
  32. }
  33. }