| | |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe" } |
| | | , { field: 'HRepairID', title: '维修项ç®ä»£ç ', edit: 'text', event: "" } |
| | | , { field: 'HRepaItemName', title: '维修项ç®', edit: 'text', event: "" } |
| | | , { field: 'HRepairName', title: '维修项ç®', edit: 'text', event: "" } |
| | | , { field: 'HRepairExplanation', title: 'ç»´ä¿®è¦æ±', edit: 'text' } |
| | | , { field: 'HManagerID', title: 'è´è´£äººä»£ç ', edit: 'text' } |
| | | , { field: 'HDutyPeopleName', title: 'è´è´£äºº', edit: 'text' } |
| | | , { field: 'HManagerName', title: 'è´è´£äºº', edit: 'text' } |
| | | , { field: 'HMoney', title: '维修费ç¨', event: "", edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', event: "", edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 150 } |
| | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (hID == null || hID == 0) { |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ "HRepairID": 0, "HRepaItemName": " ", "HRepairExplanation": " ", "HManagerID": 0, "HDutyPeopleName": " ", "HMoney": 0, "HRemark": " " }]; |
| | | option.data = [{ "HRepairID": 0, "HRepairName": " ", "HRepairExplanation": " ", "HManagerID": 0, "HManagerName": " ", "HMoney": 0, "HRemark": " " }]; |
| | | table.render(option); |
| | | } |
| | | else { |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + 'Sb_MouldRepairWorkBill/Sb_MouldRepairWorkBillListProjectDetai', |
| | | type: "GET", |
| | | data: { "sqlWhere": "and HInterID=" + hID }, |
| | | data: { "sqlWhere": "and hmainid=" + hID }, |
| | | success: function (result) { |
| | | //console.log('gouba' + result); |
| | | if (result.count == 1) { |
| | |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data;; |
| | | var AddRow = table.cache['mainTable']; |
| | | var NewRow = { "HRepairID": 0, "HRepaItemName": " ", "HRepairExplanation": " ", "HManagerID": 0, "HDutyPeopleName": " ", "HMoney": 0, "HRemark": " " }; |
| | | var NewRow = { "HRepairID": 0, "HRepairName": " ", "HRepairExplanation": " ", "HManagerID": 0, "HManagerName": " ", "HMoney": 0, "HRemark": " " }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | //table.cache["mainTable"].push(AddRow[rows]); |