public string GetTagNo() { var tagNo = $"{TagType.GetTagNoPrefix()}-{DisciplineCode}"; if ((TagType == TagType.PreArea || TagType == TagType.SiteArea) && !string.IsNullOrEmpty(AreaCode)) { tagNo += $"-{AreaCode}"; } else if (TagType == TagType.PoArea && !string.IsNullOrEmpty(PurchaseOrderCalloffCode)) { tagNo += $"-{PurchaseOrderCalloffCode}"; } if (!string.IsNullOrEmpty(TagNoSuffix)) { tagNo += $"-{TagNoSuffix}"; } return(tagNo.ToUpperInvariant()); }