/*
 * Copyright ©2023 CJB-CNIT Team. All rights reserved
 */
package com.openhis.web.reportmanage.dto;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import com.openhis.common.annotation.Dict;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 报表例子:出库明细表初始化 dto
 *
 * @author liuhr
 * @date 2025-11-06
 */
@Data
@Accessors(chain = true)
public class ReportStockOutDetailDto {

    /** 单据号 */
    private String supplyBusNo;

    /** 出库类型 */
    private String type;

    /** 药品名称 */
    private String medName;

    /** 院内药品唯一码 */
    private String busNo;

    /** 药品类型 */
    private String itemTableText;

    /** 产品批号 */
    private String lotNumber;

    /** 存放仓库（目的仓库） */
    private String locationName;

    /** 仓库货位 */
    private String locationStoreName;

    /** 计量单位 */
    @Dict(dictCode = "unit_code")
    private String unitCode;
    private String unitCode_dictText;

    /** 出库数量 */
    private BigDecimal quantity;

    /** 采购单价 */
    private BigDecimal price;

    /** 采购金额 */
    private BigDecimal totalPrice;

    /** 售价 */
    private BigDecimal salePrice;

    /** 售价金额 */
    private BigDecimal totalSalePrice;

    /** 出库科室 */
    @Dict(dictTable = "adm_organization", dictCode = "id", dictText = "name")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long orgId;
    private String orgId_dictText;

    /** 供应商 */
    private String supplier;

    /** 审核人 */
    @Dict(dictCode = "id", dictText = "name", dictTable = "adm_practitioner")
    private Long approverId;
    private String approverId_dictText;

    /** 审批日期 */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date approvalTime;

    /** 出库原因 */
    private String reason;

}
