| | |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HMaterCode', title: 'å¨å
·ä»£ç ', edit: 'text', event: 'HMaterCode', width: 100 } |
| | | , { field: 'HMaterName', title: 'å¨å
·åç§°', edit: 'text', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | | , { field: 'HMaterName', title: 'å¨å
·åç§°', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HPropertyID', title: 'HPropertyID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HPropertyCode', title: 'è¾
å©å±æ§ä»£ç ', edit: 'text', event: 'HPropertyCode', width: 100 } |
| | | , { field: 'HPropertyName', title: 'è¾
å©å±æ§', edit: 'text', width: 100 } |
| | | , { field: 'HPropertyName', title: 'è¾
å©å±æ§', width: 100 } |
| | | , { field: 'HSecUnitID', title: 'HSecUnitID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HSecUnitCode', title: 'è¾
å©è®¡éåä½ä»£ç ', edit: 'text', event: 'HSecUnitCode', width: 100 } |
| | | , { field: 'HSecUnitName', title: 'è¾
å©è®¡éåä½', edit: 'text', width: 100 } |
| | | , { field: 'HSecUnitName', title: 'è¾
å©è®¡éåä½', width: 100 } |
| | | , { field: 'HSecUnitRate', title: 'æ¢ç®ç', edit: 'text', width: 100 } |
| | | , { field: 'HUnitID', title: 'HUnitID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HUnitCode', title: '计éåä½ä»£ç ', edit: 'text', event: 'HUnitCode', width: 100 } |
| | | , { field: 'HUnitName', title: '计éåä½', edit: 'text', width: 100 } |
| | | , { field: 'HUnitName', title: '计éåä½', width: 100 } |
| | | , { field: 'HDesignLife', title: '设计寿å½', edit: 'text', width: 100 } |
| | | , { field: 'HLeaveLife', title: 'åå©ä½å¯¿å½', edit: 'text', width: 100 } |
| | | , { field: 'HNewLife', title: 'æ°å©ä½å¯¿å½', edit: 'text', width: 100 } |
| | | , { field: 'HNewLeaveLife', title: 'æ°å©ä½å¯¿å½', edit: 'text', width: 100 } |
| | | , { field: 'HRemark', title: '表ä½å¤æ³¨', edit: 'text', width: 100 } |
| | | ]] |
| | | , limit: 500 //æ¯é¡µé»è®¤æ¾ç¤ºçæ°é |
| | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (hID == null || hID == 0) { |
| | | //åå§å è½½è¡¨æ ¼{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": " ", "HSQProcName": " ","HProcID":0, "HZRProcName": " ", "HMRBChecker": " ", "HRemark": " ", "HPSProcName": " ", "HCloseMan": " " } |
| | | option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HPropertyID": 0, "HPropertyCode": "", "HPropertyName": "", "HSecUnitID": 0, "HSecUnitCode": "", "HSecUnitName": "", "HSecUnitRate": 0, "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HNewLife": 0, "HRemark": "" }]; |
| | | option.data = [{ "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HPropertyID": 0, "HPropertyCode": "", "HPropertyName": "", "HSecUnitID": 0, "HSecUnitCode": "", "HSecUnitName": "", "HSecUnitRate": 0, "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HNewLeaveLife": 0, "HRemark": "" }]; |
| | | table.render(option); |
| | | } |
| | | else { |
| | |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data;; |
| | | var AddRow = table.cache['mainTable']; |
| | | var NewRow = { "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HPropertyID": 0, "HPropertyCode": "", "HPropertyName": "", "HSecUnitID": 0, "HSecUnitCode": "", "HSecUnitName": "", "HSecUnitRate": 0, "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HNewLife": 0, "HRemark": "" }; |
| | | var NewRow = { "HMaterID": 0, "HMaterCode": "", "HMaterName": "", "HMaterSpec": "", "HPropertyID": 0, "HPropertyCode": "", "HPropertyName": "", "HSecUnitID": 0, "HSecUnitCode": "", "HSecUnitName": "", "HSecUnitRate": 0, "HUnitID": 0, "HUnitCode": "", "HUnitName": "", "HDesignLife": 0, "HLeaveLife": 0, "HNewLeaveLife": 0, "HRemark": "" }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | //table.cache["mainTable"].push(AddRow[rows]); |
| | |
| | | HMaterName: checkStatus.data[0].HName, |
| | | HMaterSpec: checkStatus.data[0].HModel, |
| | | HLeaveLife: checkStatus.data[0].HLeaveLife, |
| | | HNewLife: checkStatus.data[0].HNewLife, |
| | | HNewLeaveLife: checkStatus.data[0].HNewLife, |
| | | HDesignLife: checkStatus.data[0].HDesignLife, //è®¾è®¡å¯¿å½ |
| | | |
| | | }); |
| | |
| | | |
| | | |
| | | form.on('submit(Exit)', function (data) {// |
| | | if (hID == undefined) { |
| | | if (params[params[0]] == undefined) { |
| | | //å
³éé¡µç¾ |
| | | Pub_Close(2); |
| | | } |
| | | else { |
| | | //å
³éé¡µç¾ |
| | | //å
³éå¼¹çª |
| | | Pub_Close(1); |
| | | } |
| | | }); |