示例#1
0
        public FlatScheduleBatchRunner(ISessionStorage store, ITimeAttendanceService attendance, ISystemService system, IEmployeeService employee) : base(system, attendance)
        {
            this.SessionStore = store;
            SessionHelper h = new SessionHelper(store, new APIKeyBasedTokenGenerator());

            ids = new Dictionary <string, string>();
            this._employeeService = employee;
            BatchStatus           = new BatchOperationStatus()
            {
                classId = ClassId.TAFS, processed = 0, tableSize = 0, status = 0
            };
            errors = new List <FlatSchedule>();
        }
示例#2
0
        public EmployeeBatchRunner(ISessionStorage store, IEmployeeService employee, ISystemService system, ITimeAttendanceService timeAttendance) : base(system, employee)
        {
            this.timeAttendance = timeAttendance;
            this.SessionStore   = store;
            SessionHelper h = new SessionHelper(store, new APIKeyBasedTokenGenerator());


            BatchStatus = new BatchOperationStatus()
            {
                classId = ClassId.EPEM, processed = 0, tableSize = 0, status = 0
            };
            errors        = new List <Employee>();
            caId          = new Dictionary <string, int>();
            nationalityId = new Dictionary <string, int>();
            //FillCaId();
            FillNationalityId();
        }
示例#3
0
        public PunchesBatchRunner(ISessionStorage store, IEmployeeService employee, ISystemService system, ITimeAttendanceService timeAttendance, string UnknownError) : base(system, employee)
        {
            this.timeAttendance = timeAttendance;
            this.UnknownError   = UnknownError;
            this.employee       = employee;
            this.SessionStore   = store;
            SessionHelper h = new SessionHelper(store, new APIKeyBasedTokenGenerator());


            BatchStatus = new BatchOperationStatus()
            {
                classId = ClassId.TAIM, processed = 0, tableSize = 0, status = 0
            };
            errors = new List <Check>();
            udId   = new Dictionary <string, int>();

            //this.InactivePref = InactivePref;
            //this.NameFormat = NameFormat;
            FillUdId();

            //FillCaId();
        }