| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/layui/lay/modules/util.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | |
| | | </head> |
| | | <body> |
| | |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 10px;"> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-filter="Add">æ°å¢</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-filter="Check">å®¡æ ¸</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-filter="FCheck">åå®¡æ ¸</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-filter="Cancel">éåº</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-radius" lay-filter="print">æå°</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-filter="Saver">ä¿å</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-filter="Add">æ°å¢</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-filter="Check">å®¡æ ¸</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-normal" style="margin-left: 0px"" lay-filter="FCheck">åå®¡æ ¸</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-normal" style="margin-left: 0px"" lay-filter="Cancel">éåº</button> |
| | | <button type="button" lay-submit="" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-filter="print">æå°</button> |
| | | </div> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <div class="layui-row"> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" name="HBeginDate" id="HBeginDate" style="padding-left: 32px;"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 110px;"> |
| | | <input type="date" class="layui-input" name="HBeginDate" id="HBeginDate" style="padding-left: 52px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç»ææ¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" name="HEndDate" id="HEndDate" style="padding-left: 32px;"> |
| | | <input type="date" class="layui-input" name="HEndDate" id="HEndDate" style="padding-left: 52px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | //} |
| | | |
| | | var params = getUrlVars(); |
| | | var linterid = params[params[0]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | var HType = params[params[1]]; //åæ®ç¶æ |
| | | var lSourceBillType = params[params[2]]; //ä»åæ®è·å æºåç±»å |
| | | |
| | | var HYear = params[params[0]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | var HPeriod = params[params[1]]; //ä»åæ°ä¸è·å åæ®å
ç |
| | | //var lSourceBillType = params[params[2]]; //ä»åæ®è·å æºåç±»å |
| | | var HType = params[params[2]]; //åæ®ç¶æ |
| | | |
| | | |
| | | |
| | | if (HType == "Modify") { |
| | | if (HType == "3") { |
| | | var sWhere = " and ä¼è®¡å¹´ä»½='" + HYear + "' and ä¼è®¡æä»½='" + HPeriod+"' " |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Xt_AccountPeriod/xg", |
| | | url: GetWEBURL() + "/Xt_AccountPeriod/list", |
| | | //url: "http://localhost:12761/Xt_AccountPeriod/xg", |
| | | type: "GET", |
| | | data: { |
| | | "HInterID": linterid |
| | | "sWhere": sWhere |
| | | }, |
| | | success: function (d) { |
| | | ajaxReturnData = JSON.parse(JSON.stringify(d)).data; |
| | | $("#HYear").val(d.data[0].HYear); |
| | | $("#HPeriod").val(d.data[0].HPeriod); |
| | | $("#HBeginDate").val(d.data[0].HBeginDate); |
| | | $("#HEndDate").val(d.data[0].HEndDate); |
| | | $("#HEndFlag").val(d.data[0].HEndFlag); |
| | | $("#HYear").val(d.data[0].ä¼è®¡å¹´ä»½); |
| | | $("#HPeriod").val(d.data[0].ä¼è®¡æä»½); |
| | | $("#HBeginDate").val(Format(new Date(d.data[0].å¼å§æ¥æ), "yyyy-MM-dd")); |
| | | $("#HEndDate").val(Format(new Date(d.data[0].ç»ææ¥æ), "yyyy-MM-dd")); |
| | | $("#HEndFlag").val(d.data[0].è¿è´¦æ è®°); |
| | | $("#HUpDater").val(sessionStorage["HUserName"]);//ä¿®æ¹äºº |
| | | } |
| | | |
| | |
| | | //Initialization(); |
| | | } |
| | | |
| | | //è·åæå¤§åºç¡èµæID |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Xt_AccountPeriod/GetMAXBillID", |
| | | type: "GET", |
| | | data: { }, |
| | | success: function (d) { |
| | | //console.log(d.data); |
| | | $("#HInterID").val(d.data[0].hitemid); |
| | | } |
| | | }); |
| | | ////è·åæå¤§åºç¡èµæID |
| | | //$.ajax({ |
| | | // url: GetWEBURL() + "/Xt_AccountPeriod/GetMAXBillID", |
| | | // type: "GET", |
| | | // data: { }, |
| | | // success: function (d) { |
| | | // //console.log(d.data); |
| | | // $("#HInterID").val(d.data[0].hitemid); |
| | | // } |
| | | //}); |
| | | |
| | | |
| | | //æ°å¢ |
| | |
| | | var oMain = JSON.stringify(data.field) |
| | | var sBillModeify = oMain + ';' + linterid + ';' + user + ';' + ModRightNameAdd; |
| | | var index = layer.load(); |
| | | if (HType == "Modify") { |
| | | if (HType == "3") { |
| | | $.ajax({ |
| | | type: "POST", |
| | | //url: GetWEBURL() + "/'Xt_AccountPeriod/AddBill1", |