package com.bonus.canteen.core.supply.purchase.domain.vo;

import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.bonus.canteen.core.supply.purchase.utils.DrpUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

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

@ApiModel
@ContentStyle(
   borderLeft = BorderStyleEnum.THIN,
   borderBottom = BorderStyleEnum.THIN,
   borderRight = BorderStyleEnum.THIN,
   borderTop = BorderStyleEnum.THIN
)
public class DrpExcelQuoteDetailVO implements Serializable {
   @ApiModelProperty("序号")
   private Integer serialNum;
   @ApiModelProperty("原料名称")
   private String materialName;
   @ApiModelProperty("原料类别")
   private String categoryName;
   @ApiModelProperty("计量单位名称")
   private String unitName;
   @ApiModelProperty("采购数量")
   private BigDecimal purNum;
   @ApiModelProperty("规格")
   private String size;
   @ApiModelProperty("产品备注")
   private String notes;
   @ApiModelProperty("报价数量")
   private BigDecimal quoteNum;
   @ApiModelProperty("总价 -已转换")
   private BigDecimal totalPrice;
   @ApiModelProperty("单价 -已转换")
   private BigDecimal singlePrice;
   @ApiModelProperty("总价 -未转换")
   private Integer neTotalPrice;
   @ApiModelProperty("单价 -未转换")
   private Integer neSinglePrice;

   public BigDecimal getTotalPrice() {
      return DrpUtil.priceDevice100(this.neTotalPrice);
   }

   public BigDecimal getSinglePrice() {
      return DrpUtil.priceDevice100(this.neSinglePrice);
   }

   public Integer getSerialNum() {
      return this.serialNum;
   }

   public String getMaterialName() {
      return this.materialName;
   }

   public String getCategoryName() {
      return this.categoryName;
   }

   public String getUnitName() {
      return this.unitName;
   }

   public BigDecimal getPurNum() {
      return this.purNum;
   }

   public String getSize() {
      return this.size;
   }

   public String getNotes() {
      return this.notes;
   }

   public BigDecimal getQuoteNum() {
      return this.quoteNum;
   }

   public Integer getNeTotalPrice() {
      return this.neTotalPrice;
   }

   public Integer getNeSinglePrice() {
      return this.neSinglePrice;
   }

   public void setSerialNum(final Integer serialNum) {
      this.serialNum = serialNum;
   }

   public void setMaterialName(final String materialName) {
      this.materialName = materialName;
   }

   public void setCategoryName(final String categoryName) {
      this.categoryName = categoryName;
   }

   public void setUnitName(final String unitName) {
      this.unitName = unitName;
   }

   public void setPurNum(final BigDecimal purNum) {
      this.purNum = purNum;
   }

   public void setSize(final String size) {
      this.size = size;
   }

   public void setNotes(final String notes) {
      this.notes = notes;
   }

   public void setQuoteNum(final BigDecimal quoteNum) {
      this.quoteNum = quoteNum;
   }

   public void setTotalPrice(final BigDecimal totalPrice) {
      this.totalPrice = totalPrice;
   }

   public void setSinglePrice(final BigDecimal singlePrice) {
      this.singlePrice = singlePrice;
   }

   public void setNeTotalPrice(final Integer neTotalPrice) {
      this.neTotalPrice = neTotalPrice;
   }

   public void setNeSinglePrice(final Integer neSinglePrice) {
      this.neSinglePrice = neSinglePrice;
   }
}
