コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScanReportManager"/> class.
 /// </summary>
 /// <param name="clientUser">The client user.</param>
 public ScanReportManager(ClientUser clientUser)
 {
     this.currentUser    = clientUser;
     this.repository     = new ScanReportRepository(clientUser);
     this.config         = new SysConfig();
     this.keywordManager = new CompanyKeywordManager(this.config, this.currentUser);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataGeneratorBase"/> class.
 /// </summary>
 /// <param name="config">The configuration.</param>
 /// <param name="clientUser">The client user.</param>
 public DataGeneratorBase(SysConfig config, ClientUser clientUser)
     : base(config, clientUser)
 {
     this.dateRange      = -config.DateRange;
     this.keywordManager = new CompanyKeywordManager(this.config, clientUser);
     this.caDataManager  = new CADataManager(this.config, clientUser);
 }
コード例 #3
0
        /// <summary>
        /// Gets the filter keys dic.
        /// </summary>
        /// <param name="profiles">The profiles.</param>
        /// <returns>Dictionary&lt;System.String, List&lt;System.String&gt;&gt;.</returns>
        private Dictionary <string, List <string> > GetFilterKeysDic(IList <ClientUserProfile> profiles)
        {
            var filterKeysDic = new Dictionary <string, List <string> >();

            foreach (var p in profiles)
            {
                var keywordManager = new CompanyKeywordManager(null, new ClientUser(p));
                filterKeysDic.Add(p.UserName, keywordManager.GetCompanyKeywords());
            }

            return(filterKeysDic);
        }