@@ -5,6 +5,8 @@
* 描 述:经费开支申报
*/
var refreshGirdData;
var selectedId;
var CType = request('CType');
var bootstrap = function ($, learun) {
"use strict";
var startTime;
@@ -59,37 +61,36 @@ var bootstrap = function ($, learun) {
$('#lr_refresh').on('click', function () {
location.reload();
});
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
if (selectedId) {
queryJson.CateId = selectedId;
page.search(queryJson);
}
}, 220, 400);
$('#Year').lrselect({
placeholder: "学年",
allowSearch: false,
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo',
value: 'value',
text: 'text',
maxHeight: 200,
});
//学期
$('#Semester').lrselect({
placeholder: "学期",
allowSearch: false,
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetSemester',
value: 'value',
text: 'text'
});
// $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
// if (selectedId) {
// queryJson.CateId = selectedId;
// page.search(queryJson);
// }
// }, 220, 400);
// $('#Year').lrselect({
// placeholder: "学年",
// allowSearch: false,
// url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo',
// value: 'value',
// text: 'text',
// maxHeight: 200,
// });
//// 学期
// $('#Semester').lrselect({
// placeholder: "学期",
// allowSearch: false,
// url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetSemester',
// value: 'value',
// text: 'text'
// });
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/AssetManagementSystem /PartyManage/GetStatsList',
url: top.$.rootUrl + '/PersonnelManagement /PartyManage/GetStatsList',
headData: [
{ label: "日期", name: "ApplyTime", width: 150, align: "left" },
{
label: "申报部门", name: "DeclarationDep t", width: 200, align: "left",
label: "申报部门", name: "Departmen t", width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('department', {
key: value,
@@ -99,62 +100,15 @@ var bootstrap = function ($, learun) {
});
}
},
{
label: "申报类别", name: "DeclarationType", width: 200, align: "left"
, formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'DeclarationType',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "项目内容", name: "ProjectContent", width: 200, align: "left" },
{ label: "数量", name: "Number", width: 200, align: "left" },
{
label: '单位', name: 'Unit', width: 150, align: 'left',
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'sldw',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{
label: "单价(元)", name: "Price", width: 200, align: "left",
formatter: function (cellvalue) {
return cellvalue != null && cellvalue != "" && cellvalue != undefined ? cellvalue.toFixed(2) : "0.00";
}
},
{
label: "金额(元)", name: "Amount", width: 200, align: "left", statistics: true,
formatter: function (cellvalue) {
return cellvalue != null && cellvalue != "" && cellvalue != undefined ? cellvalue.toFixed(2) : "0.00";
}
},
{
label: "固定资产", name: "IsFixedAssets", width: 100, align: "left"
, formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('dataItem', {
key: value,
code: 'YesOrNoInt',
callback: function (_data) {
callback(_data.text);
}
});
}
},
{ label: "总人数", name: "Num", width: 200, align: "left", statistics: true },
{ label: "上传人数", name: "Number", width: 200, align: "left", statistics: true },
{ label: '未上传人数', name: 'Unit', width: 150, align: 'left', statistics: true },
],
mainId: 'Id ',
mainId: 'Department',
isPage: true,
sidx: 'ApplyTime desc'
sidx: 'Department desc'
});
// page.search();
page.search();
},
search: function (param) {
param = param || {};