公司部门岗位增加代码模糊查询
This commit is contained in:
@@ -95,6 +95,14 @@ public class Company extends TreeEntity<Company> {
|
||||
this.viewCode = viewCode;
|
||||
}
|
||||
|
||||
public String getViewCode_like() {
|
||||
return sqlMap().getWhere().getValue("view_code", QueryType.LIKE);
|
||||
}
|
||||
|
||||
public void setViewCode_like(String viewCode) {
|
||||
sqlMap().getWhere().and("view_code", QueryType.LIKE, viewCode);
|
||||
}
|
||||
|
||||
@NotBlank(message="公司名称不能为空")
|
||||
@Size(min=0, max=200, message="公司名称长度不能超过 200 个字符")
|
||||
public String getCompanyName() {
|
||||
|
||||
@@ -108,7 +108,15 @@ public class Office extends TreeEntity<Office> {
|
||||
public void setViewCode(String viewCode) {
|
||||
this.viewCode = viewCode;
|
||||
}
|
||||
|
||||
|
||||
public String getViewCode_like() {
|
||||
return sqlMap().getWhere().getValue("view_code", QueryType.LIKE);
|
||||
}
|
||||
|
||||
public void setViewCode_like(String viewCode) {
|
||||
sqlMap().getWhere().and("view_code", QueryType.LIKE, viewCode);
|
||||
}
|
||||
|
||||
@NotBlank(message="机构名称不能为空")
|
||||
@Size(min=0, max=100, message="机构名称长度不能超过 100 个字符")
|
||||
public String getOfficeName() {
|
||||
|
||||
@@ -65,7 +65,15 @@ public class Post extends DataEntity<Post> {
|
||||
public void setViewCode(String viewCode) {
|
||||
this.viewCode = viewCode;
|
||||
}
|
||||
|
||||
|
||||
public String getViewCode_like() {
|
||||
return sqlMap().getWhere().getValue("view_code", QueryType.LIKE);
|
||||
}
|
||||
|
||||
public void setViewCode_like(String viewCode) {
|
||||
sqlMap().getWhere().and("view_code", QueryType.LIKE, viewCode);
|
||||
}
|
||||
|
||||
@NotBlank(message="岗位名称不能为空")
|
||||
@Size(min=0, max=100, message="岗位名称长度不能超过 100 个字符")
|
||||
public String getPostName() {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label">${text('公司代码')}:</label>
|
||||
<div class="control-inline">
|
||||
<#form:input path="viewCode" maxlength="100" class="form-control width-90"/>
|
||||
<#form:input path="viewCode_like" maxlength="100" class="form-control width-90"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label">${text('机构代码')}:</label>
|
||||
<div class="control-inline">
|
||||
<#form:input path="viewCode" maxlength="100" class="form-control width-90"/>
|
||||
<#form:input path="viewCode_like" maxlength="100" class="form-control width-90"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -66,7 +66,7 @@
|
||||
<script>
|
||||
//# // 初始化DataGrid对象
|
||||
$('#dataGrid').dataGrid({
|
||||
searchForm: $("#searchForm"),
|
||||
searchForm: $('#searchForm'),
|
||||
columnModel: [
|
||||
{header:'${text("机构名称")}', name:'officeName', index:'a.office_name', width:300, align:"left", frozen:true, formatter: function(val, obj, row, act){
|
||||
return '( '+row.viewCode+' ) '+'<a href="${ctx}/sys/office/form?officeCode='+row.officeCode+'" class="btnList" data-title="${text("编辑机构")}">'+(val||row.id)+'</a>';
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label">${text('岗位代码')}:</label>
|
||||
<div class="control-inline">
|
||||
<#form:input path="viewCode" maxlength="64" class="form-control width-120"/>
|
||||
<#form:input path="viewCode_like" maxlength="64" class="form-control width-120"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -54,7 +54,7 @@
|
||||
<script>
|
||||
//# // 初始化DataGrid对象
|
||||
$('#dataGrid').dataGrid({
|
||||
searchForm: $("#searchForm"),
|
||||
searchForm: $('#searchForm'),
|
||||
columnModel: [
|
||||
{header:'${text("岗位名称")}', name:'postName', index:'a.post_name', width:200, align:"center", frozen:true, formatter: function(val, obj, row, act){
|
||||
return '<a href="${ctx}/sys/post/form?postCode='+row.postCode+'" class="btnList" data-title="${text("编辑岗位")}">'+(val||row.id)+'</a>';
|
||||
|
||||
Reference in New Issue
Block a user