|
|
@@ -23,25 +23,27 @@ var bootstrap = function ($, learun) { |
|
|
|
// 填报 |
|
|
|
$('#lr_add').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('Id'); |
|
|
|
var ProjectName = $('#gridtable').jfGridValue('ProjectName'); |
|
|
|
learun.httpAsyncGet(top.$.rootUrl + '/LR_Desktop/QualityReport/IsCanReport?keyValue=' + keyValue, function (res) { |
|
|
|
if (res.code == 200) { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: ProjectName + '填报', |
|
|
|
url: top.$.rootUrl + '/LR_Desktop/QualityReport/Form?keyValue=' + keyValue + '&ProjectName=' + ProjectName, |
|
|
|
width: 600, |
|
|
|
height: 400, |
|
|
|
callBack: function (id) { |
|
|
|
return top[id].acceptClick(refreshGirdData); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
else { |
|
|
|
learun.alert.error(res.info); |
|
|
|
} |
|
|
|
}); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var ProjectName = $('#gridtable').jfGridValue('ProjectName'); |
|
|
|
learun.httpAsyncGet(top.$.rootUrl + '/LR_Desktop/QualityReport/IsCanReport?keyValue=' + keyValue, function (res) { |
|
|
|
if (res.code == 200) { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: ProjectName + '填报', |
|
|
|
url: top.$.rootUrl + '/LR_Desktop/QualityReport/Form?keyValue=' + keyValue + '&ProjectName=' + ProjectName, |
|
|
|
width: 600, |
|
|
|
height: 400, |
|
|
|
callBack: function (id) { |
|
|
|
return top[id].acceptClick(refreshGirdData); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
else { |
|
|
|
learun.alert.error(res.info); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
// 删除 |
|
|
|
$('#lr_delete').on('click', function () { |
|
|
|