/**
 * BladeX Commercial License Agreement
 * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
 * <p>
 * Use of this software is governed by the Commercial License Agreement
 * obtained after purchasing a license from BladeX.
 * <p>
 * 1. This software is for development use only under a valid license
 * from BladeX.
 * <p>
 * 2. Redistribution of this software's source code to any third party
 * without a commercial license is strictly prohibited.
 * <p>
 * 3. Licensees may copyright their own code but cannot use segments
 * from this software for such purposes. Copyright of this software
 * remains with BladeX.
 * <p>
 * Using this software signifies agreement to this License, and the software
 * must not be used for illegal purposes.
 * <p>
 * Author: Chill Zhuang (bladejava@qq.com)
 */
package org.springblade.transport.excel;

import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.ExcelIgnore;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import cn.idev.excel.annotation.write.style.ContentRowHeight;
import cn.idev.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalDate;

/**
 * 运单管理 Excel
 *
 * @author Chill
 */
@Data
@ColumnWidth(22)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class WaybillExcel implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	@ExcelProperty("运单号")
	private String waybillNo;
	@ExcelProperty("项目")
	private String projectName;
	@ExcelProperty("客户合同")
	private String contractName;
	@ExcelProperty("客户名称")
	private String customerName;
	@ExcelProperty("运输类型")
	private String transportType;
	@ExcelProperty("货物名称")
	private String cargoName;
	@ExcelProperty("货物类型")
	private String cargoType;
	@ExcelProperty("规格")
	private String specification;
	@ExcelProperty("型号")
	private String model;
	@ExcelProperty("数量")
	private BigDecimal quantity;
	@ExcelProperty("数量单位")
	private String quantityUnit;
	@ExcelProperty("发货地")
	private String departureName;
	@ExcelProperty("发货地址")
	private String departureAddress;
	@ExcelProperty("发货联系人")
	private String departureContact;
	@ExcelProperty("发货联系方式")
	private String departurePhone;
	@ExcelProperty("收货地")
	private String arrivalName;
	@ExcelProperty("收货地址")
	private String arrivalAddress;
	@ExcelProperty("收货联系人")
	private String arrivalContact;
	@ExcelProperty("收货联系方式")
	private String arrivalPhone;
	@ExcelProperty("任务录入模式")
	private String taskEntryMode;
	@ExcelProperty("承运类型")
	private String carrierType;
	@ExcelProperty("承运商名称")
	private String carrierName;
	@ExcelProperty("司机姓名")
	private String driverName;
	@ExcelProperty("司机手机号")
	private String driverPhone;
	@ExcelProperty("车/船/航班/班列号")
	private String vehicleNo;
	@ExcelProperty("挂车车牌号")
	private String trailerVehicleNo;
	@ExcelProperty("押运人")
	private String escortName;
	@ExcelProperty("押运人手机号")
	private String escortPhone;
	@ExcelProperty("里程(km)")
	private BigDecimal mileage;
	@ExcelProperty("预计发货日期")
	private LocalDate estimatedStartTime;
	@ExcelProperty("预计完成日期")
	private LocalDate estimatedEndTime;
	@ExcelProperty("单价")
	private BigDecimal unitPrice;
	@ExcelProperty("计价单位")
	private String priceUnit;
	@ExcelProperty("其他费用合计")
	private BigDecimal otherFeeTotal;
	@ExcelProperty("任务备注")
	private String taskRemark;
	@ExcelProperty("原始单号")
	private String originalNo;
	@ExcelProperty("业务状态")
	private String businessStatus;
	@ExcelProperty("数据来源")
	private String dataSource;
	@ExcelProperty("开始日期")
	private LocalDate startDate;
	@ExcelProperty("结束日期")
	private LocalDate endDate;
	@ExcelProperty("计划名称")
	private String planName;
	@ExcelProperty("多联总单")
	private String masterNo;
	@ExcelProperty("配载单号")
	private String loadingNo;
	@ExcelProperty("运单批次号")
	private String batchNo;
	@ExcelProperty("关联单号")
	private String relationNo;
	@ExcelProperty("当前过程节点")
	private String currentProcessNode;
	@ExcelProperty("所属组织")
	private String deptName;
	@ExcelProperty("备注")
	private String remark;
	@ExcelProperty("创建人")
	private String createUserName;
	@ExcelProperty("更新人")
	private String updateUserName;
	@ExcelProperty("创建时间")
	private LocalDateTime createTime;
	@ExcelProperty("更新时间")
	private LocalDateTime updateTime;

	@ExcelIgnore
	private String errorMessage;

}
