yangle
2023-09-18 7c6dbc2da5bea1fa7b45a4c1fdaa26fc1be16be8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>打印</title>
    <script src="../../CreateControl.js"></script>
    <script src="../../GRInstall.js"></script>
    <script src="../../GRUtility.js"></script>
    <style type="text/css">
        html, body {
            margin: 0;
            height: 100%;
        }
    </style>
    <script type="text/javascript">
 
    function getUrlVars() {
        var vars = [], hash;
        var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
        for (var i = 0; i < hashes.length; i++) {
            hash = hashes[i].split('=');
            vars.push(hash[0]);
            vars[hash[0]] = hash[1];
        }
        return vars;
    }
    //在网页初始加载时向报表提供数据
    function window_onload() {
        var ReportViewer = document.getElementById("ReportViewer");
        // ReportViewer.Stop();
        var Report = ReportViewer.Report;
        //开启报表生成进度条显示
        //ReportViewer.Report.ShowProgressUI = true;
        Report.OnPrintBegin = OnPrintBegin;
        Report.OnPrintEnd = OnPrintEnd;
 
        ReportViewer.Start();
    }
    //function OnPrintEnd() {
    //    if (PrintCount == 0) {
    //        var LCStatus = sessionStorage.getItem("LCStatus");
    //        if (LCStatus == "Print")//打印状态
    //        {
    //            SaveLabelPrint(sessionStorage.getItem("LabelJson"));
    //            PrintCount = 1;
    //        }
    //    }
 
    //}
    //function OnPrintBegin() {
 
    //}
    </script>
