using Chuanyin.Attribute;
using CoreCms.Net.Model.Entities.baseModel;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CoreCms.Net.Model.Entities.Order
{
///
/// 计划订单表
///
//[SqlCodeFirst]
public class CoreCmsPlanOrder : BFBaseModel
{
///
/// 构造函数
///
public CoreCmsPlanOrder()
{
}
///
/// 订单号
///
[Display(Name = "订单号")]
[SugarColumn(IsPrimaryKey = true)]
[Required(ErrorMessage = "请输入{0}")]
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
public System.String orderId { get; set; }
///
/// 省Id
///
[Display(Name = "省Id")]
public System.Int32 shengId { get; set; }
///
/// 市Id
///
[Display(Name = "市Id")]
public System.Int32 shiId { get; set; }
///
/// 市
///
[Display(Name = "市")]
public System.String shi { get; set; }
///
/// 区县Id
///
[Display(Name = "区县Id")]
public System.Int32 quxianId { get; set; }
///
/// 区县名称
///
[Display(Name = "区县名称")]
public System.String quxian { get; set; }
///
/// 片区
///
[Display(Name = "片区")]
public System.String pianqu { get; set; }
///
/// 调整订单金额
///
[Display(Name = "调整订单金额")]
[Required(ErrorMessage = "请输入{0}")]
public System.Decimal orderAmount { get; set; }
///
/// 订单状态
///
[Display(Name = "订单状态")]
[Required(ErrorMessage = "请输入{0}")]
public System.Int32 status { get; set; }
///
/// 用户ID 关联user.id
///
[Display(Name = "用户ID 关联user.id")]
[Required(ErrorMessage = "请输入{0}")]
public System.Int32 userId { get; set; }
///
/// 学校
///
[Display(Name = "学校")]
[StringLength(maximumLength: 200, ErrorMessage = "{0}不能超过{1}字")]
public System.String shipAddress { get; set; }
///
/// 联系人
///
[Display(Name = "联系人")]
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
public System.String shipName { get; set; }
///
/// 收货电话
///
[Display(Name = "联系电话")]
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
public System.String shipMobile { get; set; }
///
/// 收货地址
///
[Display(Name = "收货地址")]
[StringLength(maximumLength: 200, ErrorMessage = "{0}不能超过{1}字")]
public System.String shouhuoAddress { get; set; }
///
/// 计划订单金额
///
[Display(Name = "计划订单金额")]
[Required(ErrorMessage = "请输入{0}")]
public System.Decimal oldOrderAmount { get; set; }
///
/// 可用余额
///
[Display(Name = "可用余额")]
[Required(ErrorMessage = "请输入{0}")]
public System.Decimal keYongAmount { get; set; }
///
/// 状态说明
///
[SugarColumn(IsIgnore = true)]
public string statusText { get; set; }
///
/// 已花费金额
///
[Display(Name = "已花费金额")]
[Required(ErrorMessage = "请输入{0}")]
public System.Decimal huaFeiAmount { get; set; }
///
/// 调整订单金额
///
[SugarColumn(IsIgnore = true)]
public System.Decimal orderAmounts { get; set; }
///
/// 计划订单金额
///
[SugarColumn(IsIgnore = true)]
public System.Decimal oldOrderAmounts { get; set; }
///
/// 可用余额
///
[SugarColumn(IsIgnore = true)]
public System.Decimal keYongAmounts { get; set; }
}
}