Exemplo n.º 1
0
 public static IBusinessMgr GetBusinessMgrInstance(string dbName)
 {
     if (_instance != null)
     {
         _instance = new BusinessMgr(dbName);
     }
     return(_instance);
 }
Exemplo n.º 2
0
        //[Transaction(TransactionMode.Unspecified)]
        public Resolver Resolve(Resolver resolver)
        {
            //inputResolver.Result = null;
            resolver.Command = null;
            this.CheckValid(resolver);

            //Resolver resolver = CloneHelper.DeepClone<Resolver>(inputResolver);

            this.AnalyzeBarcode(resolver);

            IBusinessMgr processer = dicService[resolver.ModuleType];

            processer.Process(resolver);

            resolver.Input = null;
            return(resolver);
        }
Exemplo n.º 3
0
        public ResolverMgr(
            IBusinessMgr shipMgr,
            IBusinessMgr receiveMgr,
            IBusinessMgr pickupMgr,
            IBusinessMgr putAwayMgr,
            IBusinessMgr onlineMgr,
            IBusinessMgr offlineMgr,
            IBusinessMgr inspectMgr,
            IBusinessMgr transferMgr,
            IBusinessMgr pickMgr,
            IBusinessMgr repackageMgr,
            IBusinessMgr returnMgr,
            IBusinessMgr materialInMgr,
            IBusinessMgr flushBackMgr,
            IBusinessMgr inspectionMgr,
            IBusinessMgr devanningMgr,
            IBusinessMgr stockTakingMgr,
            IBusinessMgr pickListOnlineMgr,
            IBusinessMgr reuseMgr,
            IBusinessMgr inspectConfirmNgr,
            IBusinessMgr printingMgr,
            IBusinessMgr batchDevanningMgr
            )
        {
            this.shipMgr           = shipMgr;
            this.receiveMgr        = receiveMgr;
            this.pickupMgr         = pickupMgr;
            this.putAwayMgr        = putAwayMgr;
            this.onlineMgr         = onlineMgr;
            this.offlineMgr        = offlineMgr;
            this.inspectMgr        = inspectMgr;
            this.transferMgr       = transferMgr;
            this.pickMgr           = pickMgr;
            this.repackageMgr      = repackageMgr;
            this.returnMgr         = returnMgr;
            this.materialInMgr     = materialInMgr;
            this.flushBackMgr      = flushBackMgr;
            this.inspectionMgr     = inspectionMgr;
            this.devanningMgr      = devanningMgr;
            this.stockTakingMgr    = stockTakingMgr;
            this.pickListOnlineMgr = pickListOnlineMgr;
            this.reuseMgr          = reuseMgr;
            this.inspectConfirmNgr = inspectConfirmNgr;
            this.printingMgr       = printingMgr;
            this.batchDevanningMgr = batchDevanningMgr;

            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_SHIP, shipMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_RECEIVE, receiveMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_PICKUP, pickupMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_PUTAWAY, putAwayMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_ONLINE, onlineMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_OFFLINE, offlineMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_INSPECT, inspectMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_TRANSFER, transferMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_PICKLIST, pickMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_REPACK, repackageMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_SHIPRETURN, returnMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_RECEIVERETURN, returnMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_SHIPCONFIRM, receiveMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_MATERIALIN, materialInMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_FLUSHBACK, flushBackMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_INSPECTION, inspectionMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_DEVANNING, devanningMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_STOCKTAKING, stockTakingMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_PRODUCTIONRECEIVE, receiveMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_PICKLISTONLINE, pickListOnlineMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_HUSTATUS, stockTakingMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_REUSE, reuseMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_SHIPORDER, shipMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_INSPECTCONFIM, inspectConfirmNgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_PRINTING, printingMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_BATCHDEVANNING, batchDevanningMgr);
        }
Exemplo n.º 4
0
        public ResolverMgr(
            IBusinessMgr shipMgr,
            IBusinessMgr receiveMgr,
            IBusinessMgr pickupMgr,
            IBusinessMgr putAwayMgr,
            IBusinessMgr onlineMgr,
            IBusinessMgr offlineMgr,
            IBusinessMgr inspectMgr,
            IBusinessMgr transferMgr,
            IBusinessMgr pickMgr,
            IBusinessMgr repackageMgr,
            IBusinessMgr returnMgr,
            IBusinessMgr materialInMgr,
            IBusinessMgr flushBackMgr,
            IBusinessMgr inspectionMgr,
            IBusinessMgr devanningMgr,
            IBusinessMgr stockTakingMgr,
            IBusinessMgr pickListOnlineMgr,
            IBusinessMgr reuseMgr,
            IBusinessMgr inspectConfirmNgr,
            IBusinessMgr printingMgr,
            IBusinessMgr batchDevanningMgr
            )
        {
            this.shipMgr = shipMgr;
            this.receiveMgr = receiveMgr;
            this.pickupMgr = pickupMgr;
            this.putAwayMgr = putAwayMgr;
            this.onlineMgr = onlineMgr;
            this.offlineMgr = offlineMgr;
            this.inspectMgr = inspectMgr;
            this.transferMgr = transferMgr;
            this.pickMgr = pickMgr;
            this.repackageMgr = repackageMgr;
            this.returnMgr = returnMgr;
            this.materialInMgr = materialInMgr;
            this.flushBackMgr = flushBackMgr;
            this.inspectionMgr = inspectionMgr;
            this.devanningMgr = devanningMgr;
            this.stockTakingMgr = stockTakingMgr;
            this.pickListOnlineMgr = pickListOnlineMgr;
            this.reuseMgr = reuseMgr;
            this.inspectConfirmNgr = inspectConfirmNgr;
            this.printingMgr = printingMgr;
            this.batchDevanningMgr = batchDevanningMgr;

            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_SHIP, shipMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_RECEIVE, receiveMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_PICKUP, pickupMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_PUTAWAY, putAwayMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_ONLINE, onlineMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_OFFLINE, offlineMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_INSPECT, inspectMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_TRANSFER, transferMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_PICKLIST, pickMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_REPACK, repackageMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_SHIPRETURN, returnMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_RECEIVERETURN, returnMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_SHIPCONFIRM, receiveMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_MATERIALIN, materialInMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_FLUSHBACK, flushBackMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_INSPECTION, inspectionMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_DEVANNING, devanningMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_STOCKTAKING, stockTakingMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_PRODUCTIONRECEIVE, receiveMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_PICKLISTONLINE, pickListOnlineMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_HUSTATUS, stockTakingMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_REUSE, reuseMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_SHIPORDER, shipMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_INSPECTCONFIM, inspectConfirmNgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_PRINTING, printingMgr);
            dicService.Add(BusinessConstants.TRANSFORMER_MODULE_TYPE_BATCHDEVANNING, batchDevanningMgr);
        }