Blame view

App/listCtruong/CellCtruong.swift 703 Bytes
d774f0637   Trịnh Văn Quân   fisrt comit
1
2
  import Foundation
  import UIKit
1341bf603   Trịnh Văn Quân   version 1.1
3
  import GeneralUtils
d774f0637   Trịnh Văn Quân   fisrt comit
4
5
  
  class CellCtruong: BaseTableViewCellUI {
1341bf603   Trịnh Văn Quân   version 1.1
6
7
8
9
10
      @IBOutlet weak var tvTitle: UILabelCustom!
      @IBOutlet weak var tvCatured: UILabel!
      @IBOutlet weak var tvRemaining: UILabel!
  
      var ctruong: CongTruong!
d774f0637   Trịnh Văn Quân   fisrt comit
11

defd9642e   Trịnh Văn Quân   version 1.2
12
13
14
15
      override func awakeFromNib() {
          super.awakeFromNib()
          self.selectionStyle = .none
      }
d774f0637   Trịnh Văn Quân   fisrt comit
16
17
      override func configCellWithData(baseObj: Any, index: Int) {
          super.configCellWithData(baseObj: baseObj, index: index)
1341bf603   Trịnh Văn Quân   version 1.1
18
          ctruong = baseObj as! CongTruong
defd9642e   Trịnh Văn Quân   version 1.2
19
20
21
          tvTitle.text = ctruong.companyName
          tvCatured.text = String(ctruong.noCaptured ?? 0)
          tvRemaining.text = String(ctruong.noRemain ?? 0)
d774f0637   Trịnh Văn Quân   fisrt comit
22
23
      }
  }