| 
 | 
 
 
 楼主 |
发表于 2018-6-8 14:37:04
|
显示全部楼层
 
 
 
admin 发表于 2018-6-8 10:06   
发帖请详细些  
代码生成方式是:EasyUI标签列表上下布局(列表数据编辑)+Table风格表单 
controller: 
@RequestMapping(params = "datagrid") 
        public void datagrid(JformResumeExpInfoEntity jformResumeExpInfo,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) { 
                CriteriaQuery cq = new CriteriaQuery(JformResumeExpInfoEntity.class, dataGrid); 
                String mainId = request.getParameter("mainId"); 
                if(oConvertUtils.isNotEmpty(mainId)){ 
                        //查询条件组装�?                        org.jeecgframework.core.extend.hqlsearch.HqlGenerateUtil.installHql(cq, jformResumeExpInfo,request.getParameterMap()); 
                        try{ 
                                //自定义追加查询条�?                                 cq.eq("resumeId", mainId); 
                        }catch (Exception e) { 
                                throw new BusinessException(e.getMessage()); 
                        } 
                        cq.add(); 
                        this.jformResumeInfoService.getDataGridReturn(cq, true); 
                } 
                TagUtil.datagrid(response, dataGrid); 
        } 
 
JSP 页面: 
<!-- tab内容 -->         
                <div class="con-wrapper" id="con-wrapper1" style="display: block;">         
                        <div class="row form-wrapper"> 
                                <div class="row show-grid"> 
                                    <div class="col-xs-3 text-center"> 
                                          <b>�?��时间�?/b> 
                            </div> 
                                  <div class="col-xs-3"> 
                                   
                <input name="beginDate" maxlength="0" type="text" class="form-control"  style="width:150px;background: url('plug-in/ace/images/datetime.png') no-repeat scroll right center transparent;"  ignore="ignore"  value='<fmt:formatDate value='${beginDate}' type="date" pattern="yyyy-MM-dd"/>'/> 
                                                <span class="Validform_checktip" style="float:left;height:0px;"></span> 
                                                <label class="Validform_label" style="display: none">�?��时间</label> 
                                </div> 
                                </div> 
                                   
                                 
                                <div class="row show-grid"> 
                                    <div class="col-xs-3 text-center"> 
                                          <b>结束时间�?/b> 
                            </div> 
                                  <div class="col-xs-3"> 
                                   
                <input name="endDate" maxlength="0" type="text" class="form-control"  style="width:150px;background: url('plug-in/ace/images/datetime.png') no-repeat scroll right center transparent;"  ignore="ignore"  value='<fmt:formatDate value='${endDate}' type="date" pattern="yyyy-MM-dd"/>'/> 
                                                <span class="Validform_checktip" style="float:left;height:0px;"></span> 
                                                <label class="Validform_label" style="display: none">结束时间</label> 
                                </div> 
 
 
 $(function(){ 
    //查看模式情况�?删除和上传附件功能禁止使�?        if(location.href.indexOf("load=detail")!=-1){ 
                $(".jeecgDetail").hide(); 
        } 
         
        if(location.href.indexOf("mode=read")!=-1){ 
                //查看模式控件禁用 
                $("#formobj").find(":input").attr("disabled","disabled"); 
        } 
        if(location.href.indexOf("mode=onbutton")!=-1){ 
                //其他模式显示提交按钮 
                $("#sub_tr").show(); 
        } 
   }); 
 
 |   
 
 
 
 |