59bf04da592b87ee07245b829ef7a85e02245143.svn-base 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. /**
  9. * 查询炼钢、轧钢生产规范编码(界面ID:UIB010330)
  10. * @author 梅贵平
  11. * @date 2008-10-24
  12. */
  13. public class FindProduceCD extends PosActivity
  14. {
  15. public String runActivity(PosContext context)
  16. {
  17. String[] sms = (String[])context.get("Sms");//炼钢生产规范编码
  18. String[] mill= (String[])context.get("Mill");//轧钢生产规范编码
  19. PosGenericDao dao = this.getDao("mesdao");
  20. sms[0] = sms[0].trim();//去前后空格
  21. mill[0]= mill[0].trim();//去前后空格
  22. PosParameter param = null;
  23. PosRowSet rs1 = null;
  24. if(!"".equals(sms[0]))//若"炼钢生产规范编码"不为空则查询
  25. {
  26. param = new PosParameter();
  27. param.setWhereClauseParameter(0, sms[0]);
  28. rs1 = dao.find("UIB010330_03.SELECT", param);
  29. context.put("SmsResult", rs1);
  30. }
  31. PosRowSet rs2 = null;
  32. if(!"".equals(mill[0]))//若"轧钢生产规范编码"不为空则查询
  33. {
  34. param = new PosParameter();
  35. param.setWhereClauseParameter(0, mill[0]);
  36. rs2 = dao.find("UIB010330_04.SELECT", param);
  37. context.put("MillResult", rs2);
  38. }
  39. return PosBizControlConstants.SUCCESS;
  40. }
  41. }