Exemple #1
0
 public UserService(
     IUnitOfWork unitOfWork,
     IStorageProvider storageProvider,
     IMessageService messageService,
     IDataProtectorUserTokenService dataProtectorUserTokenService,
     IBysSession bysSession)
 {
     _unitOfWork      = unitOfWork;
     _storageProvider = storageProvider;
     _messageService  = messageService;
     _dataProtectorUserTokenService = dataProtectorUserTokenService;
     _bysSession = bysSession;
 }
Exemple #2
0
 public LoginService(
     IUnitOfWork unitOfWork,
     ISendEmailService sendEmailService,
     IDataProtectorUserTokenService dataProtectorUserTokenService,
     IBysSession bysSession,
     IMessageService messageService)
 {
     _unitOfWork       = unitOfWork;
     _sendEmailService = sendEmailService;
     _dataProtectorUserTokenService = dataProtectorUserTokenService;
     _bysSession     = bysSession;
     _messageService = messageService;
 }
Exemple #3
0
        public AuditingHelper(
            IAuditInfoProvider auditInfoProvider,
            IAuditingStore auditingStore,
            IAuditingConfiguration configuration,
            IBysSession bysSession,
            IAuditSerializer auditSerializer)
        {
            _auditInfoProvider = auditInfoProvider;
            _configuration     = configuration;
            _auditSerializer   = auditSerializer;

            BysSession    = bysSession;
            Logger        = NullLogger.Instance;
            AuditingStore = auditingStore;
        }
Exemple #4
0
 public EntityHistoryHelper(IBysSession session)
 {
     BysSession = session;
 }
Exemple #5
0
 public ForestPlotService(IUnitOfWork unitOfWork, IBysSession bysSession, INotificationService notificationService)
 {
     _unitOfWork          = unitOfWork;
     _bysSession          = bysSession;
     _notificationService = notificationService;
 }
 public AuditHelper(IBysSession bysSession)
 {
     _bysSession = bysSession;
 }
 public static ICForestPlotHistory ToForestPlotHistory(this ICForestPlot entity, IBysSession session)
 {
     return(entity == null
         ? null
         : new ICForestPlotHistory
     {
         GEProvinceCode = entity.GEProvinceCode,
         GEDistrictCode = entity.GEDistrictCode,
         GECommuneCode = entity.GECommuneCode,
         GECompartmentCode = entity.GECompartmentCode,
         GESubCompartmentCode = entity.GESubCompartmentCode,
         GEPlotCode = entity.GEPlotCode,
         GEParcelCode = entity.GEParcelCode,
         ICForestPlotHistoryVillage = entity.ICForestPlotVillage,
         ICForestPlotHistoryArea = entity.ICForestPlotArea,
         ICForestTypeCode = entity.ICForestTypeCode,
         ICForestOrgCode = entity.ICForestOrgCode,
         ICTreeSpecCode = entity.ICTreeSpecCode,
         ICForestPlotHistoryLocationLongitude = entity.ICForestPlotLocationLongitude,
         ICForestPlotHistoryLocationLatitude = entity.ICForestPlotLocationLatitude,
         ICForestPlotHistoryPlantingYear = entity.ICForestPlotPlantingYear,
         ICForestPlotHistoryAvgYearCanopy = entity.ICForestPlotAvgYearCanopy,
         ICForestPlotHistoryVolumnPerHa = entity.ICForestPlotVolumnPerHa,
         ICForestPlotHistoryVolumnPerPlot = entity.ICForestPlotVolumnPerPlot,
         APActorCode = entity.APActorCode,
         FK_APActorID = entity.FK_APActorID,
         ICLandUseCertCode = entity.ICLandUseCertCode,
         ICConflictSitCode = entity.ICConflictSitCode,
         ICForestPlotHistoryLandUseTerune = entity.ICForestPlotLandUseTerune,
         FK_GECommuneID = entity.FK_GECommuneID,
         FK_GECompartmentID = entity.FK_GECompartmentID,
         FK_GEDistrictID = entity.FK_GEDistrictID,
         FK_GEStateProvinceID = entity.FK_GEStateProvinceID,
         FK_GESubCompartmentID = entity.FK_GESubCompartmentID,
         FK_ICForestOrgID = entity.FK_ICForestOrgID,
         FK_ICTreeSpecID = entity.FK_ICTreeSpecID,
         FK_ICLandUseCertID = entity.FK_ICLandUseCertID,
         FK_ICForestCertID = entity.FK_ICForestCertID,
         ICForestPlotHistoryReliability = entity.ICForestPlotReliability,
         FK_GEForestProtectionDepartmentID = entity.FK_GEForestProtectionDepartmentID,
         FK_GEPeoplesCommitteeID = entity.FK_GEPeoplesCommitteeID,
         ICForestPlotHistoryLatestReviewDate = entity.ICForestPlotLatestReviewDate,
         ICForestPlotHistoryFormisUUID = entity.ICForestPlotFormisUUID,
         ICForestPlotHistoryPlantingDate = entity.ICForestPlotPlantingDate,
         ICForestPlotHistoryCreatedDate = Clock.Now,
         FK_ADuserID = session.UserId,
         FK_ICForestPlotID = entity.Id,
     });
 }
Exemple #8
0
 public ContactReviewService(IUnitOfWork unitOfWork, IBysSession bysSession, INotificationService notificationService)
 {
     _unitOfWork          = unitOfWork;
     _bysSession          = bysSession;
     _notificationService = notificationService;
 }
Exemple #9
0
 public PermissionChecker(IBysSession sessionService)
 {
     _sessionService = sessionService;
 }
 public static ARContactReview ToARContactReviewEntity(this ReviewContactDto dto, IBysSession session)
 {
     return(new ARContactReview
     {
         FK_ARContactID = dto.ContactId,
         FK_ReviewUserID = session.UserId,
         ARContactReviewContent = dto.Content,
         ARContactReviewTitle = dto.Title,
         ARContactReviewDate = Clock.Now,
         ARContactReviewRating = dto.Rating,
         ARContactReviewIsHide = false
     });
 }
Exemple #11
0
 public UserController(IUserService userService, IBysSession sesionService)
 {
     _userService   = userService;
     _sesionService = sesionService;
 }
Exemple #12
0
 public static APActorReview ToAPActorReviewEntity(this ReviewForestPlotActorDto dto, IBysSession session)
 {
     return(new APActorReview
     {
         FK_APActorID = dto.ActorId,
         FK_ReviewUserID = session.UserId,
         FK_ICForestPlotID = dto.ForestPlotId,
         APActorReviewRating = dto.Rating,
         APActorReviewTitle = dto.Title,
         APActorReviewContent = dto.Content,
         APActorReviewDate = Clock.Now,
         APActorReviewIsHide = false
     });
 }