Example #1
0
 public LocationMgr(ILocationDao entityDao,
     ILocationLotDetailMgr locationLotDetailMgr,
     INumberControlMgr numberControlMgr,
     ICriteriaMgr criteriaMgr,
     ILocationTransactionMgr locationTransactionMgr,
     IRegionMgr regionMgr,
     IUserMgr userMgr,
     IPlannedBillMgr plannedBillMgr,
     IStorageBinMgr storageBinMgr,
     IHuMgr huMgr,
     IBillMgr billMgr,
     IItemMgr itemMgr)
     : base(entityDao)
 {
     this.numberControlMgr = numberControlMgr;
     this.locationLotDetailMgr = locationLotDetailMgr;
     this.criteriaMgr = criteriaMgr;
     this.locationTransactionMgr = locationTransactionMgr;
     this.regionMgr = regionMgr;
     this.userMgr = userMgr;
     this.plannedBillMgr = plannedBillMgr;
     this.storageBinMgr = storageBinMgr;
     this.huMgr = huMgr;
     this.billMgr = billMgr;
     this.itemMgr = itemMgr;
 }
Example #2
0
 public PartyMgr(IPartyDao entityDao, ICriteriaMgr criteriaMgr, IRegionMgr RegionMgr, ISupplierMgr SupplierMgr, ICustomerMgr CustomerMgr, ICarrierMgr CarrierMgr)
     : base(entityDao)
 {
     this.criteriaMgr = criteriaMgr;
     this.RegionMgr   = RegionMgr;
     this.SupplierMgr = SupplierMgr;
     this.CustomerMgr = CustomerMgr;
     this.CarrierMgr  = CarrierMgr;
 }
Example #3
0
 public PartyMgr(IPartyDao entityDao, ICriteriaMgr criteriaMgr, IRegionMgr RegionMgr, ISupplierMgr SupplierMgr, ICustomerMgr CustomerMgr, ICarrierMgr CarrierMgr)
     : base(entityDao)
 {
     this.criteriaMgr = criteriaMgr;
     this.RegionMgr = RegionMgr;
     this.SupplierMgr = SupplierMgr;
     this.CustomerMgr = CustomerMgr;
     this.CarrierMgr = CarrierMgr;
 }
Example #4
0
        private void InitCoreService()
        {
            IDbConnection dbConnection = new OraConnection();

            CompositionContainer.ComposeExportedValue <IDbConnection>(dbConnection);

            _dbMgr = new OraDBMgr(dbConnection, LogMgr);
            CompositionContainer.ComposeExportedValue <IDbMgr>(_dbMgr);

            _settingMgr = new SettingMgr(LogMgr);
            _settingMgr.ReadWriteProvider = new OraDBSettingReadWriter(_dbMgr, LogMgr);
            CompositionContainer.ComposeExportedValue <ISettingMgr>(_settingMgr);

            _regionMgr = new RegionMgr(LogMgr);
            CompositionContainer.ComposeExportedValue <IRegionMgr>(_regionMgr);

            int firstMenuIndex = 2;
            BarCommandRegion mainMenuRegion = new BarCommandRegion(RegionName.MainMenu, _mainForm.MainMenu, firstMenuIndex);

            _regionMgr.AddCommandRegion(RegionName.MainMenu, new MainMenuCommandRegionDecorator(RegionName.MainMenu, mainMenuRegion));
            _regionMgr.AddCommandRegion(RegionName.PlugginMenuItem, new SubMenuCommandRegionDecorator(RegionName.PlugginMenuItem, mainMenuRegion, _mainForm.PlugginBarButtonItem));

            int firstToolBarIndex          = 2;
            BarCommandRegion toolBarRegion = new BarCommandRegion(RegionName.MainToolBar, _mainForm.MainToolBar, firstToolBarIndex);

            _regionMgr.AddCommandRegion(RegionName.MainToolBar, toolBarRegion);

            IViewRegion documentRegion = new DocumentViewRegion(RegionName.DocumentRegion, _mainForm.MainDocumentManager, _mainForm.MainDockManager, LogMgr);

            _regionMgr.AddViewRegion(RegionName.DocumentRegion, documentRegion);

            IViewRegion dockPanelRegion = new DockingViewRegion(RegionName.DockPanelRegion, _mainForm.MainDocumentManager, _mainForm.MainDockManager, LogMgr);

            _regionMgr.AddViewRegion(RegionName.DockPanelRegion, dockPanelRegion);

            IViewFormMgr viewFormMgr = new ViewFormMgr(_mainForm, _mainForm.MainTaskBar, LogMgr);

            CompositionContainer.ComposeExportedValue <IViewFormMgr>(viewFormMgr);

            IMessageBoxMgr messageBoxMgr = new MessageBoxMgr(_mainForm, LogMgr, null, typeof(MainWaitForm));

            CompositionContainer.ComposeExportedValue <IMessageBoxMgr>(messageBoxMgr);

            _plugginMgr = ServiceMgr.Current.GetInstance <IPlugginMgr>();
            _eventMgr   = ServiceMgr.Current.GetInstance <IEventMgr>();
        }
