public BatchTransportController(IBatchTransportService batchTransportService, IVehicleService vehicleService, IUserService _userService, IBatchService batchService)
 {
     this.batchTransportService = batchTransportService;
     this.vehicleService        = vehicleService;
     this.userService           = _userService;
     this.batchService          = batchService;
 }
 public BatchController(ILogger <BatchController> logger, IBatchService batchService, ICommonService commonService, IStockService stock)
 {
     this._logger = logger;
     this._batch  = batchService;
     this._common = commonService;
     this._stock  = stock;
 }
        public StudentsController(IStudentService StudentsService, ILookupService lookupService,
            IStudentsParentService StudentsParentService, IStudentsMedicalService StudentsMedicalService,
            IStudentsTransportService StudentsTransportService, IStudentsDocsService StudentsDocsService,
            IAcademicYearService AcademicYearService, IClassService ClassService,
            ISectionService SectionService, IBatchService BatchService, IAreaService AreaService,
            IStudentsAttendanceService StudentsAttendanceService, IStudentsClassService StudentsClassService)
            : base()
        {
            this._StudentService = StudentsService;
            this._StudentsParentService = StudentsParentService;
            this._StudentsMedicalService = StudentsMedicalService;
            this._StudentsTransportService = StudentsTransportService;
            this._StudentsDocsService = StudentsDocsService;
            this._StudentsClassService = StudentsClassService;

            this._AcademicYearService = AcademicYearService;
            this._ClassService = ClassService;
            this._SectionService = SectionService;
            this._BatchService = BatchService;
            this._AreaService = AreaService;

            this._lookupService = lookupService;

            this._StudentsAttendanceService = StudentsAttendanceService;
        }
Example #4
0
 public static object Action(Int32[] ids, String action)
 {
     try
     {
         string       idString = String.Join(",", ids);
         List <Batch> objs     = IBatchService.GetDataByFilter(" ID in (" + idString + ")", 0, 0, false);
         if (action == "Deactivate")
         {
             objs.ForEach(x => {
                 x.Status = 0;
             });
             IBatchService.UpdateBulkData(objs);
         }
         if (action == "Activate")
         {
             objs.ForEach(x => {
                 x.Status = 1;
             });
             IBatchService.UpdateBulkData(objs);
         }
         return(true);
     }
     catch (Exception ex)
     {
         Console.WriteLine("User accounts action: " + ex.Message);
         return(false);
     }
 }
Example #5
0
        public static object Action(Int32[] ids, String action, String rejectReason = "")
        {
            Int32 LoginUserId = 0;

            if (HttpContext.Current.Session["UserId"] != null)
            {
                LoginUserId = Convert.ToInt32(HttpContext.Current.Session["UserId"].ToString());
            }
            try
            {
                string       idString = String.Join(",", ids);
                List <Batch> batches  = IBatchService.GetDataByFilter(" ID in (" + idString + ")", 0, 0, false);
                if (action == "Repost")
                {
                    batches.ForEach(x =>
                    {
                        x.StageId     = 5;
                        x.Status      = 1;
                        x.UpdatedBy   = LoginUserId;
                        x.UpdatedDate = DateTime.Now;
                    });
                    IBatchService.UpdateBulkData(batches);
                }
                return(true);
            }
            catch (Exception ex)
            {
                Console.WriteLine("User accounts action: " + ex.Message);
                return(false);
            }
        }
 public BatchController(IBatchService service,
                        IProductService prodService,
                        IProviderService provService)
 {
     _service     = service ?? throw new ArgumentNullException(nameof(service));
     _prodService = prodService ?? throw new ArgumentNullException(nameof(prodService));
     _provService = provService ?? throw new ArgumentNullException(nameof(provService));
 }
 public BatchController(
     IBatchService batchService,
     IUnitOfWork unitOfWork
     )
 {
     _batchService = batchService;
     _unitOfWork   = unitOfWork;
 }
 public PaymentEventService(IBatchService batchService, IDepositService depositService, IDonationService donationService,
                            IPushpayService pushpayService)
 {
     _batchService    = batchService;
     _depositService  = depositService;
     _donationService = donationService;
     _pushpayService  = pushpayService;
     //_logger = logger;
 }
