public PunchCardController(PunchCardRepository repository, punchCardFunction fn,
                            IHttpContextAccessor httpContextAccessor, ApplySignRepository a_repository) : base(httpContextAccessor)
 {
     this.Repository  = repository;
     this.punchCardFn = fn;
     this.aRepository = a_repository;
 }
 public ApplyLeaveController(ApplySignRepository repository, PunchCardRepository repository02,
                             IHttpContextAccessor httpContextAccessor, punchCardFunction fn) : base(httpContextAccessor)
 {
     this.Repository      = repository;
     this.RepositoryPunch = repository02;
     this.punchCardFn     = fn;
 }
Exemplo n.º 3
0
 public ExportXlsxController(ExportXlsxRepository repository, PunchCardRepository repository02, IHttpContextAccessor httpContextAccessor,
                             IWebHostEnvironment hostingEnvironment) : base(httpContextAccessor)
 {
     xlsxFn = new exportPunchLogFunction(repository, repository02, httpContextAccessor);
     this._hostingEnvironment = hostingEnvironment;
     this.Repository          = repository;
 }
Exemplo n.º 4
0
 public CalWorkTime(PunchCardRepository repository, ApplyOvertimeRepository applyRepository,
                    IHttpContextAccessor httpContextAccessor)
 {
     this.Repository  = repository;
     this.aRepository = applyRepository;
     this.punchCardFn = new punchCardFunction(repository, httpContextAccessor);
     psCode           = new punchStatusCode();
 }
Exemplo n.º 5
0
 public punchCardFunction(PunchCardRepository repository, IHttpContextAccessor httpContextAccessor)
 {
     this.Repository = repository;
     if (httpContextAccessor.HttpContext != null)
     {
         this._session          = httpContextAccessor.HttpContext.Session;
         this.loginID           = _session.GetInt32("loginID");
         this.loginDepartmentID = _session.GetInt32("loginDepartmentID");
     }
     this.psCode = new punchStatusCode();
 }
Exemplo n.º 6
0
 public AdminFnController(AdminFnRepository a_repository, MasterRepository m_repository,
                          PunchCardRepository p_repository, AnnualLeaveRepository al_repository,
                          ApplyOvertimeRepository ap_repository,
                          IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.aRepository = a_repository;
     this.mRepository = m_repository;
     this.pRepository = p_repository;
     this.chkWarn     = new ChkPunchLogWarn(p_repository, httpContextAccessor);
     this.calTime     = new CalWorkTime(p_repository, ap_repository, httpContextAccessor);
     this.calAnnual   = new CalAnnualLeave(al_repository);
 }
Exemplo n.º 7
0
 public RefreshPunchLogWarnJob(PunchCardRepository repository, IHttpContextAccessor httpContextAccessor)
 {
     this.chkWarn = new ChkPunchLogWarn(repository, httpContextAccessor);
 }
Exemplo n.º 8
0
 public ChkPunchLogWarn(PunchCardRepository repository, IHttpContextAccessor httpContextAccessor)
 {
     this.Repository  = repository;
     this.punchCardFn = new punchCardFunction(repository, httpContextAccessor);
 }
 public countWorkTimeJob(PunchCardRepository repository, ApplyOvertimeRepository aRepository,
                         IHttpContextAccessor httpContextAccessor)
 {
     this.calTime = new CalWorkTime(repository, aRepository, httpContextAccessor);
 }