f8716864e5955214589e5d8e40ddaa671ea6c3c3.svn-base 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package xin.glue.ui.F.F01;
  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.vo.PosParameter;
  6. import com.posdata.glue.dao.vo.PosRow;
  7. import com.posdata.glue.dao.vo.PosRowSet;
  8. /**
  9. * @author 王小炎(wangxiaoyan)
  10. * @desc 检查出钢指示中相关标准信息是否缺失
  11. * @return
  12. */
  13. public class CheckStandard extends PosActivity
  14. {
  15. public String runActivity(PosContext context)
  16. {
  17. String[] rowStatus = (String[]) context.get("rowStuts");
  18. String[] chargeManaNo = (String[]) context.get("CHARGE_MANA_NO_EN");
  19. // -------------2010-5-7 王黎添加 解决字符串越界异常-----------------
  20. if (chargeManaNo == null || "".equals(chargeManaNo[0]))
  21. {
  22. return PosBizControlConstants.SUCCESS;
  23. }
  24. // -------------2010-5-7 王黎添加 解决字符串越界异常-----------------
  25. PosParameter param = new PosParameter();
  26. param.setWhereClauseParameter(0, chargeManaNo[0].substring(2, 3));
  27. param.setWhereClauseParameter(1, chargeManaNo[0]);
  28. PosRowSet rowset = getDao("mesdao").find("UIF012030_STL_STANDARD.find",
  29. param);
  30. // rowset.reset();
  31. context.put("rs4", "Y");
  32. while (rowset.hasNext())
  33. {
  34. PosRow row = rowset.next();
  35. String CHARGE_MANA_NO = (String) row.getAttribute("CHARGE_MANA_NO");
  36. String BOF_TEMP_TGT = (String) row.getAttribute("BOF_TEMP_TGT");
  37. String CAS_TEMP_TGT = (String) row.getAttribute("CAS_TEMP_TGT");
  38. String RH_TEMP_TGT = (String) row.getAttribute("RH_TEMP_TGT");
  39. String LF_TEMP_TGT = (String) row.getAttribute("LF_TEMP_TGT");
  40. String PREV_CHARGE_WGT = (String) row.getAttribute("PREV_CHARGE_WGT");
  41. if (BOF_TEMP_TGT == null || "".equals(BOF_TEMP_TGT)
  42. || CAS_TEMP_TGT == null || "".equals(CAS_TEMP_TGT)
  43. || RH_TEMP_TGT == null || "".equals(RH_TEMP_TGT)
  44. || LF_TEMP_TGT == null || "".equals(LF_TEMP_TGT)
  45. || PREV_CHARGE_WGT == null || "".equals(PREV_CHARGE_WGT))
  46. {
  47. context.put("rs4", "N");
  48. break;
  49. }
  50. }
  51. return PosBizControlConstants.SUCCESS;
  52. }
  53. }