package com.lukouguoji.module_base.bean

import androidx.databinding.ObservableBoolean
import java.io.Serializable

/**
 * 国际进港舱单-分单Bean
 */
data class GjjHaWb(
    var hawbId: Long = 0,
    var hno: String = "",
    var no: String = "",
    var prefix: String = "",
    var pc: Long = 0,
    var weight: Double = 0.0,
    var volume: Double = 0.0,
    var cashWeight: Double = 0.0,
    var goods: String = "",
    var goodsCn: String = "",
    var spCode: String = "",
    var mftStatus: String = "",
    var lastMftStatus: String = "",
    var mftMsgId: String = "",
    var lastMftMsgId: String = "",
    var declareCount: Int = 0,
    var checkInType: String = "",
    var activeId: Long = 0,
    var opId: String = "",
    var opDate: String = "",
    var billsNo: String = "",
    var remark: String = "",
    var response: String = "",
    var tallyStatus: String = ""
) : Serializable {
    @Transient
    val checked: ObservableBoolean = ObservableBoolean(false)

    var isSelected: Boolean
        get() = checked.get()
        set(value) = checked.set(value)
}