Example #5
0
 public LocationDetailMgr(ILocationDetailDao entityDao,
                          ICriteriaMgr CriteriaMgr,
                          IRegionMgr RegionMgr,
                          ILocationMgr LocationMgr,
                          IItemMgr ItemMgr,
                          IOrderLocationTransactionMgr OrderLocTransMgr,
                          ILocationTransactionMgr LocTransMgr,
                          IInProcessLocationDetailMgr IPLocDetMgr,
                          IUomConversionMgr UomConversionMgr,
                          IPickListResultMgr PickListResultMgr)
     : base(entityDao)
 {
     this.CriteriaMgr       = CriteriaMgr;
     this.RegionMgr         = RegionMgr;
     this.LocationMgr       = LocationMgr;
     this.ItemMgr           = ItemMgr;
     this.OrderLocTransMgr  = OrderLocTransMgr;
     this.LocTransMgr       = LocTransMgr;
     this.IPLocDetMgr       = IPLocDetMgr;
     this.UomConversionMgr  = UomConversionMgr;
     this.PickListResultMgr = PickListResultMgr;
 }
 public LocationDetailMgr(ILocationDetailDao entityDao,
     ICriteriaMgr CriteriaMgr,
     IRegionMgr RegionMgr,
     ILocationMgr LocationMgr,
     IItemMgr ItemMgr,
     IOrderLocationTransactionMgr OrderLocTransMgr,
     ILocationTransactionMgr LocTransMgr,
     IInProcessLocationDetailMgr IPLocDetMgr,
     IUomConversionMgr UomConversionMgr,
     IPickListResultMgr PickListResultMgr)
     : base(entityDao)
 {
     this.CriteriaMgr = CriteriaMgr;
     this.RegionMgr = RegionMgr;
     this.LocationMgr = LocationMgr;
     this.ItemMgr = ItemMgr;
     this.OrderLocTransMgr = OrderLocTransMgr;
     this.LocTransMgr = LocTransMgr;
     this.IPLocDetMgr = IPLocDetMgr;
     this.UomConversionMgr = UomConversionMgr;
     this.PickListResultMgr = PickListResultMgr;
 }
 public ItemFlowPlanMgr(
     IItemFlowPlanDao entityDao,
     ICriteriaMgr CriteriaMgr,
     IItemFlowPlanDetailMgr ItemFlowPlanDetailMgr,
     IItemFlowPlanTrackMgr ItemFlowPlanTrackMgr,
     ISupplyChainMgr SupplyChainMgr,
     ILocationDetailMgr LocDetMgr,
     ISupplierMgr SupplierMgr,
     IRegionMgr RegionMgr,
     ICustomerMgr CustomerMgr,
     IBomDetailMgr BomDetailMgr)
     : base(entityDao)
 {
     this.CriteriaMgr           = CriteriaMgr;
     this.ItemFlowPlanDetailMgr = ItemFlowPlanDetailMgr;
     this.ItemFlowPlanTrackMgr  = ItemFlowPlanTrackMgr;
     this.SupplyChainMgr        = SupplyChainMgr;
     this.LocDetMgr             = LocDetMgr;
     this.SupplierMgr           = SupplierMgr;
     this.RegionMgr             = RegionMgr;
     this.CustomerMgr           = CustomerMgr;
     this.BomDetailMgr          = BomDetailMgr;
 }