Blame view

App/listCtruong/CellCtruong.swift 588 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
12
13
  
      override func configCellWithData(baseObj: Any, index: Int) {
          super.configCellWithData(baseObj: baseObj, index: index)
1341bf603   Trịnh Văn Quân   version 1.1
14
15
16
17
18
          ctruong = baseObj as! CongTruong
  
          tvTitle.text = ctruong.tenCtuong
          tvCatured.text = String(ctruong.daChup ?? 0)
          tvRemaining.text = String(ctruong.conLai ?? 0)
d774f0637   Trịnh Văn Quân   fisrt comit
19
20
      }
  }