Example #9
0
        public BatchServiceTest()
        {
            _configurationWrapper = new Mock <IConfigurationWrapper>();
            _donationRepository   = new Mock <IDonationRepository>();
            _batchRepository      = new Mock <IBatchRepository>();
            _mapper = new Mock <IMapper>();

            _fixture = new BatchService(_donationRepository.Object, _batchRepository.Object, _mapper.Object, _configurationWrapper.Object);
        }
Example #10
0
 public Program(IBatchService batchservice)
 {
     service           = batchservice;
     connectionString  = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
     adDomain          = ConfigurationManager.AppSettings["AD_Domain"];
     isFiltered        = ConfigurationManager.AppSettings["isFiltered"] == "true";
     filteredCompanies = ConfigurationManager.AppSettings["FilteredCompanies"].Split(',');
     columnNames       = service.GetColumnNames();
     recordList        = new List <ADDepUser>();
 }
Example #11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request.QueryString["FromDate"]))
            {
                FromDate.Value = startDate = Request.QueryString["FromDate"];
            }

            if (!string.IsNullOrEmpty(Request.QueryString["ToDate"]))
            {
                ToDate.Value = endDate = Request.QueryString["ToDate"];
            }

            divResult.InnerHtml = "";
            divResult.Visible   = false;

            var branches = IBranchService.GetUtilizedBranches();

            BranchId.DataSource     = branches;
            BranchId.DataTextField  = "Code";
            BranchId.DataValueField = "Id";
            BranchId.DataBind();
            BranchId.Items.Insert(0, new ListItem()
            {
                Text = "All", Value = "0"
            });
            if (!string.IsNullOrEmpty(Request.QueryString["BranchId"]))
            {
                BranchId.SelectedValue = Request.QueryString["BranchId"];
            }

            if (!string.IsNullOrEmpty(Request.QueryString["IsClear"]) && Request.QueryString["IsClear"] == "1")
            {
                FromDate.Value         = ToDate.Value = startDate = endDate = string.Empty;
                BranchId.SelectedValue = "0";
            }
            if (datechecking())
            {
                Querys();
                List <StatisticModel> last5DaysCount = IBatchService.GetDaysCountbyDepartment(barChatQuery, 0, 0, true);

                if (last5DaysCount.Count == 0)
                {
                    divResult.InnerHtml = @"<div class='alert alert-block alert-danger fade in'><button data-dismiss='alert' class='close close-sm' type='button'>
                                                <i class='fa fa-times'></i>
                                                </button>
                                                <strong>Oh snap!</strong> No records found for the search criteria entered.</div>";
                    divResult.Visible   = true;
                }
                else
                {
                    dataBind(last5DaysCount);
                }
            }
        }
Example #12
0
 public BatchController(IClassService classService, ILogger logger, IRepository repository, IBatchService batchService, ISubjectService subjectService,
                        IStudentService studentService, IAspNetRoles aspNetRolesService)
 {
     _classService       = classService;
     _logger             = logger;
     _repository         = repository;
     _batchService       = batchService;
     _subjectService     = subjectService;
     _studentService     = studentService;
     _aspNetRolesService = aspNetRolesService;
 }
Example #13
0
 public NonPathedController(INotifierEntityService _notifierEntityService, IPathedNominationService pathedNominationService, ImetadataFileStatusService metadataFileStatusService, ICycleIndicator ICycleIndicator, IPNTNominationService IPNTNominationService, IPipelineService pipelineService, INonPathedService nonPathedService, IBatchService batchService) : base(pipelineService)
 {
     this._notifierEntityService    = _notifierEntityService;
     this.pathedNominationService   = pathedNominationService;
     this.metadataFileStatusService = metadataFileStatusService;
     this.ICycleIndicator           = ICycleIndicator;
     this.IPNTNominationService     = IPNTNominationService;
     // this.pipelineService = pipelineService;
     this.nonPathedService = nonPathedService;
     this.batchService     = batchService;
 }
 public FileImportService(ILogger <IFileImportService> logger,
                          IBatchService batchService,
                          IBlobStorageService blobStorageService,
                          IDataImportService dataImportService,
                          IImporterService importerService)
 {
     _logger             = logger;
     _batchService       = batchService;
     _blobStorageService = blobStorageService;
     _dataImportService  = dataImportService;
     _importerService    = importerService;
 }
