12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- /**
- * 编辑饲料档案
- * @param id
- * @param from
- */
- function editSlda(id, from) {
- huimv.loadPage("sldaRight", "editSlda.htm", {
- "id" : id,
- "from" : from
- });
- }
- /**
- * 删除饲料档案
- * @param id
- * @param from
- */
- function disableSlda(id) {
- Dialogs.alert("确定作废当前饲料档案?", {
- title : '提示信息',
- width : 250,
- height : 80,
- top : 150,
- button : {
- ok : ['确定',function(){
- this.close();
- huimv.showProcessModel('处理数据中');
- jQuery.ajax({
- url : 'disableSlda.htm',
- dataType : 'json',
- type : 'post',
- cache : false,
- data : {"id" : id},
- success : function(data) {
- huimv.hideProcessModel();
- if (data.returnCode > 0) {
- loadSldaList();
- } else {
- Dialogs.alert("传入参数有误!", {
- width : 300,
- height : 50
- });
- }
- },
- error : function(data) {
- huimv.showError(data.responseText);
- }
- });
- }],
- cancel : ['取消',function(){
- this.close();
- }]
- }
- });
- }
|