Пример #1
0
 public virtual string RowClass(ActiveRecord record)
 {
     if (record == null)
     {
         return("row-" + Html.OddEven);
     }
     return("row-" + Html.OddEven + (record.GetIsActive() ? "" : " inactive"));
 }
Пример #2
0
 public static void AddPhrase(ActiveRecord record, string phrase = null, bool splitPhrase = false, string delimiter = ",")
 {
     if (phrase == null)
     {
         phrase = record.GetName();
     }
     if (record.GetIsActive())
     {
         AddPhrase(record.GetTableName(), record.ID_Field.ToInt(), phrase, splitPhrase, delimiter);
     }
     else
     {
         DeletePhrase(record);
     }
 }