|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
using System.Data;
|
|
|
using System.Data.Entity;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
using DSWeb.Common.DbContexts.Model;
|
|
|
using HcUtility.Comm;
|
|
|
|
|
|
namespace DSWeb.Common.DB
|
|
|
{
|
|
|
public class EdiDataContext : DbContext
|
|
|
{
|
|
|
public EdiDataContext() : base("DongShengDB")
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
public EdiDataContext(string dbcon) : base(dbcon)
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
|
|
{
|
|
|
modelBuilder.Conventions.Add(new DecimalPrecisionAttributeConvention());
|
|
|
base.OnModelCreating(modelBuilder);
|
|
|
}
|
|
|
|
|
|
public DbSet<OpSeaeEdi> Edis { get; set; }
|
|
|
public DbSet<OpSeaeEdiCtn> EdiCtns { get; set; }
|
|
|
|
|
|
|
|
|
/////////////
|
|
|
///
|
|
|
public DbSet<user_action_md> user_action { get; set; }
|
|
|
|
|
|
public DbSet<OP_SEAE_AMS_md> OP_SEAE_AMS { get; set; }
|
|
|
|
|
|
public DbSet<sys_param_set_md> sys_param_set { get; set; }
|
|
|
|
|
|
public DbSet<Op_SeaCover_md> Op_SeaCover { get; set; }
|
|
|
|
|
|
public DbSet<Cust_Price_md> Cust_Price { get; set; }
|
|
|
public DbSet<Cust_Price_detail_md> Cust_Price_detail { get; set; }
|
|
|
|
|
|
public DbSet<Cust_Balance_md> Cust_Balance { get; set; }
|
|
|
public DbSet<Cust_Fee_md> Cust_Fee { get; set; }
|
|
|
public DbSet<Cust_Fee_Ctn_md> Cust_Fee_Ctn { get; set; }
|
|
|
public DbSet<user_company_md> user_company { get; set; }
|
|
|
public DbSet<OP_SEAE_EDI_TIPS_md> OP_SEAE_EDI_TIPS { get; set; }
|
|
|
|
|
|
public DbSet<OP_SEAE_EDI_FENDANSEND_md> OP_SEAE_EDI_FENDANSEND { get; set; }
|
|
|
|
|
|
public DbSet<COMPANY_md> COMPANY { get; set; }
|
|
|
|
|
|
public DbSet<USER_ACCOUNT_md> USER_ACCOUNT { get; set; }
|
|
|
|
|
|
public DbSet<op_seae_edi_status_md> op_seae_edi_status { get; set; }
|
|
|
|
|
|
public DbSet<WLXX_MBLNO_DELAY_md> WLXX_MBLNO_DELAY { get; set; }
|
|
|
|
|
|
public DbSet<ZDXXModel> op_seae_edi_mainstatus { get; set; }
|
|
|
|
|
|
public DbSet<ZDXXDetailModel> op_seae_edi_mainstatus_xhinfo { get; set; }
|
|
|
|
|
|
public DbSet<UserBaseinfo> UserBases { get; set; }
|
|
|
|
|
|
public DbSet<CodeLoadport> CodeLoadport { get; set; }
|
|
|
|
|
|
public DbSet<code_pkgs_ediMd> code_pkgs_edi { get; set; }
|
|
|
|
|
|
public DbSet<CODE_PACKAGEMd> CODE_PACKAGE { get; set; }
|
|
|
|
|
|
public DbSet<CodeCtn> Code_Ctn { get; set; }
|
|
|
|
|
|
public DbSet<sys_logMd> sys_log { get; set; }
|
|
|
|
|
|
public DbSet<User> Users { get; set; }
|
|
|
public DbSet<CompanyNew> CompanyNew { get; set; }
|
|
|
|
|
|
|
|
|
public DbSet<OP_SEAE_EDI_TEMPLATE> EDI_TEMPLATE { get; set; }
|
|
|
|
|
|
public DbSet<VGM_HEADMd> VGM_HEAD { get; set; }
|
|
|
public static bool VerifyContainerCode(string code)
|
|
|
{
|
|
|
const string cc = "0123456789A?BCDEFGHIJK?LMNOPQRSTU?VWXYZ";
|
|
|
var num = code.ToUpper().ToCharArray().Take(10).Select((c, i) => new
|
|
|
{
|
|
|
idx = (int)(cc.IndexOf(c) * Math.Pow(2, i))
|
|
|
}).Sum(p => p.idx);
|
|
|
return int.Parse(code.Substring(10, 1)) == num % 11 % 10;
|
|
|
}
|
|
|
|
|
|
public static void SaveLog(string Name, string Logtype = "", string Logcontent = "", string CreateUser = "")
|
|
|
{
|
|
|
EdiDataContext edc = new EdiDataContext();
|
|
|
|
|
|
sys_logMd syslog = new sys_logMd(Name, Logtype, Logcontent, CreateUser);
|
|
|
edc.sys_log.Add(syslog);
|
|
|
edc.SaveChanges();
|
|
|
}
|
|
|
|
|
|
|
|
|
//公司参数
|
|
|
public DbSet<CompanyNewParamValue> ParamValues { get; set; }
|
|
|
|
|
|
public DbSet<op_seae_edi_status_qdport> op_seae_edi_status_qdport { get; set; }
|
|
|
|
|
|
public DbSet<op_seae_edi_status_qdportdanchuan> op_seae_edi_status_qdportdanchuan { get; set; }
|
|
|
|
|
|
public DbSet<codevessel> codevessel { get; set; }
|
|
|
|
|
|
//用户直发权限配置
|
|
|
public DbSet<op_seae_edi_direct_send_config> DirectSendConfig { get; set; }
|
|
|
/// <summary>
|
|
|
/// 落货
|
|
|
/// </summary>
|
|
|
public DbSet<MsOpSeaeDropGoodsModel> MsOpSeaeDropGoods { get; set; }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 落货日志
|
|
|
/// </summary>
|
|
|
public DbSet<MsOpSeaeDropGoodsLogModel> MsOpSeaeDropGoodsLog { get; set; }
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Table("op_seae_edi")]
|
|
|
public class OpSeaeEdi
|
|
|
{
|
|
|
[Key]
|
|
|
public string MFNO { get; set; } = "";
|
|
|
public string BSNO { get; set; } = "";
|
|
|
public string MASTERNO { get; set; } = "";
|
|
|
public string EDITYPE { get; set; } = "";
|
|
|
public string EDISTATUS { get; set; } = "";
|
|
|
public string INPUTBY { get; set; } = "";
|
|
|
public DateTime? INPUTDATE { get; set; }
|
|
|
public string CUSTNO { get; set; } = "";
|
|
|
public string MBLNO { get; set; } = "";
|
|
|
public string HBLNO { 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 CONSIGNEECOUNTRY { 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 NOTIFYPARTY2NAME { get; set; } = "";
|
|
|
public string NOTIFYPARTY2ADDR1 { get; set; } = "";
|
|
|
public string NOTIFYPARTY2ADDR2 { get; set; } = "";
|
|
|
public string NOTIFYPARTY2ADDR3 { get; set; } = "";
|
|
|
public string NOTIFYPARTY2CITY { get; set; } = "";
|
|
|
public string NOTIFYPARTY2PROVINCE { get; set; } = "";
|
|
|
public string NOTIFYPARTY2POSTCODE { get; set; } = "";
|
|
|
public string NOTIFYPARTY2COUNTRY { get; set; } = "";
|
|
|
public string NOTIFYPARTY2ATTN { get; set; } = "";
|
|
|
public string NOTIFYPARTY2TEL { get; set; } = "";
|
|
|
public string SHIPPER { get; set; } = "";
|
|
|
public string CONSIGNEE { get; set; } = "";
|
|
|
public string NOTIFYPARTY { get; set; } = "";
|
|
|
public string VESSEL { get; set; } = "";
|
|
|
public string VOYNO { get; set; } = "";
|
|
|
public DateTime? ETD { 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 SERVICE { get; set; } = "";
|
|
|
public string MARKS { get; set; } = "";
|
|
|
public string DESCRIPTION { get; set; } = "";
|
|
|
public int? PKGS { get; set; }
|
|
|
public string KINDPKGS { get; set; } = "";
|
|
|
[DecimalPrecision(18, 3)]
|
|
|
public decimal? KGS { get; set; }
|
|
|
[DecimalPrecision(18, 3)]
|
|
|
public decimal? CBM { get; set; }
|
|
|
public string CARGOID { get; set; } = "";
|
|
|
public string DCLASS { get; set; } = "";
|
|
|
public string DUNNO { get; set; } = "";
|
|
|
public string REEFERF { get; set; } = "";
|
|
|
public string TEMPID { get; set; } = "";
|
|
|
public string TEMPSET { get; set; } = "";
|
|
|
public string TEMPMAX { get; set; } = "";
|
|
|
public string TEMPMIN { get; set; } = "";
|
|
|
public string FREIGHTAGMNO { get; set; } = "";
|
|
|
public string HUMIDITY { get; set; } = "";
|
|
|
public string SHIPIMO { get; set; } = "";
|
|
|
public string CARRIERID { get; set; } = "";
|
|
|
public string ORDERNO { get; set; } = "";
|
|
|
public string FILEROLE { get; set; } = "";
|
|
|
public string PACKINGTYPE { get; set; } = "";
|
|
|
public string SHIPSERVICENO { get; set; } = "";
|
|
|
public string TRANSTYPE { get; set; } = "";
|
|
|
public string FILETYPE { get; set; } = "";
|
|
|
public bool? ISLASTHBL { get; set; }
|
|
|
public DateTime? ETA { get; set; }
|
|
|
public string BLFRT { get; set; } = "";
|
|
|
public string ISSUEPLACE { get; set; } = "";
|
|
|
public string ETDTIME { get; set; } = "";
|
|
|
public string AGENTID { get; set; } = "";
|
|
|
public string CNTRSEALNO { get; set; } = "";
|
|
|
public DateTime? SENDTIME { get; set; }
|
|
|
public string STATUS { get; set; } = "";
|
|
|
public string YARD { get; set; } = "";
|
|
|
public string CHANGERESON { get; set; } = "";
|
|
|
public string FORWARD { get; set; } = "";
|
|
|
public string CARRIER { get; set; } = "";
|
|
|
public string REMARKS { get; set; } = "";
|
|
|
public string CNTRNO { get; set; } = "";
|
|
|
public string CORPID { get; set; } = "";
|
|
|
public int? CTNNUM { get; set; }
|
|
|
public string DPAGE { get; set; } = "";
|
|
|
public string DLABEL { get; set; } = "";
|
|
|
public string LINKMAN { get; set; } = "";
|
|
|
public bool? ISSAMECONSIGNEE { get; set; }
|
|
|
public string FORWARDER { get; set; } = "";
|
|
|
public string DCARRIER { get; set; } = "";
|
|
|
public string ARVESSEL { get; set; } = "";
|
|
|
public string ARVOYNO { get; set; } = "";
|
|
|
public string ARSHIPIMO { get; set; } = "";
|
|
|
public string ARSHIPSERVICENO { get; set; } = "";
|
|
|
public string FIRSTPORTOFCALLID { get; set; } = "";
|
|
|
public string FIRSTPORTOFCALLDATE { get; set; }
|
|
|
public string LASTPORTOFCALLID { get; set; } = "";
|
|
|
public string LASTPORTOFCALLDATE { get; set; }
|
|
|
public string MANIFESTSTATUS { get; set; } = "";
|
|
|
public string PLACERECEIPTID { get; set; } = "";
|
|
|
public string PLACERECEIPT { get; set; } = "";
|
|
|
public string SHIPPERCODE { get; set; } = "";
|
|
|
public string SHIPPEREMAIL { get; set; } = "";
|
|
|
public string CONSIGNEECODE { get; set; } = "";
|
|
|
public string CONSIGNEEEMAIL { get; set; } = "";
|
|
|
public string NOTIFYPARTYCODE { get; set; } = "";
|
|
|
public string NOTIFYPARTYEMAIL { get; set; } = "";
|
|
|
public string LeiXingFa { get; set; } = "";
|
|
|
public string LeiXingShou { get; set; } = "";
|
|
|
public string LeiXingTong { get; set; } = "";
|
|
|
public string DaiMaFa { get; set; } = "";
|
|
|
public string DaiMaShou { get; set; } = "";
|
|
|
public string DaiMaTong { get; set; } = "";
|
|
|
public string CreateUser { get; set; } = "";
|
|
|
public string JiZhuangXiang { get; set; } = "";
|
|
|
public string WeiTuoFaSongFang { get; set; } = "";
|
|
|
public string INPUTBYID { get; set; } = "";
|
|
|
public bool QueRenWanCheng { get; set; }
|
|
|
public string ZhiFaText { get; set; } = "";
|
|
|
public string comname { get; set; } = "";
|
|
|
public string DTEL { get; set; } = "";
|
|
|
public string DATTN { get; set; } = "";
|
|
|
public string DATEL { get; set; } = "";
|
|
|
public bool? ISNOR { get; set; }
|
|
|
public bool? ISdelete { get; set; }
|
|
|
|
|
|
//public static bool is主单(OpSeaeEdi item) {
|
|
|
// if (item.HBLNO == null || item.HBLNO.Trim() == "") {
|
|
|
// return true;
|
|
|
// }return false;
|
|
|
//}
|
|
|
//public static bool is分单(OpSeaeEdi item) {
|
|
|
// return !is主单(item);
|
|
|
//}
|
|
|
}
|
|
|
|
|
|
|
|
|
[Table("op_seae_edi_ctn")]
|
|
|
public class OpSeaeEdiCtn
|
|
|
{
|
|
|
[Key]
|
|
|
public string ctn_id { get; set; }
|
|
|
public string MFNO { get; set; }
|
|
|
public string CTNCODE { get; set; }
|
|
|
public string SIZE { get; set; }
|
|
|
public string CTN { get; set; }
|
|
|
public int CTNNUM { get; set; }
|
|
|
public int TEU { get; set; }
|
|
|
public string CTNALL { get; set; }
|
|
|
public string CNTRNO { get; set; }
|
|
|
public string SEALNO { get; set; }
|
|
|
public int? PKGS { get; set; }
|
|
|
[DecimalPrecision(18, 3)]
|
|
|
public decimal? KGS { get; set; }
|
|
|
[DecimalPrecision(18, 3)]
|
|
|
public decimal? CBM { get; set; }
|
|
|
public string KINDPKGS { get; set; }
|
|
|
public string DESCRIPTION { get; set; }
|
|
|
public string MARKS { get; set; }
|
|
|
public string PO { get; set; }
|
|
|
public string SKU { get; set; }
|
|
|
public string SKUDESCRIP { get; set; }
|
|
|
public string DUNNO { get; set; }
|
|
|
public string HTS { get; set; }
|
|
|
public string CTOFORIGIN { get; set; }
|
|
|
[DecimalPrecision(18, 3)]
|
|
|
public decimal? GOODVALUE { get; set; }
|
|
|
public string CTNOWNER { get; set; }
|
|
|
public string ShiFengRen { get; set; }
|
|
|
public string LeiXingFa { get; set; }
|
|
|
public string LeiXingShou { get; set; }
|
|
|
public string LeiXingTong { get; set; }
|
|
|
public int? ZhongKongBiaoShi { get; set; }
|
|
|
[DecimalPrecision(18, 3)]
|
|
|
public decimal? ChengZhongZhongLiang { get; set; }
|
|
|
public string ChengZhongFangShi { get; set; }
|
|
|
public string ChengZhongShiJian { get; set; }
|
|
|
[DecimalPrecision(18, 3)]
|
|
|
public decimal PIZHONG { get; set; }
|
|
|
public string APICTNID { get; set; }
|
|
|
public DateTime? VGMCLOSETIME { get; set; }
|
|
|
|
|
|
public OpSeaeEdiCtn() { }
|
|
|
|
|
|
public OpSeaeEdiCtn(string MFNO)
|
|
|
{
|
|
|
ctn_id = Guid.NewGuid().ToString();
|
|
|
this.MFNO = MFNO;
|
|
|
this.ShiFengRen = "";
|
|
|
this.LeiXingFa = "";
|
|
|
this.LeiXingShou = "";
|
|
|
this.LeiXingTong = "";
|
|
|
this.PIZHONG = 0;
|
|
|
this.ChengZhongZhongLiang = 0;
|
|
|
}
|
|
|
public void Update(OpSeaeEdiCtn newctn)
|
|
|
{
|
|
|
|
|
|
this.ShiFengRen = newctn.ShiFengRen;
|
|
|
this.LeiXingFa = newctn.LeiXingFa;
|
|
|
this.LeiXingShou = newctn.LeiXingShou;
|
|
|
this.LeiXingTong = newctn.LeiXingTong;
|
|
|
this.PIZHONG = newctn.PIZHONG;
|
|
|
this.ChengZhongZhongLiang = newctn.ChengZhongZhongLiang;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
//20210104 邓羽 舱单直发 改为使用ef模式
|
|
|
|
|
|
[Table("user_action")]
|
|
|
public class user_action_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string ACTIONID { get; set; }
|
|
|
public string USERID { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
[Table("OP_SEAE_AMS")]
|
|
|
public class OP_SEAE_AMS_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string ACTIONID { get; set; }
|
|
|
public string USERID { get; set; }
|
|
|
}
|
|
|
|
|
|
[Table("sys_param_set")]
|
|
|
public class sys_param_set_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string PARAMNAME { get; set; }
|
|
|
public string PARAMDESCRIPTION { get; set; }
|
|
|
public string PARAMVALUE { get; set; }
|
|
|
}
|
|
|
|
|
|
[Table("user_company")]
|
|
|
public class user_company_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string COMPANYID { get; set; }
|
|
|
public string USERID { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
[Table("Op_SeaCover")]
|
|
|
public class Op_SeaCover_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string cid { get; set; }
|
|
|
public string bsno { get; set; }
|
|
|
public string coverTitle { get; set; }
|
|
|
public string coverContext { get; set; }
|
|
|
|
|
|
public string Operator { get; set; }
|
|
|
public DateTime? OpTime { get; set; }
|
|
|
public string ISSYS { get; set; }
|
|
|
|
|
|
public Op_SeaCover_md() { }
|
|
|
|
|
|
public Op_SeaCover_md(string BSNO, string usercode)
|
|
|
{
|
|
|
cid = Guid.NewGuid().ToString();
|
|
|
bsno = BSNO;
|
|
|
coverTitle = "发送舱单";
|
|
|
coverContext = "";
|
|
|
Operator = usercode;
|
|
|
OpTime = DateTime.Now;
|
|
|
ISSYS = "1";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[Table("Cust_Price")]
|
|
|
public class Cust_Price_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public int? BSTYPE { get; set; }
|
|
|
public int? SENDTYPE { get; set; }
|
|
|
public string COMNAME { get; set; }
|
|
|
public decimal? PRICE { get; set; }
|
|
|
public decimal? GiftBalance { get; set; }
|
|
|
public DateTime? UPDATETIME { get; set; }
|
|
|
public decimal? PRICEF { get; set; }
|
|
|
public decimal? PRICEQG { get; set; }
|
|
|
public decimal? PRICEFQG { get; set; }
|
|
|
|
|
|
public Cust_Price_md() { }
|
|
|
}
|
|
|
|
|
|
[Table("Cust_Price_detail")]
|
|
|
public class Cust_Price_detail_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string LINKGID { get; set; }
|
|
|
public string FORWARDER { get; set; }
|
|
|
public decimal? PRICE { get; set; }
|
|
|
public decimal? PRICEF { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Table("Cust_Balance")]
|
|
|
public class Cust_Balance_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string COMNAME { get; set; }
|
|
|
public decimal? Balance { get; set; }
|
|
|
|
|
|
public Cust_Balance_md() { }
|
|
|
}
|
|
|
|
|
|
[Table("Cust_Fee")]
|
|
|
public class Cust_Fee_md
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string BSNO { get; set; }
|
|
|
public decimal? PRICE { get; set; }
|
|
|
public int? BSTYPE { get; set; }
|
|
|
public int? SENDTYPE { get; set; }
|
|
|
public DateTime? SENDTIME { get; set; }
|
|
|
|
|
|
public string MBLNO { get; set; }
|
|
|
public string HBLNO { get; set; }
|
|
|
public string VESSEL { get; set; }
|
|
|
public string VOYNO { get; set; }
|
|
|
public DateTime? ETD { get; set; }
|
|
|
public string CARRIER { get; set; }
|
|
|
public string FORWARDER { get; set; }
|
|
|
public string SENDUSERID { get; set; }
|
|
|
public string LURURENID { get; set; }
|
|
|
public string LURUREN { get; set; }
|
|
|
public string SENDUSER { get; set; }
|
|
|
public string SENDCOM { get; set; }
|
|
|
public string COMNAME { get; set; }
|
|
|
public string COMID { get; set; }
|
|
|
public string CANGKU { get; set; }
|
|
|
public string BSSTATUS { get; set; }
|
|
|
public string PORTDISCHARGE { get; set; }
|
|
|
public string DESTINATION { get; set; }
|
|
|
public string DESCRIPTION { get; set; }
|
|
|
public string MARKS { get; set; }
|
|
|
public decimal PKGS { get; set; }
|
|
|
public string KINDPKGS { get; set; }
|
|
|
public decimal KGS { get; set; }
|
|
|
public decimal CBM { get; set; }
|
|
|
public string BEIZHU { get; set; }
|
|
|
public string BEIZHU2 { get; set; }
|
|
|
public DateTime? CREATETIME { get; set; }
|
|
|
|
|
|
public Cust_Fee_md() { }
|
|
|
|
|
|
public Cust_Fee_md(OpSeaeEdi model, int sendtype, string userid, string showname, string companyid,string loginComname, EdiDataContext edc)
|
|
|
{
|
|
|
//EdiDataContext edc = new EdiDataContext();
|
|
|
|
|
|
|
|
|
GID = Guid.NewGuid().ToString();
|
|
|
BSNO = model.MFNO;
|
|
|
BSTYPE = 0;
|
|
|
SENDTYPE = sendtype;
|
|
|
SENDTIME = DateTime.Now;
|
|
|
MBLNO = model.MBLNO;
|
|
|
HBLNO = model.HBLNO;
|
|
|
VESSEL = model.VESSEL;
|
|
|
VOYNO = model.VOYNO;
|
|
|
ETD = model.ETD;
|
|
|
CARRIER = model.CARRIER;
|
|
|
FORWARDER = model.FORWARDER;
|
|
|
LURURENID = model.INPUTBYID;
|
|
|
LURUREN = model.INPUTBY;
|
|
|
COMID = companyid;
|
|
|
COMNAME = loginComname;
|
|
|
SENDUSERID = userid;
|
|
|
SENDUSER = showname;
|
|
|
SENDCOM = loginComname;
|
|
|
CANGKU = "";
|
|
|
BSSTATUS = model.EDISTATUS;
|
|
|
PRICE = 0;
|
|
|
PORTDISCHARGE = model.PORTDISCHARGE;
|
|
|
DESTINATION = model.DESTINATION;
|
|
|
DESCRIPTION = model.DESCRIPTION;
|
|
|
MARKS = model.MARKS.ToString();
|
|
|
PKGS = (int)model.PKGS;
|
|
|
KINDPKGS = model.KINDPKGS.ToString();
|
|
|
KGS = (decimal)model.KGS;
|
|
|
CBM = (decimal)model.CBM;
|
|
|
CREATETIME = DateTime.Now;
|
|
|
|
|
|
}
|
|
|
|
|
|
public bool isAdd()
|
|
|
{
|
|
|
if (SENDTYPE == 0 || SENDTYPE == 4)
|
|
|
{
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Table("Cust_Fee_Ctn")]
|
|
|
public class Cust_Fee_Ctn_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string FeeID { get; set; }
|
|
|
public string XiangXing { get; set; }
|
|
|
public string XiangHao { get; set; }
|
|
|
public string FengHao { get; set; }
|
|
|
public decimal? JianShu { get; set; }
|
|
|
public decimal? ZhongLiang { get; set; }
|
|
|
public decimal? ChiMa { get; set; }
|
|
|
public decimal? ChengZhongZhongLiang { get; set; }
|
|
|
public string ChengZhongFangShi { get; set; }
|
|
|
public DateTime? CREATETIME { get; set; }
|
|
|
|
|
|
public Cust_Fee_Ctn_md() { }
|
|
|
|
|
|
public Cust_Fee_Ctn_md(OpSeaeEdiCtn ctn, string FeeID)
|
|
|
{
|
|
|
|
|
|
this.FeeID = FeeID;
|
|
|
XiangXing = ctn.CTNALL;
|
|
|
XiangHao = ctn.CNTRNO;
|
|
|
FengHao = ctn.SEALNO;
|
|
|
JianShu = ctn.PKGS;
|
|
|
ZhongLiang = (decimal)ctn.KGS;
|
|
|
ChiMa = (decimal)ctn.CBM;
|
|
|
ChengZhongZhongLiang = ctn.ChengZhongZhongLiang;
|
|
|
ChengZhongFangShi = ctn.ChengZhongFangShi;
|
|
|
CREATETIME = DateTime.Now;
|
|
|
GID = Guid.NewGuid().ToString();
|
|
|
|
|
|
//ctn.FeeID = model.GID;
|
|
|
//ctn.XiangXing = item.CTNALL;
|
|
|
//ctn.XiangHao = item.CNTRNO;
|
|
|
//ctn.FengHao = item.SEALNO;
|
|
|
//ctn.JianShu = item.PKGS;
|
|
|
//ctn.ZhongLiang = (decimal)item.KGS;
|
|
|
//ctn.ChiMa = (decimal)item.CBM;
|
|
|
//ctn.ChengZhongZhongLiang = item.ChengZhongZhongLiang;
|
|
|
//ctn.ChengZhongFangShi = item.ChengZhongFangShi;
|
|
|
//ctn.CREATETIME = DateTime.Now;
|
|
|
//ctn.GID = Guid.NewGuid().ToString();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
[Table("OP_SEAE_EDI_TIPS")]
|
|
|
public class OP_SEAE_EDI_TIPS_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string MFNO { get; set; }
|
|
|
public DateTime? TIPSTIME { get; set; }
|
|
|
public string TIPS { get; set; }
|
|
|
public DateTime? CREATETIME { get; set; }
|
|
|
public string MBLNO { get; set; }
|
|
|
public string HBLNO { get; set; }
|
|
|
public string OPERATOR { get; set; }
|
|
|
public string OPTYPE { get; set; }
|
|
|
public string FORWARDER { get; set; }
|
|
|
|
|
|
public OP_SEAE_EDI_TIPS_md() { }
|
|
|
|
|
|
public OP_SEAE_EDI_TIPS_md(OpSeaeEdi head)
|
|
|
{
|
|
|
GID = Guid.NewGuid().ToString();
|
|
|
MFNO = head.MFNO;
|
|
|
TIPSTIME = DateTime.Now;
|
|
|
CREATETIME = DateTime.Now;
|
|
|
MBLNO = head.MBLNO;
|
|
|
HBLNO = head.HBLNO;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public class MFNOPrice
|
|
|
{
|
|
|
public string MFNO { get; set; }
|
|
|
public decimal PRICE { get; set; }
|
|
|
}
|
|
|
|
|
|
[Table("OP_SEAE_EDI_FENDANSEND")]
|
|
|
public class OP_SEAE_EDI_FENDANSEND_md
|
|
|
{
|
|
|
[Key]
|
|
|
public int ID { get; set; }
|
|
|
public string DCARRIER { get; set; }
|
|
|
public string TYPE { get; set; }
|
|
|
public string MARKS { get; set; }
|
|
|
public string USERID { get; set; }
|
|
|
public string USERCODE { get; set; }
|
|
|
public string SHOWNAME { get; set; }
|
|
|
public string COMPANYID { get; set; }
|
|
|
public string COMPANYNAME { get; set; }
|
|
|
public string MBLNO { get; set; }
|
|
|
public bool CANSEND { get; set; }
|
|
|
public string FILENAME { get; set; }
|
|
|
public string SENDCODE { get; set; }
|
|
|
|
|
|
public string BSNO { get; set; }
|
|
|
public OP_SEAE_EDI_FENDANSEND_md() { }
|
|
|
|
|
|
public static OP_SEAE_EDI_FENDANSEND_md getNew(string DCARRIER, string TYPE, string MARKS, string USERID, string USERCODE, string SHOWNAME, string COMPANYID, string COMPANYNAME, string MBLNO, string BSNO, string FILENAME, string SENDCODE)
|
|
|
{
|
|
|
var result = new OP_SEAE_EDI_FENDANSEND_md();
|
|
|
|
|
|
result.DCARRIER = DCARRIER;
|
|
|
result.TYPE = TYPE;
|
|
|
result.MARKS = MARKS;
|
|
|
result.USERID = USERID;
|
|
|
result.USERCODE = USERCODE;
|
|
|
result.SHOWNAME = SHOWNAME;
|
|
|
result.COMPANYID = COMPANYID;
|
|
|
result.COMPANYNAME = COMPANYNAME;
|
|
|
result.MBLNO = MBLNO;
|
|
|
result.CANSEND = false;
|
|
|
result.FILENAME = FILENAME;
|
|
|
result.SENDCODE = SENDCODE;
|
|
|
result.BSNO = BSNO;
|
|
|
return result;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
[Table("COMPANY")]
|
|
|
public class COMPANY_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
|
|
|
public string NAME { get; set; }
|
|
|
public string FULLNAME { get; set; }
|
|
|
}
|
|
|
|
|
|
public class Result_md
|
|
|
{
|
|
|
public bool Success { get; set; }
|
|
|
public string Message { get; set; }
|
|
|
public object Data { get; set; }
|
|
|
|
|
|
public Result_md() { }
|
|
|
|
|
|
public Result_md(bool success, string message)
|
|
|
{
|
|
|
Success = success;
|
|
|
Message = message;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
[Table("USER_ACCOUNT")]
|
|
|
public class USER_ACCOUNT_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string gid { get; set; }
|
|
|
public string userid { get; set; }
|
|
|
public string ZHUserName { get; set; }
|
|
|
public string ZHPassword { get; set; }
|
|
|
public string WYUserName { get; set; }
|
|
|
public string WYPassword { get; set; }
|
|
|
public string ZCUserName { get; set; }
|
|
|
public string ZCPassword { get; set; }
|
|
|
public string ZYUserName { get; set; }
|
|
|
public string ZYPassword { get; set; }
|
|
|
public string DZKAUserName { get; set; }
|
|
|
public string DZKAPassword { get; set; }
|
|
|
public string ZHUAUserName { get; set; }
|
|
|
public string ZHUAPassword { get; set; }
|
|
|
public string DSPORTUserName { get; set; }
|
|
|
public string DSPORTPassword { get; set; }
|
|
|
|
|
|
public string LDUserName { get; set; }
|
|
|
public string LDPassword { get; set; }
|
|
|
|
|
|
public string C1_UserName { get; set; }
|
|
|
public string C1_Password { get; set; }
|
|
|
public string C2_UserName { get; set; }
|
|
|
public string C2_Password { get; set; }
|
|
|
public string C3_UserName { get; set; }
|
|
|
public string C3_Password { get; set; }
|
|
|
public string C4_UserName { get; set; }
|
|
|
public string C4_Password { get; set; }
|
|
|
public string C5_UserName { get; set; }
|
|
|
public string C5_Password { get; set; }
|
|
|
public string C6_UserName { get; set; }
|
|
|
public string C6_Password { get; set; }
|
|
|
public string C7_UserName { get; set; }
|
|
|
public string C7_Password { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
[Table("op_seae_edi_status")]
|
|
|
public class op_seae_edi_status_md
|
|
|
{
|
|
|
[Key]
|
|
|
public string gid { get; set; }
|
|
|
public string mfno { get; set; }
|
|
|
public string mblno { get; set; }
|
|
|
public string statustext { get; set; }
|
|
|
public DateTime statustime { get; set; }
|
|
|
public DateTime createtime { get; set; }
|
|
|
public decimal ShenBaoXiangShu { get; set; }
|
|
|
public string status_detai { get; set; }
|
|
|
|
|
|
public op_seae_edi_status_md()
|
|
|
{
|
|
|
gid = Guid.NewGuid().ToString();
|
|
|
createtime = DateTime.Now;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class RepWLXXModel
|
|
|
{
|
|
|
public int code { get; set; }
|
|
|
public List<WLXXModel> data { get; set; }
|
|
|
|
|
|
public string msg { get; set; }
|
|
|
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 舱单状态 物流信息网
|
|
|
/// </summary>
|
|
|
public class WLXXModel
|
|
|
{
|
|
|
public string HuoWuZhuangTai { get; set; }
|
|
|
public string JianShu { get; set; }
|
|
|
public string ShenBaoXiangShu { get; set; }
|
|
|
public string ZhongLiang { get; set; }
|
|
|
public string YuPeiShiJian { get; set; } //预配时间
|
|
|
public string YuPeiJieGuo { get; set; }
|
|
|
public string YunDiShiJian { get; set; } //运抵时间
|
|
|
public string YunDiJieGuo { get; set; }
|
|
|
public string FangXingShiJian { get; set; } //放行时间
|
|
|
public string FangXingZhuangTai { get; set; }
|
|
|
public string ZhuangZaiShiJian { get; set; } //装载时间
|
|
|
public string ZhuangZaiJieGuo { get; set; }
|
|
|
|
|
|
public class cdstatus
|
|
|
{
|
|
|
public DateTime time { get; set; }
|
|
|
public string status { get; set; }
|
|
|
|
|
|
public bool insert { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool havetime { get; set; }
|
|
|
|
|
|
public string timestr
|
|
|
{
|
|
|
get
|
|
|
{
|
|
|
if (time.ToString("yyyy-MM-dd") == "1900-01-01") return "";
|
|
|
return time.ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public cdstatus(string status, string date)
|
|
|
{
|
|
|
this.status = status;
|
|
|
if (string.IsNullOrWhiteSpace(date)) havetime = false;
|
|
|
else havetime = true;
|
|
|
settime(date);
|
|
|
}
|
|
|
|
|
|
public void settime(string date)
|
|
|
{
|
|
|
time = gettime(date);
|
|
|
}
|
|
|
|
|
|
|
|
|
public bool needinsert()
|
|
|
{
|
|
|
return insert;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
public string getlaststatus_str_D6(string ISMAIN)
|
|
|
{
|
|
|
var last = getlaststatus_D6(ISMAIN);
|
|
|
|
|
|
return last.status;
|
|
|
}
|
|
|
|
|
|
public string getlaststatus_time(string ISMAIN)
|
|
|
{
|
|
|
var last = getlaststatus_D6(ISMAIN);
|
|
|
if (last.time.ToString("yyyy-MM-dd") == "1900-01-01") return "";
|
|
|
return last.time.ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
}
|
|
|
|
|
|
public List<cdstatus> getstatusList()
|
|
|
{
|
|
|
List<cdstatus> cdlist = new List<cdstatus>();
|
|
|
|
|
|
cdstatus yupei = new cdstatus(YuPeiJieGuo, YuPeiShiJian);
|
|
|
cdstatus yundi = new cdstatus(YunDiJieGuo, YunDiShiJian);
|
|
|
cdstatus zhuangzai = new cdstatus(ZhuangZaiJieGuo, ZhuangZaiShiJian);
|
|
|
cdstatus fangxing = new cdstatus(FangXingZhuangTai, FangXingShiJian);
|
|
|
|
|
|
if (yupei.status == "接受申报")
|
|
|
{
|
|
|
yupei.status = "接受申报";
|
|
|
yupei.insert = true;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
yupei.status = "接受申报";
|
|
|
yupei.insert = false;
|
|
|
}
|
|
|
cdlist.Add(yupei);
|
|
|
|
|
|
if (yundi.status == "接受申报_运抵正常")
|
|
|
{
|
|
|
yundi.status = "运抵正常";
|
|
|
yundi.insert = true;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
yundi.status = "运抵正常";
|
|
|
yundi.insert = false;
|
|
|
}
|
|
|
cdlist.Add(yundi);
|
|
|
|
|
|
if (zhuangzai.status == "接受申报_同意装载" && zhuangzai.havetime)
|
|
|
{
|
|
|
zhuangzai.status = "装载放行";
|
|
|
zhuangzai.insert = true;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
zhuangzai.status = "装载放行";
|
|
|
zhuangzai.insert = false;
|
|
|
}
|
|
|
cdlist.Add(zhuangzai);
|
|
|
|
|
|
if (fangxing.status == "已放行" && zhuangzai.havetime)
|
|
|
{
|
|
|
fangxing.status = "报关单放行";
|
|
|
fangxing.insert = true;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
fangxing.status = "报关单放行异常";
|
|
|
fangxing.insert = false;
|
|
|
}
|
|
|
cdlist.Add(fangxing);
|
|
|
|
|
|
return cdlist;
|
|
|
}
|
|
|
|
|
|
public List<cdstatus> getstatusList_D6()
|
|
|
{
|
|
|
List<cdstatus> cdlist = new List<cdstatus>();
|
|
|
|
|
|
cdstatus yupei = new cdstatus(YuPeiJieGuo, YuPeiShiJian);
|
|
|
cdstatus yundi = new cdstatus(YunDiJieGuo, YunDiShiJian);
|
|
|
cdstatus zhuangzai = new cdstatus(ZhuangZaiJieGuo, ZhuangZaiShiJian);
|
|
|
cdstatus fangxing = new cdstatus(FangXingZhuangTai, FangXingShiJian);
|
|
|
|
|
|
if (yupei.status == "接受申报")
|
|
|
{
|
|
|
yupei.status = "接受申报";
|
|
|
yupei.insert = true;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
yupei.status = "接受申报";
|
|
|
yupei.insert = false;
|
|
|
}
|
|
|
cdlist.Add(yupei);
|
|
|
|
|
|
//if (yundi.status == "接受申报_运抵正常")
|
|
|
//{
|
|
|
// yundi.status = "运抵正常";
|
|
|
// yundi.insert = true;
|
|
|
//}
|
|
|
//else
|
|
|
//{
|
|
|
// yundi.status = "运抵正常";
|
|
|
// yundi.insert = false;
|
|
|
//}
|
|
|
//cdlist.Add(yundi);
|
|
|
|
|
|
//if (zhuangzai.status == "接受申报_同意装载" && zhuangzai.havetime)
|
|
|
//{
|
|
|
// zhuangzai.status = "装载放行";
|
|
|
// zhuangzai.insert = true;
|
|
|
//}
|
|
|
//else
|
|
|
//{
|
|
|
// zhuangzai.status = "装载放行";
|
|
|
// zhuangzai.insert = false;
|
|
|
//}
|
|
|
//cdlist.Add(zhuangzai);
|
|
|
|
|
|
//if (fangxing.status == "已放行" && zhuangzai.havetime)
|
|
|
//{
|
|
|
// fangxing.status = "报关单放行";
|
|
|
// fangxing.insert = true;
|
|
|
//}
|
|
|
//else
|
|
|
//{
|
|
|
// fangxing.status = "报关单放行";
|
|
|
// fangxing.insert = false;
|
|
|
//}
|
|
|
//cdlist.Add(fangxing);
|
|
|
|
|
|
return cdlist;
|
|
|
}
|
|
|
|
|
|
public cdstatus getlaststatus_D6(string ISMAIN)
|
|
|
{
|
|
|
//List<cdstatus> cdlist = new List<cdstatus>();
|
|
|
|
|
|
//cdstatus yupei = new cdstatus(YuPeiJieGuo, YuPeiShiJian);
|
|
|
//cdstatus yundi = new cdstatus(YunDiJieGuo, YunDiShiJian);
|
|
|
//cdstatus zhuangzai = new cdstatus(ZhuangZaiJieGuo, ZhuangZaiShiJian);
|
|
|
//cdstatus fangxing = new cdstatus(FangXingZhuangTai, FangXingShiJian);
|
|
|
|
|
|
List<cdstatus> cdlist = getstatusList_D6();
|
|
|
|
|
|
//cdlist.Add(yupei);
|
|
|
//cdlist.Add(yundi);
|
|
|
//cdlist.Add(zhuangzai);
|
|
|
//cdlist.Add(fangxing);
|
|
|
|
|
|
//找到时间最晚的内容
|
|
|
//var last = cdlist.OrderByDescending(t => t.time).FirstOrDefault();
|
|
|
|
|
|
//return last;
|
|
|
var result = new cdstatus("", "1900-01-01");
|
|
|
foreach (var item in cdlist)
|
|
|
{
|
|
|
if (item.time > result.time && item.insert)
|
|
|
{
|
|
|
if (ISMAIN == "0")
|
|
|
{
|
|
|
if (item.status == "装载放行") continue;
|
|
|
}
|
|
|
result.status = item.status;
|
|
|
result.insert = item.insert;
|
|
|
result.settime(item.timestr);
|
|
|
}
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
private static DateTime gettime(string timestr)
|
|
|
{
|
|
|
if (string.IsNullOrWhiteSpace(timestr))
|
|
|
{
|
|
|
return Convert.ToDateTime("1900-01-01");
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
return Convert.ToDateTime(timestr);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public void SaveStatus(string MFNO, string MBLNO)
|
|
|
{
|
|
|
|
|
|
EdiDataContext edc_do = new EdiDataContext();
|
|
|
|
|
|
var PortStatusList = getstatusList();
|
|
|
|
|
|
if (PortStatusList.Count > 0)
|
|
|
{
|
|
|
foreach (var newstatus in PortStatusList)
|
|
|
{
|
|
|
//var upd = false;
|
|
|
//if (Localstatuslist.Count > 0)
|
|
|
|
|
|
var upditem = edc_do.op_seae_edi_status.FirstOrDefault(x => x.mfno == MFNO && (x.statustext == newstatus.status ||
|
|
|
x.statustext.Contains("报关单") && newstatus.status.Contains("报关单")
|
|
|
));
|
|
|
|
|
|
if (upditem != null)
|
|
|
{
|
|
|
|
|
|
upditem.statustime = Convert.ToDateTime(newstatus.timestr);
|
|
|
//newStatusRecord.SetValue("statustime", newstatus.timestr);
|
|
|
upditem.ShenBaoXiangShu = Convert.ToDecimal(ShenBaoXiangShu);
|
|
|
|
|
|
edc_do.SaveChanges();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
if (newstatus.needinsert())
|
|
|
{
|
|
|
//循环完了没找到同状态 则新增一条
|
|
|
//newStatusRecord.SetValue("gid", Guid.NewGuid().ToString());
|
|
|
|
|
|
var newStatusRecord = new op_seae_edi_status_md();
|
|
|
|
|
|
newStatusRecord.mfno = MFNO;
|
|
|
if (!string.IsNullOrWhiteSpace(newstatus.timestr))
|
|
|
newStatusRecord.statustime = Convert.ToDateTime(newstatus.timestr);
|
|
|
newStatusRecord.statustext = newstatus.status;
|
|
|
newStatusRecord.ShenBaoXiangShu = Convert.ToDecimal(ShenBaoXiangShu);
|
|
|
|
|
|
newStatusRecord.mblno = MBLNO;
|
|
|
edc_do.op_seae_edi_status.Add(newStatusRecord);
|
|
|
edc_do.SaveChanges();
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 对于临时插队的主单信息
|
|
|
/// 如果状态文字包含 接受申报 放行
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
public bool 临时读取完成()
|
|
|
{
|
|
|
var statuslist = getstatusList();
|
|
|
|
|
|
foreach (var item in statuslist)
|
|
|
{
|
|
|
if (读取完成(item.status))
|
|
|
{
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
private bool 读取完成(string status)
|
|
|
{
|
|
|
if (status.IndexOf("接受申报") >= 0) return true;
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
public bool 已放行()
|
|
|
{
|
|
|
if (FangXingZhuangTai == "已放行") return true;
|
|
|
return false;
|
|
|
}
|
|
|
public bool 报关单放行晚于接受申报()
|
|
|
{
|
|
|
var statuslist = getstatusList();
|
|
|
|
|
|
if (已放行() && gettime(FangXingShiJian) > gettime(YuPeiShiJian))
|
|
|
{
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class RepZDXXfalseModel
|
|
|
{
|
|
|
public string status { get; set; }
|
|
|
public string message { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
[Table("op_seae_edi_mainstatus")]
|
|
|
public class ZDXXModel
|
|
|
{
|
|
|
[Key]
|
|
|
public Guid gid { get; set; }
|
|
|
public string mfno { get; set; }
|
|
|
public string mblno { get; set; }
|
|
|
public string voyage_number { get; set; }
|
|
|
public string means_transport { get; set; }
|
|
|
public string customs_code { get; set; }
|
|
|
public string IMO { get; set; }
|
|
|
public decimal? PKGS { get; set; }
|
|
|
public decimal? KGS { get; set; }
|
|
|
public string DELMARK { get; set; }
|
|
|
|
|
|
public string SEALNO
|
|
|
{
|
|
|
set
|
|
|
{
|
|
|
|
|
|
}
|
|
|
}
|
|
|
public ZDXXModel()
|
|
|
{
|
|
|
gid = Guid.NewGuid();
|
|
|
}
|
|
|
|
|
|
public ZDXXModel(StatusZDXXModel zddata)
|
|
|
{
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
[Table("op_seae_edi_mainstatus_xhinfo")]
|
|
|
public class ZDXXDetailModel
|
|
|
{
|
|
|
[Key]
|
|
|
public Guid gid { get; set; }
|
|
|
public string mfno { get; set; }
|
|
|
public string mblno { get; set; }
|
|
|
public string xh { get; set; }
|
|
|
public string xx { get; set; }
|
|
|
public string Identification { get; set; }
|
|
|
|
|
|
public string ShiFengRen { get; set; }
|
|
|
|
|
|
public string SEALNO { get; set; }
|
|
|
public ZDXXDetailModel()
|
|
|
{
|
|
|
gid = Guid.NewGuid();
|
|
|
}
|
|
|
|
|
|
public string getZKBS()
|
|
|
{
|
|
|
if (Identification == "重箱") return "5";
|
|
|
if (Identification == "整箱") return "8";
|
|
|
return "";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public class ZDXXModel_jiekou
|
|
|
{
|
|
|
public string status { get; set; }
|
|
|
public ZDXXModel_jiekou_rtn message { get; set; }
|
|
|
}
|
|
|
public class ZDXXModel_jiekou_rtn
|
|
|
{
|
|
|
public string voyage_number { get; set; }
|
|
|
public string means_transport { get; set; }
|
|
|
public string customs_code { get; set; }
|
|
|
public string IMO { get; set; }
|
|
|
public decimal? goods_num { get; set; }
|
|
|
public decimal? goods_weight { get; set; }
|
|
|
public string delete_flag { get; set; }
|
|
|
public List<ZDXXDetailModel_jiekou> xh_info { get; set; }
|
|
|
|
|
|
public ZDXXModel gethead(string mfno, string mblno)
|
|
|
{
|
|
|
var result = new ZDXXModel();
|
|
|
|
|
|
result.mfno = mfno;
|
|
|
result.mblno = mblno;
|
|
|
result.voyage_number = voyage_number;
|
|
|
result.means_transport = means_transport;
|
|
|
result.customs_code = customs_code;
|
|
|
result.IMO = IMO;
|
|
|
result.PKGS = goods_num;
|
|
|
result.KGS = goods_weight;
|
|
|
result.DELMARK = delete_flag;
|
|
|
return result;
|
|
|
}
|
|
|
public List<ZDXXDetailModel> getbody(string mfno, string mblno)
|
|
|
{
|
|
|
var result = new List<ZDXXDetailModel>();
|
|
|
|
|
|
foreach (var item in xh_info)
|
|
|
{
|
|
|
var detail = new ZDXXDetailModel();
|
|
|
detail.mfno = mfno;
|
|
|
detail.mblno = mblno;
|
|
|
detail.xh = item.xh;
|
|
|
detail.xx = item.xx;
|
|
|
detail.Identification = item.Identification;
|
|
|
detail.ShiFengRen = item.ShiFengRen;
|
|
|
detail.SEALNO = item.QianFengHao;
|
|
|
result.Add(detail);
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public class ZDXXDetailModel_jiekou
|
|
|
{
|
|
|
public string xh { get; set; }
|
|
|
public string xx { get; set; }
|
|
|
public string Identification { get; set; }
|
|
|
public string ShiFengRen { get; set; }
|
|
|
public string QianFengHao { get; set; }
|
|
|
|
|
|
public string SEALNO
|
|
|
{
|
|
|
get { return QianFengHao; }
|
|
|
set
|
|
|
{
|
|
|
QianFengHao = value;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public class StatusZDXX_HeadModel
|
|
|
{
|
|
|
public string status { get; set; }
|
|
|
public StatusZDXXModel message { get; set; }
|
|
|
|
|
|
}
|
|
|
public class StatusZDXX_ErrorModel
|
|
|
{
|
|
|
public string status { get; set; }
|
|
|
public string message { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
public class StatusZDXXModel : WLXXModel
|
|
|
{
|
|
|
public string voyage_number { get; set; }
|
|
|
public string means_transport { get; set; }
|
|
|
public string customs_code { get; set; }
|
|
|
|
|
|
public string IMO { get; set; }
|
|
|
|
|
|
public decimal? goods_num { get; set; }
|
|
|
public decimal? goods_weight { get; set; }
|
|
|
public string delete_flag { get; set; }
|
|
|
|
|
|
public decimal? PKGS
|
|
|
{
|
|
|
get { return goods_num; }
|
|
|
set
|
|
|
{
|
|
|
goods_num = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public decimal? KGS
|
|
|
{
|
|
|
get { return goods_weight; }
|
|
|
set
|
|
|
{
|
|
|
goods_weight = value;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public List<ZDXXDetailModel_jiekou> xh_info { get; set; }
|
|
|
|
|
|
public ZDXXModel gethead(string mfno, string mblno)
|
|
|
{
|
|
|
var result = new ZDXXModel();
|
|
|
|
|
|
result.mfno = mfno;
|
|
|
result.mblno = mblno;
|
|
|
result.voyage_number = voyage_number;
|
|
|
result.means_transport = means_transport;
|
|
|
result.customs_code = customs_code;
|
|
|
result.IMO = IMO;
|
|
|
result.PKGS = goods_num;
|
|
|
result.KGS = goods_weight;
|
|
|
result.DELMARK = delete_flag;
|
|
|
return result;
|
|
|
}
|
|
|
public List<ZDXXDetailModel> getbody(string mfno, string mblno)
|
|
|
{
|
|
|
var result = new List<ZDXXDetailModel>();
|
|
|
|
|
|
foreach (var item in xh_info)
|
|
|
{
|
|
|
var detail = new ZDXXDetailModel();
|
|
|
detail.mfno = mfno;
|
|
|
detail.mblno = mblno;
|
|
|
detail.xh = item.xh;
|
|
|
detail.xx = item.xx;
|
|
|
detail.Identification = item.Identification;
|
|
|
detail.ShiFengRen = item.ShiFengRen;
|
|
|
detail.SEALNO = item.QianFengHao;
|
|
|
result.Add(detail);
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 用于记录延时读取状态的
|
|
|
/// </summary>
|
|
|
[Table("WLXX_MBLNO_DELAY")]
|
|
|
public class WLXX_MBLNO_DELAY_md
|
|
|
{
|
|
|
[Key]
|
|
|
public int id { get; set; }
|
|
|
public string MBLNO { get; set; }
|
|
|
public string MFNO { get; set; }
|
|
|
public string SHOWNAME { get; set; }
|
|
|
public DateTime ENDTIME { get; set; }
|
|
|
public DateTime READTIME { get; set; }
|
|
|
|
|
|
public string USERID { get; set; }
|
|
|
|
|
|
public bool NEEDREAD { get; set; }
|
|
|
|
|
|
public WLXX_MBLNO_DELAY_md() { }
|
|
|
|
|
|
public WLXX_MBLNO_DELAY_md(OpSeaeEdi bill, string showname, string userid, int DelayMinutes)
|
|
|
{
|
|
|
MBLNO = bill.MBLNO;
|
|
|
MFNO = bill.MFNO;
|
|
|
SHOWNAME = showname;
|
|
|
USERID = userid;
|
|
|
READTIME = DateTime.Now.AddMinutes(DelayMinutes);
|
|
|
ENDTIME = READTIME.AddMinutes(20);
|
|
|
NEEDREAD = true;
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 返回是否超时
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
public bool isOutoftime()
|
|
|
{
|
|
|
if (READTIME > ENDTIME || DateTime.Now > ENDTIME) return true;
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
public void DelayNextTime(EdiDataContext edc, int delaytime)
|
|
|
{
|
|
|
//如果READTIME早于当前时间 正常延迟
|
|
|
if (READTIME <= System.DateTime.Now)
|
|
|
{
|
|
|
NEEDREAD = true;
|
|
|
READTIME = READTIME.AddMinutes(delaytime);
|
|
|
edc.SaveChanges();
|
|
|
}
|
|
|
else
|
|
|
|
|
|
//如果readtime晚于当前时间 ,但是delaytime/2以内的,readtime同时从当前时间延迟delaytime*1.5分钟
|
|
|
//这是为了防止“此次读取已经晚了,下次读取照常的话两次读取时间就会过于接近”这个问题
|
|
|
if (READTIME <= System.DateTime.Now.AddMinutes(delaytime / 2))
|
|
|
{
|
|
|
|
|
|
//TimeSpan ts = ENDTIME.Subtract(READTIME).Duration();
|
|
|
NEEDREAD = true;
|
|
|
READTIME = System.DateTime.Now.AddMinutes(delaytime * 1.5);
|
|
|
|
|
|
//ENDTIME = READTIME.AddSeconds(ts.TotalSeconds);
|
|
|
edc.SaveChanges();
|
|
|
}
|
|
|
//如果readtime晚于当前时间 ,而且是三分钟以外的,不做操作。
|
|
|
//edc.SaveChanges();
|
|
|
}
|
|
|
|
|
|
public void DelayNextTime_Success(EdiDataContext edc, int delaytime)
|
|
|
{
|
|
|
NEEDREAD = true;
|
|
|
READTIME = System.DateTime.Now;
|
|
|
ENDTIME = READTIME.AddMinutes(20);
|
|
|
edc.SaveChanges();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public enum EdiSendStatus { Sending, Success, Fail, Overtime, Unusual, Export, ISdelete };
|
|
|
|
|
|
public static class EdiSendStatusName
|
|
|
{
|
|
|
public static string Getname(EdiSendStatus ediSendStatus)
|
|
|
{
|
|
|
if (ediSendStatus == EdiSendStatus.Sending) return "发送中";
|
|
|
if (ediSendStatus == EdiSendStatus.Success) return "已直发";
|
|
|
if (ediSendStatus == EdiSendStatus.Fail) return "发送失败";
|
|
|
if (ediSendStatus == EdiSendStatus.Overtime) return "发送超时";
|
|
|
if (ediSendStatus == EdiSendStatus.Unusual) return "发送异常";
|
|
|
if (ediSendStatus == EdiSendStatus.Export) return "已导出";
|
|
|
if (ediSendStatus == EdiSendStatus.ISdelete) return "已作废";
|
|
|
return "";
|
|
|
}
|
|
|
public static string Gettypename(string type)
|
|
|
{
|
|
|
if (type == "新增") return "直发";
|
|
|
if (type == "修改") return "修改";
|
|
|
if (type == "删除") return "删除";
|
|
|
return type;
|
|
|
}
|
|
|
|
|
|
//public static int getFilerole(string type) {
|
|
|
// if (type == "新增") return 9;
|
|
|
|
|
|
// return 5
|
|
|
//}
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 特殊包装代码
|
|
|
/// </summary>
|
|
|
[Table("code_pkgs_edi")]
|
|
|
public class code_pkgs_ediMd
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string PKGS { get; set; }
|
|
|
public string EDICODE { get; set; }
|
|
|
public string EDINAME { get; set; }
|
|
|
public string REMARK { get; set; }
|
|
|
public string CREATEUSER { get; set; }
|
|
|
public DateTime? CREATETIME { get; set; }
|
|
|
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 一般包装代码
|
|
|
/// </summary>
|
|
|
[Table("CODE_PACKAGE")]
|
|
|
public class CODE_PACKAGEMd
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string PKGS { get; set; }
|
|
|
public string CEXPLAIN { get; set; }
|
|
|
public string EDICODE { get; set; }
|
|
|
public string AFRCODE { get; set; }
|
|
|
public string cosco { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 一般包装代码
|
|
|
/// </summary>
|
|
|
[Table("sys_log")]
|
|
|
public class sys_logMd
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
public string NAME { get; set; }
|
|
|
public string LOGTYPE { get; set; }
|
|
|
public DateTime? LOGTIME { get; set; }
|
|
|
public string LOGCONTENT { get; set; }
|
|
|
public string CREATEUSER { get; set; }
|
|
|
|
|
|
public sys_logMd()
|
|
|
{
|
|
|
GID = Guid.NewGuid().ToString();
|
|
|
LOGTIME = DateTime.Now;
|
|
|
|
|
|
}
|
|
|
|
|
|
public sys_logMd(string Name, string Logtype = "", string Logcontent = "", string CreateUser = "")
|
|
|
{
|
|
|
GID = Guid.NewGuid().ToString();
|
|
|
LOGTIME = DateTime.Now;
|
|
|
NAME = Name;
|
|
|
LOGTYPE = Logtype;
|
|
|
LOGCONTENT = Logcontent;
|
|
|
CREATEUSER = CreateUser;
|
|
|
}
|
|
|
}
|
|
|
/*
|
|
|
public class cangdandataDataContext : DbContext
|
|
|
{
|
|
|
public cangdandataDataContext() : base("cangdandata")
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 特殊包装代码
|
|
|
/// </summary>
|
|
|
[Table("t_code_package")]
|
|
|
public class t_code_packageMd
|
|
|
{
|
|
|
[Key]
|
|
|
public string 代码 { get; set; }
|
|
|
public string 包装名称 { get; set; }
|
|
|
public string EDI代码 { get; set; }
|
|
|
public string AFR代码 { get; set; }
|
|
|
public string MSC代码 { get; set; }
|
|
|
public string PIL代码 { get; set; }
|
|
|
public string 外运代码 { get; set; }
|
|
|
public string VGM代码 { get; set; }
|
|
|
}
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
[Table("VGM_HEAD")]
|
|
|
public class VGM_HEADMd
|
|
|
{
|
|
|
[Key]
|
|
|
public string GID { get; set; }
|
|
|
|
|
|
public string MFNO { get; set; }
|
|
|
public int? FORWARDSTATUS { get; set; }
|
|
|
public string FORWARDOP { get; set; }
|
|
|
public DateTime? FORWARDTIME { get; set; }
|
|
|
public int? RECEIPTSTATUS { get; set; }
|
|
|
public DateTime? RECEIPTTIME { get; set; }
|
|
|
public DateTime? SENDTIME { get; set; }
|
|
|
public string SENDER { get; set; }
|
|
|
public string SENDCUSTOMER { get; set; }
|
|
|
public string OPTYPE { get; set; }
|
|
|
public string OPREMARK { get; set; }
|
|
|
public string MBLNO { get; set; }
|
|
|
public string CARRIER { get; set; }
|
|
|
public string VESSEL { get; set; }
|
|
|
public string VOYNO { get; set; }
|
|
|
public DateTime? ETD { get; set; }
|
|
|
public string CORPID { get; set; }
|
|
|
public string DEPTGID { get; set; }
|
|
|
//public string TIMEMARK { get; set; }
|
|
|
}
|
|
|
|
|
|
[Table("OP_SEAE_EDI_TEMPLATE")]
|
|
|
public class OP_SEAE_EDI_TEMPLATE
|
|
|
{
|
|
|
[Key]
|
|
|
public string gid { get; set; }
|
|
|
public string TEMPLATENAME { get; set; }
|
|
|
public string COMPANYID { get; set; }
|
|
|
public string USERID { get; set; }
|
|
|
public string TYPE { get; set; }
|
|
|
public string NAME { get; set; }
|
|
|
public string ADDRESS { get; set; }
|
|
|
public string COUNTRY { get; set; }
|
|
|
public string CODETYPE { get; set; }
|
|
|
public string CODE { get; set; }
|
|
|
public string TEL { get; set; }
|
|
|
public DateTime? CreateTime { get; set; }
|
|
|
}
|
|
|
[Table("op_seae_edi_status_qdport")]
|
|
|
public class op_seae_edi_status_qdport
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
public string gid { get; set; }
|
|
|
public string mfno { get; set; }
|
|
|
public string mblno { get; set; }
|
|
|
public string hblno { get; set; }
|
|
|
public string statustext { get; set; }
|
|
|
public DateTime? statustime { get; set; }
|
|
|
public DateTime? createtime { get; set; }
|
|
|
}
|
|
|
[Table("op_seae_edi_status_qdportdanchuan")]
|
|
|
public class op_seae_edi_status_qdportdanchuan
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
|
|
|
public string gid { get; set; }
|
|
|
|
|
|
|
|
|
public string mblno { get; set; }
|
|
|
|
|
|
|
|
|
public string chuanming { get; set; }
|
|
|
|
|
|
|
|
|
public string hangci { get; set; }
|
|
|
|
|
|
|
|
|
public string etatime { get; set; }
|
|
|
|
|
|
|
|
|
public string etdtime { get; set; }
|
|
|
|
|
|
|
|
|
public DateTime? createtime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
[Table("code_vessel")]
|
|
|
public class codevessel
|
|
|
{
|
|
|
[Key]
|
|
|
public string vsid { get; set; }//船名代码
|
|
|
|
|
|
public string vessel { get; set; }//船名
|
|
|
|
|
|
public string cname { get; set; }//中文名称
|
|
|
|
|
|
public string carrier { get; set; }//船公司
|
|
|
|
|
|
public string edicode { get; set; }//EDI船舶呼号
|
|
|
|
|
|
}
|
|
|
|
|
|
[Table("op_seae_edi_direct_send_config")]
|
|
|
public class op_seae_edi_direct_send_config
|
|
|
{
|
|
|
public op_seae_edi_direct_send_config()
|
|
|
{
|
|
|
this.CreateTime = DateTime.Now;
|
|
|
this.IsEnable = true;
|
|
|
}
|
|
|
|
|
|
//
|
|
|
[Key, MaxLength(40)]
|
|
|
public string GID { get; set; }
|
|
|
|
|
|
//
|
|
|
[MaxLength(40)]
|
|
|
public string UserId { get; set; }
|
|
|
|
|
|
//
|
|
|
[MaxLength(40)]
|
|
|
public string UserName { get; set; }
|
|
|
|
|
|
//
|
|
|
[MaxLength(40)]
|
|
|
public string CompId { get; set; }
|
|
|
|
|
|
//
|
|
|
[MaxLength(100)]
|
|
|
public string CompName { get; set; }
|
|
|
|
|
|
//
|
|
|
[MaxLength(40)]
|
|
|
public string ForwarderCode { get; set; }
|
|
|
|
|
|
//
|
|
|
[MaxLength(40)]
|
|
|
public string Forwarder { get; set; }
|
|
|
|
|
|
//添加
|
|
|
public bool IsAdd { get; set; }
|
|
|
|
|
|
//修改
|
|
|
public bool IsModify { get; set; }
|
|
|
|
|
|
//删除
|
|
|
public bool IsDelete { get; set; }
|
|
|
|
|
|
//
|
|
|
public bool IsEnable { get; set; }
|
|
|
|
|
|
//
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
|
|
//
|
|
|
[MaxLength(40)]
|
|
|
public string CreateUser { get; set; }
|
|
|
|
|
|
//
|
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
|
|
//
|
|
|
[MaxLength(40)]
|
|
|
public string ModifyUser { get; set; }
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Table("op_seae_dropgoods")]
|
|
|
public class MsOpSeaeDropGoodsModel
|
|
|
{
|
|
|
[Key]
|
|
|
[MaxLength(50)]
|
|
|
public string GID { get; set; }
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string MBLNO { get; set; }
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string HBLNO { get; set; }
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string VESSEL { get; set; }
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string VOYNO { get; set; }
|
|
|
|
|
|
|
|
|
public int? PKGSTOTAL { get; set; }
|
|
|
|
|
|
|
|
|
public decimal? KGSTOTAL { get; set; }
|
|
|
|
|
|
|
|
|
public decimal? CBMTOTAL { get; set; }
|
|
|
|
|
|
[MaxLength(60)]
|
|
|
public string Forwarder { get; set; }
|
|
|
|
|
|
[MaxLength(16)]
|
|
|
public string Describe { get; set; }
|
|
|
|
|
|
[MaxLength(16)]
|
|
|
public string Reason { get; set; }
|
|
|
|
|
|
[MaxLength(16)]
|
|
|
public string Remark { get; set; }
|
|
|
|
|
|
[MaxLength(20)]
|
|
|
public string State { get; set; }
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string CreateUser { get; set; }
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string CreateUserId { get; set; }
|
|
|
|
|
|
|
|
|
public DateTime? CreateTime { get; set; }
|
|
|
|
|
|
|
|
|
public DateTime? SendTime { get; set; }
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string Company { get; set; }
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string CompanyId { get; set; }
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string UpdatedUserId { get; set; }
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string UpdatedUserName { get; set; }
|
|
|
public DateTime? UpdateTime { get; set; }
|
|
|
public bool? IsDelete { get; set; } = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Table("op_seae_dropgoods_log")]
|
|
|
public class MsOpSeaeDropGoodsLogModel
|
|
|
{
|
|
|
[Key]
|
|
|
[MaxLength(50)]
|
|
|
public string GID { get; set; }
|
|
|
[MaxLength(50)]
|
|
|
public string PID { get; set; }
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string STATE { get; set; }
|
|
|
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string MBLNO { get; set; }
|
|
|
|
|
|
[MaxLength(50)]
|
|
|
public string HBLNO { get; set; }
|
|
|
|
|
|
|
|
|
public DateTime? OPTIME { get; set; }
|
|
|
|
|
|
[MaxLength(16)]
|
|
|
public string OPERATOR { get; set; }
|
|
|
|
|
|
|
|
|
[MaxLength(60)]
|
|
|
public string Forwarder { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[MaxLength(255)]
|
|
|
public string TIPS { get; set; }
|
|
|
}
|
|
|
}
|
|
|
|