コード例 #1
0
 public CompanyController(ICompanyAppService companyAppService, ICompanyAuthAppService companyAuthAppService, IContactAppService contactAppService, ICompanyIndustryAppService companyIndustryAppService, IUserAppService userAppService)
 {
     _companyService            = companyAppService;
     _companyAuthAppService     = companyAuthAppService;
     _contactAppService         = contactAppService;
     _companyIndustryAppService = companyIndustryAppService;
     _userAppService            = userAppService;
 }
コード例 #2
0
 public CompanyController(ICompanyAppService companyAppService, IHttpContextAccessor httpContextAccessor)
 {
     _companyAppService = companyAppService;
     if (httpContextAccessor.HttpContext.User.Identity.IsAuthenticated)
     {
         userName = httpContextAccessor.HttpContext.User.Identity.Name;
     }
 }
コード例 #3
0
 public CompanyEmployeeController(INotification iNotification, IEmployeeAppService iEmployeeAppService, UserManager <ApplicationUser> userManager, INotification notification, ICompanyAppService iCompanyAppService, IEmailService iEmailService) : base(iNotification)
 {
     _iEmployeeAppService = iEmployeeAppService;
     _userManager         = userManager;
     _notification        = notification;
     _iCompanyAppService  = iCompanyAppService;
     _iEmailService       = iEmailService;
 }
コード例 #4
0
 public CreateModel(
     IBusAppService busAppService,
     IMapper mapper,
     ICompanyAppService companyAppService) : base(mapper)
 {
     _busAppService     = busAppService;
     _companyAppService = companyAppService;
 }
コード例 #5
0
        public static async void ImportClients(ICompanyAppService companyService, IProjectMetaDataService metaDataService)
        {
            var newClient = new NewCEIDGApiProd.NewDataStoreProviderClient(EndpointConfiguration.BasicHttpBinding_INewDataStoreProvider);

            try
            {
                var configuration    = ConfigurationHelper.Get(Directory.GetCurrentDirectory(), null, true);
                var dateOfLastImport = metaDataService.GetDateOfLastImport(ProviderType.CEIDG);

                newClient.InnerChannel.OperationTimeout = TimeSpan.MaxValue;

                var result = await newClient.GetMigrationDataExtendedAddressInfoAsync(
                    configuration.GetValue <string>("CEIDGApiKey"), //key
                    null,                                           //nip
                    null,                                           //regon
                    null,                                           //nip_sc
                    null,                                           //regon_sc
                    null,                                           //name
                    Voivodeships,                                   // provinces,
                    null,                                           //county
                    null,                                           //commune
                    null,                                           //city
                    null,                                           //street
                    null,                                           //postcode
                    null,                                           //date from
                    null,                                           //date to
                    null,                                           //pkd
                    new List <int> {
                    1
                },                                                                            //status
                    null,                                                                     //unique id
                    dateOfLastImport == DateTime.MinValue?(DateTime?)null : dateOfLastImport, //migration date from
                    null);                                                                    //migration date to

                var importedCompanies = ParseCompanies(result);

                companyService.AddCompanies(importedCompanies, dateOfLastImport == DateTime.MinValue);

                metaDataService.SetDateOfLastImport(ProviderType.CEIDG, DateTime.Now);
            }
            catch (Exception ex)
            {
                ErrorLog.Save(ex);
                throw;
            }
            finally
            {
                if (newClient.State == CommunicationState.Faulted)
                {
                    newClient.Abort();
                }
                else
                {
                    await newClient.CloseAsync();
                }
            }
        }
コード例 #6
0
 public AccountController(SignInManager <ApplicationUser> signInManager, ILogger <LoginViewModel> logger, UserManager <ApplicationUser> userManager, ICompanyAppService iCompanyAppService, IEmailService iEmailService, IEmployeeAppService iEmployeeAppService)
 {
     _signInManager       = signInManager;
     _logger              = logger;
     _userManager         = userManager;
     _iCompanyAppService  = iCompanyAppService;
     _iEmailService       = iEmailService;
     _iEmployeeAppService = iEmployeeAppService;
 }
コード例 #7
0
 public LayoutController(IProductAppService productAppService,
                         ICategoryAppService categoryAppService,
                         ICompanyAppService companyAppService,
                         ISeoAppService seoAppService) : base(seoAppService)
 {
     _companyAppService  = companyAppService;
     _productAppService  = productAppService;
     _categoryAppService = categoryAppService;
 }
コード例 #8
0
 public CompanyFactory(IProvinceAppService provinceAppService,
                       ICountryAppService countryAppService,
                       ICompanyAppService companyAppService,
                       IHostingEnvironment environment)
 {
     _provinceAppService = provinceAppService;
     _countryAppService  = countryAppService;
     _companyAppService  = companyAppService;
     _environment        = environment;
 }
