Bläddra i källkod

已上报数据管理左侧树结构模糊查询

金隅分支
zhangli 3 år sedan
förälder
incheckning
89592fc469
3 ändrade filer med 48 tillägg och 27 borttagningar
  1. +33
    -25
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/IndexReport.cshtml
  2. +11
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/IndexReport.js
  3. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromService.cs

+ 33
- 25
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/IndexReport.cshtml Visa fil

@@ -6,6 +6,14 @@
<div class="lr-layout-left">
<div class="lr-layout-wrap">
<div class="lr-layout-title lrlt ">类型</div>
<div class="lr-layout-tool-item">
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" style="width: 70%;" />
<a id="btn_SearchTree" class="btn btn-primary btn-sm" style="width: 30%;float: right;margin-top:-29px;"><i class="fa fa-search"></i>&nbsp;<span class="lrlg">查询</span></a>
</div>
<div class="lr-layout-tool-item" style="width: 20%;">

</div>

<div id="dataTree" class="lr-layout-body"></div>
</div>
</div>
@@ -47,37 +55,37 @@
</div>

@*<div class="lr-layout " >
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">名称</div>
<input id="Name" type="text" class="form-control" />
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">名称</div>
<input id="Name" type="text" class="form-control" />
</div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;查看</a>
<a id="lr_submit" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;提交</a>
<a id="lr_nosubmit" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;撤回</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;查看</a>
<a id="lr_submit" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;提交</a>
<a id="lr_nosubmit" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;撤回</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>*@
</div>*@
@Html.AppendJsFile("/Areas/LR_Desktop/Views/QualityReport/IndexReport.js")

+ 11
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/QualityReport/IndexReport.js Visa fil

@@ -10,7 +10,7 @@ var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.inittree();
page.inittree('');
page.initGird();
page.bind();
},
@@ -22,6 +22,12 @@ var bootstrap = function ($, learun) {
$('#lr_refresh').on('click', function () {
location.reload();
});
// 查询
$('#btn_SearchTree').on('click', function () {
var keyword = $('#txt_Keyword').val();
page.inittree(keyword);
//page.search({ keyword: keyword });
});

// 编辑
$('#lr_edit').on('click', function () {
@@ -118,10 +124,13 @@ var bootstrap = function ($, learun) {
$('#gridtable').jqprintTable();
});
},
inittree: function () {
inittree: function (keyword) {
var param = {};
param.keyword = keyword;
// 初始化左侧树形数据
$('#dataTree').lrtree({
url: top.$.rootUrl + '/LR_Desktop/QualityReport/GetTree',
param: { queryJson: JSON.stringify(param) },
nodeClick: page.treeNodeClick
});
},


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/FillinFrom/FillinFromService.cs Visa fil

@@ -224,6 +224,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
strSql.Append($" AND t.FillingPeople='{queryParam["FillingPeople"].ToString()}'");
}
if (!queryParam["keyword"].IsEmpty())
{
strSql.Append($" AND (t.WorderModule like '%{queryParam["keyword"].ToString()}%' or t.ProjectName like '%{queryParam["keyword"].ToString()}%')");
}

strSql.Append($" and (t.[State]=2 or t.[State]=3 )");
return this.BaseRepository("CollegeMIS").FindList<FillinFromEntity>(strSql.ToString());


Laddar…
Avbryt
Spara