4d0d730308df218c3d9f172cfcb570d4f47c45ae.svn-base 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package xin.glue.ui.B.B01;
  2. import java.util.ArrayList;
  3. import java.util.Iterator;
  4. import java.util.List;
  5. import java.util.Map;
  6. import java.util.Set;
  7. import xin.glue.ui.B.B02.MutilConditionFind;
  8. import com.posdata.glue.biz.activity.PosActivity;
  9. import com.posdata.glue.biz.constants.PosBizControlConstants;
  10. import com.posdata.glue.context.PosContext;
  11. import com.posdata.glue.dao.PosGenericDao;
  12. import com.posdata.glue.dao.vo.PosParameter;
  13. import com.posdata.glue.dao.vo.PosRow;
  14. import com.posdata.glue.dao.vo.PosRowSet;
  15. public class FindSpecStatus extends PosActivity
  16. {
  17. public String runActivity(PosContext context)
  18. {
  19. String[] ABBSYM;
  20. PosParameter param = null;
  21. PosRowSet tempRowSet1 = null;
  22. PosRow tempRow1 = null;
  23. PosRowSet tempRowSet2 = null;
  24. PosRow tempRow2 = null;
  25. List list = null;
  26. Map map = null;
  27. ABBSYM = (String[])context.get("ABBSYM");
  28. param = new PosParameter();
  29. param.setWhereClauseParameter(0, ABBSYM[0]);
  30. tempRowSet1 = this.getDao("mesdao").find("UIB010340.SELECT", param);
  31. list = new ArrayList();
  32. while(tempRowSet1.hasNext())
  33. {
  34. tempRow1 = tempRowSet1.next();
  35. map = tempRow1.getAttributes();
  36. String FLAG = (String)tempRow1.getAttribute("FLAG");
  37. if(FLAG.equals("2")) //当有订单执行此标准,且该标准没有录入完整时
  38. {
  39. param = new PosParameter();
  40. param.setWhereClauseParameter(0, tempRow1.getAttribute("SPEC_ABBSYM"));
  41. param.setWhereClauseParameter(1, tempRow1.getAttribute("SPEC_STL_GRD"));
  42. tempRowSet2 = this.getDao("mesdao").find("UIB010340.ORD.SELECT", param);
  43. StringBuffer ORD = new StringBuffer();
  44. while(tempRowSet2.hasNext())
  45. {
  46. tempRow2 = tempRowSet2.next();
  47. ORD.append((String)tempRow2.getAttribute("ORD")+" ");
  48. }
  49. map.put("ORD", ORD);
  50. }
  51. else
  52. {
  53. map.put("ORD", " ");
  54. }
  55. list.add(map);
  56. }
  57. context.put("SPEC_STATUS_RESULTS", list);
  58. return PosBizControlConstants.SUCCESS;
  59. }
  60. }