コード例 #9
0
 public OrderFactory(IOrderAppService appService,
                     IAddressAppService addressAppService,
                     ICustomerAppService customerAppService,
                     ICompanyAppService companyAppService,
                     IPaymentTypeAppService paymentTypeAppService)
 {
     _appService            = appService;
     _addressAppService     = addressAppService;
     _customerAppService    = customerAppService;
     _companyAppService     = companyAppService;
     _paymentTypeAppService = paymentTypeAppService;
 }
コード例 #10
0
 public OrderAppService(
     IRepository <Models.Order, Guid> repository,
     ICustomerAppService customerAppService,
     ICompanyAppService companyAppService,
     IPaymentTypeAppService paymentTypeAppService,
     IAddressAppService addressAppService,
     ISmtpEmailSenderConfiguration smtpConfig,
     ISmtpEmailSender smtpEmailSender)
 {
     _repository            = repository;
     _customerAppService    = customerAppService;
     _companyAppService     = companyAppService;
     _paymentTypeAppService = paymentTypeAppService;
     _addressAppService     = addressAppService;
     _smtpConfig            = smtpConfig;
     _smtpEmailSender       = smtpEmailSender;
 }
コード例 #11
0
ファイル: Index.cshtml.cs プロジェクト: romeohuy/abpCMS
 public IndexModel(ICompanyAppService companyAppService)
 {
     _companyAppService = companyAppService;
 }
コード例 #12
0
 public CompaniesController(ICompanyAppService companyApp)
 {
     _companyApp = companyApp;
 }
コード例 #13
0
 public CompanyController()
 {
     _companyAppService = new CompanyAppService();
 }
コード例 #14
0
 public CompanyController(ICompanyAppService companyAppService)
 {
     this._companyAppService = companyAppService;
 }
コード例 #15
0
        public CompanyController(ICompanyAppService companyAppService, IUnitOfWork uow)
            : base(uow)

        {
            _companyAppService = companyAppService;
        }
コード例 #16
0
 public HealthCheckController(ICompanyAppService appService)
 {
     this.appService = appService;
 }
コード例 #17
0
 public HealthCheckController(ICompanyAppService appService,
                              ILogger <HealthCheckController> logger)
 {
     this.appService = appService;
     this.logger     = logger;
 }
コード例 #18
0
 public HomeController(IBannerAppService bannerAppService, ISeoAppService seoAppService, ICompanyAppService companyAppService) : base(seoAppService)
 {
     _companyAppService = companyAppService;
     _bannerAppService  = bannerAppService;
 }
コード例 #19
0
 public CompanyAppServiceFactory(ICompanyAppService appService)
 {
     this.appService = appService;
 }
コード例 #20
0
 public CompanyController(ICompanyAppService _companyService, IProjectMetaDataService _metaDataService)
 {
     this.companyService  = _companyService;
     this.metaDataService = _metaDataService;
 }
コード例 #21
0
 public CompaniesController(ICompanyAppService companyAppService)
 {
     _companyAppService = companyAppService;
 }
コード例 #22
0
 public CompanyController(ICompanyAppService appService)
 {
     this.appService = appService;
 }
コード例 #23
0
 public CreateModel(ICompanyAppService companyAppService, IMapper objectMapper) : base(objectMapper)
 {
     _companyAppService = companyAppService;
 }
コード例 #24
0
 public CompanyController(INotification iNotification, UserManager <ApplicationUser> userManager, INotification notification, ICompanyAppService iCompanyAppService) : base(iNotification)
 {
     _userManager        = userManager;
     _notification       = notification;
     _iCompanyAppService = iCompanyAppService;
 }
コード例 #25
0
 public CreateModalModel(ICompanyAppService companyAppService)
 {
     CompanyAppService = companyAppService;
 }
コード例 #26
0
 public CompanyController(ICompanyAppService companyAppService, IUserNavigationManager userNavigationManager) : base(userNavigationManager)
 {
     _companyAppService = companyAppService;
 }
コード例 #27
0
ファイル: EditModal.cshtml.cs プロジェクト: hoangnc/TDGPortal
 public EditModalModel(ICompanyAppService companyAppService)
 {
     CompanyAppService = companyAppService;
 }
コード例 #28
0
 public AboutController(ISeoAppService seoAppService, ICompanyAppService companyAppService) : base(seoAppService)
 {
     _companyAppService = companyAppService;
 }
コード例 #29
0
 public CompanyAppService_Tests()
 {
     _companyAppService = Resolve<ICompanyAppService>();
 }
コード例 #30
0
 public CompanyController(ICompanyAppService companyAppService, ICompanyService companyService)
 {
     _companyAppService = companyAppService;
     _companyService    = companyService;
 }
コード例 #31
0
ファイル: MenuController.cs プロジェクト: NosDeployer/Mvc4DDD
 public MenuController(ICompanyAppService companyApp)
 {
     _companyApp = companyApp;
 }