</head>
<body>
    <script type="text/javascript">
        var PrintCount = 0;
        var params = getUrlVars();
        var value = params[params[0]];
        var Type = params[params[1]];
        var OpenTmp = params[params[2]];
 
        
        switch (Type) {
           
            //case "HBarCodePrint"://物料条码打印
            //    //CreateDisplayViewerEx("100%", "100%", "../../views/grf/" + OpenTmp + ".grf", "../../views/SRM/xmlSRM_Web_BarCodeBillList.aspx?linterid=" + value, true, "");
            //    CreateDisplayViewerEx("100%", "100%", "../../views/grf/" + OpenTmp + ".grf", "xmlSRM_Web_BarCodeBillList.aspx?linterid=" + value, true, "");
            //     break;
            case "HProcessReport"://工序汇报单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_ProcessReport.aspx?linterid=" + value, true, "");
                break;
            case "HDepartMent"://部门基础资料打印
                CreateDisplayViewerEx("100%", "100%", "grf/" + OpenTmp + ".grf", "xmlLBM_Gy_Department_Edit.aspx?linterid=" + value, true, "");
                break;
            case "HMaterial"://物料基础资料打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Gy_Material.aspx?linterid=" + value, true, "");
                break;
            case "HMouldProdInBill"://器具采购入库单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldProdInStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldProdOutBill"://器具领用出库单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldProdOutStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldProdBackBill"://器具领用退库单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldProdBackStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldProdMoveBill"://直接调拨单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldProdMoveStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldMoveStockStepInBill"://分布式调入单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldMoveStockStepInStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldMoveStockStepOutBill"://分布式调出单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldMoveStockStepOutStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldOtherInBill"://其他入库单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldOtherInStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldOtherOutBill"://其他出库单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldOtherOutStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldScrapOutBill"://器具处理出库单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldScrapOutStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldScrapInBill"://器具报废入库单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldScrapInStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldRepairInBill"://器具改制入库单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldRepairInStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldRepairOutBill"://器具改制出库单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldRepairOutStockBill.aspx?linterid=" + value, true, "");
                break;
            //case "HPOOrderBill"://采购订单单打印
            //    CreateDisplayViewerEx("100%", "100%", "../../views/grf/" + OpenTmp + ".grf", "xmlSRM_POInStockBill.aspx?linterid=" + value, true, "");
            //    break;
            case "HEquipMaintainPlanBill"://设备保养计划单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_EquipMaintainPlanBill.aspx?linterid=" + value, true, "");
                break;
            case "HEquipMaintainBill"://设备保养记录单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_EquipMaintainBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldType"://器具分类单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldTypeBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldDotCheckBill"://器具点检记录条码
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldDotCheckBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldDotCheckPlanBill"://器具点检计划条码
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldDotCheckPlanBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldMaintainPlanBill"://器具保养计划条码
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldMaintainPlanBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldMaintainBill"://器具保养记录条码
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldMaintainBill.aspx?linterid=" + value, true, "");
                break;
            case "HEquipType"://设备分类单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_EquipTypeBill.aspx?linterid=" + value, true, "");
                break;
            case "HEquipFileMainBill"://设备档案单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_EquipFileMainBill.aspx?linterid=" + value, true, "");
                break;
            case "HMouldFileMainBill"://模具档案打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_MouldFileMainBill.aspx?linterid=" + value, true, "");
                break;
            case "ICStockBill"://销售退货单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_ICStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HGy_BarCodeBill"://条码打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HGy_BarCodeBill.aspx?linterid=" + value, true, "");
                break;
            case "HIcmoBill"://生产订单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_ICMOBillList.aspx?linterid=" + value, true, "");
                break;
            case "HPOOrderBill"://采购订单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPOOrderBill.aspx?linterid=" + value, true, "");
                break;
            case "HPOInStockBill"://收料通知单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPOInStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HICMOBillList"://生产订单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HICMOBillList.aspx?linterid=" + value, true, "");
                break;
            case "HPPBomBillList"://生产用料清单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPPBomBillList.aspx?linterid=" + value, true, "");
                break;
            case "HSeOutStockBillList"://发货通知单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HSeOutStockBillList.aspx?linterid=" + value, true, "");
                break;
            case "HSeOrderBillList"://销售订单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HSeOrderBillList.aspx?linterid=" + value, true, "");
                break;
            case "HQKPackBill"://墙咔装箱打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_QK_PackingBillList.aspx?typename='" + OpenTmp + "'&linterid=" + value, true, "");
                break;
            case "HProcessExchange"://工序流转卡
                var ListTrue = value.split('|');
                if (ListTrue[1] == 0) {
                    CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp  + ".grf", "xmlLBM_Sc_ProcessExchangeBillList.aspx?linterid=" + ListTrue[0], true, "");
                } else {
                    CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + "_Sub.grf", "xmlLBM_Sc_ProcessExchangeBillList_SubList.aspx?linterid=" + ListTrue[0], true, "");
                }
                break;
            case "HPPickingBill"://生产领料拆码列表
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_HPPickingBillList.aspx?linterid=" + value, true, "");
                break;
            case "HEquipResume"://设备履历
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Gy_HEquipResumeBillList.aspx?linterid=" + value, true, "");
                break;
            case "HSource"://生产资源
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Gy_SourceList.aspx?linterid=" + value, true, "");
                break;
            case "HProcessExchangeBill"://工序返工记录单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_ProcExchRecordBackBillList.aspx?linterid=" + value, true, "");
                break;
            case "HProcSendWork"://工序派工单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_ProcExchSendWorkBillList.aspx?linterid=" + value, true, "");
                break;
            case "HEmployee"://职员列表
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Gy_EmployeeList.aspx?linterid=" + value, true, "");
                break;
            case "HWarehouse"://仓库列表
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Gy_WarehouseList.aspx?linterid=" + value, true, "");
                break;
            case "Kf_OtherOutBillList"://其他出库单维护  出库码单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Kf_OtherOutBillList.aspx?linterid=" + value, true, "");
                break;
            case "Kf_MateOutBillList"://生产领料单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Kf_MateOutBillList.aspx?linterid=" + value, true, "");
                break;
            case "Sc_ProcessExchangeArrangement"://工序子流转排缸
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_ProcessExchangeArrangement.aspx?linterid=" + value, true, "");
                break;
        }
    </script>
</body>
</html>