|
|
@@ -17,7 +17,7 @@ var bootstrap = function ($, learun) { |
|
|
|
page.search(queryJson); |
|
|
|
}, 220, 400); |
|
|
|
$('#FillingCycle').lrDataItemSelect({ code: 'ThisCycle' }); |
|
|
|
$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }); |
|
|
|
//$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
@@ -92,31 +92,6 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
//设置公式 |
|
|
|
//$('#lr_formula').on('click', function () { |
|
|
|
// var keyValue = $('#gridtable').jfGridValue('Id'); |
|
|
|
// if (learun.checkrow(keyValue)) { |
|
|
|
// //var RStatus = $('#gridtable').jfGridValue('State'); |
|
|
|
// //if (RStatus == 1) { |
|
|
|
// // learun.alert.warning("已提交!"); |
|
|
|
// // return false; |
|
|
|
// //} |
|
|
|
// learun.layerForm({ |
|
|
|
// id: 'form', |
|
|
|
// title: '设置公式', |
|
|
|
// url: top.$.rootUrl + '/EducationalAdministration/FillinFrom/FormPeople?keyValue=' + keyValue, |
|
|
|
// // url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetDetailList', |
|
|
|
// //param: { itemCode: 'Client_ProductInfo' }, |
|
|
|
// //selectWord: 'F_ItemName', |
|
|
|
// //value: 'F_ItemValue', |
|
|
|
// //text: 'F_ItemName', |
|
|
|
// //headData: [{ label: "商品编号", name: "F_ItemValue", width: 100, align: "left" }, |
|
|
|
// //{ label: "商品名称", name: "F_ItemName", width: 450, align: "left" }], |
|
|
|
// //select: function (item) { |
|
|
|
// //} |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//}); |
|
|
|
//设置填报人 |
|
|
|
$('#lr_people').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('Id'); |
|
|
@@ -224,6 +199,8 @@ var bootstrap = function ($, learun) { |
|
|
|
return '<span class=\"label label-success\">待设置填报人</span>'; |
|
|
|
} else if (cellvalue === 2) { |
|
|
|
return '<span class=\"label label-success\">待设置公式</span>'; |
|
|
|
} else if (cellvalue === 3) { |
|
|
|
return '<span class=\"label label-success\">待填报</span>'; |
|
|
|
} else { |
|
|
|
return '<span class=\"label label-default\">已完成</span>'; |
|
|
|
} |
|
|
@@ -238,6 +215,10 @@ var bootstrap = function ($, learun) { |
|
|
|
}, |
|
|
|
search: function (param) { |
|
|
|
param = param || {}; |
|
|
|
param.IsFlag = 0; |
|
|
|
param.userId = userId; |
|
|
|
param.isSystem = isSystem; |
|
|
|
param.departmentId = departmentId; |
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
} |
|
|
|
}; |
|
|
|