<!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>
|