package com.lukouguoji.module_base.bean

import androidx.databinding.ObservableBoolean
import com.lukouguoji.module_base.interfaces.ICheck

class GncStashBean : ICheck {
    var activeId: String = "" // null
    var agentCode: String = "" // LH
    var awbType: String = "" // null
    var billsNo: String = "" // null
    var businessType: String = "" // null
    var by1: String = "" // null
    var by2: String = "" // null
    var carrier: String = "" // null
    var chargeFlag: String = "" // null
    var days: String = "" // null
    var dep: String = "" // null
    var dest: String = "" // null
    var dest1: String = "" // null
    var dest2: String = "" // null
    var dgrLocation: String = "" // null
    var fclose: String = "" // null
    var fdate: String = "" // null
    var flight: String = "" // null
        get() {
            if (field.isEmpty()) {
                field = "$fdate/$fno"
            }
            return field
        }
    var fno: String = "" // CZ2022
    var gdate: String = "" // null
    var goods: String = "" // 黄金
    var locFlag: String = "" // null
    var locStatus: String = "" // 1
    var location: String = "" // 166
    var no: String = "" // 22222760
    var opDate: String = "" // 2024-06-20 10:50:12
    var opId: String = "" // ADMIN
    var packageType: String = "" // null
    var pc: String = "" // 150
    var prefix: String = "" // 784
    var range: String = "" // null
    var spCode: String = "" // CCF
    var splitFlag: String = "" // null
    var subCode: String = "" // null
    var username: String = "" // 超级用户
    var volume: String = "" // null
    var wbNo: String = "" // 78422222760
        get() {
            if (field.isEmpty()) {
                field = "$prefix$no"
            }
            return field
        }
    var weight: String = "" // 500
    var whId: String = "" // 764706

    val checked = ObservableBoolean(false)

    override fun getCheckObservable() = checked

}