Example #15
0
 public SplitFileService(
     IBatchService batchService,
     IBlobStorageService blobStorageService,
     ILogger <ISplitFileService> logger,
     IDataImportService dataImportService
     )
 {
     _batchService       = batchService;
     _blobStorageService = blobStorageService;
     _logger             = logger;
     _dataImportService  = dataImportService;
 }
 public PrintResponseCommand(
     ILogger <PrintResponseCommand> logger,
     IBatchService batchService,
     IExternalBlobFileTransferClient externalFileTransferClient,
     IInternalBlobFileTransferClient internalFileTransferClient,
     IOptions <PrintResponseOptions> printReponseOptions)
     : base(externalFileTransferClient, internalFileTransferClient)
 {
     _logger       = logger;
     _batchService = batchService;
     _options      = printReponseOptions?.Value;
 }
        /// <summary>
        /// Helper method to initialize the Batch Service and downscale timer
        /// </summary>
        /// <param name="configuration">The configuration used for the batch service</param> with a custom configuration
        private void InitBatchService(Microsoft.Extensions.Configuration.IConfiguration configuration)
        {
            this.batchService = new BatchService(configuration);

            int downscaleTimeoutMinutes = -1;

            int.TryParse(configuration["AutomaticDownscaleTimeoutMinutes"], out downscaleTimeoutMinutes);

            if (downscaleTimeoutMinutes > 0)
            {
                this.downscaleTimer = new Timer(new TimeSpan(0, downscaleTimeoutMinutes, 0).TotalMilliseconds);
            }
        }
 public FileImportService(
     IFileStorageService fileStorageService,
     IImporterService importerService,
     IBatchService batchService,
     ILogger <IFileImportService> logger,
     IImportStatusService importStatusService)
 {
     _fileStorageService  = fileStorageService;
     _importerService     = importerService;
     _batchService        = batchService;
     _logger              = logger;
     _importStatusService = importStatusService;
 }
 public Processor(
     IFileImportService fileImportService,
     IBatchService batchService,
     IImportStatusService importStatusService,
     IProcessorService processorService,
     ILogger <Processor> logger
     )
 {
     _fileImportService   = fileImportService;
     _batchService        = batchService;
     _importStatusService = importStatusService;
     _processorService    = processorService;
     _logger = logger;
 }
Example #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentController"/> class.
 /// </summary>
 /// <param name="storageService">Azure Storage Location</param>
 /// <param name="docDbService">Document DB Service</param>
 /// <param name="batchService">Azure Batch</param>
 /// <param name="graphService">Graph Service</param>
 /// <param name="logger">Logger</param>
 /// <param name="config">General Config</param>
 public DocumentController(
     IStorageService storageService,
     IDocumentDbService docDbService,
     IBatchService batchService,
     IGraphService graphService,
     ILogger <DocumentController> logger,
     IOptions <GeneralConfig> config)
     : base(logger, config)
 {
     this.storageService    = storageService;
     this.documentDbService = docDbService;
     this.batchService      = batchService;
     this.graphService      = graphService;
 }
        public ComplaintController(IComplaintService ComplaintService, ILookupService lookupService,
            IAcademicYearService AcademicYearService, IClassService ClassService,
            ISectionService SectionService, IBatchService BatchService, IStudentService StudentService)
            : base()
        {
            this._ComplaintService = ComplaintService;
            this._lookupService = lookupService;

            this._AcademicYearService = AcademicYearService;
            this._ClassService = ClassService;
            this._SectionService = SectionService;
            this._BatchService = BatchService;
            this._StudentService = StudentService;
        }
