|
|
using DSWeb.Common.Model;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
using System.Data.Entity;
|
|
|
using System.Linq;
|
|
|
using System.Web;
|
|
|
|
|
|
namespace DSWeb.Common.DB
|
|
|
{
|
|
|
public class BookingDB : DbContext
|
|
|
{
|
|
|
public BookingDB() : base("DongShengDB")
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
public BookingDB(string conn) : base(conn)
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
|
|
{
|
|
|
modelBuilder.Conventions.Add(new DecimalPrecisionAttributeConvention());
|
|
|
base.OnModelCreating(modelBuilder);
|
|
|
}
|
|
|
|
|
|
//public DbSet<SysUser> Users { get; set; }
|
|
|
public DbSet<OP_SEAE_ORDER> Orders { get; set; }
|
|
|
public DbSet<OP_CTN> Ctns { get; set; }
|
|
|
public DbSet<OP_CTN_DETAIL> CtnDetails { get; set; }
|
|
|
//public DbSet<OP_TEMPLATE> Templates { get; set; }
|
|
|
public DbSet<OP_SEAE_SI> Confirms { get; set; }
|
|
|
public DbSet<OP_STATUS_LOG> StatusLogs { get; set; }
|
|
|
public DbSet<OP_LOG> Logs { get; set; }
|
|
|
public DbSet<OP_ATTACH> Attaches { get; set; }
|
|
|
//public DbSet<OP_SEND_MAIL> SendMails { get; set; }
|
|
|
//public DbSet<OP_COUNTRY> Countries { get; set; }
|
|
|
//public DbSet<OP_SEAE_SHIPPING> Shippings { get; set; }
|
|
|
|
|
|
public DbSet<ConfigData> ConfigDatas { get; set; }
|
|
|
|
|
|
//public DbSet<SysUserImg> UserImgs { get; set; }
|
|
|
|
|
|
public DbSet<OpRemark> Remarks { get; set; }
|
|
|
|
|
|
public DbSet<OP_SEAE_ORDER_PERSON> Persons { get; set; }
|
|
|
public DbSet<OP_SEAE_CLIENT> Clients { get; set; }
|
|
|
|
|
|
public DbSet<INFO_CLIENT_CONTACT> Contacts { get; set; }
|
|
|
|
|
|
public DbSet<OP_SEAE_ORDER_LETTER_YARD> LetterYard { get; set; }
|
|
|
public DbSet<OpSeaeOrderSampleBill> SampleBill { get; set; }
|
|
|
|
|
|
public DbSet<OpPdfTemplate> OpPdfTemplate { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 分单
|
|
|
/// </summary>
|
|
|
public DbSet<OpSeaeOrderFen> OrderFen { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// VGM反馈数据
|
|
|
/// </summary>
|
|
|
public DbSet<OP_SEAE_ORDER_VGM_FEEDBACK_DATA> VgmFeedbackData { get; set; }
|
|
|
|
|
|
public DbSet<OP_SEAE_ORDER_VGM_LINK> VgmLink { get; set; }
|
|
|
|
|
|
|
|
|
public DbSet<UserAuthorityInfo> UserAuthorityInfo { get; set; }
|
|
|
public DbSet<UserAuthorityRange> UserAuthorityRanges { get; set; }
|
|
|
|
|
|
public DbSet<OP_SEAE_VGM_LINK_AUTO> VgmLinkAuto { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 给其他系统反馈数据(ds6捷丰反馈vgm状态)
|
|
|
/// </summary>
|
|
|
public DbSet<OP_SEAE_ORDER_FEEDBACK> Feedbacks { get; set; }
|
|
|
|
|
|
public DbSet<OP_SEAE_SI_FEEDBACK> SiFeedbacks { get; set; }
|
|
|
public DbSet<OP_SEAE_SI_FEEDBACK_CTN> SiFeedbackCtns { get; set; }
|
|
|
|
|
|
//船司航线接收邮件地址
|
|
|
public DbSet<OP_SEAE_CARRIER_LANE_MAIL_ADDR> CarrierLaneMailAddr { get; set; }
|
|
|
|
|
|
//vgm提交记录
|
|
|
public DbSet<OP_SEAE_VGM_RECORD> VgmRecord { get; set; }
|
|
|
public DbSet<OP_SEAE_VGM_RECORD_CTN> VgmRecordCtn { get; set; }
|
|
|
|
|
|
//订舱系统操作记录
|
|
|
public DbSet<OP_SEAE_SYS_OPERATE_LOG> SysOperateLog { get; set; }
|
|
|
|
|
|
//号段范围
|
|
|
public DbSet<OP_SEAE_ORDER_NUMBER_RANGE> OrderNumberRange { get; set; }
|
|
|
|
|
|
//自动SO
|
|
|
public DbSet<OP_SEAE_ORDER_AUTO_SO> OrderAutoSO { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
[Table("OP_SEAE_ORDER")]
|
|
|
public class OP_SEAE_ORDER
|
|
|
{
|
|
|
public OP_SEAE_ORDER()
|
|
|
{
|
|
|
this.CREATETIME = DateTime.Now;
|
|
|
this.StaXiaHuoZhi = Constants.STA_XIAHUOZHI_NOT_SEND;
|
|
|
}
|
|
|
|
|
|
[Key]
|
|
|
public string ORDNO { get; set; }
|
|
|
public string BSNO { get; set; }
|
|
|
public string CUST_NO { get; set; }
|
|
|
public string BSSTATUS { get; set; }
|
|
|
public string SISTATUS { get; set; }
|
|
|
public DateTime? BSDATE { get; set; }
|
|
|
public string MBLNO { get; set; }
|
|
|
public string HBLNO { get; set; }
|
|
|
public string ORDERNO { get; set; }
|
|
|
public string CONTRACTNO { get; set; }
|
|
|
public string SERVICECONTRACTNO { get; set; }
|
|
|
public string SHIPPERID { get; set; }
|
|
|
public string CONSIGNEEID { get; set; }
|
|
|
public string NOTIFYPARTYID { get; set; }
|
|
|
public string SHIPPER { get; set; }
|
|
|
public string CONSIGNEE { get; set; }
|
|
|
public string NOTIFYPARTY { get; set; }
|
|
|
public string NOTIFYPARTY2 { get; set; }
|
|
|
public string YARD { get; set; }
|
|
|
public string VESSELID { get; set; }
|
|
|
public string VESSEL { get; set; }
|
|
|
public string VOYNO { get; set; }
|
|
|
public DateTime? ETD { get; set; }
|
|
|
public DateTime? CLOSINGDATE { get; set; }
|
|
|
public DateTime? CLOSEDOCDATE { get; set; }
|
|
|
public DateTime? ETA { get; set; }
|
|
|
public string PLACERECEIPTID { get; set; }
|
|
|
public string PLACERECEIPT { get; set; }
|
|
|
public string PORTLOADID { get; set; }
|
|
|
public string PORTLOAD { get; set; }
|
|
|
public string PORTDISCHARGEID { get; set; }
|
|
|
public string PORTDISCHARGE { get; set; }
|
|
|
public string PLACEDELIVERYID { get; set; }
|
|
|
public string PLACEDELIVERY { get; set; }
|
|
|
public string DESTINATIONID { get; set; }
|
|
|
public string DESTINATION { get; set; }
|
|
|
public string NOBILL { get; set; }
|
|
|
public string COPYNOBILLL { get; set; }
|
|
|
public string ISSUETYPE { get; set; }
|
|
|
public DateTime? ISSUEDATE { get; set; }
|
|
|
public string ISSUEPLACEID { get; set; }
|
|
|
public string ISSUEPLACE { get; set; }
|
|
|
public string BLFRT { get; set; }
|
|
|
public string PREPARDAT { get; set; }
|
|
|
public string PAYABLEAT { get; set; }
|
|
|
public string SERVICE { get; set; }
|
|
|
public string MARKS { get; set; }
|
|
|
public string HSCODE { get; set; }
|
|
|
public string DESCRIPTION { get; set; }
|
|
|
public int? PKGS { get; set; }
|
|
|
public string KINDPKGS { get; set; }
|
|
|
[DecimalPrecision(18, 4)]
|
|
|
public decimal? KGS { get; set; }
|
|
|
[DecimalPrecision(18, 4)]
|
|
|
public decimal? CBM { get; set; }
|
|
|
public string CNTRTOTAL { get; set; }
|
|
|
public string INPUTBY { get; set; }
|
|
|
public string CARRIER { get; set; }
|
|
|
public string CARGOID { get; set; }
|
|
|
public string DCLASS { get; set; }
|
|
|
public string DUNNO { get; set; }
|
|
|
public string DPAGE { get; set; }
|
|
|
public string DLABEL { get; set; }
|
|
|
public string LINKMAN { get; set; }
|
|
|
public string TEMPID { get; set; }
|
|
|
public string TEMPSET { get; set; }
|
|
|
public string REEFERF { get; set; }
|
|
|
public string HUMIDITY { get; set; }
|
|
|
public string ISCONTAINERSOC { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
public string EDIREMARK { get; set; }
|
|
|
public DateTime? CREATETIME { get; set; }
|
|
|
public DateTime? MODIFYTIME { get; set; }
|
|
|
public string MODIFYUSER { get; set; }
|
|
|
public string USERID { get; set; }
|
|
|
public string CORPID { get; set; }
|
|
|
public string SHIPPERNAME { get; set; }
|
|
|
public string SHIPPERADDR1 { get; set; }
|
|
|
public string SHIPPERADDR2 { get; set; }
|
|
|
public string SHIPPERADDR3 { get; set; }
|
|
|
public string SHIPPERCITY { get; set; }
|
|
|
public string SHIPPERPROVINCE { get; set; }
|
|
|
public string SHIPPERPOSTCODE { get; set; }
|
|
|
public string SHIPPERCOUNTRY { get; set; }
|
|
|
public string SHIPPERATTN { get; set; }
|
|
|
public string SHIPPERTEL { get; set; }
|
|
|
public string CONSIGNEENAME { get; set; }
|
|
|
public string CONSIGNEEADDR1 { get; set; }
|
|
|
public string CONSIGNEEADDR2 { get; set; }
|
|
|
public string CONSIGNEEADDR3 { get; set; }
|
|
|
public string CONSIGNEECITY { get; set; }
|
|
|
public string CONSIGNEEPROVINCE { get; set; }
|
|
|
public string CONSIGNEEPOSTCODE { get; set; }
|
|
|
public string CONSIGNEERCOUNTRY { get; set; }
|
|
|
public string CONSIGNEEATTN { get; set; }
|
|
|
public string CONSIGNEETEL { get; set; }
|
|
|
public string NOTIFYPARTYNAME { get; set; }
|
|
|
public string NOTIFYPARTYADDR1 { get; set; }
|
|
|
public string NOTIFYPARTYADDR2 { get; set; }
|
|
|
public string NOTIFYPARTYADDR3 { get; set; }
|
|
|
public string NOTIFYPARTYCITY { get; set; }
|
|
|
public string NOTIFYPARTYPROVINCE { get; set; }
|
|
|
public string NOTIFYPARTYPOSTCODE { get; set; }
|
|
|
public string NOTIFYPARTYCOUNTRY { get; set; }
|
|
|
public string NOTIFYPARTYATTN { get; set; }
|
|
|
public string NOTIFYPARTYTEL { get; set; }
|
|
|
public string PONO { get; set; }
|
|
|
public string GOODSNAME { get; set; }
|
|
|
public bool? ISOVERFLOW { get; set; }
|
|
|
public string OVERFLOWDESCRIP { get; set; }
|
|
|
public string FUWEI { get; set; }
|
|
|
public string SHANDIAN { get; set; }
|
|
|
public string HAIYANGWURANWU { get; set; }
|
|
|
public string SALECODE { get; set; }
|
|
|
|
|
|
public string EMAIL { get; set; }
|
|
|
|
|
|
public string BusinessNO { get; set; }
|
|
|
|
|
|
//场站联系人及电话、邮箱
|
|
|
public string YardContract { get; set; }
|
|
|
public string YardContractTel { get; set; }
|
|
|
public string YardContractEmail { get; set; }
|
|
|
|
|
|
public string DangerType { get; set; }
|
|
|
|
|
|
public string TOTALNO { get; set; }
|
|
|
public string TEMPMIN { get; set; }
|
|
|
public string TEMPMAX { get; set; }
|
|
|
public string OP_ID { get; set; }
|
|
|
public string DOC_ID { get; set; }
|
|
|
public string OP { get; set; }
|
|
|
public string DOC { get; set; }
|
|
|
public bool StaBook { get; set; }
|
|
|
public bool StaBC { get; set; }
|
|
|
public bool StaFangCang { get; set; }
|
|
|
public bool StaTiDanConfirm { get; set; }
|
|
|
public bool StaJieDan { get; set; }
|
|
|
public string StaVGM { get; set; }
|
|
|
public bool StaCangDan { get; set; }
|
|
|
public bool StaCustoms { get; set; }
|
|
|
public bool StaZhuangzai { get; set; }
|
|
|
public bool StaMaFang { get; set; }
|
|
|
public bool StaZhuangChuan { get; set; }
|
|
|
public bool StaLiGang { get; set; }
|
|
|
public string StaInOut { get; set; }
|
|
|
public string StaChuanBo { get; set; }
|
|
|
public string CompName { get; set; }
|
|
|
public string ServiceData { get; set; }
|
|
|
|
|
|
public string SALE_ID { get; set; }
|
|
|
public string SALE { get; set; }
|
|
|
public string CUSTSERVICE_ID { get; set; }
|
|
|
public string CUSTSERVICE { get; set; }
|
|
|
|
|
|
public DateTime? VGM_TIME { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 客户
|
|
|
/// </summary>
|
|
|
public string CUSTOMERNAME { get; set; }
|
|
|
/// <summary>
|
|
|
/// 订舱代理
|
|
|
/// </summary>
|
|
|
public string FORWARDER { get; set; }
|
|
|
/// <summary>
|
|
|
/// 船代
|
|
|
/// </summary>
|
|
|
public string SHIPAGENCY { get; set; }
|
|
|
/// <summary>
|
|
|
/// 报关行
|
|
|
/// </summary>
|
|
|
public string CUSTOMSER { get; set; }
|
|
|
/// <summary>
|
|
|
/// 车队
|
|
|
/// </summary>
|
|
|
public string TRUCKER { get; set; }
|
|
|
/// <summary>
|
|
|
/// 国外代理
|
|
|
/// </summary>
|
|
|
public string AGENTID { get; set; }
|
|
|
|
|
|
//一些代号字段
|
|
|
public string CARRIERID { get; set; }
|
|
|
public string YARDID { get; set; }
|
|
|
public string CUSTOMERID { get; set; }
|
|
|
public string FORWARDERID { get; set; }
|
|
|
public string SHIPAGENCYID { get; set; }
|
|
|
public string CUSTOMSERID { get; set; }
|
|
|
public string TRUCKERID { get; set; }
|
|
|
|
|
|
//国外代理名称
|
|
|
public string AGENTNAME { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 委托方
|
|
|
/// </summary>
|
|
|
public string WEITUO { get; set; }
|
|
|
/// <summary>
|
|
|
/// EDI联系人名称
|
|
|
/// </summary>
|
|
|
public string EDIATTN { get; set; }
|
|
|
/// <summary>
|
|
|
/// EDI联系人电话
|
|
|
/// </summary>
|
|
|
public string EDIATTNTEL { get; set; }
|
|
|
/// <summary>
|
|
|
/// EDI联系人邮箱
|
|
|
/// </summary>
|
|
|
public string EDIATTNEMAIL { get; set; }
|
|
|
/// <summary>
|
|
|
/// 收货人DOOR地址
|
|
|
/// </summary>
|
|
|
public string CONSIGNEEDOORADDR { get; set; }
|
|
|
/// <summary>
|
|
|
/// 发货人DOOR地址
|
|
|
/// </summary>
|
|
|
public string SHIPPERDOORADDR { get; set; }
|
|
|
/// <summary>
|
|
|
/// SCAC代码
|
|
|
/// </summary>
|
|
|
public string SCACCODE { get; set; }
|
|
|
/// <summary>
|
|
|
/// ITN编号
|
|
|
/// </summary>
|
|
|
public string ITNCODE { get; set; }
|
|
|
/// <summary>
|
|
|
/// 预付地点ID
|
|
|
/// </summary>
|
|
|
public string PREPARDAT_ID { get; set; }
|
|
|
/// <summary>
|
|
|
/// 到付地点ID
|
|
|
/// </summary>
|
|
|
public string PAYABLEAT_ID { get; set; }
|
|
|
|
|
|
public bool VgmSent { get; set; }
|
|
|
|
|
|
//订舱状态
|
|
|
public string BookingStatus { get; set; }
|
|
|
|
|
|
public string ExtData { get; set; }
|
|
|
|
|
|
//中转港
|
|
|
public string TRANSPORTID { get; set; }
|
|
|
public string TRANSPORT { get; set; }
|
|
|
|
|
|
//第三付款地
|
|
|
public string THIRDPAYADDR { get; set; }
|
|
|
|
|
|
//海关航次
|
|
|
public string VoynoCustom { get; set; }
|
|
|
|
|
|
//退舱标志
|
|
|
public bool StaCancelBook { get; set; }
|
|
|
|
|
|
//费用自结
|
|
|
public bool FEE_SELF { get; set; }
|
|
|
|
|
|
//航线代码、名称
|
|
|
public string LaneCode { get; set; }
|
|
|
public string LaneName { get; set; }
|
|
|
|
|
|
//下货纸状态
|
|
|
public string StaXiaHuoZhi { get; set; }
|
|
|
|
|
|
//ATD
|
|
|
public DateTime? ATD { get; set; }
|
|
|
|
|
|
//场站备注
|
|
|
public string YardRemark { get; set; }
|
|
|
|
|
|
//VGM提交结果(True成功,False失败,null未知)
|
|
|
public bool? VgmResult { get; set; }
|
|
|
|
|
|
//VGM提交失败原因
|
|
|
public string VgmFailReason { get; set; }
|
|
|
|
|
|
|
|
|
public bool? VgmSubmitResult { get; set; }
|
|
|
|
|
|
//付款方
|
|
|
public string FREIGHTPAYER { get; set; }
|
|
|
|
|
|
//提箱小票-未申请
|
|
|
public int? TxxpCountNoApply { get; set; }
|
|
|
|
|
|
//提箱小票-未打印
|
|
|
public int? TxxpCountNoPrint { get; set; }
|
|
|
|
|
|
//提箱小票-已打印
|
|
|
public int? TxxpCountPrint { get; set; }
|
|
|
|
|
|
//EP代码(ESL)
|
|
|
public string EP_CODE { get; set; }
|
|
|
|
|
|
//航线代码
|
|
|
public string LineCode { get; set; }
|
|
|
|
|
|
//msc 订舱回执状态,用于订舱4小时后生成任务
|
|
|
public string MscReply { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// CargoSmart、Inttra订舱号
|
|
|
/// </summary>
|
|
|
public string BookingRefNO { get; set; }
|
|
|
}
|
|
|
|
|
|
[Table("OP_SEAE_SI")]
|
|
|
public class OP_SEAE_SI
|
|
|
{
|
|
|
[Key]
|
|
|
public string SINO { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public string BSNO { get; set; }
|
|
|
public string BSSTATUS { get; set; }
|
|
|
public DateTime? BSDATE { get; set; }
|
|
|
public DateTime? SUBMITDATE { get; set; }
|
|
|
public string MBLNO { get; set; }
|
|
|
public string HBLNO { get; set; }
|
|
|
public string ORDERNO { get; set; }
|
|
|
public string CONTRACTNO { get; set; }
|
|
|
public string SERVICECONTRACTNO { get; set; }
|
|
|
public string SHIPPERID { get; set; }
|
|
|
public string CONSIGNEEID { get; set; }
|
|
|
public string NOTIFYPARTYID { get; set; }
|
|
|
public string SHIPPER { get; set; }
|
|
|
public string CONSIGNEE { get; set; }
|
|
|
public string NOTIFYPARTY { get; set; }
|
|
|
public string NOTIFYPARTY2 { get; set; }
|
|
|
public string YARD { get; set; }
|
|
|
public string VESSELID { get; set; }
|
|
|
public string VESSEL { get; set; }
|
|
|
public string VOYNO { get; set; }
|
|
|
public DateTime? ETD { get; set; }
|
|
|
public DateTime? CLOSINGDATE { get; set; }
|
|
|
public DateTime? CLOSEDOCDATE { get; set; }
|
|
|
public DateTime? ETA { get; set; }
|
|
|
public string PLACERECEIPTID { get; set; }
|
|
|
public string PLACERECEIPT { get; set; }
|
|
|
public string PORTLOADID { get; set; }
|
|
|
public string PORTLOAD { get; set; }
|
|
|
public string PORTDISCHARGEID { get; set; }
|
|
|
public string PORTDISCHARGE { get; set; }
|
|
|
public string PLACEDELIVERYID { get; set; }
|
|
|
public string PLACEDELIVERY { get; set; }
|
|
|
public string DESTINATIONID { get; set; }
|
|
|
public string DESTINATION { get; set; }
|
|
|
public string NOBILL { get; set; }
|
|
|
public string COPYNOBILLL { get; set; }
|
|
|
public string ISSUETYPE { get; set; }
|
|
|
public DateTime? ISSUEDATE { get; set; }
|
|
|
public string ISSUEPLACEID { get; set; }
|
|
|
public string ISSUEPLACE { get; set; }
|
|
|
public string BLFRT { get; set; }
|
|
|
public string PREPARDAT { get; set; }
|
|
|
public string PAYABLEAT { get; set; }
|
|
|
public string SERVICE { get; set; }
|
|
|
public string MARKS { get; set; }
|
|
|
public string HSCODE { get; set; }
|
|
|
public string DESCRIPTION { get; set; }
|
|
|
public int? PKGS { get; set; }
|
|
|
public string KINDPKGS { get; set; }
|
|
|
public decimal? KGS { get; set; }
|
|
|
public decimal? CBM { get; set; }
|
|
|
public string CNTRTOTAL { get; set; }
|
|
|
public string INPUTBY { get; set; }
|
|
|
public string CARRIER { get; set; }
|
|
|
public string CARGOID { get; set; }
|
|
|
public string DCLASS { get; set; }
|
|
|
public string DUNNO { get; set; }
|
|
|
public string DPAGE { get; set; }
|
|
|
public string DLABEL { get; set; }
|
|
|
public string LINKMAN { get; set; }
|
|
|
public string TEMPID { get; set; }
|
|
|
public string TEMPSET { get; set; }
|
|
|
public string REEFERF { get; set; }
|
|
|
public string HUMIDITY { get; set; }
|
|
|
public string ISCONTAINERSOC { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
public string SIREMARK { get; set; }
|
|
|
public DateTime? CREATETIME { get; set; }
|
|
|
public DateTime? MODIFYTIME { get; set; }
|
|
|
public string MODIFYUSER { get; set; }
|
|
|
public string USERID { get; set; }
|
|
|
public string CORPID { get; set; }
|
|
|
public string SHIPPERNAME { get; set; }
|
|
|
public string SHIPPERADDR1 { get; set; }
|
|
|
public string SHIPPERADDR2 { get; set; }
|
|
|
public string SHIPPERADDR3 { get; set; }
|
|
|
public string SHIPPERCITY { get; set; }
|
|
|
public string SHIPPERPROVINCE { get; set; }
|
|
|
public string SHIPPERPOSTCODE { get; set; }
|
|
|
public string SHIPPERCOUNTRY { get; set; }
|
|
|
public string SHIPPERATTN { get; set; }
|
|
|
public string SHIPPERTEL { get; set; }
|
|
|
public string CONSIGNEENAME { get; set; }
|
|
|
public string CONSIGNEEADDR1 { get; set; }
|
|
|
public string CONSIGNEEADDR2 { get; set; }
|
|
|
public string CONSIGNEEADDR3 { get; set; }
|
|
|
public string CONSIGNEECITY { get; set; }
|
|
|
public string CONSIGNEEPROVINCE { get; set; }
|
|
|
public string CONSIGNEEPOSTCODE { get; set; }
|
|
|
public string CONSIGNEERCOUNTRY { get; set; }
|
|
|
public string CONSIGNEEATTN { get; set; }
|
|
|
public string CONSIGNEETEL { get; set; }
|
|
|
public string NOTIFYPARTYNAME { get; set; }
|
|
|
public string NOTIFYPARTYADDR1 { get; set; }
|
|
|
public string NOTIFYPARTYADDR2 { get; set; }
|
|
|
public string NOTIFYPARTYADDR3 { get; set; }
|
|
|
public string NOTIFYPARTYCITY { get; set; }
|
|
|
public string NOTIFYPARTYPROVINCE { get; set; }
|
|
|
public string NOTIFYPARTYPOSTCODE { get; set; }
|
|
|
public string NOTIFYPARTYCOUNTRY { get; set; }
|
|
|
public string NOTIFYPARTYATTN { get; set; }
|
|
|
public string NOTIFYPARTYTEL { get; set; }
|
|
|
public string PONO { get; set; }
|
|
|
public string GOODSNAME { get; set; }
|
|
|
public string FUWEI { get; set; }
|
|
|
public string SHANDIAN { get; set; }
|
|
|
public string HAIYANGWURANWU { get; set; }
|
|
|
public string SALECODE { get; set; }
|
|
|
public bool? DAILU { get; set; }
|
|
|
|
|
|
|
|
|
public string BusinessNO { get; set; }
|
|
|
public string DangerType { get; set; }
|
|
|
|
|
|
public bool? DAILU_CANGDAN { get; set; }
|
|
|
}
|
|
|
|
|
|
[Table("OP_STATUS_LOG")]
|
|
|
public class OP_STATUS_LOG
|
|
|
{
|
|
|
public const string CateNormal = "Normal";
|
|
|
public const string CateShip = "Ship";
|
|
|
|
|
|
|
|
|
public const string TypeBeiXiang = "BeiXiang";//背箱
|
|
|
public const string TypeFanChang = "FanChang";//返场
|
|
|
public const string TypeJiGang = "JiGang";//集港
|
|
|
public const string TypeMaFang = "MaFang";//码放
|
|
|
public const string TypeZhuangChuan = "ZhuangChuan";//装船
|
|
|
|
|
|
|
|
|
public OP_STATUS_LOG()
|
|
|
{
|
|
|
this.OP_TIME = DateTime.Now;
|
|
|
this.CATEGORY = CateNormal;
|
|
|
}
|
|
|
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string RELATIVE_ID { get; set; }
|
|
|
public string STATUS { get; set; }
|
|
|
public DateTime OP_TIME { get; set; }
|
|
|
public string OP_USER { get; set; }
|
|
|
public string CATEGORY { get; set; }
|
|
|
public string TYPE { get; set; }
|
|
|
}
|
|
|
|
|
|
[Table("OP_LOG")]
|
|
|
public class OP_LOG
|
|
|
{
|
|
|
[Key]
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
|
public int LogId { get; set; }
|
|
|
public DateTime OpTime { get; set; }
|
|
|
public string OpUserId { get; set; }
|
|
|
public string OpUserName { get; set; }
|
|
|
public string OpCompanyId { get; set; }
|
|
|
public string OpCompanyName { get; set; }
|
|
|
public string Module { get; set; }
|
|
|
public string Type { get; set; }
|
|
|
public string BillNO { get; set; }
|
|
|
public string MBLNO { get; set; }
|
|
|
public string JsonValue { get; set; }
|
|
|
}
|
|
|
|
|
|
[Table("OP_CTN_B")]
|
|
|
public class OP_CTN
|
|
|
{
|
|
|
[Key]
|
|
|
public string CTN_ID { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public string CTNALL { get; set; }
|
|
|
public int? CTNNUM { get; set; }
|
|
|
public int? TEU { get; set; }
|
|
|
public string CNTRNO { get; set; }
|
|
|
public string SEALNO { get; set; }
|
|
|
public int? PKGS { get; set; }
|
|
|
public string KINDPKGS { get; set; }
|
|
|
[DecimalPrecision(18, 4)]
|
|
|
public decimal? KGS { get; set; }
|
|
|
[DecimalPrecision(18, 4)]
|
|
|
public decimal? CBM { get; set; }
|
|
|
[DecimalPrecision(18, 4)]
|
|
|
public decimal? TAREWEIGHT { get; set; }
|
|
|
public string CTNSTATUS { get; set; }
|
|
|
public string WEIGHTYPE { get; set; }
|
|
|
[DecimalPrecision(18, 4)]
|
|
|
public decimal? WEIGHKGS { get; set; }
|
|
|
public string WEIGHATTN { get; set; }
|
|
|
public string VGMCONNCOM { get; set; }
|
|
|
public string WEIGHTEL { get; set; }
|
|
|
public string WEIGHDATE { get; set; }
|
|
|
public string VGMADDR { get; set; }
|
|
|
public string VGMEMAIL { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
|
|
|
|
|
|
public string StaVGM { get; set; }
|
|
|
}
|
|
|
|
|
|
[Table("OP_CTN_B_DETAIL")]
|
|
|
public class OP_CTN_DETAIL
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string CTN_ID { get; set; }
|
|
|
public int? PKGS { get; set; }
|
|
|
public string KINDPKGS { get; set; }
|
|
|
[DecimalPrecision(18, 4)]
|
|
|
public decimal? KGS { get; set; }
|
|
|
[DecimalPrecision(18, 4)]
|
|
|
public decimal? CBM { get; set; }
|
|
|
public string HSCODE { get; set; }
|
|
|
public string MARKS { get; set; }
|
|
|
public string DESCRIPTION { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
}
|
|
|
|
|
|
[Table("op_remark")]
|
|
|
public class OpRemark
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string RelatvieId { get; set; }
|
|
|
public string Content { get; set; }
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
public string CreateUser { get; set; }
|
|
|
}
|
|
|
|
|
|
[Table("OP_ATTACH")]
|
|
|
public class OP_ATTACH
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string TITLE { get; set; }
|
|
|
public string RELATIVEID { get; set; }
|
|
|
public string FILETYPE { get; set; }
|
|
|
public string FILEPATH { get; set; }
|
|
|
public DateTime OP_TIME { get; set; }
|
|
|
public string OP_USER { get; set; }
|
|
|
|
|
|
//扩展数据
|
|
|
public string ExtData { get; set; }
|
|
|
|
|
|
public string FileUrl { get; set; }
|
|
|
}
|
|
|
|
|
|
//订舱关系人
|
|
|
[Table("OP_SEAE_ORDER_PERSON")]
|
|
|
public class OP_SEAE_ORDER_PERSON
|
|
|
{
|
|
|
public OP_SEAE_ORDER_PERSON()
|
|
|
{
|
|
|
IS_BC = true;
|
|
|
IS_TD = true;
|
|
|
IS_ZD = true;
|
|
|
}
|
|
|
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public string TYPE { get; set; }
|
|
|
public string SHORTNAME { get; set; }
|
|
|
public string PERSON_NAME { get; set; }
|
|
|
public string TEL { get; set; }
|
|
|
public string EMAIL { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
public string CONTRACT_ID { get; set; }
|
|
|
|
|
|
//BC
|
|
|
public bool IS_BC { get; set; }
|
|
|
|
|
|
//提单
|
|
|
public bool IS_TD { get; set; }
|
|
|
|
|
|
//账单
|
|
|
public bool IS_ZD { get; set; }
|
|
|
}
|
|
|
|
|
|
[Table("OP_SEAE_CLIENT")]
|
|
|
public class OP_SEAE_CLIENT
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string CODENAME { get; set; }
|
|
|
public string SHORTNAME { get; set; }
|
|
|
public string DESCRIPTION { get; set; }
|
|
|
public string NAME { get; set; }
|
|
|
public string EnFullName { get; set; }
|
|
|
public int? STATUS { get; set; }
|
|
|
public string ADDR { get; set; }
|
|
|
public string EMAIL { get; set; }
|
|
|
public string WEB { get; set; }
|
|
|
public string TEL { get; set; }
|
|
|
public string FAX { get; set; }
|
|
|
public string CHIEF { get; set; }
|
|
|
public string SALE { get; set; }
|
|
|
public string OP { get; set; }
|
|
|
public string DOC { get; set; }
|
|
|
public bool? ISCARRIER { get; set; }
|
|
|
public bool? ISBOOKING { get; set; }
|
|
|
public bool? ISYARD { get; set; }
|
|
|
public bool? ISTRUCK { get; set; }
|
|
|
public bool? ISCONTROLLER { get; set; }
|
|
|
public bool? ISCUSTOM { get; set; }
|
|
|
public bool? ISAGENT { get; set; }
|
|
|
public bool? ISAGENTCN { get; set; }
|
|
|
public bool? ISEXPRESS { get; set; }
|
|
|
public bool? ISAIRLINES { get; set; }
|
|
|
public bool? ISSHIPPER { get; set; }
|
|
|
public bool? ISCONSIGNEE { get; set; }
|
|
|
public bool? ISNOTIFYPARTY { get; set; }
|
|
|
public bool? ISWAREHOUSE { get; set; }
|
|
|
public string COUNTRY { get; set; }
|
|
|
public string PROVINCE { get; set; }
|
|
|
public string CITY { get; set; }
|
|
|
public string CORPID { get; set; }
|
|
|
public string BLCONTENT { get; set; }
|
|
|
public bool? ISSTOP { get; set; }
|
|
|
public string BillRises1 { get; set; }
|
|
|
public string BillRises2 { get; set; }
|
|
|
public string USDBillRises { get; set; }
|
|
|
public string RMBBillRises { get; set; }
|
|
|
public string RMBBank { get; set; }
|
|
|
public string RMBAccount { get; set; }
|
|
|
public string RMBOnlineNO { get; set; }
|
|
|
public string USDBank { get; set; }
|
|
|
public string USDAccount { get; set; }
|
|
|
public string USDOnlineNO { get; set; }
|
|
|
public string CustomAttributes1 { get; set; }
|
|
|
public string CustomAttributes2 { get; set; }
|
|
|
public decimal? USDMaxAmountCredit { get; set; }
|
|
|
public decimal? RMBMaxAmountCredit { get; set; }
|
|
|
public decimal? MaxAmountCredit { get; set; }
|
|
|
public string STLNAME { get; set; }
|
|
|
public string OPNAME { get; set; }
|
|
|
public DateTime? OPTIME { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
public decimal? USDExchangeRate { get; set; }
|
|
|
public string STLDATE { get; set; }
|
|
|
public string STLFIRSTHALFDATE { get; set; }
|
|
|
public string STLMIDDLEDATE { get; set; }
|
|
|
public string STLDATEPJ { get; set; }
|
|
|
public string LEVEL { get; set; }
|
|
|
public string LOGINNAME { get; set; }
|
|
|
public string LOGINPASSWORD { get; set; }
|
|
|
public string QQ { get; set; }
|
|
|
public string MSN { get; set; }
|
|
|
public string MODIFIEDUSER { get; set; }
|
|
|
public DateTime? MODIFIEDTIME { get; set; }
|
|
|
public bool? ISWHARF { get; set; }
|
|
|
public bool? ISSHIPPINGAGENT { get; set; }
|
|
|
public string FARCODE { get; set; }
|
|
|
public string FAPCODE { get; set; }
|
|
|
public bool? ISINSURE { get; set; }
|
|
|
public bool? ISLEASING { get; set; }
|
|
|
public bool? ISTRADINGAGENCY { get; set; }
|
|
|
public bool? ISOTHER { get; set; }
|
|
|
public string OTHERS { get; set; }
|
|
|
public string UNITPRICE { get; set; }
|
|
|
public string REGISTRATIONNO { get; set; }
|
|
|
public string ORDERNO { get; set; }
|
|
|
public bool? ISENTERP { get; set; }
|
|
|
public string TAXNO { get; set; }
|
|
|
public string EDICODE { get; set; }
|
|
|
public string EDICODE2 { get; set; }
|
|
|
public string EDICODE3 { get; set; }
|
|
|
public string ORGANIZATIONCODE { get; set; }
|
|
|
public string PCORPNAME { get; set; }
|
|
|
public string InspectionNo { get; set; }
|
|
|
public bool? ISSHIPAGENCY { get; set; }
|
|
|
public byte? blstatus { get; set; }
|
|
|
public bool? ISSP { get; set; }
|
|
|
public string FEEFRT { get; set; }
|
|
|
public int? RCVMode { get; set; }
|
|
|
public string ICOURL { get; set; }
|
|
|
public string BSSOURCE { get; set; }
|
|
|
public string INVBANK { get; set; }
|
|
|
public string SALECORPID { get; set; }
|
|
|
public string INVADDRTEL { get; set; }
|
|
|
public string LOADPORT { get; set; }
|
|
|
|
|
|
public string UserId { get; set; }
|
|
|
public string CompId { get; set; }
|
|
|
|
|
|
public void SaveCopy(OP_SEAE_CLIENT newClientData)
|
|
|
{
|
|
|
CODENAME = newClientData.CODENAME;
|
|
|
SHORTNAME = newClientData.SHORTNAME;
|
|
|
DESCRIPTION = newClientData.DESCRIPTION;
|
|
|
CHIEF = newClientData.CHIEF;
|
|
|
TEL = newClientData.TEL;
|
|
|
EMAIL = newClientData.EMAIL;
|
|
|
QQ = newClientData.QQ;
|
|
|
WEB = newClientData.WEB;
|
|
|
PROVINCE = newClientData.PROVINCE;
|
|
|
CITY = newClientData.CITY;
|
|
|
ADDR = newClientData.ADDR;
|
|
|
EnFullName = newClientData.EnFullName;
|
|
|
NAME = newClientData.NAME;
|
|
|
|
|
|
ISCONTROLLER = newClientData.ISCONTROLLER;
|
|
|
ISTRUCK = newClientData.ISTRUCK;
|
|
|
ISCUSTOM = newClientData.ISCUSTOM;
|
|
|
ISAGENT = newClientData.ISAGENT;
|
|
|
ISBOOKING = newClientData.ISBOOKING;
|
|
|
|
|
|
REMARK = newClientData.REMARK;
|
|
|
|
|
|
BillRises1 = newClientData.BillRises1;
|
|
|
TAXNO = newClientData.TAXNO;
|
|
|
INVADDRTEL = newClientData.INVADDRTEL;
|
|
|
RMBBank = newClientData.RMBBank;
|
|
|
RMBAccount = newClientData.RMBAccount;
|
|
|
USDBank = newClientData.USDBank;
|
|
|
USDAccount = newClientData.USDAccount;
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// OP_SEAE_CLIENT的子表同时也是info_client的子表
|
|
|
/// 保存联系人信息
|
|
|
/// </summary>
|
|
|
[Table("INFO_CLIENT_CONTACT")]
|
|
|
public class INFO_CLIENT_CONTACT
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string LINKID { get; set; }
|
|
|
/// <summary>
|
|
|
/// 角色:操作/单证/对账等 关联枚举类型
|
|
|
/// </summary>
|
|
|
public string JOB { get; set; }
|
|
|
public string SHOWNAME { get; set; }
|
|
|
public string EMAIL { get; set; }
|
|
|
public string TEL { get; set; }
|
|
|
public string MOBILE { get; set; }
|
|
|
public string QQ { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 以下是暂时无用的字段
|
|
|
/// </summary>
|
|
|
public string CODENAME { get; set; }
|
|
|
public string ADDR { get; set; }
|
|
|
public string FAX { get; set; }
|
|
|
|
|
|
public bool? ISFINANCIALSTAFF { get; set; }
|
|
|
|
|
|
public bool? ISOPERATOR { get; set; }
|
|
|
public bool? ISSALEMAN { get; set; }
|
|
|
public bool? ISOTHER { get; set; }
|
|
|
public bool? CONTACTTYPE1 { get; set; }
|
|
|
public bool? CONTACTTYPE2 { get; set; }
|
|
|
public bool? CONTACTTYPE3 { get; set; }
|
|
|
public bool? CONTACTTYPE4 { get; set; }
|
|
|
public bool? CONTACTTYPE5 { get; set; }
|
|
|
public bool? CONTACTTYPE6 { get; set; }
|
|
|
public bool? CONTACTTYPE7 { get; set; }
|
|
|
public string CREATEUSER { get; set; }
|
|
|
public DateTime? CREATETIME { get; set; }
|
|
|
public string MODIFIEDUSER { get; set; }
|
|
|
public DateTime? MODIFIEDTIME { get; set; }
|
|
|
public bool? ISSTOP { get; set; }
|
|
|
public bool? ISDELETED { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
public DateTime? ANNIVERSARY2 { get; set; }
|
|
|
public string AREMARK2 { get; set; }
|
|
|
public DateTime? BIRTHDAY { get; set; }
|
|
|
public DateTime? ANNIVERSARY1 { get; set; }
|
|
|
public string AREMARK1 { get; set; }
|
|
|
public bool? ISBIRTHDAY { get; set; }
|
|
|
public bool? ISANNIVERSARY1 { get; set; }
|
|
|
public bool? ISANNIVERSARY2 { get; set; }
|
|
|
public int? BIRTHDAYDAY { get; set; }
|
|
|
public int? ANNIVERSARYDAY1 { get; set; }
|
|
|
public int? ANNIVERSARYDAY2 { get; set; }
|
|
|
|
|
|
public string SEX { get; set; }
|
|
|
public string AGE { get; set; }
|
|
|
public string MARRY { get; set; }
|
|
|
public string CHILDREN { get; set; }
|
|
|
public string HOBBIES { get; set; }
|
|
|
|
|
|
public string OPENID { get; set; }
|
|
|
public string NICKNAME { get; set; }
|
|
|
|
|
|
|
|
|
//public DateTime? SIGNINGDATE { get; set; }
|
|
|
//public DateTime? STARTDATE { get; set; }
|
|
|
public void SaveCopy(INFO_CLIENT_CONTACT newitem)
|
|
|
{
|
|
|
GID = newitem.GID;
|
|
|
LINKID = newitem.LINKID;
|
|
|
JOB = newitem.JOB;
|
|
|
SHOWNAME = newitem.SHOWNAME;
|
|
|
EMAIL = newitem.EMAIL;
|
|
|
TEL = newitem.TEL;
|
|
|
MOBILE = newitem.MOBILE;
|
|
|
QQ = newitem.QQ;
|
|
|
REMARK = newitem.REMARK;
|
|
|
OPENID = newitem.OPENID;
|
|
|
NICKNAME = newitem.NICKNAME;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//入货通知
|
|
|
[Table("OP_SEAE_ORDER_LETTER_YARD")]
|
|
|
public class OP_SEAE_ORDER_LETTER_YARD
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string TO { get; set; }
|
|
|
public string ATTN { get; set; }
|
|
|
public string ATTN_TEL { get; set; }
|
|
|
public string ATTN_MAIL { get; set; }
|
|
|
public string FROM { get; set; }
|
|
|
public string FROM_TEL { get; set; }
|
|
|
public string FROM_MAIL { get; set; }
|
|
|
public string DESCRIPTION { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public DateTime CREATE_TIME { get; set; }
|
|
|
public string CREATE_USER { get; set; }
|
|
|
public DateTime? MODIFY_TIME { get; set; }
|
|
|
public string MODIFY_USER { get; set; }
|
|
|
|
|
|
public DateTime? CLOSINGDATE { get; set; }
|
|
|
public DateTime? CLOSEDOCDATE { get; set; }
|
|
|
public DateTime? VGM_TIME { get; set; }
|
|
|
|
|
|
public string TixiangUrl { get; set; }
|
|
|
}
|
|
|
|
|
|
//pdf生成模板
|
|
|
[Table("OP_PDF_TEMPLATE")]
|
|
|
public class OpPdfTemplate
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string Category { get; set; }
|
|
|
public string FileName { get; set; }
|
|
|
public string FilePath { get; set; }
|
|
|
public string CompName { get; set; }
|
|
|
public string CompId { get; set; }
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
public string CreateUser { get; set; }
|
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
public string ModifyUser { get; set; }
|
|
|
public string Remark { get; set; }
|
|
|
}
|
|
|
|
|
|
//样单
|
|
|
[Table("OP_SEAE_ORDER_SAMPLE_BILL")]
|
|
|
public class OpSeaeOrderSampleBill
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string TO { get; set; }
|
|
|
public string ATTN { get; set; }
|
|
|
public string ATTN_TEL { get; set; }
|
|
|
public string ATTN_MAIL { get; set; }
|
|
|
public string FROM { get; set; }
|
|
|
public string FROM_TEL { get; set; }
|
|
|
public string FROM_MAIL { get; set; }
|
|
|
public string DESCRIPTION { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public DateTime CREATE_TIME { get; set; }
|
|
|
public string CREATE_USER { get; set; }
|
|
|
public DateTime? MODIFY_TIME { get; set; }
|
|
|
public string MODIFY_USER { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
//订舱分单表
|
|
|
[Table("OP_SEAE_ORDER_FEN")]
|
|
|
public class OpSeaeOrderFen
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public string BSNO { get; set; }
|
|
|
public string BSSTATUS { get; set; }
|
|
|
public DateTime? BSDATE { get; set; }
|
|
|
public string MBLNO { get; set; }
|
|
|
public string HBLNO { get; set; }
|
|
|
public string ORDERNO { get; set; }
|
|
|
public string CONTRACTNO { get; set; }
|
|
|
public string SERVICECONTRACTNO { get; set; }
|
|
|
public string SHIPPERID { get; set; }
|
|
|
public string CONSIGNEEID { get; set; }
|
|
|
public string NOTIFYPARTYID { get; set; }
|
|
|
public string SHIPPER { get; set; }
|
|
|
public string CONSIGNEE { get; set; }
|
|
|
public string NOTIFYPARTY { get; set; }
|
|
|
public string NOTIFYPARTY2 { get; set; }
|
|
|
public string YARD { get; set; }
|
|
|
public string VESSELID { get; set; }
|
|
|
public string VESSEL { get; set; }
|
|
|
public string VOYNO { get; set; }
|
|
|
public DateTime? ETD { get; set; }
|
|
|
public DateTime? CLOSINGDATE { get; set; }
|
|
|
public DateTime? CLOSEDOCDATE { get; set; }
|
|
|
public DateTime? ETA { get; set; }
|
|
|
public string PLACERECEIPTID { get; set; }
|
|
|
public string PLACERECEIPT { get; set; }
|
|
|
public string PORTLOADID { get; set; }
|
|
|
public string PORTLOAD { get; set; }
|
|
|
public string PORTDISCHARGEID { get; set; }
|
|
|
public string PORTDISCHARGE { get; set; }
|
|
|
public string PLACEDELIVERYID { get; set; }
|
|
|
public string PLACEDELIVERY { get; set; }
|
|
|
public string DESTINATIONID { get; set; }
|
|
|
public string DESTINATION { get; set; }
|
|
|
public string NOBILL { get; set; }
|
|
|
public string COPYNOBILLL { get; set; }
|
|
|
public string ISSUETYPE { get; set; }
|
|
|
public DateTime? ISSUEDATE { get; set; }
|
|
|
public string ISSUEPLACEID { get; set; }
|
|
|
public string ISSUEPLACE { get; set; }
|
|
|
public string BLFRT { get; set; }
|
|
|
public string PREPARDAT { get; set; }
|
|
|
public string PAYABLEAT { get; set; }
|
|
|
public string SERVICE { get; set; }
|
|
|
public string MARKS { get; set; }
|
|
|
public string HSCODE { get; set; }
|
|
|
public string DESCRIPTION { get; set; }
|
|
|
public int? PKGS { get; set; }
|
|
|
public string KINDPKGS { get; set; }
|
|
|
public decimal? KGS { get; set; }
|
|
|
public decimal? CBM { get; set; }
|
|
|
public string CNTRTOTAL { get; set; }
|
|
|
public string INPUTBY { get; set; }
|
|
|
public string CARRIER { get; set; }
|
|
|
public string CARGOID { get; set; }
|
|
|
public string DCLASS { get; set; }
|
|
|
public string DUNNO { get; set; }
|
|
|
public string DPAGE { get; set; }
|
|
|
public string DLABEL { get; set; }
|
|
|
public string LINKMAN { get; set; }
|
|
|
public string TEMPID { get; set; }
|
|
|
public string TEMPSET { get; set; }
|
|
|
public string REEFERF { get; set; }
|
|
|
public string HUMIDITY { get; set; }
|
|
|
public string ISCONTAINERSOC { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
public string EDIREMARK { get; set; }
|
|
|
public DateTime? CREATETIME { get; set; }
|
|
|
public DateTime? MODIFYTIME { get; set; }
|
|
|
public string MODIFYUSER { get; set; }
|
|
|
public string USERID { get; set; }
|
|
|
public string CORPID { get; set; }
|
|
|
public string SHIPPERNAME { get; set; }
|
|
|
public string SHIPPERADDR1 { get; set; }
|
|
|
public string SHIPPERADDR2 { get; set; }
|
|
|
public string SHIPPERADDR3 { get; set; }
|
|
|
public string SHIPPERCITY { get; set; }
|
|
|
public string SHIPPERPROVINCE { get; set; }
|
|
|
public string SHIPPERPOSTCODE { get; set; }
|
|
|
public string SHIPPERCOUNTRY { get; set; }
|
|
|
public string SHIPPERATTN { get; set; }
|
|
|
public string SHIPPERTEL { get; set; }
|
|
|
public string CONSIGNEENAME { get; set; }
|
|
|
public string CONSIGNEEADDR1 { get; set; }
|
|
|
public string CONSIGNEEADDR2 { get; set; }
|
|
|
public string CONSIGNEEADDR3 { get; set; }
|
|
|
public string CONSIGNEECITY { get; set; }
|
|
|
public string CONSIGNEEPROVINCE { get; set; }
|
|
|
public string CONSIGNEEPOSTCODE { get; set; }
|
|
|
public string CONSIGNEERCOUNTRY { get; set; }
|
|
|
public string CONSIGNEEATTN { get; set; }
|
|
|
public string CONSIGNEETEL { get; set; }
|
|
|
public string NOTIFYPARTYNAME { get; set; }
|
|
|
public string NOTIFYPARTYADDR1 { get; set; }
|
|
|
public string NOTIFYPARTYADDR2 { get; set; }
|
|
|
public string NOTIFYPARTYADDR3 { get; set; }
|
|
|
public string NOTIFYPARTYCITY { get; set; }
|
|
|
public string NOTIFYPARTYPROVINCE { get; set; }
|
|
|
public string NOTIFYPARTYPOSTCODE { get; set; }
|
|
|
public string NOTIFYPARTYCOUNTRY { get; set; }
|
|
|
public string NOTIFYPARTYATTN { get; set; }
|
|
|
public string NOTIFYPARTYTEL { get; set; }
|
|
|
public string PONO { get; set; }
|
|
|
public string GOODSNAME { get; set; }
|
|
|
public bool? ISOVERFLOW { get; set; }
|
|
|
public string OVERFLOWDESCRIP { get; set; }
|
|
|
public string FUWEI { get; set; }
|
|
|
public string SHANDIAN { get; set; }
|
|
|
public string HAIYANGWURANWU { get; set; }
|
|
|
public string SALECODE { get; set; }
|
|
|
public string BusinessNO { get; set; }
|
|
|
public string YardContract { get; set; }
|
|
|
public string DangerType { get; set; }
|
|
|
public bool? DAILU_CANGDAN { get; set; }
|
|
|
public string TOTALNO { get; set; }
|
|
|
public string TEMPMIN { get; set; }
|
|
|
public string TEMPMAX { get; set; }
|
|
|
public string OP_ID { get; set; }
|
|
|
public string DOC_ID { get; set; }
|
|
|
public string OP { get; set; }
|
|
|
public string DOC { get; set; }
|
|
|
public bool? StaBook { get; set; }
|
|
|
public bool? StaBC { get; set; }
|
|
|
public bool? StaFangCang { get; set; }
|
|
|
public bool? StaTiDanConfirm { get; set; }
|
|
|
public bool? StaJieDan { get; set; }
|
|
|
public string StaVGM { get; set; }
|
|
|
public bool? StaCangDan { get; set; }
|
|
|
public bool? StaCustoms { get; set; }
|
|
|
public bool? StaZhuangzai { get; set; }
|
|
|
public bool? StaMaFang { get; set; }
|
|
|
public bool? StaZhuangChuan { get; set; }
|
|
|
public bool? StaLiGang { get; set; }
|
|
|
public string StaInOut { get; set; }
|
|
|
public string StaChuanBo { get; set; }
|
|
|
public string CompName { get; set; }
|
|
|
public string ServiceData { get; set; }
|
|
|
public string SALE_ID { get; set; }
|
|
|
public string SALE { get; set; }
|
|
|
public string CUSTSERVICE_ID { get; set; }
|
|
|
public string CUSTSERVICE { get; set; }
|
|
|
public DateTime? VGM_TIME { get; set; }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 委托方
|
|
|
/// </summary>
|
|
|
public string WEITUO { get; set; }
|
|
|
/// <summary>
|
|
|
/// EDI联系人名称
|
|
|
/// </summary>
|
|
|
public string EDIATTN { get; set; }
|
|
|
/// <summary>
|
|
|
/// EDI联系人电话
|
|
|
/// </summary>
|
|
|
public string EDIATTNTEL { get; set; }
|
|
|
/// <summary>
|
|
|
/// EDI联系人邮箱
|
|
|
/// </summary>
|
|
|
public string EDIATTNEMAIL { get; set; }
|
|
|
/// <summary>
|
|
|
/// 收货人DOOR地址
|
|
|
/// </summary>
|
|
|
public string CONSIGNEEDOORADDR { get; set; }
|
|
|
/// <summary>
|
|
|
/// 发货人DOOR地址
|
|
|
/// </summary>
|
|
|
public string SHIPPERDOORADDR { get; set; }
|
|
|
/// <summary>
|
|
|
/// SCAC代码
|
|
|
/// </summary>
|
|
|
public string SCACCODE { get; set; }
|
|
|
/// <summary>
|
|
|
/// ITN编号
|
|
|
/// </summary>
|
|
|
public string ITNCODE { get; set; }
|
|
|
/// <summary>
|
|
|
/// 预付地点ID
|
|
|
/// </summary>
|
|
|
public string PREPARDAT_ID { get; set; }
|
|
|
/// <summary>
|
|
|
/// 到付地点ID
|
|
|
/// </summary>
|
|
|
public string PAYABLEAT_ID { get; set; }
|
|
|
}
|
|
|
|
|
|
//vgm客户提交后获得的反馈数据,用于与订舱数据比对
|
|
|
[Table("OP_SEAE_ORDER_VGM_FEEDBACK_DATA")]
|
|
|
public class OP_SEAE_ORDER_VGM_FEEDBACK_DATA
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public string TASKID { get; set; }
|
|
|
public string MBLNO { get; set; }
|
|
|
public string CTNALL { get; set; }
|
|
|
public string CNTRNO { get; set; }
|
|
|
public string SEALNO { get; set; }
|
|
|
public decimal? KGS { get; set; }
|
|
|
public decimal? TAREWEIGHT { get; set; }
|
|
|
public string WEIGHTYPE { get; set; }
|
|
|
public decimal? WEIGHKGS { get; set; }
|
|
|
public DateTime? FEEDBACK_TIME { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
[Table("OP_SEAE_ORDER_VGM_LINK")]
|
|
|
public class OP_SEAE_ORDER_VGM_LINK
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string TO { get; set; }
|
|
|
public string ATTN { get; set; }
|
|
|
public string ATTN_TEL { get; set; }
|
|
|
public string ATTN_MAIL { get; set; }
|
|
|
public string FROM { get; set; }
|
|
|
public string FROM_TEL { get; set; }
|
|
|
public string FROM_MAIL { get; set; }
|
|
|
public string DESCRIPTION { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public DateTime CREATE_TIME { get; set; }
|
|
|
public string CREATE_USER { get; set; }
|
|
|
public DateTime? MODIFY_TIME { get; set; }
|
|
|
public string MODIFY_USER { get; set; }
|
|
|
public string VGM_URL { get; set; }
|
|
|
public string SI_VGM_URL { get; set; }
|
|
|
}
|
|
|
|
|
|
//vgm自动发送链接
|
|
|
[Table("OP_SEAE_VGM_LINK_AUTO")]
|
|
|
public class OP_SEAE_VGM_LINK_AUTO
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public int SendTimes { get; set; }
|
|
|
public DateTime TxTime { get; set; }
|
|
|
public DateTime ClosingDocTime { get; set; }
|
|
|
public DateTime? LastSend { get; set; }
|
|
|
public DateTime? NextSend { get; set; }
|
|
|
public string SendData { get; set; }
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
public bool IsFinish { get; set; }
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// vgm给ds6等系统反馈状态、链接等数据
|
|
|
/// </summary>
|
|
|
[Table("OP_SEAE_ORDER_FEEDBACK")]
|
|
|
public class OP_SEAE_ORDER_FEEDBACK
|
|
|
{
|
|
|
public const string FeedbackStatusCreate = "Create";
|
|
|
public const string FeedbackStatusSending = "Sending";
|
|
|
public const string FeedbackStatusOk = "Ok";
|
|
|
public const string FeedbackStatusFail = "Fail";
|
|
|
|
|
|
|
|
|
public const string FeedbackTypeVgmJiefeng = "VgmJiefeng";
|
|
|
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public string TYPE { get; set; }
|
|
|
public string DATA { get; set; }
|
|
|
public DateTime CREATE_TIME { get; set; }
|
|
|
public string SEND_STATUS { get; set; }
|
|
|
public DateTime? SEND_TIME { get; set; }
|
|
|
public string SEND_RESULT { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
[Table("OP_SEAE_SI_FEEDBACK")]
|
|
|
public class OP_SEAE_SI_FEEDBACK
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public string TASKID { get; set; }
|
|
|
public string SHIPPER { get; set; }
|
|
|
public string CONSIGNEE { get; set; }
|
|
|
public string NOTIFYPARTY { get; set; }
|
|
|
public string MARKS { get; set; }
|
|
|
public string DESCRIPTION { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
public string BLFRT { get; set; }
|
|
|
public string SERVICE { get; set; }
|
|
|
public string ISSUETYPE { get; set; }
|
|
|
public string PORTLOADID { get; set; }
|
|
|
public string PORTLOAD { get; set; }
|
|
|
public string PORTDISCHARGEID { get; set; }
|
|
|
public string PORTDISCHARGE { get; set; }
|
|
|
public string TRANSPORTID { get; set; }
|
|
|
public string TRANSPORT { get; set; }
|
|
|
public string DESTINATIONID { get; set; }
|
|
|
public string DESTINATION { get; set; }
|
|
|
public int? PKGS { get; set; }
|
|
|
public string KINDPKGS { get; set; }
|
|
|
public decimal? KGS { get; set; }
|
|
|
public decimal? CBM { get; set; }
|
|
|
public string THIRDPAYADDR { get; set; }
|
|
|
public DateTime RecTime { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
[Table("OP_SEAE_SI_FEEDBACK_CTN")]
|
|
|
public class OP_SEAE_SI_FEEDBACK_CTN
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public string TASKID { get; set; }
|
|
|
public string FEEDBACKID { get; set; }
|
|
|
public string CTNALL { get; set; }
|
|
|
public string CNTRNO { get; set; }
|
|
|
public string SEALNO { get; set; }
|
|
|
public int? PKGS { get; set; }
|
|
|
public decimal? KGS { get; set; }
|
|
|
public decimal? CBM { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
[Table("OP_SEAE_CARRIER_LANE_MAIL_ADDR")]
|
|
|
public class OP_SEAE_CARRIER_LANE_MAIL_ADDR
|
|
|
{
|
|
|
[Key]
|
|
|
public string CARRIER_CODE { get; set; }
|
|
|
public string CARRIER_NAME { get; set; }
|
|
|
public string LANE_CODE { get; set; }
|
|
|
public string LANE_NAME { get; set; }
|
|
|
public string SEND_TO { get; set; }
|
|
|
public string CC_TO { get; set; }
|
|
|
public DateTime CREATE_TIME { get; set; }
|
|
|
public string CREATE_USER { get; set; }
|
|
|
public DateTime? MODIFY_TIME { get; set; }
|
|
|
public string MODIFY_USER { get; set; }
|
|
|
}
|
|
|
|
|
|
//vgm提交记录
|
|
|
[Table("op_seae_vgm_record")]
|
|
|
public class OP_SEAE_VGM_RECORD
|
|
|
{
|
|
|
public const string SEND_TYPE_OP = "OP"; //操作提交
|
|
|
public const string SEND_TYPE_CUSTOMER = "CUSTOMER"; //客户提交
|
|
|
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public string MBLNO { get; set; }
|
|
|
public DateTime CREATETIME { get; set; }
|
|
|
public string SENDTYPE { get; set; }
|
|
|
public string USERID { get; set; }
|
|
|
public string USERNAME { get; set; }
|
|
|
public string COMPID { get; set; }
|
|
|
public string COMPNAME { get; set; }
|
|
|
}
|
|
|
|
|
|
//vgm提交记录子表
|
|
|
[Table("op_seae_vgm_record_ctn")]
|
|
|
public class OP_SEAE_VGM_RECORD_CTN
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public string MBLNO { get; set; }
|
|
|
public string PARENTID { get; set; }
|
|
|
public string CTNALL { get; set; }
|
|
|
public string CNTRNO { get; set; }
|
|
|
public string SEALNO { get; set; }
|
|
|
public decimal? KGS { get; set; }
|
|
|
public decimal? TAREWEIGHT { get; set; }
|
|
|
public string WEIGHTYPE { get; set; }
|
|
|
public decimal? WEIGHKGS { get; set; }
|
|
|
public bool VGM_SUCCESS { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
//订舱系统操作记录(用于后期计费)2022-1-5弃用
|
|
|
[Table("OP_SEAE_SYS_OPERATE_LOG")]
|
|
|
public class OP_SEAE_SYS_OPERATE_LOG
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string CarrierCode { get; set; }
|
|
|
public string OptType { get; set; }
|
|
|
public string OptCate { get; set; }
|
|
|
public DateTime OptTime { get; set; }
|
|
|
public bool IsAuto { get; set; }
|
|
|
public string OptBy { get; set; }
|
|
|
public string CompId { get; set; }
|
|
|
public string MBLNO { get; set; }
|
|
|
public string RelativeId { get; set; }
|
|
|
public string CtrnNO { get; set; }
|
|
|
}
|
|
|
|
|
|
//订舱号段
|
|
|
[Table("OP_SEAE_ORDER_NUMBER_RANGE")]
|
|
|
public class OP_SEAE_ORDER_NUMBER_RANGE
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string UserId { get; set; }
|
|
|
public string CompId { get; set; }
|
|
|
public string Carrier { get; set; }
|
|
|
public string Prefix { get; set; }
|
|
|
public int SuffixStart { get; set; }
|
|
|
public int SuffixEnd { get; set; }
|
|
|
public int SuffixLen { get; set; }
|
|
|
public int? LastSuffix { get; set; }
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
public string CreateUser { get; set; }
|
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
public string ModifyUser { get; set; }
|
|
|
}
|
|
|
|
|
|
//自动SO
|
|
|
[Table("OP_SEAE_ORDER_AUTO_SO")]
|
|
|
public class OP_SEAE_ORDER_AUTO_SO
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string ORDNO { get; set; }
|
|
|
public DateTime PlanTime { get; set; }
|
|
|
public string InttrFile { get; set; }
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
public string CreateUser { get; set; }
|
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
public string ModifyUser { get; set; }
|
|
|
public string ExecuteStatus { get; set; }
|
|
|
public DateTime? ExecuteTime { get; set; }
|
|
|
public string ExecuteResult { get; set; }
|
|
|
public string FtpParam { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
} |