package com.ffii.fpsms.modules.deliveryOrder.web.models
import java.time.LocalDate  
import java.time.LocalTime
import java.time.LocalDateTime
data class ReleaseDoRequest(
    val id: Long,
    val userId: Long
)
data class ReleaseDoResult(
    val deliveryOrderId: Long,
    val deliveryOrderCode: String?,
    val pickOrderId: Long,
    val pickOrderCode: String?,
    val shopId: Long?,
    val shopCode: String?,
    val shopName: String?,
    val usedDefaultTruck: Boolean?,
    val estimatedArrivalDate: LocalDate?,
    val preferredFloor: String,
    val truckId: Long?,

    val truckDepartureTime: LocalTime?,
    val truckLanceCode: String?,
    val loadingSequence: Int?,
    val isExtra: Boolean = false,
)
data class SearchDeliveryOrderInfoRequest(
    val code: String?,
    val shopName: String?,
    val status: String?,
    val estimatedArrivalDate: LocalDateTime?,  
    val pageSize: Int?,
    val pageNum: Int?,
    val truckLanceCode: String?,
    /** `ALL`／`All`／null：P06B+P07+P06D+P06Y；`2F`：P07+P06D+P06Y ；`4F`：P06B。車線-X 亦依供應商歸屬出現在對應樓層。 */
    val floor: String? = null,
    /** null：不篩 isExtra；true／false：只顯示加單或非加單 DO */
    val isExtra: Boolean? = null,
)