Example #22
0
 public AdminController(IClientService clientService, IBranchService branchService,
                        IBatchService batchService,
                        ITeacherService teacherService,
                        IStudentService studentService,
                        ILogger logger, IAspNetRoles aspNetRolesService, IApiService apiService)
 {
     _clientService      = clientService;
     _branchService      = branchService;
     _batchService       = batchService;
     _teacherService     = teacherService;
     _studentService     = studentService;
     _logger             = logger;
     _aspNetRolesService = aspNetRolesService;
     _apiService         = apiService;
 }
 public OfflineTestStudentMarksController(IOfflineTestPaper offlineTestPaper, IOfflineTestStudentMarksService offlineTestStudentMarksService,
                                          IBranchService branchService, IBatchService batchService, IRepository repository,
                                          IAspNetRoles aspNetRolesService, ILogger logger, IBranchAdminService branchAdminService,
                                          ISmsService smsService, IEmailService emailService)
 {
     _offlineTestPaper = offlineTestPaper;
     _offlineTestStudentMarksService = offlineTestStudentMarksService;
     _batchService       = batchService;
     _branchService      = branchService;
     _repository         = repository;
     _aspNetRolesService = aspNetRolesService;
     _logger             = logger;
     _branchAdminService = branchAdminService;
     _smsService         = smsService;
     _emailService       = emailService;
 }
Example #24
0
 private FileImportService BuildFileImportService(
     IFileStorageService fileStorageService   = null,
     IImporterService importerService         = null,
     IBatchService batchService               = null,
     ILogger <FileImportService> logger       = null,
     IImportStatusService importStatusService = null
     )
 {
     return(new FileImportService(
                fileStorageService ?? new Mock <IFileStorageService>(Strict).Object,
                importerService ?? new Mock <IImporterService>(Strict).Object,
                batchService ?? new Mock <IBatchService>(Strict).Object,
                logger ?? new Mock <ILogger <FileImportService> >().Object,
                importStatusService ?? new Mock <IImportStatusService>(Strict).Object
                ));
 }
Example #25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JobController"/> class.
 /// </summary>
 /// <param name="storageService">Azure Storage Location</param>
 /// <param name="docDbService">Document DB Service</param>
 /// <param name="batchService">Azure Batch</param>
 /// <param name="graphService">Graph Service</param>
 /// <param name="logger">Logger</param>
 /// <param name="hubContext">SignalR Hub Context</param>
 /// <param name="config">General Config</param>
 public JobController(
     IStorageService storageService,
     IDocumentDbService docDbService,
     IBatchService batchService,
     ILogger <JobController> logger,
     IOptions <GeneralConfig> config,
     IHubContext <JobUpdateHub> hubContext,
     IGraphService graphService)
     : base(logger, config)
 {
     this.storageService      = storageService;
     this.documentDbService   = docDbService;
     this.batchService        = batchService;
     this.jobUpdateHubContext = hubContext;
     this.graphService        = graphService;
 }
