diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Form.cshtml index 0edd29ccc..9d08484fd 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Form.cshtml @@ -19,13 +19,13 @@
刊号
-
+
排位
- +
-
+
活动项目*
- +
成果名称
@@ -35,9 +35,9 @@
级别
-
+
等级
- +
领证单位(主管单位)*
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Form.js index 3554c9369..faf1bd284 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Form.js @@ -25,6 +25,9 @@ var bootstrap = function ($, learun) { text: 'text' }); $('#Month').lrDataItemSelect({ code: 'MPMonth' }); + $('#LV').lrDataItemSelect({ code: 'LV' }); + $('#ActivityItem').lrDataItemSelect({ code: 'ActivityItem' }); + $('#Ranked').lrDataItemSelect({ code: 'Ranked' }); $('#Url').lrUploader(); }, initData: function () { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormCheck.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormCheck.cshtml index 99df71669..4408e17d6 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormCheck.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormCheck.cshtml @@ -21,11 +21,11 @@
排位
- +
活动项目
- +
成果名称
@@ -37,7 +37,7 @@
等级
- +
领证单位(主管单位)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormCheck.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormCheck.js index eaf0ce4a6..dd16d0178 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormCheck.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormCheck.js @@ -26,6 +26,9 @@ var bootstrap = function ($, learun) { }); $('#Month').lrDataItemSelect({ code: 'MPMonth' }); $('#Url').lrUploader({ isUpload: false }); + $('#LV').lrDataItemSelect({ code: 'LV' }); + $('#ActivityItem').lrDataItemSelect({ code: 'ActivityItem' }); + $('#Ranked').lrDataItemSelect({ code: 'Ranked' }); $('#StatusMark').lrselect({ data: [{ text: "同意", value: "2" }, { text: "驳回", value: "0" }], text: "text", diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormView.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormView.cshtml index a1ca39c18..8e679993c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormView.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormView.cshtml @@ -21,11 +21,11 @@
排位
- +
活动项目*
- +
成果名称
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormView.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormView.js index 3d32fb069..62a6c013d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormView.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/FormView.js @@ -25,6 +25,9 @@ var bootstrap = function ($, learun) { text: 'text' }); $('#Month').lrDataItemSelect({ code: 'MPMonth' }); + $('#LV').lrDataItemSelect({ code: 'LV' }); + $('#ActivityItem').lrDataItemSelect({ code: 'ActivityItem' }); + $('#Ranked').lrDataItemSelect({ code: 'Ranked' }); $('#Url').lrUploader({ isUpload: false}); }, initData: function () { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Index.cshtml index 1a9462721..faeac4fdf 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Index.cshtml @@ -20,7 +20,7 @@
活动项目
- +
级别
@@ -28,7 +28,7 @@
等级
- +
年度
@@ -47,6 +47,7 @@  编辑  删除  打印 +  查看
  提交 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Index.js index 0f1465aa7..fd784a167 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ResearchResult/Index.js @@ -25,6 +25,8 @@ var bootstrap = function ($, learun) { value: 'value', text: 'text' }); + $('#LV').lrDataItemSelect({ code: 'LV' }); + $('#ActivityItem').lrDataItemSelect({ code: 'ActivityItem' }); // 刷新 $('#lr_refresh').on('click', function () { location.reload(); @@ -186,8 +188,31 @@ var bootstrap = function ($, learun) { }, { label: "刊物名称", name: "PublicationName", width: 100, align: "left" }, { label: "刊号", name: "ISSN", width: 100, align: "left" }, - { label: "排位", name: "Ranked", width: 100, align: "left" }, - { label: "活动项目", name: "ActivityItem", width: 100, align: "left" }, + { + label: "排位", name: "Ranked", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'Ranked', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + + { + label: "活动项目", name: "ActivityItem", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'ActivityItem', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, { label: "成果名称", name: "OutcomeName", width: 100, align: "left" }, { label: "级别", name: "Rank", width: 100, align: "left", @@ -201,7 +226,18 @@ var bootstrap = function ($, learun) { }); } }, - { label: "等级", name: "LV", width: 100, align: "left" }, + { + label: "等级", name: "LV", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'LV', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, { label: "领证单位(主管单位)", name: "CompetentUnit", width: 100, align: "left" }, { label: "年度", name: "Year", width: 50, align: "left", diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResearchResult/ResearchResultService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResearchResult/ResearchResultService.cs index 4745b4d5f..b2354ec24 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResearchResult/ResearchResultService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ResearchResult/ResearchResultService.cs @@ -49,8 +49,8 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement } if (!queryParam["ActivityItem"].IsEmpty()) { - dp.Add("ActivityItem", "%" + queryParam["ActivityItem"].ToString() + "%", DbType.String); - strSql.Append(" AND t.ActivityItem Like @ActivityItem "); + dp.Add("ActivityItem", queryParam["ActivityItem"].ToString(), DbType.String); + strSql.Append(" AND t.ActivityItem = @ActivityItem "); } if (!queryParam["Rank"].IsEmpty()) { @@ -59,8 +59,8 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement } if (!queryParam["LV"].IsEmpty()) { - dp.Add("LV", "%" + queryParam["LV"].ToString() + "%", DbType.String); - strSql.Append(" AND t.LV Like @LV "); + dp.Add("LV", queryParam["LV"].ToString(), DbType.String); + strSql.Append(" AND t.LV = @LV "); } if (!queryParam["Year"].IsEmpty()) {