| | |
| | | Dict.initColumn = function () { |
| | | return [ |
| | | {field: 'selectItem', radio: true}, |
| | | {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'}, |
| | | {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '名称', field: 'name', align: 'center', valign: 'middle', sortable: true}, |
| | | {title: language==1?'详情':(language==2?'details':'details'), field: 'detail', align: 'center', valign: 'middle', sortable: true}, |
| | | {title: language==1?'备注':(language==2?'Remarks':'Catatan'), field: 'tips', align: 'center', valign: 'middle', sortable: true}]; |
| | |
| | | Dict.check = function () { |
| | | var selected = $('#' + this.id).bootstrapTable('getSelections'); |
| | | if (selected.length == 0) { |
| | | if(language==1){ |
| | | Feng.info("请先选中表格中的某一记录!"); |
| | | }else if(language==2){ |
| | | Feng.info("Please select a record in the table first!"); |
| | | }else { |
| | | Feng.info("Pilih catatan di tabel terlebih dahulu!"); |
| | | } |
| | | Feng.info("请先选中表格中的某一记录!"); |
| | | |
| | | return false; |
| | | } else { |