You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
2.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Ys.Core.Common;
using FreeSql.DataAnnotations;
namespace djy.Paas.Model
{
/// <summary>
/// 报关单货主订单
/// </summary>
public class tb_BaoguanOrderClient:DataBase
{
/// <summary>
/// 报关关联Gid
/// </summary>
/// <value></value>
public Guid? BaoguanOrderGid {get;set;}
/// <summary>
/// 提单号
/// </summary>
public string ShipOrderNo { get; set; }
/// <summary>
/// 票数
/// </summary>
/// <value></value>
public int PollCount{get;set;}
/// <summary>
/// 报关行
/// </summary>
public string BaoguanAgent { get; set; }
/// <summary>
/// 进出口类型 I进口 E出口
/// </summary>
public string IEFlag { get; set; }
/// <summary>
/// 进出口名称
/// </summary>
[Column(IsIgnore =true)]
public string IEFlanName {
get {
return IEFlag.IsNull() ? "" : IEFlag == "I" ? "进口" : "出口";
}
}
/// <summary>
/// 备注
/// </summary>
/// <value></value>
[Column(StringLength =-1)]
public string Memo{get;set;}
/// <summary>
/// 附件文件地址
/// </summary>
/// <value></value>
[Column(StringLength =-1)]
public string FileUrl{get;set;}
/// <summary>
///
/// </summary>
[Column(IsIgnore =true)]
public List<FileListDto> FileList {
get {
if (FileUrl.IsNotNull())
{
return YsJson.JsonToObject<List<FileListDto>>(FileUrl);
}
else
{
return new List<FileListDto>();
}
}
set {
if (value != null)
{
FileUrl = YsJson.ToJson(value);
}
}
}
/// <summary>
/// 企业ID
/// </summary>
public Guid? CompGId { get; set; }
/// <summary>
/// 企业名称
/// </summary>
public string CompName { get; set; }
/// <summary>
/// 用户Gid
/// </summary>
public Guid? UserGid { get; set; }
}
}