| | |
| | | label: '回答', name: 'Anwser', labtype: 'txt', hidden: false, width: 300 |
| | | |
| | | }, |
| | | { |
| | | label: '操作', name: 'caozuo', labtype: 'txt', hidden: false, width: 50, |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | return "<a onclick=\"OpenWindow('修改','98%','100%', '/Zhuanjiahuida/Edit?id=" + rowObject.Id + "')\" >回答</a> <a onclick=\"_pagedel('" + rowObject.Id + "')\" >删除</a>"; |
| | | } |
| | | }, |
| | | |
| | | ]; |
| | | dataUrl = "/Zhuanjiahuida/GetList"; |
| | |
| | | // OpenWindow("新增基本工资", "98%", "100%", "/Zhuanjiahuida/Edit/"); |
| | | //} |
| | | |
| | | var _pagedel = function (id) { |
| | | if (confirm('是否删除记录')) { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: "/Zhuanjiahuida/Nullify?Id=" + id, |
| | | dataType: "json", |
| | | global: false, |
| | | data: '', |
| | | success: function (data) { |
| | | |
| | | |
| | | if (data.Result) { |
| | | |
| | | layer.msg('删除成功', { icon: 6 }); |
| | | window._reloadPageData(); |
| | | } |
| | | else { |
| | | // toastr.error(""); |
| | | layer.msg('删除失败', { icon: 5 }); |
| | | } |
| | | |
| | | }, |
| | | error: function () { |
| | | if ($.isNumber(imgLoad)) { |
| | | layer.close(imgLoad); |
| | | } |
| | | //toastr.error("保存失败"); |
| | | |
| | | layer.msg('保存失败', { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | var _afterSave = function (result) { |
| | | if (result) { |