Example #26
0
 public AttendenceApiController(IStudentService studentService,
                                IBatchService batchService,
                                IAttendanceService attendanceService,
                                ILogger logger,
                                IMachineService machineService,
                                ISendNotificationService sendNotificationService,
                                ILocalDateTimeService localDateTimeService)
 {
     _studentService          = studentService;
     _batchService            = batchService;
     _attendanceService       = attendanceService;
     _logger                  = logger;
     _machineSevice           = machineService;
     _sendNotificationService = sendNotificationService;
     _localDateTimeService    = localDateTimeService;
 }
 public FeeConcessionController(IFeeConcessionService FeeConcessionService, ILookupService lookupService,
     IAcademicYearService AcademicYearService, IClassService ClassService,
     ISectionService SectionService, IBatchService BatchService, IFeeHeadService FeeHeadService,
     IStudentService StudentService, IFeeStructureService FeeStructureService)
     : base()
 {
     this._FeeConcessionService = FeeConcessionService;
     this._lookupService = lookupService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._SectionService = SectionService;
     this._BatchService = BatchService;
     this._FeeHeadService = FeeHeadService;
     this._StudentService = StudentService;
     this._feeStructureService = FeeStructureService;
 }
 private static FileImportService BuildFileImportService(
     IBatchService batchService             = null,
     IBlobStorageService blobStorageService = null,
     IImporterService importerService       = null,
     ILogger <FileImportService> logger     = null,
     IDataImportService dataImportService   = null
     )
 {
     return(new FileImportService(
                logger ?? new Mock <ILogger <FileImportService> >().Object,
                batchService ?? new Mock <IBatchService>(Strict).Object,
                blobStorageService ?? new Mock <IBlobStorageService>(Strict).Object,
                dataImportService ?? new Mock <IDataImportService>(Strict).Object,
                importerService ?? new Mock <IImporterService>(Strict).Object
                ));
 }
Example #29
0
 public BatchController(INonPathedService nonPathedService, ICycleIndicator _cycleIndicator, ImetadataExportDeclarationService _metadataExportDeclarationService, ImetadataQuantityTypeIndicatorService _metadataQuantityTypeIndicatorService, ImetadataCapacityTypeIndicatorService _metadataCapacityTypeIndicatorService, ImetadataBidUpIndicatorService _metaDataBidUpIndicatorService, IPathedNominationService _pathedNominationService, INotifierEntityService _notifierEntityService, ICycleIndicator ICycleIndicator, ImetadataFileStatusService metadataFileStatusService, IPNTNominationService pntNominationService, IPathedNominationService pathedNominationService, IPipelineService pipelineService, IBatchService batchService) : base(pipelineService)
 {
     this._cycleIndicator = _cycleIndicator;
     this._metadataExportDeclarationService     = _metadataExportDeclarationService;
     this._metadataQuantityTypeIndicatorService = _metadataQuantityTypeIndicatorService;
     this._metadataCapacityTypeIndicatorService = _metadataCapacityTypeIndicatorService;
     this._metaDataBidUpIndicatorService        = _metaDataBidUpIndicatorService;
     this._notifierEntityService    = _notifierEntityService;
     this.pntNominationService      = pntNominationService;
     this.pathedNominationService   = pathedNominationService;
     this.metadataFileStatusService = metadataFileStatusService;
     this.ICycleIndicator           = ICycleIndicator;
     //this.pipelineService = pipelineService;
     this.batchService             = batchService;
     this._pathedNominationService = _pathedNominationService;
     this.nonPathedService         = nonPathedService;
 }
Example #30
0
        public StudentService(IStudentRepository StudentRepository, IFileHandler FileHandler,
            IStudentsParentService StudentsParentService, IStudentsMedicalService StudentsMedicalService,
            IStudentsTransportService StudentsTransportService, IAcademicYearService AcademicYearService,
            IClassService ClassService, ISectionService SectionService, IBatchService BatchService,
            IAreaService AreaService)
        {
            this._StudentRepository = StudentRepository;
            this._iFileHandler = FileHandler;
            this._IStudentsParentService = StudentsParentService;
            this._IStudentsMedicalService = StudentsMedicalService;
            this._IStudentsTransportService = StudentsTransportService;

            this._AcademicYearService = AcademicYearService;
            this._ClassService = ClassService;
            this._SectionService = SectionService;
            this._BatchService = BatchService;
            this._AreaService = AreaService;
        }
 public DailyPracticePaperController(IApiService apiService, IDailyPracticePaperService dailyPracticePaperService, ILogger logger,
                                     IRepository repository, IBranchService branchService,
                                     IStudentService studentService, IBatchService batchService, IClassService classService,
                                     IAspNetRoles aspNetRolesService, IBranchAdminService branchAdminService, IEmailService emailService, ISendNotificationService sendNotificationService)
 {
     _apiService = apiService;
     _dailyPracticePaperService = dailyPracticePaperService;
     _logger                  = logger;
     _repository              = repository;
     _branchService           = branchService;
     _studentService          = studentService;
     _batchService            = batchService;
     _classService            = classService;
     _aspNetRolesService      = aspNetRolesService;
     _branchAdminService      = branchAdminService;
     _emailService            = emailService;
     _sendNotificationService = sendNotificationService;
 }
 public StudentDashboardController(IInstallmentService installmentService, ILogger logger
                                   , IRepository repository, IStudentService studentService, IAspNetRoles aspNetRolesService,
                                   IAttendanceService attendanceService, IApiService apiService, ITeacherService teacherService
                                   , IStudentFeedbackService studentFeedbackService, IEmailService emailService, IBatchService batchService, ISubjectService subjectService)
 {
     _installmentService     = installmentService;
     _logger                 = logger;
     _repository             = repository;
     _studentService         = studentService;
     _aspNetRolesService     = aspNetRolesService;
     _attendanceService      = attendanceService;
     _apiService             = apiService;
     _teacherService         = teacherService;
     _studentFeedbackService = studentFeedbackService;
     _emailService           = emailService;
     _batchService           = batchService;
     _subjectService         = subjectService;
 }
