/** * 查询产品大类信息 * * @param cycle * @throws Exception * @author:wull */ public void queryProductTypeList(IRequestCycle cycle) throws Exception { PageData pd = this.getPageData(); IData params = pd.getData("cond", true); params.put("ITEM_FLAG", "1"); IDataset productTypeList = productBean.queryProductTypeLists(pd, params, pd.getPagination()); this.setInfos(productTypeList); this.init(cycle); }
/** * 页面初始化参数 * * @param cycle * @throws Exception * @author:wull */ public void init(IRequestCycle cycle) throws Exception { PageData pd = getPageData(); IData conditions = pd.getData("cond", true); IData data = new DataMap(); // // if(null!=pd.getParameter("PRODUCT_CLASS")&&!"".equals(pd.getParameter("PRODUCT_CLASS","").trim())) // { // conditions.put("PRODUCT_CLASS", pd.getParameter("PRODUCT_CLASS","")); // data.put("ITEM_FLAG", "1"); // IDataset productclass = productBean.queryProductClassLists(pd, data, null); // conditions.put("PRODUCTCLASS", productclass); // } this.setConditions(conditions); if (null != pd.getParameter("ID") && !"".equals(pd.getParameter("ID", "").trim())) { data.put("PRODUCT_CLASS", pd.getParameter("ID", "")); IDataset productTypeList = productBean.queryProductTypeLists(pd, data, pd.getPagination()); this.setInfos(productTypeList); conditions.put("PRODUCT_CLASS", pd.getParameter("ID", "")); this.setConditions(conditions); } }