export class DnSearchEntity {
  dnCode!: string;
  state!: Array<number>;
  dnType!: number | null;
  warehouseId!: string;
  warehouseName!: string;
  customerName!: string;
  searchBeginTime!: string;
  searchEndTime!: string;
}

export class DnStockSearchEntity {
  orderCode!: string;
  projectCode!: string;
  materialName!: string;
  specsName!: string;
  warehouseId!: string;
  materialId!: string;
  materialCode!: string;
  searchBeginTime!: string;
  searchEndTime!: string;
}
export class DnOutWarehouseEntity {
  dnId!: string;
  orderCode!: string;
  projectCode!: string;
  materialName!: string;
  materialCode!: string;
  specsName!: string;
  state!: number;
}

export class DnRowSearchEntity {
  dnCode!: string;
  dnId!: string;
  materialCode!: string;
  materialName!: string;
  specsName!: string;
  state!: Array<number>;
  warehouseName!: string;
  customerName!: string;
  searchBeginTime!: string;
  searchEndTime!: string;
}

export class DnProjectEntity {
  id!: string;
  moveType!: string; // 移动类型
  dnType!: number; // 出库单类型 0：项目领料 1：生产订单 2：成本中心 3：内部订单 4：内转
  projectCode!: string;
  orderCode!: string;
  warehouseId!: number;
  dnTarget!: string; // 成本中心
  dnRowAddVOList!: Array<dnRowAddVOList>;
}

export class dnRowAddVOList {
  materialId!: number;
  orderCode!: string;
  projectCode!: string;
  stockId!: number;
  totalCount!: number;
  moveType!: string;
  storagePartitionId!: number;
}

// 用于查询销售订单实体
export class dnSaleSearchEntity {
  startDate!: string; // 采购订单创建时间，开始
  endDate!: string; // 采购订单创建时间，结束
  vbeln!: string; // 交货单号
  vgbel!: string; // 销售订单号
  vkorg!: string; // SAP工厂标识
}

// 用于 出库单 重新上架
export class DnPutawayEntity {
  dnId!: string;
  stockMaterialList!: Array<DnPutawayStockMaterialListEntity>; // 子表
}

export class DnPutawayStockMaterialListEntity {
  id!: string; // 主键
  dnId!: string; // 入库单ID
  dnRowId!: string; // 行ID
  warehouseId!: string; // 工厂ID
  areaId!: string; // 库区
  binId!: string; // 库位
  containerId!: string; // 容器ID
  count!: string;
}
