package com.lukouguoji.module_base.bean

import com.lukouguoji.module_base.util.DictUtils

data class GjcBoxAssembleBean(
    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 location: String? = null,
    var locId: String? = null,
    var mailpc: String? = null,
    var mailvolume: String? = null,
    var mailweight: String? = null,
    var maxvolume: String? = null,
    var maxweight: String? = null,
    var movID: String? = null,
    var netweight: String? = null,
    var opdate: String? = null,
    var opid: String? = null,
    var opname: String? = null,
    var organizationcode: String? = null,
    var pc: String? = null,
    var priority: String? = null,
    var remark: String? = null,
    var reviewDate: String? = null,
    var reviewWeight: String? = null,
    var reviewer: String? = null,
    var uld: String? = null,
    var uldflag: String? = null,
    var uldweight: String? = null,
    var volume: String? = null,
    var mcloseStatus: String? = null,
) {

    fun getCflagName(): String {
        return DictUtils.reWeightStatusList.firstOrNull { it.value == cflag.toString() }?.key ?: ""
    }

    fun getMcloseStatusName(): String {
        return DictUtils.cutStatusList.firstOrNull { it.value == mcloseStatus.toString() }?.key ?: ""
    }

}