예제 #1
0
 public PositionTypeServiceController(IEntityListLoader <PositionType> businessService
                                      , IPositionMappingBS positionMappingBS
                                      , IEntityListLoader <ElitePosition> elitePositionListLoader)
 {
     this.businessService         = businessService;
     this.positionMappingBS       = positionMappingBS;
     this.elitePositionListLoader = elitePositionListLoader;
 }
예제 #2
0
 public AccountServiceController(IAppSettingManager appSettingManager
                                 , IEntityListLoader <Role> roleBusinessService
                                 , IUserBS userBusinessService
                                 , ApplicationUserManager userManager
                                 , ApplicationSignInManager signInManager
                                 , IAuthenticationManager authenticationManager)
 {
     this.appSettingManager     = appSettingManager;
     this.roleBusinessService   = roleBusinessService;
     this.userBusinessService   = userBusinessService;
     _userManager               = userManager;
     _signInManager             = signInManager;
     this.authenticationManager = authenticationManager;
     this.roleBusinessService   = roleBusinessService;
 }
예제 #3
0
        public async Task ExportToExcelOverViewRept()
        {
            //Arrange
            int year  = 1397;
            int month = 10;
            IEntityListLoader <BranchPromotion> branchPromotionLoader = _kernel.Get <IEntityListLoader <BranchPromotion> >();
            var entity = await branchPromotionLoader.LoadListAsync(x => x.Year == year && x.Month == month
                                                                   , includes : x => new { x.Branch }, orderBy : x => x.OrderBy(y => y.Branch.Order));

            if (entity.ReturnStatus == false)
            {
                Assert.Fail(entity.ReturnMessage.ConcatAll());
            }
            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new PromotionReportMapperProfile());
            });
            var    mapper        = config.CreateMapper();
            var    dataModelView = mapper.Map <List <BranchPromotionViewModel> >(entity.ResultValue);
            string caption       = $"{month} ماه  - {year} عملکرد نهایی سال";
            var    excelTemplate = @"D:\Projects\Elite\Source\Neutrino\Neutrino.Portal\Views\Promotion\overviewrpt\OverviewExcelTemplate.html";

            ExportToExcel.GetExcelFile <BranchPromotionViewModel>(dataModelView, null, excelTemplate, caption);
        }
예제 #4
0
 public GoalGoodsCategoryTypeServiceController(IEntityListLoader <GoalGoodsCategoryType> businessService)
 {
     this.businessService = businessService;
 }
예제 #5
0
 public RewardTypeServiceController(IEntityListLoader <RewardType> businessService)
 {
     this.businessService = businessService;
 }
 public CondemnationTypeServiceController(IEntityListLoader <CondemnationType> businessService)
 {
     this.businessService = businessService;
 }
예제 #7
0
 public CompanyServiceController(IEntityListLoader <Company> businessService)
 {
     this.businessService = businessService;
 }
예제 #8
0
 public MemberReceiptJob() : base()
 {
     businessService  = NinjectContainer.Resolve <IMemberReceiptBS>();
     memberListLoader = NinjectContainer.Resolve <IEntityListLoader <Member> >();
 }
예제 #9
0
 public GlobalTriggerListener()
 {
     dataSyncStatusDataService = NinjectContainer.Resolve <IEntityListLoader <DataSyncStatus> >();
 }
예제 #10
0
 public AppMenuServiceController(IEntityListLoader <AppMenu> appMenuLoader)
 {
     this.appMenuLoader = appMenuLoader;
 }
 public BranchGoalServiceController(IBranchGoalBS businessService
                                    , IEntityListLoader <Goods> goodsListLoader)
 {
     this.businessService = businessService;
     this.goodsListLoader = goodsListLoader;
 }
예제 #12
0
 public BranchServiceController(IEntityListLoader <Branch> branchListLoader
                                , IEntityLoader <Branch> branchLoader)
 {
     this.branchListLoader = branchListLoader;
     this.branchLoader     = branchLoader;
 }
예제 #13
0
 public GoodsServiceController(IEntityListLoader <Goods> lstLoader
                               , IEntityListByPagingLoader <Goods> lstByPagingLoader)
 {
     this.lstLoaderBs         = lstLoader;
     this.lstByPagingLoaderBs = lstByPagingLoader;
 }