Exemplo n.º 1
0
        public WwApp02Controller(
            IHostingEnvironment env,
            IHubContext <MyChatHub> context,
            IWeixinAppService weixinAppService,
            IVehicleRecordAppService recordAppService,
            IGasStationCache gasStationCache,
            IOilTypeCache oilTypeCache,
            IVehicleMTTypeCache vehicleMTTypeCache,
            IVehicleCache vehicleCache,
            IOutletCache outletCache)
        {
            var appConfiguration = env.GetAppConfiguration();

            _corpId  = appConfiguration["SenparcWeixinSetting:CorpId"];
            _secret  = appConfiguration[string.Format("SenparcWeixinSetting:{0}:Secret", "App02")];
            _agentId = appConfiguration[string.Format("SenparcWeixinSetting:{0}:AgentId", "App02")];

            _context          = context;
            _weixinAppService = weixinAppService;
            _recordAppService = recordAppService;

            _gasStationCache    = gasStationCache;
            _oilTypeCache       = oilTypeCache;
            _vehicleMTTypeCache = vehicleMTTypeCache;
            _vehicleCache       = vehicleCache;
            _outletCache        = outletCache;
        }
Exemplo n.º 2
0
        public WeixinAppService(IRepository <Issue> issueRepository, IRepository <AskDoorRecord> askDoorRepository, IRepository <EmergDoorRecord> emergDoorRepository,
                                IRouteAppService routeAppService, IOutletCache outletCache, ITaskTypeCache taskTypeCache, IVehicleCache vehicleCache)
        {
            _issueRepository     = issueRepository;
            _askDoorRepository   = askDoorRepository;
            _emergDoorRepository = emergDoorRepository;

            _routeAppService = routeAppService;
            _outletCache     = outletCache;
            _taskTypeCache   = taskTypeCache;
            _vehicleCache    = vehicleCache;
        }
Exemplo n.º 3
0
        public WorkManager(IWorkerCache workerCache,
                           IVehicleCache vehicleCache,
                           IWorkplaceCache workplaceCache,
                           IWorkRoleCache workRoleCache,
                           IDepotCache depotCache,
                           IArticleCache articleCache,
                           IPostCache postCache,
                           IBoxCache boxCache,
                           IOutletCache outletCache,
                           ISigninCache signinCache,
                           IRepository <Signin> signinRepository,
                           IAffairCache affairCache,
                           IRepository <Affair> affairRepository,
                           IRepository <AffairWorker> affairWorkerRepository,
                           IRepository <AffairTask> affairTaskRepository,
                           IRepository <AffairEvent> affairEventRepository,
                           IRepository <AskDoorRecord> askdoorRepository)
        {
            _workerCache    = workerCache;
            _vehicleCache   = vehicleCache;
            _workplaceCache = workplaceCache;
            _workRoleCache  = workRoleCache;
            _depotCache     = depotCache;
            _articleCache   = articleCache;
            _postCache      = postCache;
            _boxCache       = boxCache;
            _outletCache    = outletCache;

            _signinCache      = signinCache;
            _signinRepository = signinRepository;

            _affairCache            = affairCache;
            _affairRepository       = affairRepository;
            _affairWorkerRepository = affairWorkerRepository;
            _affairTaskRepository   = affairTaskRepository;
            _affairEventRepository  = affairEventRepository;

            _askdoorRepository = askdoorRepository;
        }
Exemplo n.º 4
0
 public FieldAppService(IDepotCache depotCache,
                        IWorkplaceCache workplaceCache,
                        IWorkerCache workerCache,
                        IVehicleCache vehicleCache,
                        IPostCache postCache,
                        IWorkRoleCache workRoleCache,
                        IGasStationCache gasStationCache,
                        IRepository <Worker> workerRepository,
                        IRepository <WorkerFile> workerFileRepository,
                        IRepository <Asset> assetRepository)
 {
     _depotCache           = depotCache;
     _workplaceCache       = workplaceCache;
     _workerCache          = workerCache;
     _vehicleCache         = vehicleCache;
     _postCache            = postCache;
     _workRoleCache        = workRoleCache;
     _gasStationCache      = gasStationCache;
     _workerRepository     = workerRepository;
     _workerFileRepository = workerFileRepository;
     _assetRepository      = assetRepository;
 }