Blame view
App/listCtruong/CellCtruong.swift
703 Bytes
d774f0637
|
1 2 |
import Foundation import UIKit |
1341bf603
|
3 |
import GeneralUtils |
d774f0637
|
4 5 |
class CellCtruong: BaseTableViewCellUI { |
1341bf603
|
6 7 8 9 10 |
@IBOutlet weak var tvTitle: UILabelCustom! @IBOutlet weak var tvCatured: UILabel! @IBOutlet weak var tvRemaining: UILabel! var ctruong: CongTruong! |
d774f0637
|
11 |
|
defd9642e
|
12 13 14 15 |
override func awakeFromNib() { super.awakeFromNib() self.selectionStyle = .none } |
d774f0637
|
16 17 |
override func configCellWithData(baseObj: Any, index: Int) { super.configCellWithData(baseObj: baseObj, index: index) |
1341bf603
|
18 |
ctruong = baseObj as! CongTruong |
defd9642e
|
19 20 21 |
tvTitle.text = ctruong.companyName tvCatured.text = String(ctruong.noCaptured ?? 0) tvRemaining.text = String(ctruong.noRemain ?? 0) |
d774f0637
|
22 23 |
} } |