| | |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | |
| | | <!--å¤éæ¡ å®ææ è®°--> |
| | | <script type="text/html" id="HFinishFlag"> |
| | | <div class="layui-input-block" style="margin-left: 20px;"> |
| | | <input type="checkbox" name="HFinishFlag" lay-filter="HFinishFlag" id="HFinishFlag{{d.LAY_TABLE_INDEX+1}}" lay-skin="primary"> |
| | | </div> |
| | | </script> |
| | | |
| | | <!--<script type="text/html" id="switchTpl"> |
| | | è¿éç checked çç¶æåªæ¯æ¼ç¤º |
| | | <input type="checkbox" name="checkbox" value="{{d.HFinishFlag}}" lay-skin="primary" lay-filter="HFinishFlag" {{ d.HFinishFlag == 1 ? 'checked' : '' }}> |
| | | </script>--> |
| | | |
| | | <script> |
| | | |
| | | layui.config({ |
| | |
| | | $("#HDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§å项ç®é¶æ®µè¡¨ |
| | | get_InitGrid(); |
| | | DisPlay_HideColumn(); |
| | | } |
| | | //else if (OperationType == 2) { //å¤å¶ |
| | | // //ç¦ç¨ç»ç»é项 |
| | |
| | | //$("#HOrgID").attr("disabled", true); |
| | | //åå§å项ç®é¶æ®µè¡¨ |
| | | get_InitGrid(); |
| | | DisPlay_HideColumn(); |
| | | RoadBillMain(linterid); |
| | | } else if (OperationType == 4 && HProjectStageID != null) { //䏿¨ |
| | | ////ç¦ç¨ç»ç»é项 |
| | |
| | | //#endregion |
| | | |
| | | //#region åå§åè¡¨æ ¼ |
| | | DisPlay_HideColumn(); |
| | | //DisPlay_HideColumn(); |
| | | //#endregion |
| | | |
| | | //#endregion |
| | |
| | | { |
| | | "RowID": (table.cache["mainTable"].length + 1) * 10 |
| | | , "HProjectID": "0" |
| | | , 'HProNumber': '' |
| | | , 'HProjectStageID': '0' |
| | | , 'HProjectStageName': '' |
| | | , 'HName': '' |
| | | , 'HTaskNote': '' |
| | | , 'HType': '' |
| | | , 'HRelTimes': '0' |
| | | , 'HReportNote': '' |
| | | , 'HAdv': '' |
| | | , 'HRemarkSub': '' |
| | | , "HProNumber": "" |
| | | , "HProjectStageID": "0" |
| | | , "HProjectStageName": "" |
| | | , "HName": "" |
| | | , "HTaskNote": "" |
| | | , "HType": "" |
| | | , "HRelTimes": "0" |
| | | , "HReportNote": "" |
| | | , "HFinishFlag": false |
| | | , "HAdv": "" |
| | | , "HRemarkSub": "" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | |
| | | table.cache["mainTable"].push(NewRow); |
| | | option.data = table.cache["mainTable"]; |
| | | table.render(option); |
| | | |
| | | for (var i = 1; i <= option.data.length; i++) { |
| | | //宿æ è®° |
| | | if (option.data[i - 1].HFinishFlag) { |
| | | $('#HFinishFlag' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | form.render('select'); |
| | | form.render('checkbox'); |
| | | break; |
| | | case 'btn-CopyLine': |
| | | var copydata = JSON.stringify(data); |
| | |
| | | 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++) { |
| | | //宿æ è®° |
| | | if (option.data[i - 1].HFinishFlag) { |
| | | $('#HFinishFlag' + i + '').attr("checked", true); |
| | | } |
| | | } |
| | | form.render('checkbox'); |
| | | form.render('select'); |
| | | } |
| | | break; |
| | | //å设置 |
| | |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | |
| | | // |
| | | form.on('submit(Cancel)', function () { |
| | | //sessionStorage["SourceFlag"] = false; |
| | |
| | | , { type: 'numbers', title: 'åºå·', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'RowID', title: 'è¡å·', hide: true, style: 'background-color: #f9f9f9;' } //è¡æ è¯ï¼ç¨äºä¸ä¸è¡ãä¸ä¸è¡è¯å«æå¨è¡ |
| | | , { field: 'HProjectID', title: '项ç®ID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HProNumber', title: '项ç®ä»£ç ', style: 'background-color: #f9f9f9;'} |
| | | , { field: 'HProNumber', title: '项ç®ä»£ç ', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HProjectStageID', title: '项ç®é¶æ®µID', hide: true, style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HProjectStageName', title: '项ç®é¶æ®µ', style: 'background-color: #f9f9f9;' } //f7 |
| | | , { field: 'HName', title: 'ä»»å¡åç§°', edit: 'text', event: "HName" } |
| | | , { field: 'HTaskNote', title: 'ä»»å¡æè¿°', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HType', title: 'ä»»å¡ç±»å', style: 'background-color: #f9f9f9;'} |
| | | , { field: 'HType', title: 'ä»»å¡ç±»å', style: 'background-color: #f9f9f9;' } |
| | | , { field: 'HRelTimes', title: 'èç¨å·¥æ¶', edit: 'text', totalRow: true } |
| | | , { field: 'HReportNote', title: 'æ±æ¥å
容', edit: 'text' } |
| | | , { field: 'HFinishFlag', title: '宿æ è®°', templet: "#HFinishFlag" }//checkbox |
| | | //, { field: 'HFinishFlag', title: '宿æ è®°', width: 100, templet: '#switchTpl', unresize: false } |
| | | , { field: 'HAdv', title: 'ä¼å建议', edit: 'text' } |
| | | , { field: 'HRemarkSub', title: '夿³¨', edit: 'text' } |
| | | , { field: 'HSourceInterID', title: 'æºåå
ç ', hide: true, style: 'background-color: #f9f9f9;' } //f7 |
| | |
| | | { |
| | | "RowID": 10 |
| | | , "HProjectID": "0" |
| | | , 'HProNumber': '' |
| | | , 'HProjectStageID': '0' |
| | | , 'HProjectStageName': '' |
| | | , 'HName': '' |
| | | , 'HTaskNote': '' |
| | | , 'HType': '' |
| | | , 'HRelTimes': '0' |
| | | , 'HReportNote': '' |
| | | , 'HAdv': '' |
| | | , 'HRemarkSub': '' |
| | | , "HProNumber": "" |
| | | , "HProjectStageID": "0" |
| | | , "HProjectStageName": "" |
| | | , "HName": "" |
| | | , "HTaskNote": "" |
| | | , "HType": "" |
| | | , "HRelTimes": "0" |
| | | , "HReportNote": "" |
| | | , "HFinishFlag": false |
| | | , "HAdv": "" |
| | | , "HRemarkSub": "" |
| | | , "HSourceInterID": "0" |
| | | , "HSourceEntryID": "0" |
| | | , "HSourceBillNo": "" |
| | |
| | | table.render(option); |
| | | } |
| | | //#endregion |
| | | |
| | | //宿æ è®° |
| | | form.on('checkbox(HFinishFlag)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | | var elem = data.othis.parents('tr'); |
| | | var dataindex = elem.attr("data-index"); |
| | | $.each(option.data, function (index, value) { |
| | | if (value.LAY_TABLE_INDEX == dataindex) { |
| | | value.HFinishFlag = data.elem.checked;//æéä¸ä¸ææ¡idå¼èµå¼ç»è¡¨æ ¼ç¼å |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //#region æ±æ¥äººéæ©é¡µé¢ |
| | | function get_checkSearchHReportEmp() { |
| | |
| | | //è·åè¡¨å¤´æ°æ®å¹¶åºåå |
| | | var sMainStr = JSON.stringify(data.field); //ä¸»è¡¨æ°æ® |
| | | //åè¡¨æ°æ®åºåå |
| | | var sSubStr = JSON.stringify(num); |
| | | var sSubStr = JSON.stringify(num); |
| | | |
| | | //æ¼æ¥åºååçæ°æ® |
| | | var sMainSub = sMainStr + ';' + sSubStr + ';' + OperationType + ";" + sessionStorage["HUserName"]; |
| | |
| | | } |
| | | option.data = tableSub; |
| | | table.render(option); |
| | | |
| | | for (var i = 0; i < tableSub.length; i++) { |
| | | if (tableSub[i].HFinishFlag) { |
| | | $('#HFinishFlag' + (i + 1)).attr("checked", true); |
| | | } |
| | | } |
| | | form.render('checkbox'); |
| | | form.render('select'); |
| | | } |
| | | }) |
| | | } |
| | |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["è¡å·","项ç®é¶æ®µID","æºåå
ç ", "æºååå
ç ", "æºååå·", "æºåç±»å"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData = ["è¡å·", "项ç®é¶æ®µID", "æºåå
ç ", "æºååå
ç ", "æºååå·", "æºåç±»å"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |