| | |
| | | //#endregion |
| | | |
| | | var tableReload = table.reload; |
| | | var option = { |
| | | window.option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html', 'yes'] |
| | | , content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_EmployeeList.html?Type=HEmp', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | |
| | | return true; |
| | | } |
| | | } |
| | | |
| | | function GetHEmpValue(obj) { //æ£éªå |
| | | $("#HEmpName").val(obj[0].èååç§°); |
| | | $("#HFirstCheckEmp").val(obj[0].HItemID); |
| | | } |
| | | |
| | | function GetProcessValue(obj) { //å·¥åº |
| | | $("#HMainProcID").val(obj[0].HItemID); |
| | | $("#HMainProcNumber").val(obj[0].å·¥åºä»£ç ); |
| | | $("#HMainProcName").val(obj[0].å·¥åºåç§°); |
| | | |
| | | var HQCSchemeID_Patrol = obj[0].HQCSchemeID_Patrol; |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID", |
| | | type: "GET", |
| | | data: { "CheckProjectID": HQCSchemeID_Patrol, "HBatchQty": 0 }, |
| | | success: function (result) { |
| | | if (result.code == 1) { |
| | | var rowdata = []; |
| | | var data = result.data; |
| | | for (var i = 0; i < result.data.length; i++) { |
| | | //å表 èµå¼ |
| | | rowdata.push({ |
| | | "æ£éªé¡¹ç®åç±»": data[i]["æ£éªé¡¹ç®åç±»"], "HQCCheckItemID": data[i]["HQCCheckItemID"], "HQCCheckItemName": data[i]["æ£éªé¡¹ç®"], |
| | | "HQCStd": "", |
| | | "HQCNote1": "", |
| | | "HQCNote2": "", |
| | | "HQCNote3": "", |
| | | "HQCNote4": "", |
| | | "HQCNote5": "", |
| | | "HQCNote6": "", |
| | | "HQCNote7": "", |
| | | "HQCNote8": "", |
| | | "HQCNote9": "", |
| | | "HQCNote10": "", |
| | | "HRemark": "" |
| | | }); |
| | | } |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |