业务接口


提单

提单获取List:

  • http://10.100.3.138/cag/rest/bill/
  • 参数:
    BillName 提单号或订舱单位
    BillNo 提单号
    BookingParty 订舱单位
    UserName 文档人员
    Ock 是否微信新增
    pageSize 页码
    pageIndex 页数

提单获取Model

  • http://10.100.3.138/cag/rest/bill/{id}

提单保存Post

  • http://10.100.3.138/cag/rest/bill/
    • 传入Bill
    • 返回

微信提单新增Create

  • http://10.100.3.138/cag/rest/bill/create
    • 传入Bill
    • 返回

实体

  • Bill类

      public int Id { get; set; }
      public int? Cmid { get; set; }//船名航次ID
      [StringLength(10)]
      public string Bmmc { get; set; } //部门名称
      [StringLength(50)]
      [Column("Tdh")]
      public string BillNo { get; set; }//提单号
      [StringLength(50)]
      [Column("Hztybh")]
      public string ReferenceNo { get; set; }
      [StringLength(10)]
      [Column("Hzdm")]
      public string CargoOwner { get; set; }
      [StringLength(10)]
      [Column("Dcdw")]
      public string BookingParty { get; set; }//订舱单位
      [StringLength(10)]
      [Column("Rmbhzdm")]
      public string CargoOwnerRMB { get; set; }
      [StringLength(10)]
      [Column("Cdldm")]
      public string ShipAgent { get; set; }
      [Column("Fhr", TypeName = "text")]
      public string Shipper { get; set; }//发货人
      [Column("Shr", TypeName = "text")]
      public string Consignee { get; set; }//收货人
      [Column("Tzr", TypeName = "text")]
      public string Notify { get; set; }//通知人
      [StringLength(50)]
      [Column("Shdd")]
      public string ReceiptPlace { get; set; }
      [StringLength(50)]
      [Column("Zhg")]
      public string LoadingPort { get; set; }//起运港
      [StringLength(50)]
      [Column("Zzg")]
      public string TranshipPort { get; set; } //中转港
      [StringLength(50)]
      [Column("Xhg")]
      public string DischargePort { get; set; }
      [StringLength(50)]
      [Column("Jhdd")]
      public string DeliveryPlace { get; set; }
      [StringLength(2000)]
      [Column("Mdgdl")]
      public string DestinationAgent { get; set; }
      [StringLength(50)]
      [Column("Mdd")]
      public string FinalDestination { get; set; }//目的港
      [Column("Mt", TypeName = "text")]
      public string Marks { get; set; }//唛头
      [Column("Ywhm", TypeName = "text")]
      public string DescriptionEn { get; set; } //英文品名
      [StringLength(2000)]
      [Column("Zwhm")]
      public string DescriptionCn { get; set; }
      [StringLength(2)]
      [Column("Hwlx")]
      public string CargoType { get; set; }//默认GC
      [Column("Js")]
      public decimal? Pcs { get; set; }//件数
      [StringLength(50)]
      [Column("Bzxsywmc")]
      public string PackagesKind { get; set; }
      //[StringLength(200)]
      //public string Bzbz { get; set; }
      [Column("Mz")]
      public decimal? GrossWeight { get; set; }//毛重
      [Column("Tj")]
      public decimal? Measurement { get; set; }//体积
      [StringLength(30)]
      [Column("Ystk")]
      public string DeliveryTerm { get; set; }//交货条款 cy-cy
      [StringLength(50)]
      [Column("Fkfs")]
      public string PaymentTerm { get; set; }//p
      [Column("Zbs")]
      public int? OriginalNumber { get; set; }
      [Column("Fbs")]
      public int? CopysNumber { get; set; }
      [StringLength(20)]
      [Column("Xsgsdm")]
      public string Carrier { get; set; }
      //[StringLength(20)]
      //public string On_board { get; set; }
      //[Required]
      //[StringLength(1)]
      //public string Zxpx { get; set; }
      public DateTime? Srrq { get; set; }
      [StringLength(10)]
      [Column("Srry")]
      public string UserName { get; set; }   //文档人员
      //public DateTime? Zhxgrq { get; set; }
      //[StringLength(20)]
      //public string Zhxgry { get; set; }
      [StringLength(10)]
      [Column("Ywymc")]
      public string Salesman { get; set; }
      //public DateTime? Tdyjrq { get; set; }
      //[StringLength(16)]
      //public string Tdyjh { get; set; }
      [StringLength(200)]
      [Column("Bz")]
      public string Remark { get; set; }
      //[StringLength(100)]
      //public string Bgymc { get; set; }
      //public bool? Sfqq { get; set; }
      //[StringLength(50)]
      //public string Hxdbz { get; set; }
      //[Column(TypeName = "text")]
      //public string Ec { get; set; }
      //[StringLength(20)]
      //public string Dy { get; set; }
      //public int? mtdid { get; set; }
      [StringLength(50)]
      [Column("prevw")]
      public string WorkNo { get; set; } //工作编号
      [StringLength(20)]
      [Column("hwly")]
      public string CargoSource { get; set; } //货物来源
      [StringLength(4)]
      [Column("tdedilx")]
      public string BillType { get; set; }
      [StringLength(4)]
      [Column("ysfs")]
      public string TransportMode { get; set; }
      [StringLength(30)]
      [Column("dsfkdd")]
      public string PayableAt { get; set; }
      [StringLength(100)]
      [Column("bgdm")]
      public string CustomsUnit { get; set; }
      [StringLength(20)]
      [Column("line")]
      public string Line { get; set; }
      [StringLength(200)]
      [Column("hscode")]
      public string Hscode { get; set; }
      [StringLength(20)]
      [Column("issue")]
      public string Issue { get; set; }
      [StringLength(10)]
      [Column("kfry")]
      public string CustomerService { get; set; }
      [StringLength(5)]
      [Column("fr")]
      public string ReceiptPlaceCode { get; set; }
      [StringLength(5)]
      [Column("pol")]
      public string LoadingPortCode{ get; set; }
      [StringLength(5)]
      [Column("ts")]
      public string TranshipPortCode { get; set; }
      [StringLength(5)]
      [Column("pod")]
      public string DischargePortCode { get; set; }
      [StringLength(5)]
      [Column("pld")]
      public string DeliveryPlaceCode { get; set; }
      [StringLength(5)]
      [Column("ds")]
      public string FinalDestinationCode { get; set; }
      [StringLength(20)]
      [Column("czry")]
      public string Operator { get; set; }
      [StringLength(50)]
      [Column("fz")]
      public string Group { get; set; }
      public bool? ock { get; set; }   //微信新增标志
      [StringLength(10)]
      [Column("dldb")]
      public string BusinessModel { get; set; }
      [StringLength(50)]
      [Column("xxxcs")]
      public string CtnCount { get; set; }  //箱型箱尺数 
            
      [StringLength(20)]
      [Column("swry")]
      public string Businessman { get; set; }
      [StringLength(1)]
      public string tdlx { get; set; }
      //public int userid { get; set; }
      public int? gsid { get; set; }
      public int bmid { get; set; }
      [StringLength(4000)]
      [Column("qttk")]
      public string CargoName { get; set; }
      [StringLength(50)]
      public string dpyc { get; set; } //放行异常
     public DateTime? fjrq1 { get; set; }// 离港时间
      public DateTime? fjrq2 { get; set; }//到港时间
      //扩展字段
      public bool IsArrival { get; set; }//是否到港
      public bool IsDepart { get; set; }//是否离港
      public bool IsLoading { get; set; }//是否装柜
      public string Tel  { get; set; } //客服电话
      public DateTime? LoadingDate { get; set; } //装柜日期,装箱单要求到达日期
      public DateTime? SailingDate { get; set; } //开航日期
      public string Vessel { get; set; }//船名
      public string Voyage { get; set; }//航次
    

