src/main/scala/fis/crm/model/Contact.scala
changeset 52 f40c67ede33d
parent 37 ee98077f6d1a
equal deleted inserted replaced
51:523c5c5b84e5 52:f40c67ede33d
    18 import fis.base.model.{Entity, MetaEntity}
    18 import fis.base.model.{Entity, MetaEntity}
    19 import net.liftweb.common._
    19 import net.liftweb.common._
    20 import net.liftweb.record.{MetaRecord, Record}
    20 import net.liftweb.record.{MetaRecord, Record}
    21 import net.liftweb.record.field._
    21 import net.liftweb.record.field._
    22 import net.liftweb.squerylrecord.RecordTypeMode._
    22 import net.liftweb.squerylrecord.RecordTypeMode._
    23 import net.tz.lift.model.{FieldLabel => FL}
    23 import net.tz.lift.model.{FieldLabel => FL, FieldHelp => FH}
    24 import net.tz.lift.model.{OptionalFieldDisplay => OptDisp}
    24 import net.tz.lift.model.{OptionalFieldDisplay => OptDisp}
    25 import net.tz.lift.model.{OptionalEmailField => OptEmail}
    25 import net.tz.lift.model.{OptionalEmailField => OptEmail}
    26 import scala.xml.Text
    26 import scala.xml.Text
    27 
    27 
    28 class Contact private() extends Record[Contact] with Entity[Contact] {
    28 class Contact private() extends Record[Contact] with Entity[Contact] {
    30   def meta = Contact
    30   def meta = Contact
    31 
    31 
    32   val firstName = new StringField(this, 80, "") with FL
    32   val firstName = new StringField(this, 80, "") with FL
    33   val lastName = new StringField(this, 80, "") with FL
    33   val lastName = new StringField(this, 80, "") with FL
    34   val position = new OptionalStringField(this, 40) with OptDisp with FL
    34   val position = new OptionalStringField(this, 40) with OptDisp with FL
    35   val workMail = new EmailField(this, 256) with FL
    35   val workMail = new EmailField(this, 256) with FL with FH
    36   val privateMail = new OptEmail(this, 256) with OptDisp with FL
    36   val privateMail = new OptEmail(this, 256) with OptDisp with FL
    37   val otherMail = new OptEmail(this, 256) with OptDisp with FL
    37   val otherMail = new OptEmail(this, 256) with OptDisp with FL
    38   val workMobile = new StringField(this, 40) with FL
    38   val workMobile = new StringField(this, 40) with FL
    39   val privateMobile = new OptionalStringField(this, 40) with OptDisp with FL
    39   val privateMobile = new OptionalStringField(this, 40) with OptDisp with FL
    40   val otherMobile = new OptionalStringField(this, 40) with OptDisp with FL
    40   val otherMobile = new OptionalStringField(this, 40) with OptDisp with FL