package com.lukouguoji.module_base.bean

import androidx.databinding.ObservableBoolean

class GjcGoodsAddBean(
    var agentCode: String? = null,
    var boardtype: String? = null,
    var cargotype: String? = null,
    var cargoweight: String? = null,
    var carid: String? = null,
    var carrier: String? = null,
    var cflag: String? = null,
    var dest: String? = null,
    var emptyuld: String? = null,
    var fclose: String? = null,
    var fdate: String? = null,
    var fid: String? = null,
    var fno: String? = null,
    var locId: String? = null,
    var location: String? = null,
    var mailpc: String? = null,
    var mailvolume: String? = null,
    var mailweight: String? = null,
    var mawbNo: String? = null,
    var maxvolume: String? = null,
    var maxweight: String? = null,
    var movID: String? = null,
    var netweight: String? = null,
    var no: String? = null,
    var opdate: String? = null,
    var opid: String? = null,
    var opname: String? = null,
    var organizationcode: String? = null,
    var pc: String? = null,
    var prefix: String? = null,
    var priority: String? = null,
    var remark: String? = null,
    var reviewDate: String? = null,
    var reviewWeight: String? = null,
    var reviewer: String? = null,
    var size: String? = null,
    var spCode: String? = null,
    var totalWeight: String? = null,
    var uld: String? = null,
    var uldflag: String? = null,
    var uldweight: String? = null,
    var volume: String? = null,
    var warehouseList: List<Warehouse>? = null
) {

    val show = ObservableBoolean(false)
}

data class Warehouse(
    var agent: String? = null,
    var businesstype: String? = null,
    var by1: String? = null,
    var by2: String? = null,
    var code: String? = null,
    var createdAt: String? = null,
    var createdBy: String? = null,
    var deleted: String? = null,
    var dep: String? = null,
    var desc: String? = null,
    var dest: String? = null,
    var dest1: String? = null,
    var dest2: String? = null,
    var exno: String? = null,
    var extraJson: String? = null,
    var fclose: String? = null,
    var fdate: String? = null,
    var fid: String? = null,
    var fno: String? = null,
    var goods: String? = null,
    var id: String? = null,
    var locId: String? = null,
    var location: String? = null,
    var locflag: String? = null,
    var name: String? = null,
    var no: String? = null,
    var opdate: String? = null,
    var opid: String? = null,
    var opname: String? = null,
    var organizationCode: String? = null,
    var pc: String? = null,
    var prefix: String? = null,
    var spcode: String? = null,
    var subcode: String? = null,
    var updatedAt: String? = null,
    var updatedBy: String? = null,
    var version: String? = null,
    var volume: Double? = null,
    var vouchernumber: String? = null,
    var weight: String? = null,
    var whid: String? = null
){
    fun getWaybillCode() = "$prefix$no"
}
