| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package xin.glue.ui.B.B01;
- import com.posdata.glue.biz.activity.PosActivity;
- import com.posdata.glue.biz.constants.PosBizControlConstants;
- import com.posdata.glue.context.PosContext;
- import com.posdata.glue.dao.PosGenericDao;
- import com.posdata.glue.dao.vo.PosParameter;
- import com.posdata.glue.dao.vo.PosRowSet;
- /**
- * 查询炼钢、轧钢生产规范编码(界面ID:UIB010330)
- * @author 梅贵平
- * @date 2008-10-24
- */
- public class FindProduceCD extends PosActivity
- {
- public String runActivity(PosContext context)
- {
- String[] sms = (String[])context.get("Sms");//炼钢生产规范编码
- String[] mill= (String[])context.get("Mill");//轧钢生产规范编码
- PosGenericDao dao = this.getDao("mesdao");
-
- sms[0] = sms[0].trim();//去前后空格
- mill[0]= mill[0].trim();//去前后空格
-
- PosParameter param = null;
-
- PosRowSet rs1 = null;
- if(!"".equals(sms[0]))//若"炼钢生产规范编码"不为空则查询
- {
- param = new PosParameter();
- param.setWhereClauseParameter(0, sms[0]);
- rs1 = dao.find("UIB010330_03.SELECT", param);
- context.put("SmsResult", rs1);
- }
-
- PosRowSet rs2 = null;
- if(!"".equals(mill[0]))//若"轧钢生产规范编码"不为空则查询
- {
- param = new PosParameter();
- param.setWhereClauseParameter(0, mill[0]);
- rs2 = dao.find("UIB010330_04.SELECT", param);
- context.put("MillResult", rs2);
- }
- return PosBizControlConstants.SUCCESS;
- }
- }
|