WebTM/views/»ù´¡×ÊÁÏ/¹«Óûù´¡×ÊÁÏ/HBarPlanPrint.html
@@ -1,7 +1,8 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="ie-comp" />
    <title>打印</title>
    <script src="../../CreateControl.js"></script>
    <script src="../../GRInstall.js"></script>
@@ -14,42 +15,42 @@
    </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];
        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;
        }
        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;
        //在网页初始加载时向报表提供数据
        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;
    //        }
    //    }
            ReportViewer.Start();
        }
        //function OnPrintEnd() {
        //    if (PrintCount == 0) {
        //        var LCStatus = sessionStorage.getItem("LCStatus");
        //        if (LCStatus == "Print")//打印状态
        //        {
        //            SaveLabelPrint(sessionStorage.getItem("LabelJson"));
        //            PrintCount = 1;
        //        }
        //    }
    //}
    //function OnPrintBegin() {
        //}
        //function OnPrintBegin() {
    //}
        //}
    </script>
</head>
<body>
@@ -148,17 +149,41 @@
            case "ICStockBill"://销售退货单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_ICStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HPayMentBill"://付款单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPayMentBill.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 "HIcmoBillTK"://生产订单打印追溯码
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_ICMOBillListTK.aspx?linterid=" + value, true, "");
                break;
            case "HPOOrderBill"://采购订单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPOOrderBill.aspx?linterid=" + value, true, "");
                break;
            case "Cg_POOrderChangeBillList": //采购订单变更单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPOOrderChangeBillList.aspx?linterid=" + value, true, "");
                break;
            case "HPOOrderBillByID"://采购订单编辑打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPOOrderBillByID.aspx?linterid=" + value, true, "");
                break;
            case "HPOInStockBill"://收料通知单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPOInStockBill.aspx?linterid=" + value, true, "");
                break;
            case "HPOInStockBillByID"://收料通知单2打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPOInStockBillByID.aspx?linterid=" + value, true, "");
                break;
            case "HPOStockInBill"://采购入库单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPOStockInBill.aspx?linterid=" + value, true, "");
                break;
            case "Cg_POStockInChangeBillList"://采购调价单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPOStockInChangeBillList.aspx?linterid=" + value, true, "");
                break;
            case "HPOStockInBillByID"://采购入库单2编辑打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPOStockInBillByID.aspx?linterid=" + value, true, "");
                break;
            case "HICMOBillList"://生产订单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HICMOBillList.aspx?linterid=" + value, true, "");
@@ -169,6 +194,9 @@
            case "HSeOutStockBillList"://发货通知单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HSeOutStockBillList.aspx?linterid=" + value, true, "");
                break;
            case "HSeOutStockBillListByID"://领用材料打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HSeOutStockBillListByID.aspx?linterid=" + value, true, "");
                break;
            case "HSeOrderBillList"://销售订单打印
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HSeOrderBillList.aspx?linterid=" + value, true, "");
                break;