装箱单

装箱单获取List:

  • http://10.100.3.138/cag/rest/ctn/
  • 参数:
    BillId 提单ID
    CtnNo
    SealNo
    pageSize 页码
    pageIndex 页数

实体

  • Ctn类

      public int Xhid { get; set; }     
      public int Cmid { get; set; }
      [Column("Xh")]
      [StringLength(15)]
      public string CtnNo { get; set; } //箱号
      [Column("Fh")]
      [StringLength(15)]
      public string SealNo { get; set; }//封号
      [Column("Xxxc")]
      [StringLength(6)]
      public string CtnST { get; set; }//?箱型
      [StringLength(20)]
      public string Xsgsdm { get; set; }
      [Column("Js")]
      public decimal? Pcs { get; set; } 
      [StringLength(50)]
      [Column("Bzxsywmc")]
      public string Bzxsywmc { get; set; }
      //[StringLength(200)]
      //public string Bzbz { get; set; }
      [Column("Mz")]
      public decimal? GrossWeight { get; set; }
      [Column("Tj")]
      public decimal? Measurement { get; set; }
      public DateTime? Srrq { get; set; }
      [StringLength(20)]
      public string Srry { get; set; }
      public int userid { get; set; }
      public int? gsid { get; set; }
      public int bmid { get; set; }
    

