| | |
| | | { |
| | | public static void GenOneRecordset(System.Web.UI.Page DataPage, string QuerySQL) |
| | | { |
| | | LogService.Write(QuerySQL); |
| | | SqlReportData.DoGenDetailData(DataPage, QuerySQL, ReportDataBase.DefaultDataType, false); |
| | | } |
| | | public static void GenOneRecordsetAR(System.Web.UI.Page DataPage, string QuerySQL) |
| | | { |
| | | LogService.Write(QuerySQL); |
| | | return; |
| | | SqlReportData.DoGenDetailData(DataPage, QuerySQL, ReportDataBase.DefaultDataType, false); |
| | | } |
| | | |
| | | |
| | | public static void GenMultiRecordset(System.Web.UI.Page DataPage, ArrayList QueryList) |
| | | { |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label">ç¶æ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HStatus" id="HStatus" lay-filter=""> |
| | | <option value="">å
¨é¨</option> |
| | | <option value="æªæå°" selected="">æªæå°</option> |
| | | <option value="å·²æå°">å·²æå°</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">ç¶æ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HStatus" id="HStatus" lay-filter=""> |
| | | <option value="">å
¨é¨</option> |
| | | <option value="æªæå°" selected="">æªæå°</option> |
| | | <option value="å·²æå°">å·²æå°</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">éè´ç»ç»</label> |
| | |
| | | , { field: 'sorderid', title: 'åºå·', width: 80/*, fixed: true*/ } |
| | | , { field: 'hmainid', title: 'hmainid', sort: true/*, fixed: true*/, hide: true } |
| | | , { field: 'hsubid', title: 'hsubid', sort: true/*, fixed: true*/, hide: true } |
| | | , { field: 'HPrintId', title: 'HPrintId', sort: true/*, fixed: true*/, hide: true }//æå°ID |
| | | , { field: 'ç¶æ', title: 'ç¶æ', width: 100, sort: true/*, fixed: true*/ } |
| | | , { field: 'åæ®ç¶æ', title: 'åæ®ç¶æ', sort: true/*, fixed: true*/ } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 150, sort: true/*, fixed: true*/ } |
| | |
| | | layer.msg("è¯·éæ©æ°æ®", { icon: 5 }); |
| | | return; |
| | | } |
| | | //for (var i = 0; i < data.length; i++) { |
| | | // if (data[i].åæ®ç¶æ != "å®¡æ ¸") { |
| | | // layer.msg("éä¸è¡æªå®¡æ ¸", { icon: 5 }); |
| | | // return; |
| | | // } |
| | | //} |
| | | var PrintIds = ""; |
| | | for (var i = 0; i < data.length; i++) { |
| | | PrintIds += data[i].HPrintId + "," |
| | | } |
| | | PrintIds = PrintIds.substring(0, PrintIds.length - 1); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../views/BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=SRM_POInStockBillList', 'yes'] |
| | | , content: ['../../views/BaseSet/SRM_OpenTmpList.html?linterid=' + PrintIds + '&MyMsg=' + data[0].hmainid.toString() + '&Type=SRM_POInStockBillList', 'yes'] |
| | | , resize: false |
| | | //, cancel: function () { |
| | | // $(".layui-btn").removeClass("layui-btn-disabled"); |
| | |
| | | <script runat="server"> |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | List<ReportQueryItem> SqlList = new List<ReportQueryItem>(); |
| | | for (int i = 0; i <2; i++) |
| | | { |
| | | SqlList.Add(new ReportQueryItem("select * from h_v_SRM_POInStockBillList where hmainid in(31690) order by ç©æä»£ç ", "tb"+i)); |
| | | } |
| | | //SqlXMLReportData.GenOneRecordset(this, "select * from h_v_Gy_EquipFileMainList where hmainid=" + Request.Params["linterid"]); |
| | | SqlXMLReportData.GenEntireData1(this,SqlList); |
| | | //SqlXMLReportData.GenOneRecordset(this, "select * from h_v_SRM_POInStockBillList where hmainid in(31690) order by ç©æä»£ç "); |
| | | var ids = Request.Params["linterid"]; |
| | | var idsArray = ids.Split(','); |
| | | var PrintIds = ""; |
| | | for (int i = 0; i < idsArray.Length; i++) |
| | | { |
| | | PrintIds += "'" + idsArray[i] + "',"; |
| | | } |
| | | PrintIds = PrintIds.Substring(0, PrintIds.Length - 1); |
| | | SqlXMLReportData.GenOneRecordset(this, "select * from h_v_SRM_POInStockBillList where HPrintId in("+ PrintIds+") order by ç©æä»£ç "); |
| | | } |
| | | </script> |
| | | </head> |
| | |
| | | Charset=134 |
| | | End |
| | | Object Printer |
| | | Height=29.7 |
| | | Oriention=Landscape |
| | | LeftMargin=1.5 |
| | | TopMargin=0.5 |
| | |
| | | End |
| | | End |
| | | End |
| | | Items Group |
| | | Item |
| | | Name='Group1' |
| | | ByFields='åæ®å·' |
| | | Object GroupHeader |
| | | Height=0 |
| | | NewPage=Before |
| | | RepeatOnPage=T |
| | | NewPageColumn=Before |
| | | End |
| | | Object GroupFooter |
| | | Height=0 |
| | | End |
| | | End |
| | | End |
| | | End |
| | | Items ReportHeader |
| | | Item |