333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
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
using Aspose.Cells;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIP_Models;
 
namespace WIP_Print
{
    public class PrintFactory
    {
        public PageOrientationType orientation = PageOrientationType.Portrait;//打印方向,默认纵向
        public PrintMgr GetPrintMgr(PrintType printType)
        {
            PrintMgr printMgr = null;
            switch (printType)
            {
                case PrintType.ProcessCardForPostHeatStorageOut:
                case PrintType.ProcessCardForBuffer:
                case PrintType.ProcessCardForWCSByWhGate1:
                case PrintType.ProcessCardForWCSByWhGate3:
                default:
                    printMgr = new ProcessCardPrint(printType);
                    break;
                case PrintType.InspectOrder://人工抽检位送检单
                case PrintType.InspectOrderForReject://不良品打印送检单
                    printMgr = new InspectOrderPrint(printType);
                    orientation = PageOrientationType.Landscape;//横向打印
                    break;
            }
            return printMgr;
        }
    }
}