public string DecoratedError(string message) { string articleEnum = ArticleCodeAdapter.GetSymbol(InternalConfig.Code()); string articleCode = InternalConfig.Code().ToString(); string decoratedMessage = string.Format(RESULT_DESCRIPTION_ERROR_FORMAT, articleEnum, articleCode, message); return(decoratedMessage); }
public override string ToString() { string articleCode = ArticleCodeAdapter.GetSymbol(InternalConfig.Code()); string articleDesc = string.Join("\t", ResultValues.Select((v) => (v.Description()))); if (ResultValues.Count() == 0) { articleDesc = ">>------------------------------------------------------<<"; } return(string.Format("{0}\t\t{1}", articleCode, articleDesc)); }
public string ToResultExport(string targetSymbol) { string eresultFormat = "{0}\tNONE\tHours\tEMPTY\tDays\tEMPTY\tIncome Amount\tEMPTY\tBasis Amount\tEMPTY\tPayment\tEMPTY"; string articleSymbol = ArticleCodeAdapter.GetSymbol(InternalConfig.Code()); string articleFormat = string.Join("\t", targetSymbol, articleSymbol); string resultsFormat = string.Join("\n", ResultValues.Select((v) => (v.ToResultExport(articleFormat)))); if (ResultValues.Count() == 0) { resultsFormat = string.Format(eresultFormat, articleFormat); } return(resultsFormat); }
public ConfigCode Code() { return(InternalConfig.Code()); }