예제 #1
0
        public static WIPCalc GetWipCalc(mpWIPAll.ReportType reportType)
        {
            WIPCalc wipCalc;

            switch (reportType)
            {
                case mpWIPAll.ReportType.CM:
                    wipCalc = new WIPCalc_CM();
                    break;
                default:
                    wipCalc = new WIPCalc();
                    break;
            }

            return wipCalc;
        }
예제 #2
0
        public static mpWIPAll GetInstance(Session session)
        {
            Logger.For(typeof(mpWIPAll)).Info("开始");
            mpWIPAll setting = session.FindObject<mpWIPAll>(null);

            if (setting == null)
            {
                Logger.For(typeof(mpWIPAll)).Info("建立");
                setting = new mpWIPAll(session);
                setting.Save();
            }
            Logger.For(typeof(mpWIPAll)).Info("结束");
            return setting;
        }