| | |
| | | , "HDownOffSetQ": 0, "HTargetValB": 0, "HUpLimitB": 0, "HDownLimitB": 0, "HUpOffSetB": 0, "HDownOffSetB": 0 |
| | | , "HTargetValTxt": "", "HUpLimitTxt": "", "HDownLimitTxt": "", "HUpOffSetTxt": "", "HDownOffSetTxt": "" |
| | | , "HQualityStdName": "", "HInspectMethodName": "", "HInspectInstruMentName": "", "HInspectBasisName": "", "HSampleSchemeName": "" |
| | | , "HControlUpperLimit": 0, "HControlLowerLimit":0 |
| | | }; |
| | | switch (obj.event) { |
| | | //æ°å¢ä¸è¡ |
| | |
| | | Pub_Close(2); |
| | | } else { |
| | | Pub_Close(1); |
| | | } |
| | | } |
| | | //var index = parent.layer.getFrameIndex(window.name); //å
å¾å°å½åiframeå±çç´¢å¼ |
| | | //parent.layer.close(index); //åæ§è¡å
³é |
| | | }); |
| | |
| | | } |
| | | //å°æ¹ééæ©çæ°æ®åå
¥æ°ç»ï¼å¤éè¡ï¼ |
| | | for (var i = 0; i < checkStatus.data.length; i++) { |
| | | buttonArr.push({ "HPrjNo": i + 1, "HQCCheckItemID": checkStatus.data[i].HItemID, "HQCCheckItemNumber": checkStatus.data[i].代ç , "HQCCheckItemName": checkStatus.data[i].åç§°, "HQCStd": "", "HQCStdMax": "", "HQCUnit": "", "HRemark": "" }); |
| | | buttonArr.push({ |
| | | "HPrjNo": i + 1, "HQCCheckItemID": checkStatus.data[i].HItemID, "HQCCheckItemNumber": checkStatus.data[i].代ç , "HQCCheckItemName": checkStatus.data[i].åç§°, "HQCStd": "", "HQCStdMax": "", "HQCUnit": "", "HRemark": "" |
| | | , "HTargetVal": 0, "HUpLimit": 0, "HDownLimit": 0, "HUpOffSet": 0, "HDownOffSet": 0, "HTargetValB": 0, "HUpLimitB": 0, "HDownLimitB": 0, "HUpOffSetB": 0, "HDownOffSetB": 0, "HTargetValQ": 0, "HUpLimitQ": 0, "HDownLimitQ": 0, "HUpOffSetQ": 0 |
| | | , "HDownOffSetQ": 0 |
| | | }); |
| | | } |
| | | |
| | | table.reload("mainTable", { |
| | |
| | | , { field: 'HDownLimitTxt', title: 'ä¸é弿æ¬', edit: 'text' } |
| | | , { field: 'HUpOffSetTxt', title: 'ä¸åå·®ææ¬', edit: 'text' } |
| | | , { field: 'HDownOffSetTxt', title: 'ä¸åå·®ææ¬', edit: 'text' } |
| | | , { field: 'HControlUpperLimit', title: 'æ§å¶ä¸é', edit: 'text' } |
| | | , { field: 'HControlLowerLimit', title: 'æ§å¶ä¸é', edit: 'text' } |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo' } |
| | | ]; |
| | |
| | | , done: function (res, curr, count) { |
| | | |
| | | } |
| | | }; |
| | | }; |
| | | } |
| | | |
| | | //ä¿å |
| | |
| | | , "HDownOffSetQ": 0, "HTargetValB": 0, "HUpLimitB": 0, "HDownLimitB": 0, "HUpOffSetB": 0, "HDownOffSetB": 0 |
| | | , "HTargetValTxt": "", "HUpLimitTxt": "", "HDownLimitTxt": "", "HUpOffSetTxt": "", "HDownOffSetTxt": "" |
| | | , "HQualityStdName": "", "HInspectMethodName": "", "HInspectInstruMentName": "", "HInspectBasisName": "", "HSampleSchemeName": "" |
| | | , "HControlUpperLimit": 0, "HControlLowerLimit": 0 |
| | | }]; |
| | | table.render(option); |
| | | } |
| | |
| | | , "HDownOffSetQ": 0, "HTargetValB": 0, "HUpLimitB": 0, "HDownLimitB": 0, "HUpOffSetB": 0, "HDownOffSetB": 0 |
| | | , "HTargetValTxt": "", "HUpLimitTxt": "", "HDownLimitTxt": "", "HUpOffSetTxt": "", "HDownOffSetTxt": "" |
| | | , "HQualityStdName": "", "HInspectMethodName": "", "HInspectInstruMentName": "", "HInspectBasisName": "", "HSampleSchemeName": "" |
| | | , "HControlUpperLimit": 0, "HControlLowerLimit": 0 |
| | | }]; |
| | | table.render(option); |
| | | } |
| | |
| | | "HDownLimitTxt": data[i].ä¸é弿æ¬, "HUpOffSetTxt": data[i].ä¸åå·®ææ¬, "HDownOffSetTxt": data[i].ä¸åå·®ææ¬, |
| | | "HQualityStdName": data[i].è´¨éæ ååç§°, "HInspectMethodName": data[i].æ£éªæ¹æ³åç§°, "HInspectInstruMentName": data[i].æ£éªä»ªå¨åç§°, |
| | | "HInspectBasisName": data[i].æ£éªä¾æ®åç§°, "HSampleSchemeName": data[i].åæ½æ ·æ¹æ¡åç§° |
| | | , "HControlUpperLimit": data[i].æ§å¶ä¸é, "HControlLowerLimit": data[i].æ§å¶ä¸é |
| | | }); |
| | | } |
| | | |
| | |
| | | |
| | | //å¢å ä¸è¡ |
| | | function btnAddLine(NewRow) { |
| | | //table.cache["mainTable"].push(NewRow); |
| | | //option.data = table.cache["mainTable"]; |
| | | //table.render(option); |
| | | var tableBak = table.cache["mainTable"]; //è·åä¹åç¼è¾è¿çè¡¨æ ¼æ°æ® |
| | | buttonArr = [];//æ¸
空æ°ç» |
| | | for (var i = 0; i < tableBak.length; i++) { |
| | | buttonArr.push(tableBak[i]); //å°ä¹åçæ°æ®åå¨ |
| | | table.cache["mainTable"].push(NewRow); |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HAnalysisMethod' + i + '').find("option[value='" + option.data[i - 1].HAnalysisMethod + "']").attr("selected", true); |
| | | $('#HDefectLevel' + i + '').find("option[value='" + option.data[i - 1].HDefectLevel + "']").attr("selected", true); |
| | | $('#HStatus' + i + '').find("option[value='" + option.data[i - 1].HStatus + "']").attr("selected", true); |
| | | |
| | | if (option.data[i - 1].HDestructInspect) { |
| | | $('#HDestructInspect' + i + '').attr("checked", true); |
| | | } |
| | | if (option.data[i - 1].HKeyInspect) { |
| | | $('#HKeyInspect' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | buttonArr.push(NewRow); //å¨å°¾é¨å ä¸è¡ |
| | | table.reload("mainTable", { |
| | | data: buttonArr //å°æ°æ®éæ°è½½å
¥è¡¨æ ¼ |
| | | }) |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | } |
| | | |
| | | //å¤å¶ä¸è¡ |
| | |
| | | table.cache["mainTable"].push(JSON.parse(copyrow));//å°å¤å¶çè¡å¼ºè½¬æjson追å å°è¡¨æ ¼ä¸ |
| | | option.data = table.cache["mainTable"];//å°æ°æ®ç»å®å°dataä¸ |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | $('#HAnalysisMethod' + i + '').find("option[value='" + option.data[i - 1].HAnalysisMethod + "']").attr("selected", true); |
| | | $('#HDefectLevel' + i + '').find("option[value='" + option.data[i - 1].HDefectLevel + "']").attr("selected", true); |
| | | $('#HStatus' + i + '').find("option[value='" + option.data[i - 1].HStatus + "']").attr("selected", true); |
| | | |
| | | if (option.data[i - 1].HDestructInspect) { |
| | | $('#HDestructInspect' + i + '').attr("checked", true); |
| | | } |
| | | if (option.data[i - 1].HKeyInspect) { |
| | | $('#HKeyInspect' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | } |
| | | } |
| | | |