src/main/scala/fis/crm/model/Company.scala
changeset 91 494b3b9db463
parent 84 43674362ff5e
equal deleted inserted replaced
90:39d3fc08414c 91:494b3b9db463
    14  * limitations under the License.
    14  * limitations under the License.
    15  */
    15  */
    16 package fis.crm.model
    16 package fis.crm.model
    17 
    17 
    18 import fis.base.model.Entity
    18 import fis.base.model.Entity
       
    19 import fis.cl.model.CodeListItemField
    19 import fis.geo.model._
    20 import fis.geo.model._
    20 import net.liftweb.common._
    21 import net.liftweb.common._
    21 import net.liftweb.record.{MetaRecord, Record}
    22 import net.liftweb.record.{MetaRecord, Record}
    22 import net.liftweb.record.field._
    23 import net.liftweb.record.field._
    23 import net.liftweb.util._
    24 import net.liftweb.util._
    29   def meta = Company
    30   def meta = Company
    30 
    31 
    31   val ico = new StringField(this, 40) with FL
    32   val ico = new StringField(this, 40) with FL
    32   val dic = new StringField(this, 40) with FL
    33   val dic = new StringField(this, 40) with FL
    33   val pin = new IntField(this) with FL
    34   val pin = new IntField(this) with FL
       
    35   val status = new CodeListItemField(this, 'company_status) with FL
    34   @Column(name="address_id")
    36   @Column(name="address_id")
    35   val address = new LongField(this) with AddressField with FL
    37   val address = new LongField(this) with AddressField with FL
    36   @Column(name="post_adress_id")
    38   @Column(name="post_adress_id")
    37   val postAddress = new OptionalLongField(this) with AddressField with FL
    39   val postAddress = new OptionalLongField(this) with AddressField with FL
    38 }
    40 }