Пример #1
0
 public UserService(
     IUnitOfWork unitOfWork,
     IStorageProvider storageProvider,
     IMessageService messageService,
     IDataProtectorUserTokenService dataProtectorUserTokenService,
     IBysSession bysSession)
 {
     _unitOfWork      = unitOfWork;
     _storageProvider = storageProvider;
     _messageService  = messageService;
     _dataProtectorUserTokenService = dataProtectorUserTokenService;
     _bysSession = bysSession;
 }
Пример #2
0
 public LoginService(
     IUnitOfWork unitOfWork,
     ISendEmailService sendEmailService,
     IDataProtectorUserTokenService dataProtectorUserTokenService,
     IBysSession bysSession,
     IMessageService messageService)
 {
     _unitOfWork       = unitOfWork;
     _sendEmailService = sendEmailService;
     _dataProtectorUserTokenService = dataProtectorUserTokenService;
     _bysSession     = bysSession;
     _messageService = messageService;
 }
Пример #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;
        }
Пример #4
0
 public EntityHistoryHelper(IBysSession session)
 {
     BysSession = session;
 }
Пример #5
0
 public ForestPlotService(IUnitOfWork unitOfWork, IBysSession bysSession, INotificationService notificationService)
 {
     _unitOfWork          = unitOfWork;
     _bysSession          = bysSession;
     _notificationService = notificationService;
 }
Пример #6
0
 public AuditHelper(IBysSession bysSession)
 {
     _bysSession = bysSession;
 }
Пример #7
0
 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,
     });
 }
Пример #8
0
 public ContactReviewService(IUnitOfWork unitOfWork, IBysSession bysSession, INotificationService notificationService)
 {
     _unitOfWork          = unitOfWork;
     _bysSession          = bysSession;
     _notificationService = notificationService;
 }
Пример #9
0
 public PermissionChecker(IBysSession sessionService)
 {
     _sessionService = sessionService;
 }
Пример #10
0
 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
     });
 }
Пример #11
0
 public UserController(IUserService userService, IBysSession sesionService)
 {
     _userService   = userService;
     _sesionService = sesionService;
 }
Пример #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
     });
 }