|
|
@@ -1,292 +1,295 @@ |
|
|
|
/* * 版 本 Learun-ADMS V7.0.6 数字化智慧校园 |
|
|
|
* Copyright (c) 2013-2020 北京泉江科技有限公司 |
|
|
|
* 创建人:超级管理员 |
|
|
|
* 日 期:2024-12-04 11:37 |
|
|
|
* 描 述:教科研成果 |
|
|
|
*/ |
|
|
|
var refreshGirdData; |
|
|
|
var bootstrap = function ($, learun) { |
|
|
|
"use strict"; |
|
|
|
var page = { |
|
|
|
init: function () { |
|
|
|
page.initGird(); |
|
|
|
page.bind(); |
|
|
|
}, |
|
|
|
bind: function () { |
|
|
|
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { |
|
|
|
page.search(queryJson); |
|
|
|
}, 220, 400); |
|
|
|
$('#ResearchType').lrDataItemSelect({ code: 'SRAchievementType' }); |
|
|
|
$('#ProductPerson').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_userid', text: 'f_realname' }); |
|
|
|
$('#Rank').lrDataItemSelect({ code: 'Level' }); |
|
|
|
$('#Year').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear', |
|
|
|
value: 'value', |
|
|
|
text: 'text' |
|
|
|
}); |
|
|
|
$('#LV').lrDataItemSelect({ code: 'LV' }); |
|
|
|
$('#ActivityItem').lrDataItemSelect({ code: 'ActivityItem' }); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
|
}); |
|
|
|
// 新增 |
|
|
|
$('#lr_add').on('click', function () { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: '新增', |
|
|
|
url: top.$.rootUrl + '/PersonnelManagement/ResearchResult/Form', |
|
|
|
width: 600, |
|
|
|
height: 620, |
|
|
|
callBack: function (id) { |
|
|
|
return top[id].acceptClick(refreshGirdData); |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
// 编辑 |
|
|
|
$('#lr_edit').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
var Status = $('#gridtable').jfGridValue('StatusMark'); |
|
|
|
if (Status != 0) { |
|
|
|
learun.alert.warning("当前项目已提交,不可编辑!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (keyValue.indexOf(',') != -1) { |
|
|
|
learun.alert.warning("只能选择一条记录进行编辑!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: '编辑', |
|
|
|
url: top.$.rootUrl + '/PersonnelManagement/ResearchResult/Form?keyValue=' + keyValue, |
|
|
|
width: 600, |
|
|
|
height: 620, |
|
|
|
callBack: function (id) { |
|
|
|
return top[id].acceptClick(refreshGirdData); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
// 删除 |
|
|
|
$('#lr_delete').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
var Status = $('#gridtable').jfGridValue('StatusMark'); |
|
|
|
if (Status.indexOf('1') != -1) { |
|
|
|
learun.alert.warning("选中项包含已提交项,不可删除!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerConfirm('是否确认删除该项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/ResearchResult/DeleteForm', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
//查看 |
|
|
|
$('#lr_view').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
if (keyValue.indexOf(',') != -1) { |
|
|
|
learun.alert.warning("只能选择一条记录进行查看!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'FormView', |
|
|
|
title: '查看', |
|
|
|
url: top.$.rootUrl + '/PersonnelManagement/ResearchResult/FormView?keyValue=' + keyValue, |
|
|
|
width: 600, |
|
|
|
height: 620, |
|
|
|
btn: '', |
|
|
|
callBack: function (id) { |
|
|
|
return top[id].acceptClick(refreshGirdData); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
//// 打印 |
|
|
|
//$('#lr_print').on('click', function () { |
|
|
|
// $('#gridtable').jqprintTable(); |
|
|
|
//}); |
|
|
|
// 提交 |
|
|
|
//$('#lr_submit').on('click', function () { |
|
|
|
// var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
// if (learun.checkrow(keyValue)) { |
|
|
|
// var Status = $('#gridtable').jfGridValue('StatusMark'); |
|
|
|
// if (Status != 0) { |
|
|
|
// learun.alert.warning("当前项目已提交请勿进行重复提交!"); |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// learun.layerConfirm('是否确认提交该项!', function (res) { |
|
|
|
// if (res) { |
|
|
|
// learun.postForm(top.$.rootUrl + '/PersonnelManagement/ResearchResult/SubmitForm', { keyValue: keyValue }, function () { |
|
|
|
// refreshGirdData(); |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}); |
|
|
|
//提交 |
|
|
|
$('#lr_check').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var StatusMark = $('#gridtable').jfGridValue('StatusMark'); |
|
|
|
if (StatusMark.indexOf('1') != -1) { |
|
|
|
learun.alert.warning("选中记录中包含已提交项目!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
learun.layerConfirm('是否确认提交该项?', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.postForm(top.$.rootUrl + '/PersonnelManagement/ResearchResult/EnableDisableForm', { keyValue: keyValue, status: "1" }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
//去审 |
|
|
|
$('#lr_uncheck').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var StatusMark = $('#gridtable').jfGridValue('StatusMark'); |
|
|
|
var StatusMarkArr = StatusMark.split(','); |
|
|
|
if ($.inArray('0', StatusMarkArr) != -1 ) { |
|
|
|
learun.alert.warning("选中记录中未包含提交项!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
learun.layerConfirm('是否确认取消提交该项?', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.postForm(top.$.rootUrl + '/PersonnelManagement/ResearchResult/EnableDisableForm', { keyValue: keyValue, status: "0" }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 初始化列表 |
|
|
|
initGird: function () { |
|
|
|
$('#gridtable').lrAuthorizeJfGrid({ |
|
|
|
url: top.$.rootUrl + '/PersonnelManagement/ResearchResult/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ |
|
|
|
label: "状态", name: "StatusMark", width: 80, align: "left", |
|
|
|
formatter: function (cellvalue, row) { |
|
|
|
if (cellvalue == "1") { |
|
|
|
return '<span class=\"label label-warning\">已提交</span>'; |
|
|
|
} else { |
|
|
|
return '<span class=\"label label-default\" >草稿</span>'; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "类别", name: "ResearchType", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'SRAchievementType', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "成果人", name: "ProductPerson", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'f_userid', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['f_realname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "刊物名称", name: "PublicationName", width: 100, align: "left" }, |
|
|
|
{ label: "刊号", name: "ISSN", 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", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'Level', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
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", |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "月份", name: "Month", width: 50, align: "left", |
|
|
|
}, |
|
|
|
{ label: "成果编号", name: "ResultNo", width: 100, align: "left" }, |
|
|
|
{ label: "积分", name: "Points", width: 50, align: "left" }, |
|
|
|
{ label: "备注", name: "Remark", width: 100, align: "left" }, |
|
|
|
//{ label: "附件", name: "Url", width: 100, align: "left" }, |
|
|
|
], |
|
|
|
mainId: 'ID', |
|
|
|
isPage: true, |
|
|
|
sidx: " Createdate ,StatusMark", |
|
|
|
sord: 'desc', |
|
|
|
isMultiselect: true, |
|
|
|
}); |
|
|
|
page.search(); |
|
|
|
}, |
|
|
|
search: function (param) { |
|
|
|
param = param || {}; |
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
} |
|
|
|
}; |
|
|
|
refreshGirdData = function () { |
|
|
|
$('#gridtable').jfGridSet('reload'); |
|
|
|
}; |
|
|
|
page.init(); |
|
|
|
} |
|
|
|
/* * 版 本 Learun-ADMS V7.0.6 数字化智慧校园
|
|
|
|
* Copyright (c) 2013-2020 北京泉江科技有限公司
|
|
|
|
* 创建人:超级管理员
|
|
|
|
* 日 期:2024-12-04 11:37
|
|
|
|
* 描 述:教科研成果
|
|
|
|
*/
|
|
|
|
var refreshGirdData;
|
|
|
|
var bootstrap = function ($, learun) {
|
|
|
|
"use strict";
|
|
|
|
var page = {
|
|
|
|
init: function () {
|
|
|
|
page.initGird();
|
|
|
|
page.bind();
|
|
|
|
},
|
|
|
|
bind: function () {
|
|
|
|
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
|
|
|
|
page.search(queryJson);
|
|
|
|
}, 220, 400);
|
|
|
|
$('#ResearchType').lrDataItemSelect({ code: 'SRAchievementType' });
|
|
|
|
$('#ProductPerson').lrDataSourceSelect({ code: 'TeacherInfo', value: 'f_userid', text: 'f_realname' });
|
|
|
|
$('#Rank').lrDataItemSelect({ code: 'Level' });
|
|
|
|
$('#Year').lrselect({
|
|
|
|
allowSearch: true,
|
|
|
|
url: top.$.rootUrl + '/PersonnelManagement/MP_ManagementPlan/GetAcademicYear',
|
|
|
|
value: 'value',
|
|
|
|
text: 'text'
|
|
|
|
});
|
|
|
|
$('#LV').lrDataItemSelect({ code: 'LV' });
|
|
|
|
$('#ActivityItem').lrDataItemSelect({ code: 'ActivityItem' });
|
|
|
|
// 刷新
|
|
|
|
$('#lr_refresh').on('click', function () {
|
|
|
|
location.reload();
|
|
|
|
});
|
|
|
|
// 新增
|
|
|
|
$('#lr_add').on('click', function () {
|
|
|
|
learun.layerForm({
|
|
|
|
id: 'form',
|
|
|
|
title: '新增',
|
|
|
|
url: top.$.rootUrl + '/PersonnelManagement/ResearchResult/Form',
|
|
|
|
width: 600,
|
|
|
|
height: 620,
|
|
|
|
callBack: function (id) {
|
|
|
|
return top[id].acceptClick(refreshGirdData);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// 编辑
|
|
|
|
$('#lr_edit').on('click', function () {
|
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID');
|
|
|
|
var Status = $('#gridtable').jfGridValue('StatusMark');
|
|
|
|
if (Status != 0) {
|
|
|
|
learun.alert.warning("当前项目已提交,不可编辑!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (keyValue.indexOf(',') != -1) {
|
|
|
|
learun.alert.warning("只能选择一条记录进行编辑!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (learun.checkrow(keyValue)) {
|
|
|
|
learun.layerForm({
|
|
|
|
id: 'form',
|
|
|
|
title: '编辑',
|
|
|
|
url: top.$.rootUrl + '/PersonnelManagement/ResearchResult/Form?keyValue=' + keyValue,
|
|
|
|
width: 600,
|
|
|
|
height: 620,
|
|
|
|
callBack: function (id) {
|
|
|
|
return top[id].acceptClick(refreshGirdData);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
// 删除
|
|
|
|
$('#lr_delete').on('click', function () {
|
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID');
|
|
|
|
var Status = $('#gridtable').jfGridValue('StatusMark');
|
|
|
|
if (Status.indexOf('1') != -1) {
|
|
|
|
learun.alert.warning("选中项包含已提交项,不可删除!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (learun.checkrow(keyValue)) {
|
|
|
|
learun.layerConfirm('是否确认删除该项!', function (res) {
|
|
|
|
if (res) {
|
|
|
|
learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/ResearchResult/DeleteForm', { keyValue: keyValue }, function () {
|
|
|
|
refreshGirdData();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
//查看
|
|
|
|
$('#lr_view').on('click', function () {
|
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID');
|
|
|
|
if (keyValue.indexOf(',') != -1) {
|
|
|
|
learun.alert.warning("只能选择一条记录进行查看!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (learun.checkrow(keyValue)) {
|
|
|
|
learun.layerForm({
|
|
|
|
id: 'FormView',
|
|
|
|
title: '查看',
|
|
|
|
url: top.$.rootUrl + '/PersonnelManagement/ResearchResult/FormView?keyValue=' + keyValue,
|
|
|
|
width: 600,
|
|
|
|
height: 620,
|
|
|
|
btn: '',
|
|
|
|
callBack: function (id) {
|
|
|
|
return top[id].acceptClick(refreshGirdData);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
//// 打印
|
|
|
|
//$('#lr_print').on('click', function () {
|
|
|
|
// $('#gridtable').jqprintTable();
|
|
|
|
//});
|
|
|
|
// 提交
|
|
|
|
$('#lr_submit').on('click', function () {
|
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID');
|
|
|
|
if (learun.checkrow(keyValue)) {
|
|
|
|
var Status = $('#gridtable').jfGridValue('StatusMark');
|
|
|
|
if ($.inArray('1', Status) != -1 || $.inArray('2', Status) != -1) {
|
|
|
|
learun.alert.warning("选中记录中包含已提交或已通过项目!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
learun.layerConfirm('是否确认提交选中项!', function (res) {
|
|
|
|
if (res) {
|
|
|
|
learun.postForm(top.$.rootUrl + '/PersonnelManagement/ResearchResult/SubmitForm', { keyValue: keyValue }, function () {
|
|
|
|
refreshGirdData();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
//审核
|
|
|
|
$('#lr_check').on('click', function () {
|
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID');
|
|
|
|
if (learun.checkrow(keyValue)) {
|
|
|
|
var StatusMark = $('#gridtable').jfGridValue('StatusMark');
|
|
|
|
if (StatusMark.indexOf('0') != -1) {
|
|
|
|
learun.alert.warning("选中记录中包含草稿项目!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
learun.layerConfirm('是否确认审核选中项?', function (res) {
|
|
|
|
if (res) {
|
|
|
|
learun.postForm(top.$.rootUrl + '/PersonnelManagement/ResearchResult/EnableDisableForm', { keyValue: keyValue, status: "2" },
|
|
|
|
function () {
|
|
|
|
refreshGirdData();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
//去审
|
|
|
|
$('#lr_uncheck').on('click', function () {
|
|
|
|
var keyValue = $('#gridtable').jfGridValue('ID');
|
|
|
|
if (learun.checkrow(keyValue)) {
|
|
|
|
var StatusMark = $('#gridtable').jfGridValue('StatusMark');
|
|
|
|
var StatusMarkArr = StatusMark.split(',');
|
|
|
|
if ($.inArray('0', StatusMarkArr) != -1) {
|
|
|
|
learun.alert.warning("选中记录中未包含提交项!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
learun.layerConfirm('是否确认取消选中项?', function (res) {
|
|
|
|
if (res) {
|
|
|
|
learun.postForm(top.$.rootUrl + '/PersonnelManagement/ResearchResult/EnableDisableForm', { keyValue: keyValue, status: "0" },
function () {
|
|
|
|
refreshGirdData();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 初始化列表
|
|
|
|
initGird: function () {
|
|
|
|
$('#gridtable').lrAuthorizeJfGrid({
|
|
|
|
url: top.$.rootUrl + '/PersonnelManagement/ResearchResult/GetPageList',
|
|
|
|
headData: [
|
|
|
|
{
|
|
|
|
label: "状态", name: "StatusMark", width: 80, align: "left",
|
|
|
|
formatter: function (cellvalue, row) {
|
|
|
|
if (cellvalue == "1") {
|
|
|
|
return '<span class=\"label label-warning\">审批中</span>';
|
|
|
|
} else if (cellvalue == "2") {
|
|
|
|
return '<span class=\"label label-success\">通过</span>';
|
|
|
|
} else {
|
|
|
|
return '<span class=\"label label-default\" >草稿</span>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "类别", name: "ResearchType", width: 100, align: "left",
|
|
|
|
formatterAsync: function (callback, value, row, op, $cell) {
|
|
|
|
learun.clientdata.getAsync('dataItem', {
|
|
|
|
key: value,
|
|
|
|
code: 'SRAchievementType',
|
|
|
|
callback: function (_data) {
|
|
|
|
callback(_data.text);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "成果人", name: "ProductPerson", width: 100, align: "left",
|
|
|
|
formatterAsync: function (callback, value, row, op, $cell) {
|
|
|
|
learun.clientdata.getAsync('custmerData', {
|
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo',
|
|
|
|
key: value,
|
|
|
|
keyId: 'f_userid',
|
|
|
|
callback: function (_data) {
|
|
|
|
callback(_data['f_realname']);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{ label: "刊物名称", name: "PublicationName", width: 100, align: "left" },
|
|
|
|
{ label: "刊号", name: "ISSN", 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",
|
|
|
|
formatterAsync: function (callback, value, row, op, $cell) {
|
|
|
|
learun.clientdata.getAsync('dataItem', {
|
|
|
|
key: value,
|
|
|
|
code: 'Level',
|
|
|
|
callback: function (_data) {
|
|
|
|
callback(_data.text);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
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",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "月份", name: "Month", width: 50, align: "left",
|
|
|
|
},
|
|
|
|
{ label: "成果编号", name: "ResultNo", width: 100, align: "left" },
|
|
|
|
{ label: "积分", name: "Points", width: 50, align: "left" },
|
|
|
|
{ label: "备注", name: "Remark", width: 100, align: "left" },
|
|
|
|
//{ label: "附件", name: "Url", width: 100, align: "left" },
|
|
|
|
],
|
|
|
|
mainId: 'ID',
|
|
|
|
isPage: true,
|
|
|
|
sidx: " Createdate ,StatusMark",
|
|
|
|
sord: 'desc',
|
|
|
|
isMultiselect: true,
|
|
|
|
});
|
|
|
|
page.search();
|
|
|
|
},
|
|
|
|
search: function (param) {
|
|
|
|
param = param || {};
|
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
|
|
|
|
}
|
|
|
|
};
|
|
|
|
refreshGirdData = function () {
|
|
|
|
$('#gridtable').jfGridSet('reload');
|
|
|
|
};
|
|
|
|
page.init();
|
|
|
|
}
|