| | |
| | | set_AddFNew(); |
| | | } |
| | | else if (OperationType == 3) {//ç¼è¾ |
| | | //set_EditFromGrid(linterid); |
| | | //å表åå§å |
| | | set_InitGrid(); |
| | | //å 载表ä½åè¡¨ä½æ°æ® |
| | | RoadBillMain(linterid); |
| | | } |
| | | else { |
| | | layer.alert("æªç¥æä½ç±»åï¼", { icon: 5 }); |
| | |
| | | |
| | | //éåº |
| | | form.on('submit(Exit)', function (data) { |
| | | if (OperationType == 1) { |
| | | Pub_Close(closeType);//ç´æ¥æ°å¢closeTypeå¼ä¸º2ï¼åè¡¨è°æ°å¢closeTypeå¼ä»åè¡¨ä¼ é |
| | | } |
| | | else if (OperationType == 3) { |
| | | Pub_Close(closeType); |
| | | } |
| | | else { |
| | | if (params[1] != null) { |
| | | Pub_Close(1); |
| | | } else if (params[1] == null) { |
| | | Pub_Close(2); |
| | | } |
| | | |
| | | //if (OperationType == 1) { |
| | | // Pub_Close(closeType);//ç´æ¥æ°å¢closeTypeå¼ä¸º2ï¼åè¡¨è°æ°å¢closeTypeå¼ä»åè¡¨ä¼ é |
| | | //} |
| | | //else if (OperationType == 3) { |
| | | // Pub_Close(closeType); |
| | | //} |
| | | //else { |
| | | // Pub_Close(2); |
| | | //} |
| | | }); |
| | | |
| | | //#endregion |
| | |
| | | table.render(option); |
| | | } |
| | | |
| | | //#region ç¼è¾é¡µé¢åå§å |
| | | function RoadBillMain(linterid) { |
| | | //æ¥è¯¢ç¨æ·å
³èå®¢æ·æ¯å¦åå¨ |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Xt_User/UserByWorkStationRelationList_EditInit", |
| | | async: false, |
| | | type: "GET", |
| | | data: { |
| | | "HItemID": linterid |
| | | , "user": sessionStorage["HUserName"] |
| | | }, |
| | | success: function (result) { |
| | | if (result.code == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data[0]; |
| | | $("#UserName").val(data.ç¨æ·åç§°); |
| | | $("#UserID").val(data.ç¨æ·ä»£ç ); |
| | | |
| | | //å表 èµå¼ |
| | | var rowdata = []; |
| | | for (var i = 0; i < result.data.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HItemID": result.data[i]["HItemID"], |
| | | //"HUserID": result.data[i]["ç¨æ·ä»£ç "], |
| | | //"HUserName": result.data[i]["ç¨æ·åç§°"], |
| | | "HCusID": result.data[i]["HCusID"], |
| | | "HNumber": result.data[i]["å·¥ä½ä»£ç "], |
| | | "HName": result.data[i]["å·¥ä½åç§°"] |
| | | } |
| | | ); |
| | | } |
| | | option.data = rowdata; |
| | | |
| | | table.render(option); |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(result.msg, { icon: 5, btn: ['éåº'], time: 100000, offset: 't' }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("åçé误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //å¢å ä¸è¡ |
| | | function btnAddLine(NewRow) { |
| | | var tableBak = table.cache["mainTable"]; //è·åä¹åç¼è¾è¿çè¡¨æ ¼æ°æ® |