1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //
- // OOAttendanceScheduleViewCell.swift
- // O2Platform
- //
- // Created by FancyLou on 2020/7/21.
- // Copyright © 2020 zoneland. All rights reserved.
- //
- import UIKit
- class OOAttendanceScheduleViewCell: UICollectionViewCell {
- @IBOutlet weak var checkInTypeLabel: UILabel!
- @IBOutlet weak var updateCheckInBtn: UIButton!
- @IBOutlet weak var checkInStatusLabel: UILabel!
- @IBOutlet weak var checkInTimeLabel: UILabel!
-
-
-
- override func awakeFromNib() {
- super.awakeFromNib()
- // Initialization code
- }
-
-
- func setData(info: OOAttandanceMobileScheduleInfo, isLastRecord: Bool) {
- self.checkInTypeLabel.text = info.checkinType
- self.checkInTimeLabel.text = info.signTime
- self.checkInStatusLabel.text = info.checkinStatus
- self.updateCheckInBtn.isHidden = true
- if info.checkinStatus == "已打卡" {
- if let time = info.checkinTime {
- self.checkInStatusLabel.text = time.subString(from: 0, to: 5) + (info.checkinStatus ?? "")
- }
- if isLastRecord {
- self.updateCheckInBtn.isHidden = false
- }
- }
-
- }
- }
|