package cn.hnthyy.thmz.entity.his.mz;

import cn.hnthyy.thmz.pageDto.PageBean;
import lombok.Data;

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

/**
 * 门诊收费交款记录表
 */
@Data
public class MzDepositFile extends PageBean implements Serializable {
    //病人编码
    private String patientId;
    //病人就诊次数
    private Integer times;
    //缴费次数
    private Integer receiptNo;
    //退欠标记:0:收；1：退；2：作废；5：未收费  payMarkEnum
    private String payMark;
    //付款方式：1：自费；2：公费 ZdChequeType
    private String chequeType;
    //支票号
    private String chequeNo;
    //金额
    private BigDecimal amount;
    //收费日期
    private Date chargeDate;
    //结账日期
    private Date dcountDate;
    //1：已结帐；0：未结
    private Integer dcountNo;
    //操作人id
    private String opId;
    //发票流水号 mz_charge_detail 表的 real_no字段
    private Integer receiptSn;
    //交费流水号
    private Integer serialNo;
    //病人身份信息
    private String responceType;
    //医保记录号
    private String ybJlh;
    //医保业务号
    private String ybYwh;
    //院区
    private String deptNo;
    //订单号
    private String psordnum;
    //流水号
    private String agtordnum;
    //HIS返回流水号
    private String hisrefundnum;
    //金额字符串
    private String amountStr;

    //付款方式名称
    private String chequeTypeName;
    public MzDepositFile() {
    }
    public MzDepositFile(String patientId, Integer times) {
        this.patientId = patientId;
        this.times = times;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
        if(amount!=null){
            this.amountStr = amount.toString();
        }
    }
}
