示例#1
0
 protected virtual void ToString(StringBuilder sb)
 {
     sb.AppendFormat(
         "{0}: job title: '{1}', job title expression: '{2}', location: '{3}', salary: {4}, exclude no salary: {5}, community id: '{6}', sort order: {7}, reverse sort order: {8}, include synonyms: {9}, has resume: {10}, is activated: {11}, is contactable {12}, keywords expression: '{13}', industry ids: {14}, recency: {15}, keywords: '{16}', company keywords expression: '{17}', company keywords: '{18}', education keywords expression: {19}, education keywords: {20}, jobs to search: {21}, companies to search: {22}, include relocating: {23}, include international: {24}, ideal job types: '{25}', candidate flags: '{26}', ethnic flags: '{27}', visa status flags: '{28}', desired job title: {29}, in folder: {30}, is flagged: {31}, has notes: {32}, has viewed: {33}, is unlocked: {34}, include similiar names: {35}, name: {36}.",
         GetType().Name,
         JobTitle,
         JobTitleExpression == null ? null : JobTitleExpression.GetRawExpression(),
         Location,
         Salary,
         ExcludeNoSalary,
         CommunityId == null ? string.Empty : CommunityId.ToString(),
         SortCriteria.SortOrder,
         SortCriteria.ReverseSortOrder,
         IncludeSynonyms,
         HasResume,
         IsActivated,
         IsContactable,
         KeywordsExpression == null ? null : KeywordsExpression.GetRawExpression(),
         IndustryIds == null ? null : string.Join(", ", (from i in IndustryIds select i.ToString()).ToArray()),
         Recency,
         GetKeywords(),
         CompanyKeywordsExpression == null ? null : CompanyKeywordsExpression.GetRawExpression(),
         CompanyKeywords,
         EducationKeywordsExpression == null ? null : EducationKeywordsExpression.GetUserExpression(),
         EducationKeywords,
         JobTitlesToSearch,
         CompaniesToSearch,
         IncludeRelocating,
         IncludeInternational,
         JobTypes,
         CandidateStatusFlags,
         EthnicStatus,
         VisaStatusFlags,
         DesiredJobTitleExpression == null ? null : DesiredJobTitleExpression.GetUserExpression(),
         InFolder,
         IsFlagged,
         HasNotes,
         HasViewed,
         IsUnlocked,
         IncludeSimilarNames,
         Name);
 }
示例#2
0
 protected void ToString(StringBuilder sb)
 {
     sb.AppendFormat(
         "{0}: ad title: '{1}', location: '{2}', community id: {3}, community only: {4}, include synonyms: {5}, recency: {6}, sort order: {7}, reverse sort order: {8}, keywords: '{9}', advertiser: '{10}', salary range: {11}, job types: {12}, distance: {13}, industry ids: {14}, is flagged: {15}, has viewed: {16}, has notes: {17}, has applied: {18}",
         GetType().Name,
         AdTitle,
         Location == null ? null : (Location.IsCountry ? Location.Country.Name : Location.ToString()),
         CommunityId.HasValue ? CommunityId.ToString() : String.Empty,
         CommunityOnly.HasValue ? CommunityOnly.Value.ToString() : String.Empty,
         IncludeSynonyms,
         Recency,
         SortCriteria.SortOrder,
         SortCriteria.ReverseSortOrder,
         GetKeywords(),
         AdvertiserNameExpression == null ? "" : AdvertiserNameExpression.GetUserExpression(),
         Salary == null ? "(none)" : Salary.ToString(),
         JobTypes,
         Distance,
         IndustryIds == null ? null : string.Join(", ", (from i in IndustryIds select i.ToString()).ToArray()),
         IsFlagged,
         HasViewed,
         HasNotes,
         HasApplied);
 }