頁面查詢流程

來源:互聯網
上載者:User

標籤:條件   ogg   bind   error   prot   lag   net   ppi   set   

/**      * 跳轉至列表頁面時的主邏輯演算法(綁定級聯下拉框)     * @param request 請求對象     * @param modelMap 頁面參數集合     * @param source 表單資料來源     * @param mainEntity 主實體bean     * @param service 主業務控制器     */    protected void toList_bind(HttpServletRequest request, ModelMap modelMap,FormSource source, SFObject mainEntity, ModuleService service) throws Exception {    PersonrangeBean personrangeBean = this.bean(request, PersonrangeBean.class, false);    modelMap.put(PersonrangeArgument.VILLAGEIDS, personrangeBean.getCommunids());          COMMUNINFOService comService = IocFactory.instance(COMMUNINFOService.class);    DataTable commTable = comService.getArea();        if(!NoneType.isNullOrEmpty(commTable)){    source.add(CommuninfoArgument.COMMUNINFO_PARENT_ID, commTable);    }}/**     * 跳轉至列表頁面     * @param request 請求對象     * @param response 響應對象     * @param modelMap 頁面參數集合     * @return 整頁模式控制器     */    @RequestMapping("toList.do")    public ModelAndView toList(HttpServletRequest request,HttpServletResponse response, ModelMap modelMap) {    if( NoneType.isNullOrEmpty( request.getParameter(ContextArgument.ATTR_QUERY_TYPE) ) ){  //初始化頁面的queryType查詢類型    request.setAttribute(ContextArgument.ATTR_QUERY_TYPE, StatusType.UNDEFAULT);    }else{    this.backfill(request, ContextArgument.ATTR_QUERY_TYPE);     }        SFObject mainEntity = this.createMainEntity();    ModuleService service = this.createService();    FormSource source = this.source(request);        try{        this.toList_bind(request,modelMap,source,mainEntity,service);   //將頁面標籤(過濾條件)所需的資料來源載入表單資料來源內。(    【PersonrangeBean personrangeBean = this.bean(request, PersonrangeBean.class, false);  //頁面輸入的查詢條件modelMap.put(PersonrangeArgument.VILLAGEIDS, personrangeBean.getCommunids());  //頁面查詢條件載入到模型視表徵圖簽id】【COMMUNINFOService comService = IocFactory.instance(COMMUNINFOService.class);    DataTable commTable = comService.getArea();        if(!NoneType.isNullOrEmpty(commTable)){    source.add(CommuninfoArgument.COMMUNINFO_PARENT_ID, commTable);    }(表單資料來源添加資料)】)    source.put(modelMap); (查詢條件載入到表單資料來源)        }catch(Exception e ){    this.logger.error(e);    }                return new ModelAndView(this.getActionPath("list"), modelMap);    }   /**     * 查詢社區資訊並綁定至列表頁面(下拉框查詢)     * @param request 請求對象     * @param response 響應對象     * @param modelMap 頁面參數集合     * @return 表單資料來源JSON     */    @RequestMapping("list.do")    public ModelAndView list(HttpServletRequest request,HttpServletResponse response, ModelMap modelMap) {                 COMMUNINFOService service = IocFactory.instance(COMMUNINFOService.class);        try {               DataPage dataPage = this.getDataPage(request);            String orderBy = request.getParameter(ContextArgument.GRID);            COMMUNINFO bean = this.bean(request, COMMUNINFO.class);            DataTable table = service.table(bean, orderBy,dataPage);                        FormSource source = this.source(request);            source.add(ContextArgument.GRID, table, orderBy );            source.add(ContextArgument.PGINFO, dataPage );            source.put(modelMap);                    } catch (Exception e) {            logger.error(e);        }        return this.output(response, modelMap);    }

  

頁面查詢流程

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.