/// <summary> /// Provides the description of the model settings for summary (GetFullSummary) /// </summary> /// <param name="formatForParentControl">Use full verbose description</param> /// <returns></returns> public override string ModelSummary(bool formatForParentControl) { string html = ""; html += "\n<div class=\"activityentry\">Sell "; if (ResourceTypeName == null || ResourceTypeName == "") { html += "<span class=\"errorlink\">[RESOURCE NOT SET]</span>"; } else { html += "<span class=\"resourcelink\">" + ResourceTypeName + "</span>"; } if (AmountReserved > 0) { html += " with <span class=\"resourcelink\">" + AmountReserved.ToString("#,##0") + "</span> reserved in the store"; } if (AccountName == null || AccountName == "") { html += " with sales placed in <span class=\"errorlink\">[ACCOUNT NOT SET]</span>"; } else { html += " with sales placed in <span class=\"resourcelink\">" + AccountName + "</span>"; } html += "</div>"; return(html); }
public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (reservation_ != null) { hash ^= Reservation.GetHashCode(); } if (dateRange_ != null) { hash ^= DateRange.GetHashCode(); } if (reservedItem_ != null) { hash ^= ReservedItem.GetHashCode(); } if (AmountReserved != 0) { hash ^= AmountReserved.GetHashCode(); } if (totalCost_ != null) { hash ^= TotalCost.GetHashCode(); } if (IncidentalItemName.Length != 0) { hash ^= IncidentalItemName.GetHashCode(); } return(hash); }