运费计划

运费计划获取List:

  • http://10.100.3.138/cag/rest/freightplan
  • 参数:
    BillId 提单ID
    ArAp 应收应付
    BookingParty
    pageSize 页码
    pageIndex 页数

运费计划受理:

-应收受理 http://10.100.3.138/cag/rest/freightplan/acceptar?billid=提单ID&bookingParty=x

实体

  •   public int yfjhid { get; set; }
      public int? tdid { get; set; }
      [StringLength(10)]
      [Column("ysyf")]
      public string ArAp { get; set; }//应收应付
      [StringLength(10)]
      public string wlhlb { get; set; }
      [StringLength(20)]
      public string wlhdm { get; set; }
      [StringLength(50)]
      [Column("Fymc")]
      public string FeeName { get; set; }//费用名称
      [StringLength(10)]
      [Column("Bz")]
      public string Currency { get; set; }//币种
      [Column("jg")]
      public decimal? Price { get; set; }//价格
      [Column("bl")]
      public decimal? Rate { get; set; }//比率
      [Column("sl")]
      public decimal? Quantity { get; set; }//数量
      [Column("sjje")]
      public decimal? Amount { get; set; }//实际金额
      [StringLength(10)]
      public string xxxc { get; set; }
      [StringLength(100)]
      public string jhbz { get; set; }
      [StringLength(12)]
      public string yfbh { get; set; }
      [StringLength(20)]
      public string srry { get; set; }
      public DateTime? srsj { get; set; }
      [StringLength(20)]
      public string xgry { get; set; }
      public DateTime? xgsj { get; set; }
      [StringLength(10)]
      public string shzt { get; set; }//审核状态
    

提单物流状态

获取Get

http://eas.nbeport.com/lgv/rest/logsticsFlow/getState?billno=提单号

实体

  •   public string RESULT { get; set; }   //返回结果  (T或 F)
      public string RESULTMSG { get; set; } //结果说明,最新状态
      public string ISEMPTY { get; set; } //(0或1);提空箱
      public string ISPREMFT { get; set; }//预配舱单
      public string ISINOUT { get; set; }//重箱进港
      public string ISCUSMOV { get; set; }//海关查验
      public string ISCUSPASS { get; set; }//海关放行
      public string ISDOCKPASS { get; set; }//码头放行
      public string ISMFT { get; set; }//装载舱单
      public string ISLOAD { get; set; }//重箱装船
      public string ISBERTH { get; set; }//开船
      public Nullable EMPTYDATE { get; set; }
      public Nullable PREMFTDATE { get; set; }
      public Nullable INOUTDATE { get; set; }
      public Nullable CUSMOVDATE { get; set; }
      public Nullable CUSPASSDATE { get; set; }
      public Nullable DOCKPASSDATE { get; set; }
      public Nullable MFTDATE { get; set; }
      public Nullable LOADDATE { get; set; }
      public Nullable BERTHDATE { get; set; }

你可能感兴趣的:(业务接口)