using cy_scdz.Model.Set;
using Microsoft.EntityFrameworkCore;
using NPOI.HPSF;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
namespace cy_scdz.Model.Oder
{
///
/// 订单详情
///
public class OrderInfo:BasePoco
{
#region 项目一般情况
///
/// 项目名称
///
[Display(Name = "项目名称")]
[Required]
[Comment("项目名称")]
public string Title { get; set; }
///
/// 中标时间
///
[Display(Name = "中标时间")]
[Required]
[Comment("中标时间")]
public DateTime WinBidTime { get; set; }
///
/// 初始供货时间
///
[Display(Name = "初始供货")]
[Comment("初始供货")]
public DateTime InitialDeliveryTime { get; set; }
///
/// 春秋季
///
[Display(Name = "初始供货季节")]
[Comment("初始供货季节")]
public chunqiue Chunqiuji { get; set; }
///
/// 初始供货时间
/// 关联字典供货学期选择 父级为key===ghxqi 默认为2学期
///
[Display(Name = "供货学期")]
[Comment("供货学期")]
public Dictionary Semester { get; set; }
///
/// 供货学期
/// 供货学期 父级为key===ghxqi 默认为2
///
[Display(Name = "供货学期")]
[Required]
[Comment("供货学期")]
public Guid SemesterId { get; set; }
///
/// 中标价格
///
[Display(Name = "中标价格")]
[Required]
[Comment("中标价格")]
public decimal BidMoney { get; set; } = 0;
///
/// 供应商 对应父级key为zbgys
///
[Display(Name = "中标供应商")]
public Dictionary? Supplier { get; set; }
///
/// 供应商
///
[Display(Name = "中标供应商")]
[Comment("中标供应商")]
public Guid? SupplierId { get; set; }
///
/// 订单类别 对应父级key为ddnb
///
[Display(Name = "订单类别")]
public Dictionary? BidType { get; set; }
///
/// 订单类别
///
[Display(Name = "订单类别")]
[Comment("订单类别")]
public Guid? BidTypeId { get; set; }
///
/// 招标代理费
///
[Display(Name = "招标代理费")]
[Comment("招标代理费")]
public decimal TenderAgentFee { get; set; } = 0;
#endregion
#region 收款情况
///
/// 收款情况
///
[Display(Name = "收款情况")]
public List OrderReceivablesStatus { get; set; }
#endregion
#region 印刷要求
#region 作业本
///
/// 作业本封面纸张 对应父级key为fmzz
///
[Display(Name = "封面纸张")]
public Dictionary? WorkbookCoverPaperType { get; set; }
///
/// 作业本封面纸张
///
[Display(Name = "封面纸张")]
[Comment("封面纸张")]
public Guid? WorkbookCoverPaperTypeId { get; set; }
///
/// 作业本内页纸张 对应父级key为nyzz
///
[Display(Name = "内页纸张")]
public Dictionary? WorkbookInnerPaperType { get; set; }
///
/// 作业本内页纸张
///
[Display(Name = "内页纸张")]
[Comment("内页纸张")]
public Guid? WorkbookInnerPaperTypeId { get; set; }
///
/// 作业本内页颜色 对应父级key为nyys
///
[Display(Name = "内页纸张")]
public Dictionary? WorkbookColorType { get; set; }
///
/// 作业本内页颜色
///
[Display(Name = "内页颜色")]
[Comment("内页颜色")]
public Guid? WorkbookColorTypeId { get; set; }
///
/// 作业本装订方式 对应父级key为zdfs
///
[Display(Name = "装订方式")]
public Dictionary? WorkbookBindingType { get; set; }
///
/// 作业本装订方式
///
[Display(Name = "装订方式")]
[Comment("装订方式")]
public Guid? WorkbookBindingTypeId { get; set; }
///
/// 内页页码 对应父级key为nyym
///
[Display(Name = "内页页码")]
public Dictionary? WorkbookInnerPageCode { get; set; }
///
/// 内页页码
///
[Display(Name = "页数")]
[Comment("内页页码")]
public Guid? WorkbookInnerPageCodeId { get; set; }
#endregion
#region 图画本
///
/// 图画本封面纸张 对应父级key为fmzz
///
[Display(Name = "封面纸张")]
public Dictionary? PictureBookCoverPaperType { get; set; }
///
/// 图画本封面纸张
///
[Display(Name = "封面纸张")]
[Comment("封面纸张")]
public Guid? PictureBookCoverPaperTypeId { get; set; }
///
/// 图画本内页纸张 对应父级key为nyzz
///
[Display(Name = "内页纸张")]
public Dictionary? PictureBookInnerPaperType { get; set; }
///
/// 图画本内页纸张
///
[Display(Name = "内页纸张")]
[Comment("内页纸张")]
public Guid? PictureBookInnerPaperTypeId { get; set; }
///
/// 图画本内页颜色 对应父级key为nyys
///
[Display(Name = "内页纸张")]
public Dictionary? PictureBookColorType { get; set; }
///
/// 图画本内页颜色
///
[Display(Name = "内页颜色")]
[Comment("内页颜色")]
public Guid? PictureBookColorTypeId { get; set; }
///
/// 图画本装订方式 对应父级key为zdfs
///
[Display(Name = "装订方式")]
public Dictionary? PictureBookBindingType { get; set; }
///
/// 图画本装订方式
///
[Display(Name = "装订方式")]
[Comment("装订方式")]
public Guid? PictureBookBindingTypeId { get; set; }
///
/// 图画本页码 对应父级key为nyym
///
[Display(Name = "图画本页码")]
public Dictionary? PictureBookInnerPageCode { get; set; }
///
/// 图画本内页页码
///
[Display(Name = "页数")]
[Comment("图画本内页页码")]
public Guid? PictureBookInnerPageCodeId { get; set; }
#endregion
#region 大字本
///
/// 大字本封面纸张 对应父级key为fmzz
///
[Display(Name = "封面纸张")]
public Dictionary? LargeCharacterBookCoverPaperType { get; set; }
///
/// 大字本封面纸张
///
[Display(Name = "封面纸张")]
[Comment("封面纸张")]
public Guid? LargeCharacterBookCoverPaperTypeId { get; set; }
///
/// 大字本内页纸张 对应父级key为nyzz
///
[Display(Name = "内页纸张")]
public Dictionary? LargeCharacterBookInnerPaperType { get; set; }
///
/// 大字本内页纸张
///
[Display(Name = "内页纸张")]
[Comment("内页纸张")]
public Guid? LargeCharacterBookInnerPaperTypeId { get; set; }
///
/// 大字本内页颜色 对应父级key为nyys
///
[Display(Name = "内页纸张")]
public Dictionary? LargeCharacterBookColorType { get; set; }
///
/// 大字本内页颜色
///
[Display(Name = "内页颜色")]
[Comment("内页颜色")]
public Guid? LargeCharacterBookColorTypeId { get; set; }
///
/// 大字本装订方式 对应父级key为zdfs
///
[Display(Name = "装订方式")]
public Dictionary? LargeCharacterBookBindingType { get; set; }
///
/// 大字本装订方式
///
[Display(Name = "装订方式")]
[Comment("装订方式")]
public Guid? LargeCharacterBookBindingTypeId { get; set; }
///
/// 大字本内页页码 对应父级key为nyym
///
[Display(Name = "大字本内页页码")]
public Dictionary? LargeCharacterBookInnerPageCode { get; set; }
///
/// 大字本内页页码
///
[Display(Name = "页数")]
[Comment("大字本内页页码")]
public Guid? LargeCharacterBookInnerPageCodeId { get; set; }
#endregion
#endregion
#region 订单数量
///
/// 订单数量
///
[Display(Name ="订单数量")]
public List Productions { get; set; }
#endregion
#region 确认时间
///
/// 确认列表
///
[Display(Name ="确认")]
public List Sures { get; set; }
#endregion
#region 垫资情况
///
/// 垫资表
///
[Display(Name = "垫资")]
public List AdvancePayments { get; set; }
#endregion
}
///
/// 项目收款情况
///
public class OrderReceivables: BasePoco
{
///
/// 项目ID
///
[Display(Name = "项目ID")]
[Required]
[Comment("项目ID")]
public Guid OderId { get; set; }
///
/// 项目
///
[Display(Name = "项目")]
[Required]
[Comment("项目")]
public OrderInfo Oder { get; set; }
///
/// 回款时间
///
[Display(Name = "回款时间")]
[Required]
[Comment("回款时间")]
public DateTime Time { get; set; }
///
/// 回款金额
///
[Display(Name = "回款金额")]
[Required]
[Comment("回款金额")]
public decimal ReceivablesMoney { get; set; }
///
/// 回款名称 例如 2024 年第一学期
///
[Display(Name = "回款名称")]
[Required]
[Comment("回款名称")]
public string ReceivablesName { get; set; }
}
///
/// 订单确认表
///
public class OderSure: BasePoco
{
///
/// 项目ID
///
[Display(Name = "项目ID")]
[Required]
[Comment("项目ID")]
public Guid OderId { get; set; }
///
/// 项目
///
[Display(Name = "项目")]
[Comment("项目")]
public OrderInfo Oder { get; set; }
///
/// 用户ID
///
[Display(Name = "用户ID")]
[Required]
[Comment("用户ID")]
public Guid UserID { get; set; }
///
/// 用户
///
[Display(Name = "用户")]
public FrameworkUser User { get; set; }
///
/// 确认时间
///
[Display(Name = "确认时间")]
[Comment("确认时间")]
public DateTime SureTime { get; set; }
///
/// 标注
///
[Display(Name = "标注")]
[Comment("标注")]
public string Mark { get; set; }
}
///
/// 垫资费用表
///
public class AdvancePayment:BasePoco
{
///
/// 项目ID
///
[Display(Name = "项目ID")]
[Required]
[Comment("项目ID")]
public Guid OderId { get; set; }
///
/// 项目
///
[Display(Name = "项目")]
public OrderInfo Oder { get; set; }
///
/// 用户ID
///
[Display(Name = "用户ID")]
[Required]
[Comment("用户ID")]
public Guid UserID { get; set; }
///
/// 用户
///
[Display(Name = "用户")]
public FrameworkUser User { get; set; }
///
/// 标注
///
[Display(Name = "标注")]
[Comment("标注")]
public string Mark { get; set; }
///
/// 金额
///
[Display(Name = "金额")]
[Comment("金额")]
public decimal Money { get; set; }
}
///
/// 生产单
///
public class OrderProduction: BasePoco
{
///
/// 项目ID
///
[Display(Name = "项目ID")]
[Required]
[Comment("项目ID")]
public Guid OderId { get; set; }
///
/// 项目
///
[Display(Name = "项目")]
public OrderInfo Oder { get; set; }
///
/// 16K作业本数量
///
[Display(Name = "16K作业本")]
[Comment("16K作业本数量")]
public int Workbook16KCount { get; set; } = 0;
///
/// 16K作业本单价
///
[Display(Name = "中标单价")]
[Comment("16K作业本单价")]
public decimal Workbook16KPrice { get; set; } = 0;
/////
///// 生产厂商
///// 关联字典生产厂商选择
/////
//[Display(Name = "生产厂商")]
//public Dictionary? Workbook16KManufacturer { get; set; }
///
/// 生产厂商ID组合,用,分割
/// 关联字典生产厂商选择 父级为key===ghxqi 默认为2
///
[Display(Name = "生产厂商")]
[Comment("生产厂商ID,用,分割")]
public string Workbook16KManufacturerId { get; set; }
///
/// 32K作业本数量
///
[Display(Name = "32K作业本")]
[Comment("32K作业本数量")]
public int Workbook32KCount { get; set; } = 0;
///
/// 16K作业本单价
///
[Display(Name = "中标单价")]
[Comment("16K作业本单价")]
public decimal Workbook32KPrice { get; set; } = 0;
/////
///// 生产厂商
///// 关联字典生产厂商选择 父级为key===sccs 默认为2学期
/////
//[Display(Name = "生产厂商")]
//public Dictionary? Workbook32KManufacturer { get; set; }
///
/// 生产厂商ID组合,用,分割
/// 关联字典生产厂商选择 父级为key===ghxqi 默认为2
///
[Display(Name = "生产厂商")]
[Comment("生产厂商ID,用,分割")]
public string Workbook32KManufacturerId { get; set; }
///
/// 16K图画本数量
///
[Display(Name = "16K图画本")]
[Comment("16K图画本数量")]
public int PictureBook16KCount { get; set; } = 0;
///
/// 16K作业本单价
///
[Display(Name = "中标单价")]
[Comment("16K作业本单价")]
public decimal PictureBook16KPrice { get; set; } = 0;
/////
///// 生产厂商
///// 关联字典生产厂商选择 父级为key===sccs 默认为2学期
/////
//[Display(Name = "生产厂商")]
//public Dictionary? PictureBook16KManufacturer { get; set; }
///
/// 生产厂商ID组合,用,分割
/// 关联字典生产厂商选择 父级为key===ghxqi 默认为2
///
[Display(Name = "生产厂商")]
[Comment("生产厂商ID,用,分割")]
public string PictureBook16KManufacturerId { get; set; }
///
/// 32K图画本数量
///
[Display(Name = "32K图画本")]
[Comment("32K图画本数量")]
public int PictureBook32KCount { get; set; } = 0;
///
/// 32K图画本单价
///
[Display(Name = "中标单价")]
[Comment("32K图画本单价")]
public decimal PictureBook32KPrice { get; set; } = 0;
/////
///// 生产厂商
///// 关联字典生产厂商选择 父级为key===sccs 默认为2学期
/////
//[Display(Name = "生产厂商")]
//public Dictionary? PictureBook32KManufacturer { get; set; }
///
/// 生产厂商ID组合,用,分割
/// 关联字典生产厂商选择 父级为key===ghxqi 默认为2
///
[Display(Name = "生产厂商")]
[Comment("生产厂商ID,用,分割")]
public string PictureBook32KManufacturerId { get; set; }
///
/// A4图画本数量
///
[Display(Name = "A4图画本")]
[Comment("A4图画本数量")]
public int PictureBookA4Count { get; set; } = 0;
///
/// 16K作业本单价
///
[Display(Name = "中标单价")]
[Comment("16K作业本单价")]
public decimal PictureBookA4KPrice { get; set; } = 0;
/////
///// 生产厂商
///// 关联字典生产厂商选择 父级为key===sccs 默认为2学期
/////
//[Display(Name = "生产厂商")]
//public Dictionary? PictureBookA4KManufacturer { get; set; }
///
/// 生产厂商ID组合,用,分割
/// 关联字典生产厂商选择 父级为key===yscs 默认为2
///
[Display(Name = "生产厂商")]
[Comment("生产厂商ID,用,分割")]
public string PictureBookA4KManufacturerId { get; set; }
///
/// 大字本数量
///
[Display(Name = "大字本")]
[Comment("大字本数量")]
public int LargeCharacterBookCount { get; set; } = 0;
///
/// 大字本单价
///
[Display(Name = "中标单价")]
[Comment("大字本单价")]
public decimal LargeCharacterPrice { get; set; } = 0;
/////
///// 生产厂商
///// 关联字典生产厂商选择 父级为key===sccs 默认为2学期
/////
//[Display(Name = "生产厂商")]
//public Dictionary? LargeCharacterManufacturer { get; set; }
///
/// 生产厂商ID组合,用,分割
/// 关联字典生产厂商选择 父级为key===yscs 默认为2
///
[Display(Name = "生产厂商")]
[Comment("生产厂商ID,用,分割")]
public string LargeCharacterManufacturerIds { get; set; }
///
/// 标注
///
[Display(Name = "标注")]
[Comment("标注")]
public string Mark { get; set; }
///
/// 初始供货时间
///
[Display(Name = "供货年份")]
[Comment("供货年份")]
public DateTime DeliveryTime { get; set; }
///
/// 春秋季
///
[Display(Name = "供货学期")]
[Comment("供货学期")]
public chunqiue Chunqiuji { get; set; }
///
/// 是否完结
///
[Display(Name = "是否完结")]
[Comment("是否完结")]
public bool IsOver { get; set; }=false;
}
///
///
///
public enum chunqiue
{
[Display(Name ="春季")]
chun=1,
[Display(Name = "秋季")]
qiu =6
}
}