Example #33
0
 public PrintRequestCommand(
     ILogger <PrintRequestCommand> logger,
     IPrintCreator printCreator,
     IBatchService batchService,
     IScheduleService scheduleService,
     INotificationService notificationService,
     IExternalBlobFileTransferClient externalFileTransferClient,
     IInternalBlobFileTransferClient internalFileTransferClient,
     IOptions <PrintRequestOptions> options)
 {
     _logger                     = logger;
     _printCreator               = printCreator;
     _batchService               = batchService;
     _scheduleService            = scheduleService;
     _notificationService        = notificationService;
     _externalFileTransferClient = externalFileTransferClient;
     _internalFileTransferClient = internalFileTransferClient;
     _options                    = options?.Value;
 }
 public FeeReceiptController(IFeeReceiptService FeeReceiptService, ILookupService lookupService,
     IAcademicYearService AcademicYearService, IClassService ClassService,
     ISectionService SectionService, IBatchService BatchService, IFeeHeadService FeeHeadService,
     IStudentService StudentService, IFeeStructureService FeeStructureService,
     IFeeHeadOptionalEntryService FeeHeadOptionalEntryService, ISchoolService SchoolService)
     : base()
 {
     this._FeeReceiptService = FeeReceiptService;
     this._lookupService = lookupService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._SectionService = SectionService;
     this._BatchService = BatchService;
     this._FeeHeadService = FeeHeadService;
     this._StudentService = StudentService;
     this._feeStructureService = FeeStructureService;
     this._FeeHeadOptionalEntryService = FeeHeadOptionalEntryService;
     this._SchoolService = SchoolService;
 }
Example #35
0
 public static object Add(Batch obj)
 {
     try
     {
         if (obj.Id == 0)
         {
             IBatchService.PostData(obj);
         }
         else
         {
             IBatchService.UpdateData(obj);
         }
         return(true);
     }
     catch (Exception ex)
     {
         Console.WriteLine("Add language dir action: " + ex.Message);
         return(false);
     }
 }
Example #36
0
 public Application(IBatchService service)
 {
     _service = service;
 }
 public StandardService(IOfficeUow uow, IBatchService batchService, IClock clock)
 {
     _batchService = batchService;
     _clock = clock;
     Uow = uow;
 }
Example #38
0
 public BatchController(IBatchService BatchService, ILookupService lookupService)
     : base()
 {
     this._BatchService = BatchService;
     this._lookupService = lookupService;
 }
Example #39
0
 //constructor injection
 public Batches(IBatchService batchServices)
 {
     batchServices = _batchService;
     InitializeComponent();
        dgvList.AutoGenerateColumns = false;
 }
 public ControlPanelController(IBatchService batchService)
 {
     _batchService = batchService;
 }