src/main/scala/fis/crm/ui/CompanyTable.scala
author Tomas Zeman <tzeman@volny.cz>
Tue, 23 Apr 2013 10:36:04 +0200
changeset 108 ef4e3e0ef83f
parent 91 494b3b9db463
permissions -rw-r--r--
84a94fa29a67504b Task/Project notifications
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
69
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     1
/*
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     2
 * Copyright 2012 Tomas Zeman <tzeman@volny.cz>
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     3
 *
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     4
 * Licensed under the Apache License, Version 2.0 (the "License");
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     5
 * you may not use this file except in compliance with the License.
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     6
 * You may obtain a copy of the License at
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     7
 *
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     8
 *     http://www.apache.org/licenses/LICENSE-2.0
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
     9
 *
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    10
 * Unless required by applicable law or agreed to in writing, software
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    11
 * distributed under the License is distributed on an "AS IS" BASIS,
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    13
 * See the License for the specific language governing permissions and
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    14
 * limitations under the License.
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    15
 */
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    16
package fis.crm.ui
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    17
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    18
import fis.crm.model._
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    19
import fis.base.ui._
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    20
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    21
object CompanyTable extends FieldTable[Company] {
91
494b3b9db463 Company status
Tomas Zeman <tzeman@volny.cz>
parents: 69
diff changeset
    22
  def fields(c: Company) = EntityLink(c) ++ Seq(c.ico, c.dic, c.status, c.note)
69
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    23
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    24
  def apply(l: Iterable[Company]) = build(Company, l) 
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    25
}
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    26
b1dc0efd1303 Company UI
Tomas Zeman <tzeman@volny.cz>
parents:
diff changeset
    27
// vim: set ts=2 sw=2 et: