package com.lukouguoji.module_base.bean

import androidx.databinding.ObservableBoolean
import com.lukouguoji.module_base.ktx.noNull
import kotlinx.coroutines.flow.MutableStateFlow

class GjjHandoverRecordBean(
    // 代理人代码
    var agent: String? = "",
    // 代理人
    var agentName: String? = "",
    // 提运单类型
    var awbType: String? = "",
    //
    var awbpc: String? = "",
    // 业务类型
    var businessType: String? = "",
    var cargoType: String? = "",
    var cashWeight: String? = "",
    var cneeCode: String? = "",
    var cneeId: String? = "",
    var cneeTel: String? = "",
    var code: String? = "",
    var consignee: String? = "",
    var createdAt: String? = "",
    var createdBy: String? = "",
    var dep: String? = "",
    var desc: String? = "",
    var dest: String? = "",
    var edep: String? = "",
    var edest1: String? = "",
    var edest2: String? = "",
    var efDate: String? = "",
    var efNo: String? = "",
    var exno: String? = "",
    var extra: String? = "",
    var fdate: String? = "",
    var fdep: String? = "",
    var fdest: String? = "",
    var fid: String? = "",
    var fno: String? = "",
    var goods: String? = "",
    var goodsCn: String? = "",
    var hno: String? = "",
    var id: String? = "",
    var isEdiAwb: String? = "",
    var istally: String? = "",
    var locFlag: String? = "",
    var locFlagMft: String? = "",
    var location: String? = "",
    var locationMft: String? = "",
    var mfId: String? = "",
    var mobiletally: String? = "",
    var name: String? = "",
    var no: String? = "",
    var opDate: String? = "",
    var opId: String? = "",
    var opname: String? = "",
    var organizationCode: String? = "",
    var origin: String? = "",
    var packageType: String? = "",
    var packagecode: String? = "",
    var pc: String? = "",
    var planpc: String? = "",
    var planvolume: String? = "",
    var planweight: String? = "",
    var prefix: String? = "",
    var ref: String? = "",
    var remark: String? = "",
    var spCode: String? = "",
    var splitFlag: String? = "",
    var subCode: String? = "",
    var tallydate: String? = "",
    var tallyid: String? = "",
    var tallyname: String? = "",
    var updatedAt: String? = "",
    var updatedBy: String? = "",
    var volume: Double? = 0.0,
    var wbNo: String? = "",
    var weight: String? = "",
    var whslocation: String? = "",
    var pcID: String? = "",
) {

    val checked = ObservableBoolean(false)

    // 运单号
    fun getWaybillCode() = prefix.noNull() + no.noNull()

}