feat: ui opt
This commit is contained in:
@@ -18,4 +18,18 @@ data class GjcCheckInRecord(
|
||||
var weight: Double = 0.0, // 运抵重量
|
||||
var volume: Double = 0.0, // 运抵体积
|
||||
var whId: Long = 0 // GJC_WAREHOUSE.ID
|
||||
)
|
||||
) {
|
||||
// 件数的字符串表示(用于双向绑定)
|
||||
var pcStr: String
|
||||
get() = if (pc == 0L) "" else pc.toString()
|
||||
set(value) {
|
||||
pc = value.toLongOrNull() ?: 0L
|
||||
}
|
||||
|
||||
// 重量的字符串表示(用于双向绑定)
|
||||
var weightStr: String
|
||||
get() = if (weight == 0.0) "" else weight.toString()
|
||||
set(value) {
|
||||
weight = value.toDoubleOrNull() ?: 0.0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,6 +119,12 @@ class PadDataLayoutNew : FrameLayout {
|
||||
loadImage(iv, value)
|
||||
}
|
||||
|
||||
var inputType: Int = android.text.InputType.TYPE_CLASS_TEXT
|
||||
set(value) {
|
||||
field = value
|
||||
et.inputType = value
|
||||
}
|
||||
|
||||
/**
|
||||
* 刷新事件回调
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user