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.
1079 lines
21 KiB
C#
1079 lines
21 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Data.Entity;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DSWeb.Common.DB
|
|
{
|
|
/// <summary>
|
|
/// 公共库的数据库访问
|
|
/// </summary>
|
|
public class CommonDBDataContext : DbContext
|
|
{
|
|
public CommonDBDataContext() : base("ConnCommonDB")
|
|
{
|
|
|
|
}
|
|
|
|
public CommonDBDataContext(string conn) : base(conn)
|
|
{
|
|
|
|
}
|
|
|
|
//船公司
|
|
public DbSet<CommonDBCodeCarrier> CodeCarrier { get; set; }
|
|
public DbSet<CommonDBMappingCarrier> MappingCarrier { get; set; }
|
|
|
|
//箱型
|
|
public DbSet<CommonDBCodeCtn> CodeCtn { get; set; }
|
|
public DbSet<CommonDBMappingCtn> MappingCtn { get; set; }
|
|
|
|
//起运港
|
|
public DbSet<CommonDBCodePortLoad> CodePortLoad { get; set; }
|
|
public DbSet<CommonDBMappingPortLoad> MappingPortLoad { get; set; }
|
|
|
|
//目的港
|
|
public DbSet<CommonDBCodePort> CodePort { get; set; }
|
|
public DbSet<CommonDBMappingPort> MappingPort { get; set; }
|
|
|
|
//运输方式
|
|
public DbSet<CommonDBCodeService> CodeService { get; set; }
|
|
public DbSet<CommonDBMappingService> MappingService { get; set; }
|
|
|
|
}
|
|
|
|
//船公司
|
|
[Table("CodeCarrier")]
|
|
public class CommonDBCodeCarrier
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(60)]
|
|
public string EnName { get; set; }
|
|
|
|
//
|
|
[MaxLength(100)]
|
|
public string CnName { get; set; }
|
|
|
|
//
|
|
[MaxLength(10)]
|
|
public string EdiCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Description { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
|
|
}
|
|
|
|
//城市
|
|
[Table("CodeCity")]
|
|
public class CommonDBCodeCity
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string ProvinceCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string ProvinceName { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string CNName { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string EnName { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string AreaCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string PostCode { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
|
|
}
|
|
|
|
//国家
|
|
[Table("CodeCountry")]
|
|
public class CommonDBCodeCountry
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(80)]
|
|
public string EnName { get; set; }
|
|
|
|
//
|
|
[MaxLength(100)]
|
|
public string CnName { get; set; }
|
|
|
|
//
|
|
[MaxLength(100)]
|
|
public string Capital { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string Continent { get; set; }
|
|
|
|
//
|
|
[MaxLength(4000)]
|
|
public string Description { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
|
|
}
|
|
|
|
//箱型
|
|
[Table("CodeCtn")]
|
|
public class CommonDBCodeCtn
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
public int? Size { get; set; }
|
|
|
|
//
|
|
[MaxLength(100)]
|
|
public string Name { get; set; }
|
|
|
|
//
|
|
[MaxLength(10)]
|
|
public string EdiCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(4000)]
|
|
public string Description { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
|
|
}
|
|
|
|
//危险品等级
|
|
[Table("CodeDangerGrade")]
|
|
public class CommonDBCodeDangerGrade
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Grade { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Description { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
|
|
}
|
|
|
|
//船代
|
|
[Table("CodeForwarder")]
|
|
public class CommonDBCodeForwarder
|
|
{
|
|
//主键
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//代码
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//名称
|
|
[MaxLength(100)]
|
|
public string Name { get; set; }
|
|
|
|
//描述
|
|
[MaxLength(500)]
|
|
public string Description { get; set; }
|
|
|
|
//备注
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//创建时间
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//修改时间
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//创建人
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//修改人
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
}
|
|
|
|
//包装
|
|
[Table("CodePackage")]
|
|
public class CommonDBCodePackage
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(100)]
|
|
public string Name { get; set; }
|
|
|
|
//
|
|
[MaxLength(10)]
|
|
public string EdiCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Description { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
}
|
|
|
|
//港口(目的港)
|
|
[Table("CodePort")]
|
|
public class CommonDBCodePort
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(60)]
|
|
public string EnName { get; set; }
|
|
|
|
//
|
|
[MaxLength(100)]
|
|
public string CnName { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ShippingRoute { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string Country { get; set; }
|
|
|
|
//
|
|
[MaxLength(10)]
|
|
public string CountryCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(200)]
|
|
public string FullName { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Description { get; set; }
|
|
|
|
//
|
|
[MaxLength(10)]
|
|
public string EdiCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
|
|
}
|
|
|
|
//起运港
|
|
[Table("CodePortLoad")]
|
|
public class CommonDBCodePortLoad
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(60)]
|
|
public string EnName { get; set; }
|
|
|
|
//
|
|
[MaxLength(100)]
|
|
public string CnName { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Description { get; set; }
|
|
|
|
//
|
|
[MaxLength(10)]
|
|
public string EdiCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
}
|
|
|
|
//省份
|
|
[Table("CodeProvince")]
|
|
public class CommonDBCodeProvince
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Country { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string CNName { get; set; }
|
|
|
|
//
|
|
[MaxLength(100)]
|
|
public string ENName { get; set; }
|
|
|
|
//
|
|
[MaxLength(4000)]
|
|
public string Description { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
}
|
|
|
|
//运输方式
|
|
[Table("CodeService")]
|
|
public class CommonDBCodeService
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(100)]
|
|
public string Name { get; set; }
|
|
|
|
//
|
|
[MaxLength(10)]
|
|
public string EdiCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Description { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
|
|
}
|
|
|
|
//船名
|
|
[Table("CodeVessel")]
|
|
public class CommonDBCodeVessel
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(60)]
|
|
public string Name { get; set; }
|
|
|
|
//
|
|
[MaxLength(10)]
|
|
public string EdiCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Description { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
}
|
|
|
|
//场站
|
|
[Table("CodeYard")]
|
|
public class CommonDBCodeYard
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(100)]
|
|
public string Name { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Description { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
}
|
|
|
|
//船公司映射
|
|
[Table("MappingCarrier")]
|
|
public class CommonDBMappingCarrier
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Module { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string MapCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(200)]
|
|
public string MapName { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
|
|
}
|
|
|
|
//箱型映射
|
|
[Table("MappingCtn")]
|
|
public class CommonDBMappingCtn
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string CarrierCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Module { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string MapCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(200)]
|
|
public string MapName { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
|
|
}
|
|
|
|
//船代映射
|
|
[Table("MappingForwarder")]
|
|
public class CommonDBMappingForwarder
|
|
{
|
|
//主键
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//代码
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//名称
|
|
[MaxLength(20)]
|
|
public string Module { get; set; }
|
|
|
|
//描述
|
|
[MaxLength(50)]
|
|
public string MapCode { get; set; }
|
|
|
|
//备注
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//创建时间
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//修改时间
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//创建人
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//修改人
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
|
|
}
|
|
|
|
//包装映射
|
|
[Table("MappingPackage")]
|
|
public class CommonDBMappingPackage
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string CarrierCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Module { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string MapCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(200)]
|
|
public string MapName { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
|
|
}
|
|
|
|
//港口映射
|
|
[Table("MappingPort")]
|
|
public class CommonDBMappingPort
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string CarrierCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Module { get; set; }
|
|
|
|
//
|
|
[MaxLength(400)]
|
|
public string MapCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(400)]
|
|
public string MapName { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
}
|
|
|
|
//起始港映射
|
|
[Table("MappingPortLoad")]
|
|
public class CommonDBMappingPortLoad
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string CarrierCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Module { get; set; }
|
|
|
|
//
|
|
[MaxLength(400)]
|
|
public string MapCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(400)]
|
|
public string MapName { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
}
|
|
|
|
//运输方式映射
|
|
[Table("MappingService")]
|
|
public class CommonDBMappingService
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string CarrierCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Module { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string MapCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(200)]
|
|
public string MapName { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
}
|
|
|
|
//场站映射
|
|
[Table("MappingYard")]
|
|
public class CommonDBMappingYard
|
|
{
|
|
//
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Code { get; set; }
|
|
|
|
//
|
|
[MaxLength(20)]
|
|
public string Module { get; set; }
|
|
|
|
//
|
|
[MaxLength(50)]
|
|
public string MapCode { get; set; }
|
|
|
|
//
|
|
[MaxLength(200)]
|
|
public string MapName { get; set; }
|
|
|
|
//
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
}
|
|
|
|
//船公司和和船代映射
|
|
[Table("RelaCarrierForwarder")]
|
|
public class CommonDBRelaCarrierForwarder
|
|
{
|
|
//主键
|
|
[MaxLength(36), Key]
|
|
public string GID { get; set; }
|
|
|
|
//船司代码
|
|
[MaxLength(20)]
|
|
public string CarrierCode { get; set; }
|
|
|
|
//船代名称
|
|
[MaxLength(20)]
|
|
public string ForwarderCode { get; set; }
|
|
|
|
//模块(公用时为空字符串)
|
|
[MaxLength(20)]
|
|
public string Module { get; set; }
|
|
|
|
//备注
|
|
[MaxLength(500)]
|
|
public string Remark { get; set; }
|
|
|
|
//创建时间
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
//修改时间
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
//创建人
|
|
[MaxLength(36)]
|
|
public string CreateUser { get; set; }
|
|
|
|
//修改人
|
|
[MaxLength(36)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
}
|
|
}
|