package thyyxxk.webserver.entity.zhuyuanyisheng;


import lombok.Data;

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

@Data
public class DoctorSOrderFee {

    /*------------------------医嘱信息---------------------------*/
    private BigDecimal actOrderNo;
    private String orderCode;
    private Date orderTime;
    private String frequCode;
    private Date enterTime;
    private String enterOper;
    private Date startTime;
    private Date endTime;
    private String infantFlag;
    private String drugFlag;
    private String supplyCode;
    private Date performanceTime;
    private String physician;
    private String statusFlag;
    private BigDecimal drugQuan;
    private String instruction;
    private String drugSpecification;
    private BigDecimal dose;
    private String doseUnit;
    private BigDecimal excluActOrderNo;
    private String orderName;
    private String groupNo;
    private String serial;
    private String paySelf;
    private String selfBuy;
    private String cxFlag;
    private String supplyClass;

    /*------------------------费用信息---------------------------*/
    private Integer admissTimes;
    private Integer ledgerSn;
    private Integer detailSn;
    private Date chargeDate;
    private String opIdCode;
    private String chargeCode;
    private String chargeStatus;
    private String chargeStatusName;

    private BigDecimal chargeFee;
    private String selfFlag;
    private String separateFlag;
    private String suppressFlag;
    private String wardCode;
    private String wardCodeName;
    private String deptCode;
    private String deptCodeName;
    private BigDecimal orderNo;
    private String opeFlag;
    private String execUnit;
    private String execUnitName;
    private BigDecimal chargeAmount;
    private String chargeName;
    private String pageNo;
    private Date genTime;
    private Date listTime;

    public String getActOrderNoStr() {
        if (actOrderNo == null) {
            return "";

        } else if (actOrderNo.compareTo(BigDecimal.ZERO) == 0) {
            return "0";
        }
        return actOrderNo.stripTrailingZeros().toPlainString();

    }

    public String getOrderNoStr() {
        if (orderNo == null) {
            return null;

        } else if (orderNo.compareTo(BigDecimal.ZERO) == 0) {
            return "0";
        }
        return orderNo.stripTrailingZeros().toPlainString();

    }
}
