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