@@ -176,7 +204,7 @@
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_QK_PackingBillList.aspx?typename='" + OpenTmp + "'&linterid=" + value, true, "");
                break;
            case "HProcessExchange"://工序流转卡
                var ListTrue = value.split(',');
                var ListTrue = value.split('|');
                if (ListTrue[1] == 0) {
                    CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp  + ".grf", "xmlLBM_Sc_ProcessExchangeBillList.aspx?linterid=" + ListTrue[0], true, "");
                } else {
@@ -204,6 +232,107 @@
            case "HWarehouse"://仓库列表
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Gy_WarehouseList.aspx?linterid=" + value, true, "");
                break;
            case "HStockPlace"://仓位列表
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Gy_StockPlaceList.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;
            case "Xs_ExceptiveCheckRequestBillList": //特批申请单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Xs_ExceptiveCheckRequestBillList.aspx?linterid=" + value, true, "");
                break;
            case "Xs_SeOrderBill": //销售订单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Xs_SeOrderBill.aspx?linterid=" + value, true, "");
                break;
            case "Xs_SeOrderChangeBillList": //销售订单变更单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Xs_SeOrderChangeBillList.aspx?linterid=" + value, true, "");
                break;
            case "Xs_CusRatingChangeBillList": //信用额度申请单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Xs_CusRatingChangeBillList.aspx?linterid=" + value, true, "");
                break; Kf_SellOutBillList
            case "Kf_SellOutBillList": //销售出库单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Kf_SellOutBillList.aspx?linterid=" + value, true, "");
                break;
            case "Kf_SellOutBillListByID": //材料结算清单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Kf_SellOutBillListByID.aspx?linterid=" + value, true, "");
                break;
            case "Kf_SellOutBillList_BarCodeNote": //销售码单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Kf_SellOutBillList_BarCodeNote.aspx?linterid=" + value, true, "");
                break;
            case "Kf_SellOutBillList_BarCodeNote_ByCusDefine": //销售码单(客户物料)
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Kf_SellOutBillList_BarCodeNote_ByCusDefine.aspx?linterid=" + value, true, "");
                break;
            case "Sc_ICMOChangeBillList": //生产订单变更单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_ICMOChangeBillList.aspx?linterid=" + value, true, "");
                break;
            case "HPOInStockBackBill": //退料通知单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HPOInStockBackBill.aspx?linterid=" + value, true, "");
                break;
            case "PM_ProjectBillMainMy": //我的项目
                var ListTrue = value.split('|');
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlPM_ProjectBillMainMy.aspx?linterid=" + ListTrue[0] + "&Num=" + ListTrue[1], true, "");
                break;
            case "Sc_MyTicketList": //我的工单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_MyTicke.aspx?linterid=" + value, true, "");
                break;
            case "PM_WorkTaskBillMyList": //我的任务
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlPM_WorkTaskBillMyList.aspx?linterid=" + value, true, "");
                break;
            case "Pay_WorkTimesBillList": //考勤汇报单列表
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Pay_WorkTimesBillList.aspx?linterid=" + value, true, "");
                break;
            case "YS_ReceiveOtherBill": //其他应收单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLYS_ReceiveOtherBillMainList.aspx?linterid=" + value, true, "");
                break;
            case "HGy_FixCard"://固定资产
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HGy_FixCard.aspx?linterid=" + value, true, "");
                break;
            case "HGy_CardType"://资产类别
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HGy_CardType.aspx?linterid=" + value, true, "");
                break;
            case "HGy_CardAddress"://资产位置
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HGy_CardAddress.aspx?linterid=" + value, true, "");
                break;
            case "HGy_CardStatus"://资产状态
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HGy_CardStatus.aspx?linterid=" + value, true, "");
                break;
            case "HGy_CardChangeType"://变动方式
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HGy_CardChangeType.aspx?linterid=" + value, true, "");
                break;
            case "Xs_SellOutChangeBillList": //销售调价单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Xs_SellOutChangeBillList.aspx?linterid=" + value, true, "");
                break;
            case "Kf_ICStockBackBillList": //销售退货单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Kf_ICStockBackBillList.aspx?linterid=" + value, true, "");
                break;
            case "Xs_SeOrderBill_StockInCodeNote": //销售订单 å…¥åº“码单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Xs_SeOrderBill_StockInCodeNote.aspx?linterid=" + value, true, "");
                break;
            case "HBarCodePrint"://物料条码打印
                //CreateDisplayViewerEx("100%", "100%", "../../views/grf/" + OpenTmp + ".grf", "../../views/SRM/xmlSRM_Web_BarCodeBillList.aspx?linterid=" + value, true, "");
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlSRM_Web_BarCodeBillList.aspx?linterid=" + value, true, "");
                break;
            case "HICMOReport"://生产汇报单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_ICMOReportBillList.aspx?linterid=" + value, true, "");
                break;
            case "HICMOReport2"://生产汇报单2
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Sc_ICMOReportBillList2.aspx?linterid=" + value, true, "");
                break;
            case "QC_TakeSampleCheckBillMainList"://检验取样单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_QC_TakeSampleCheckBillMainList.aspx?linterid=" + value, true, "");
                break;
            case "Xs_OutDoorBillList"://出门确认单单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Xs_OutDoorBillList.aspx?linterid=" + value, true, "");
                break;
            case "Kf_ProductReceiveMaterialBillList": //生产领料单
                CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_Kf_ProductReceiveMaterialBillList.aspx?linterid=" + value, true, "");
                break;
        }
    </script>
</body>