船舶进口岸申报
- mode: HttpPost
- url: http://dev.nbeport.com/tims/rest/DeclMain/ShipInDecl
- request: from body
- response: "DECL_NO"
- test:
{"Main":{"DEC_ID":"ca448ce9-cf73-42f1-a74d-4d3180153fa1","DECL_NO":"SI999999990112004323","DEC_TYPE":"ShipIn",
"DEC_ENT":"9999999927","DEC_PERSON":"38000027005","DEC_DATE":"2012-07-17T09:49:52","CREATER_TIME":"2012-07-17T09:20:13",
"OPERATOR":null,"CREATER":"38000027005","DEPT_CODE":"0500","ORG":"380100","STATUS":"10","INSERT_DATE":null,
"OPERATOR_TIME":"2012-07-17T10:13:08","PROCESS_ID":null,"T_TRANS_NAME":"矿京","VOYAGE":"120718","IMO":"9272383",
"PROCESS_END_FLAG":"0","PROCESS_END_NO":null,"PROCESS_END_TIME":null,"PROCESS_END_PERSON":null,"OP_TYPE":"船舶入境",
"PERSON_WORK":null,"NBMSAAUDITTIME":null,"RowStatus":0},
"Trans":{"DEC_ID":"6a1c3db9-424c-4454-bbc5-912359e38f77","DECL_NO":"SI999999990112004323","ET_ANCH":null,"ET_BEATH":"83",
"ET_ANCH_DATE":null,"ET_BEATH_DATE":"2016-04-28T14:00:00","BEATH_DATE":null,"HEATH_CERT_PORT":"莫尔穆冈",
"HEATH_CERT_DATE":"2016-03-07","CN_SAILOR":21.0,"EN_SAILOR":0.0,"CN_PASSENGER":0.0,"EN_PASSENGER":0.0,"VOYAGE":"160428",
"CARGO_NAME":"铁矿","CARGO_WEIGHT":87988.0,"NORMAL_NAME":null,"NORMAL_WEIGHT":0.0,"DANGER_NAME":null,
"DANGER_WEIGHT":0.0,"EMPTY_20_NUMS":0.0,"EMPTY_40_NUMS":0.0,"FULL_20_NUMS":0.0,"FULL_40_NUMS":0.0,
"GOODS_OWNER":null,"DEP_PORT":"里查德湾","DES_PORT":null,"NEXT_COUNTRY":null,"ETD":null,"STATE":"00","MEMO":null,
"OPERATOR_CODE":null,"OPERATE_DATE":"2016-04-27T10:36:43","QUAR_CODE":null,"INSP_DEPT":null,"RISK_ANALYSE":null,
"INSPECT":null,"SUPERVISE_USER":null,"SUPERVISE_CODE":null,"SENDBACK_REASON":null,"SUPERVISE_DATE":null,
"SUPERVISE_CONTENT":null,"DOMESTIC_PORT":null,"INSP_USER":null,"SPECIAL_FLAGS":null,"FEE_TIME":null,"ACCEPT_CODE":null,
"TRANS_DECL_NO":null,"FEE_FLAG":"0","HEALTH_INFO":null,"HEATH_CERT_CODE":"00001",
"SERIALNO":"2016042814000095349993801001","RowStatus":0},
"Transport":{"DEC_ID":"549560fc-7382-4752-8a4b-95b9248e8d5e","DECL_NO":"SI999999990112004323","IMO":"9542142",
"T_CNAME":"环球先锋","T_ENAME":"GLOBAL PIONEER","MMSI_CODE":"379244000","SHIP_TYPE_CODE":"0706","ROUTE_TYPE_CODE":null,
"CLASS_TYPE":"B","COUNTRY_CODE":"591","PORT_CODE":"591000","AIR_USRAGE":null,"CONSTRUCTION_COUNTRY":"410",
"COMPANY_CNAME":null,"COMPANY_ENAME":"HEUNG-A SHIPPING CO.,LTD","COMPANY_ABB":null,"TRANS_GT":"11987",
"TRANS_NETTON":"6193","CONSTRUCTION_PLANT":null,"CONSTRUCTION_YEARS":"2008-09-09T00:00:00","SHIP_LEN":146.19,
"MAX_DRAFT":"9.5","DWT":"19991","CHIMNEY_COLOR":null,"IS_DIRECT":"0","POINTS":null,"TAKE_OFF_WEIGHT":null,"MACHINE_NO":null,
"MACHINE_MODEL":null,"RowStatus":0},
"Asks":[{"DEC_ID":"e925c957-00f2-499e-9bf2-c92254e9ed35","DECL_NO":"SI999999990112004323","DETAILS_ID":"14","ITEM_CODE":"14",
"ITEM_NAME":"是否有垫舱木/铺垫材料?如果有请说明是否移上岸?","ITEM_VALUE":"否","REMARK":null,"OPERATE_DATE":null,"RowStatus":0},
{"DEC_ID":"6d491523-09ba-4d9b-bfa0-f3258366fa8b","DECL_NO":"SI999999990112004323","DETAILS_ID":"15","ITEM_CODE":"15",
"ITEM_NAME":"在港期间是否补充食品?如果是请说明供应单位。","ITEM_VALUE":"否","REMARK":null,"OPERATE_DATE":null,"RowStatus":0},
{"DEC_ID":"cace6104-9c50-40d4-a6ab-419d94801101","DECL_NO":"SI999999990112004323","DETAILS_ID":"16","ITEM_CODE":"16",
"ITEM_NAME":"在港期间是否饮用水?如果是请说明供应单位。","ITEM_VALUE":"否","REMARK":null,"OPERATE_DATE":null,"RowStatus":0},
{"DEC_ID":"eddc2065-78d3-4f15-a703-b37852f78abb","DECL_NO":"SI999999990112004323","DETAILS_ID":"17","ITEM_CODE":"17",
"ITEM_NAME":"在港期间是否有人员需要就医?如果是,请说明原因。","ITEM_VALUE":"否","REMARK":null,"OPERATE_DATE":null,"RowStatus":0},
"Certs":[{"DEC_ID":"386a0443-3361-48d4-b3d6-44e3bfe2b130","DECL_NO":"SI999999990112004323","DETAILS_ID":"1","CERT_TYPE":"00003",
"ISSUE_PORT":"156802","ISSUE_DATE":"2012-01-13T00:00:00","OUT_DATE":"0","OPERATE_DATE":null,"FLAG":"1","RowStatus":0}],
"Foods":[{"DEC_ID":"32b2a2c0-ca48-4285-8dda-60f7014c2319","DECL_NO":"SI999999990112004323","DETAILS_ID":"1","GOODS_NAME":"粮食",
"WEIGHT":0.0,"PORT":null,"ORIGIN_COUNTRY":null,"OPERATE_DATE":"2012-06-27T15:28:10","GOODS_DATE":null,"RowStatus":0},
{"DEC_ID":"d42dfc7a-e4dc-4ae4-8dd7-c0c09143ea15","DECL_NO":"SI999999990112004323","DETAILS_ID":"2","GOODS_NAME":"饮用水",
"WEIGHT":0.0,"PORT":null,"ORIGIN_COUNTRY":null,"OPERATE_DATE":"2012-06-27T15:28:10","GOODS_DATE":null,"RowStatus":0},
{"DEC_ID":"a83deb11-8ed9-43ab-abcf-072f6b2f195e","DECL_NO":"SI999999990112004323","DETAILS_ID":"3","GOODS_NAME":"肉类",
"WEIGHT":501.0,"PORT":"344003","ORIGIN_COUNTRY":"344","OPERATE_DATE":"2012-06-27T15:28:10","GOODS_DATE":null,"RowStatus":0},
"Persons":[{"DEC_ID":"a9f3f710-fa48-4c68-8e0a-c9e324181c17","DECL_NO":"SI999999990112004323","DETAILS_ID":"2",
"PERSON_NAME":"Chaika Sergei\t","PERSON_COUNTRY":"643","AGE":"57","GENDER":"男","BOARD_SHIP_DATE":"2012-07-28T00:00:00",
"BOARD_SHIP_PORT":"764002","OPERATE_DATE":"2012-08-16T09:34:22","RowStatus":0},
{"DEC_ID":"d3d0fe15-3eb7-423f-90d2-612d66f689ac","DECL_NO":"SI999999990112004323","DETAILS_ID":"3",
"PERSON_NAME":"Shevchenko Denys\t","PERSON_COUNTRY":"804","AGE":"29","GENDER":"男","BOARD_SHIP_DATE":"2012-08-13T00:00:00",
"BOARD_SHIP_PORT":"344003","OPERATE_DATE":"2012-08-16T09:34:22","RowStatus":0}],
"Ports":[{"DEC_ID":"ba56720e-d676-4558-ba16-630511f7d305","DECL_NO":"SI999999990112004323","DETAILS_ID":"1",
"PORT_CODE":"410242","ANCH_DATE":"2012-06-27T00:00:00","PRE_PORT_DATE":"2012-06-27T00:00:00","OPERATE_DATE":null,"RowStatus":0},
{"DEC_ID":"3b32a81f-f646-4558-9031-2a3a6c231a30","DECL_NO":"SI999999990112004323","DETAILS_ID":"2",
"PORT_CODE":"344003","ANCH_DATE":"2012-06-22T00:00:00","PRE_PORT_DATE":"2012-06-23T00:00:00","OPERATE_DATE":null,"RowStatus":0},
{"DEC_ID":"c1bd3acd-a4d9-410e-9434-163bc0bd0513","DECL_NO":"SI999999990112004323","DETAILS_ID":"3",
"PORT_CODE":"156802","ANCH_DATE":"2012-06-21T00:00:00","PRE_PORT_DATE":"2012-06-22T00:00:00","OPERATE_DATE":null,"RowStatus":0}],
"Waters":[{"DEC_ID":"9a50bafe-821e-4259-b919-27708646425a","TRANS_DECL_NO":"SI999999990112004323","DETAILS_ID":"1",
"PORT_CODE":"新加坡","WEIGHT":2800.0,"PORT_DATE":"2013-08-17T00:00:00","OPERATOR_CODE":null,"OPERATE_DATE":null,"RowStatus":0}],
"Files":[],"RowStatus":0}
public class ShipDecl_ViewModel
{
///
/// 申报主单
///
public T_DECL_MAIN Main { set; get; }
///
/// 出入境口岸申报单
///
public T_DECL_TRANS Trans { set; get; }
///
/// 交通工具信息
///
public T_DECL_TRANSPORT Transport { set; get; }
///
/// 问询信息
///
public List Asks { set; get; }
///
/// 出入境口岸申报证书信息
///
public List Certs { set; get; }
///
/// 食品申报
///
public List Foods { set; get; }
///
/// 最近30天内新登船的船员或旅客等情况
///
public List Persons { set; get; }
///
/// 四周内停靠港口
///
public List Ports { set; get; }
///
/// 压舱水装载清单
///
public List Waters { set; get; }
///
/// 附件
///
public List Files { set; get; }
}
public class T_DECL_MAIN
{
///
/// GUID
///
public string DEC_ID { get; set; }
///
/// 报检号
///
public string DECL_NO { get; set; }
///
/// 申报类型
///
public string DEC_TYPE { get; set; }
///
/// 申报单位
///
public string DEC_ENT { get; set; }
///
/// 申报人
///
public string DEC_PERSON { get; set; }
///
/// 申报时间
///
public Nullable DEC_DATE { get; set; }
///
/// 创建时间
///
public Nullable CREATER_TIME { get; set; }
///
/// 审批人
///
public string OPERATOR { get; set; }
///
/// 创建人
///
public string CREATER { get; set; }
///
/// 部门编码
///
public string DEPT_CODE { get; set; }
///
/// 机构编码
///
public string ORG { get; set; }
///
/// 申报单状态
///
public string STATUS { get; set; }
///
/// 入库时间
///
public Nullable INSERT_DATE { get; set; }
///
/// 局端操作时间
///
public Nullable OPERATOR_TIME { get; set; }
///
/// 局端流程ID
///
public string PROCESS_ID { get; set; }
///
/// 交通工具名称
///
public string T_TRANS_NAME { get; set; }
///
/// 航次
///
public string VOYAGE { get; set; }
///
/// IMO或者航空器出厂编号
///
public string IMO { get; set; }
///
/// 是否归档 0 未归档 1 已归档
///
public string PROCESS_END_FLAG { get; set; }
///
/// 归档号
///
public string PROCESS_END_NO { get; set; }
///
/// 归档时间
///
public Nullable PROCESS_END_TIME { get; set; }
///
/// 归档人ID
///
public string PROCESS_END_PERSON { get; set; }
///
/// 具体申报类型
///
public string OP_TYPE { get; set; }
///
/// 外勤人员
///
public string PERSON_WORK { get; set; }
///
/// 海事放行时间
///
public string NBMSAAUDITTIME { get; set; }
}
public class T_DECL_TRANS
{
///
/// GUID
///
public string DEC_ID { get; set; }
///
/// 报检号
///
public string DECL_NO { get; set; }
///
/// 预计抵达锚地
///
public string ET_ANCH { get; set; }
///
/// 预计作业泊位
///
public string ET_BEATH { get; set; }
///
/// 预计锚地时间
///
public Nullable ET_ANCH_DATE { get; set; }
///
/// 预抵靠泊时间
///
public Nullable ET_BEATH_DATE { get; set; }
///
/// 靠泊时间
///
public Nullable BEATH_DATE { get; set; }
///
/// 卫生控制证书签发港
///
public string HEATH_CERT_PORT { get; set; }
///
/// 卫生控制证书签发日期
///
public string HEATH_CERT_DATE { get; set; }
///
/// 交通工具员工数_中国籍
///
public Nullable CN_SAILOR { get; set; }
///
/// 交通工具员工数_外国籍
///
public Nullable EN_SAILOR { get; set; }
///
/// 旅客人数_中国籍
///
public Nullable CN_PASSENGER { get; set; }
///
/// 旅客人数_外国籍
///
public Nullable EN_PASSENGER { get; set; }
///
/// 航次
///
public string VOYAGE { get; set; }
///
/// 载货_名称
///
public string CARGO_NAME { get; set; }
///
/// 载货_吨数
///
public Nullable CARGO_WEIGHT { get; set; }
///
/// 普通货物名称
///
public string NORMAL_NAME { get; set; }
///
/// 普通货物吨数
///
public Nullable NORMAL_WEIGHT { get; set; }
///
/// 危险货物名称
///
public string DANGER_NAME { get; set; }
///
/// 危险货物吨数
///
public Nullable DANGER_WEIGHT { get; set; }
///
/// 空箱20英尺箱数
///
public Nullable EMPTY_20_NUMS { get; set; }
///
/// 空箱40英尺箱数
///
public Nullable EMPTY_40_NUMS { get; set; }
///
/// 重箱20英尺箱数
///
public Nullable FULL_20_NUMS { get; set; }
///
/// 重箱40英尺箱数
///
public Nullable FULL_40_NUMS { get; set; }
///
/// 国内货主
///
public string GOODS_OWNER { get; set; }
///
/// 出发港
///
public string DEP_PORT { get; set; }
///
/// 目的港
///
public string DES_PORT { get; set; }
///
/// 下一港国家(出境)
///
public string NEXT_COUNTRY { get; set; }
///
/// 预计开航时间
///
public Nullable ETD { get; set; }
///
/// 状态 0 初始 1已受理
///
public string STATE { get; set; }
///
/// 备注
///
public string MEMO { get; set; }
///
/// 录入人
///
public string OPERATOR_CODE { get; set; }
///
/// 录入时间
///
public Nullable OPERATE_DATE { get; set; }
///
/// 检疫方式代码(C_QUAR_MODE)
///
public string QUAR_CODE { get; set; }
///
/// 施检部门
///
public string INSP_DEPT { get; set; }
///
/// 风险分析
///
public string RISK_ANALYSE { get; set; }
///
/// 卫生监督 N/Y
///
public string INSPECT { get; set; }
///
/// 监管人
///
public string SUPERVISE_USER { get; set; }
///
/// 监管操作(C_SUPERVISE)
///
public string SUPERVISE_CODE { get; set; }
///
/// 退单原因(C_COMM_TYPE)
///
public string SENDBACK_REASON { get; set; }
///
/// 监管时间
///
public Nullable SUPERVISE_DATE { get; set; }
///
/// 监管说明
///
public string SUPERVISE_CONTENT { get; set; }
///
/// 进出口岸(T_DOMESTIC_PORT)
///
public string DOMESTIC_PORT { get; set; }
///
/// 检疫人员
///
public string INSP_USER { get; set; }
///
/// 特殊标记位,多标记逗号分隔退单原因(C_COMM_TYPE)
///
public string SPECIAL_FLAGS { get; set; }
///
/// 计费时间
///
public Nullable FEE_TIME { get; set; }
///
/// 申报受理号
///
public string ACCEPT_CODE { get; set; }
///
/// 对应进口岸申报单号(出境)
///
public string TRANS_DECL_NO { get; set; }
///
/// 0:未计费 1:已计费 2:已收费
///
public string FEE_FLAG { get; set; }
///
/// 健康情况说明
///
public string HEALTH_INFO { get; set; }
///
/// 卫生证书类型
///
public string HEATH_CERT_CODE { get; set; }
///
///
///
public string SERIALNO { get; set; }
}
public class T_DECL_TRANSPORT
{
///
/// GUID
///
public string DEC_ID { get; set; }
///
/// 报检号
///
public string DECL_NO { get; set; }
///
/// IMO或者航空器出厂编号
///
public string IMO { get; set; }
///
/// 交通工具中文名称
///
public string T_CNAME { get; set; }
///
/// 交通工具英文名称
///
public string T_ENAME { get; set; }
///
/// MMSI
///
public string MMSI_CODE { get; set; }
///
/// 船舶类型/机型(在C_COMM_TYPE表中定义)
///
public string SHIP_TYPE_CODE { get; set; }
///
/// 航线类型(在C_COMM_TYPE表中定义)
///
public string ROUTE_TYPE_CODE { get; set; }
///
/// 交通工具类型(A航空器B船舶)
///
public string CLASS_TYPE { get; set; }
///
/// 国家代码
///
public string COUNTRY_CODE { get; set; }
///
/// 港口代码(在C_FOR_PORT表中定义)
///
public string PORT_CODE { get; set; }
///
/// 航空器用途类型代码(在C_COMM_TYPE表中定义)
///
public string AIR_USRAGE { get; set; }
///
/// 制造国家
///
public string CONSTRUCTION_COUNTRY { get; set; }
///
/// 船/航空公司中文名称
///
public string COMPANY_CNAME { get; set; }
///
/// 船/航空公司英文名称
///
public string COMPANY_ENAME { get; set; }
///
/// 公司缩写
///
public string COMPANY_ABB { get; set; }
///
/// 总吨
///
public string TRANS_GT { get; set; }
///
/// 净吨
///
public string TRANS_NETTON { get; set; }
///
/// 建造厂
///
public string CONSTRUCTION_PLANT { get; set; }
///
/// 建造年月
///
public Nullable CONSTRUCTION_YEARS { get; set; }
///
/// 船长
///
public Nullable SHIP_LEN { get; set; }
///
/// 最大吃水
///
public string MAX_DRAFT { get; set; }
///
/// 载重吨 航空不填
///
public string DWT { get; set; }
///
/// 烟囱颜色 航空不填
///
public string CHIMNEY_COLOR { get; set; }
///
/// 是否直航船舶 航空器不填
///
public string IS_DIRECT { get; set; }
///
/// 扣分值
///
public Nullable POINTS { get; set; }
///
/// 最大起飞重量
///
public string TAKE_OFF_WEIGHT { get; set; }
///
/// 机号
///
public string MACHINE_NO { get; set; }
///
/// 机型
///
public string MACHINE_MODEL { get; set; }
}
public class T_DECL_TRANS_ASK
{
///
/// GUID
///
public string DEC_ID { get; set; }
///
/// 报检号
///
public string DECL_NO { get; set; }
///
/// 显示序号
///
public string DETAILS_ID { get; set; }
///
/// 项目代码
///
public string ITEM_CODE { get; set; }
///
/// 项目名称
///
public string ITEM_NAME { get; set; }
///
/// 值
///
public string ITEM_VALUE { get; set; }
///
/// 备注
///
public string REMARK { get; set; }
///
/// 录入时间
///
public Nullable OPERATE_DATE { get; set; }
}
public class T_DECL_TRANS_CERT
{
///
/// GUID
///
public string DEC_ID { get; set; }
///
/// 报检号
///
public string DECL_NO { get; set; }
///
/// 显示序号
///
public string DETAILS_ID { get; set; }
///
/// 证书类型(C_CERT_TYPE)
///
public string CERT_TYPE { get; set; }
///
/// 签发港
///
public string ISSUE_PORT { get; set; }
///
/// 签发日期
///
public Nullable ISSUE_DATE { get; set; }
///
/// 是否过期 0 未过期 1 过期
///
public string OUT_DATE { get; set; }
///
/// 录入时间
///
public Nullable OPERATE_DATE { get; set; }
///
/// 是否处理过证书过期
///
public string FLAG { get; set; }
}
public class T_DECL_TRANS_FOOD
{
///
/// GUID
///
public string DEC_ID { get; set; }
///
/// 报检号
///
public string DECL_NO { get; set; }
///
/// 显示序号
///
public string DETAILS_ID { get; set; }
///
/// 品名
///
public string GOODS_NAME { get; set; }
///
/// 数量 Kg
///
public Nullable WEIGHT { get; set; }
///
/// 供货港口
///
public string PORT { get; set; }
///
/// 原产地
///
public string ORIGIN_COUNTRY { get; set; }
///
/// 录入时间
///
public Nullable OPERATE_DATE { get; set; }
///
/// 装载日期
///
public Nullable GOODS_DATE { get; set; }
}
public class T_DECL_TRANS_PERSON
{
///
/// GUID
///
public string DEC_ID { get; set; }
///
/// 报检号
///
public string DECL_NO { get; set; }
///
/// 显示序号
///
public string DETAILS_ID { get; set; }
///
/// 姓名
///
public string PERSON_NAME { get; set; }
///
/// 国籍(C_COUNTRY_REGION)
///
public string PERSON_COUNTRY { get; set; }
///
/// 年龄
///
public string AGE { get; set; }
///
/// 姓别
///
public string GENDER { get; set; }
///
/// 登轮时间
///
public Nullable BOARD_SHIP_DATE { get; set; }
///
/// 登轮港口(C_FOR_PORT)
///
public string BOARD_SHIP_PORT { get; set; }
///
/// 录入时间
///
public Nullable OPERATE_DATE { get; set; }
}
public class T_DECL_TRANS_PORT
{
///
/// GUID
///
public string DEC_ID { get; set; }
///
/// 报检号
///
public string DECL_NO { get; set; }
///
/// 显示序号
///
public string DETAILS_ID { get; set; }
///
/// 停靠口岸(C_FOR_PORT)
///
public string PORT_CODE { get; set; }
///
/// 靠泊时间
///
public Nullable ANCH_DATE { get; set; }
///
/// 离港日期
///
public Nullable PRE_PORT_DATE { get; set; }
///
/// 录入时间
///
public Nullable OPERATE_DATE { get; set; }
}
public class T_DECL_TRANS_WATER
{
///
/// GUID
///
public string DEC_ID { get; set; }
///
/// 入出境申报报检号
///
public string TRANS_DECL_NO { get; set; }
///
/// 显示序号
///
public string DETAILS_ID { get; set; }
///
/// 地点(C_FOR_PORT)
///
public string PORT_CODE { get; set; }
///
/// 压舱装水重量(T)
///
public Nullable WEIGHT { get; set; }
///
/// 装载日期
///
public Nullable PORT_DATE { get; set; }
///
/// 录入人
///
public string OPERATOR_CODE { get; set; }
///
/// 录入时间
///
public Nullable OPERATE_DATE { get; set; }
}
public class T_DECL_TRANS_FILE
{
///
/// GUID
///
public string DEC_ID { get; set; }
///
/// 报检号
///
public string DECL_NO { get; set; }
///
/// 附近内容
///
public byte[] FILE_NOTE { get; set; }
///
/// 附件类型
///
public string FILE_TYPE { get; set; }
///
/// 附件名称
///
public string FILE_NAME { get; set; }
///
/// 附件大小
///
public Nullable FILE_SIZE { get; set; }
///
/// 录入时间
///
public Nullable OPERATE_DATE { get; set; }
}
船舶出口岸申报
- mode: HttpPost
- url: http://dev.nbeport.com/tims/rest/DeclMain/ShipOutDecl
- request: from body
- response: "DECL_NO"
- test:
{"Main":{"DEC_ID":"ca54ba53-1c82-4745-b99a-95612dbef204","DECL_NO":"SO999999990116364615","DEC_TYPE":"ShipOut",
"DEC_ENT":"9999999901","DEC_PERSON":"38000001024","DEC_DATE":"2016-04-27T10:47:33","CREATER_TIME":"2016-04-27T10:47:33",
"OPERATOR":null,"CREATER":"38000001024","DEPT_CODE":"0300","ORG":"380120","STATUS":"00","INSERT_DATE":null,
"OPERATOR_TIME":null,"PROCESS_ID":null,"T_TRANS_NAME":"美杰马士基","VOYAGE":"616W","IMO":"9619919","PROCESS_END_FLAG":"0",
"PROCESS_END_NO":null,"PROCESS_END_TIME":null,"PROCESS_END_PERSON":null,"OP_TYPE":null,"PERSON_WORK":"38000001024",
"NBMSAAUDITTIME":null,"RowStatus":0},
"Trans":{"DEC_ID":"ca54ba53-1c82-4745-b99a-95612dbef204","DECL_NO":"SO999999990116364615","ET_ANCH":null,"ET_BEATH":"1075",
"ET_ANCH_DATE":null,"ET_BEATH_DATE":null,"BEATH_DATE":null,"HEATH_CERT_PORT":"702000","HEATH_CERT_DATE":"2015-11-08",
"CN_SAILOR":0.0,"EN_SAILOR":22.0,"CN_PASSENGER":0.0,"EN_PASSENGER":0.0,"VOYAGE":"616W","CARGO_NAME":null,
"CARGO_WEIGHT":0.0,"NORMAL_NAME":null,"NORMAL_WEIGHT":0.0,"DANGER_NAME":null,"DANGER_WEIGHT":0.0,
"EMPTY_20_NUMS":0.0,"EMPTY_40_NUMS":0.0,"FULL_20_NUMS":678.0,"FULL_40_NUMS":1969.0,"GOODS_OWNER":null,"DEP_PORT":null,
"DES_PORT":"156802","NEXT_COUNTRY":"156","ETD":"2016-04-26T14:30:00","STATE":"00","MEMO":null,"OPERATOR_CODE":null,
"OPERATE_DATE":"2016-04-27T10:47:33","QUAR_CODE":null,"INSP_DEPT":null,"RISK_ANALYSE":null,"INSPECT":null,"SUPERVISE_USER":null,
"SUPERVISE_CODE":null,"SENDBACK_REASON":null,"SUPERVISE_DATE":null,"SUPERVISE_CONTENT":null,"DOMESTIC_PORT":null,
"INSP_USER":null,"SPECIAL_FLAGS":null,"FEE_TIME":null,"ACCEPT_CODE":null,"TRANS_DECL_NO":"SI999999990116442220","FEE_FLAG":"0",
"HEALTH_INFO":null,"HEATH_CERT_CODE":"00001","SERIALNO":"0","RowStatus":0},
"Transport":{"DEC_ID":"ca54ba53-1c82-4745-b99a-95612dbef204","DECL_NO":"SO999999990116364615","IMO":"9619919",
"T_CNAME":"美杰马士基","T_ENAME":"MAJESTIC MAERSK","MMSI_CODE":"219018501","SHIP_TYPE_CODE":"0701",
"ROUTE_TYPE_CODE":"0808","CLASS_TYPE":"B","COUNTRY_CODE":"208","PORT_CODE":"208000","AIR_USRAGE":null,
"CONSTRUCTION_COUNTRY":"410","COMPANY_CNAME":"马士基航运","COMPANY_ENAME":"MEARSK","COMPANY_ABB":"MSK",
"TRANS_GT":"194849","TRANS_NETTON":"79120","CONSTRUCTION_PLANT":"okpo","CONSTRUCTION_YEARS":"2013-08-01T00:00:00",
"SHIP_LEN":399.23,"MAX_DRAFT":"16","DWT":"194849","CHIMNEY_COLOR":"蓝","IS_DIRECT":"0","POINTS":null,"TAKE_OFF_WEIGHT":null,
"MACHINE_NO":null,"MACHINE_MODEL":null,"RowStatus":0},
"Asks":[],"Certs":[],"Foods":[],"Persons":[],"Ports":[],"Waters":[],"Files":[],"RowStatus":0}
表结构参考进口岸申报
卫生证书申报
- mode: HttpPost
- url: http://dev.nbeport.com/tims/rest/DeclHealthCert/Decl
- request: from body
- response: "DECL_NO"
- test:
{"Main":{"DEC_ID":"f47f744a-2f0b-4bfc-9921-504f510e5bd6","DECL_NO":"ZS999999991316064484","DEC_TYPE":"HealthCert",
"DEC_ENT":"9999999913","DEC_PERSON":"38000013004","DEC_DATE":"2016-04-22T15:07:12","CREATER_TIME":"2016-04-22T15:06:55",
"OPERATOR":null,"CREATER":"38000013004","DEPT_CODE":null,"ORG":null,"STATUS":"00","INSERT_DATE":null,"OPERATOR_TIME":null,
"PROCESS_ID":null,"T_TRANS_NAME":"安特卫普","VOYAGE":"160417","IMO":"9224740","PROCESS_END_FLAG":"0",
"PROCESS_END_NO":null,"PROCESS_END_TIME":null,"PROCESS_END_PERSON":null,"OP_TYPE":null,"PERSON_WORK":null,
"NBMSAAUDITTIME":null,"RowStatus":0},
"HealthCert":{"DEC_ID":"336878ab-dc27-4465-a48f-0dffec858c68","DECL_NO":"ZS999999991316064484",
"TRANS_DECL_NO":"SI999999990213066679","CERT_CODE":"00001","HOLD_NUM":"8","CARGO_DESC":"46153吨丙烷",
"ET_CARGO_CLEAR":"2013-05-30T00:00:00","TRANS_CHARGE":null,"TAKEOFF_WEIGHT":null,"STATE":"20","MEMO":null,
"OPERATOR_CODE":"3810492","OPERATE_DATE":"2013-05-28T09:15:27","COUNT_NUM":93.0,"RESULT":"签发免予卫生控制措施证书",
"SUPERVISE_USER":null,"SUPERVISE_CODE":"2","SUPERVISE_DATE":"2013-05-29T10:07:00","SUPERVISE_CONTENT":"符合监管要求",
"SUPERVISE_USER_ADD":null,"DOCTOR":"胡健","DOCTOR_ADDR":"大榭地址","ACCEPT_CODE":"380800513000021",
"DOCTOR_EN":"HUJIAN","DOCTOR2":"谢陵","DOCTOR2_EN":"XIELING","DOCTOR_ADDR_EN":"DAXIE,CHINA ADDR",
"CARGO_DESC_WEIGHT":null,"RowStatus":0},"RowStatus":0}
public class HealthCertDecl_ViewModel
{
///
/// 申报主单
///
public T_DECL_MAIN Main { set; get; }
///
/// 卫生证书申办申请单
///
public T_DECL_HEALTH_CERT HealthCert { set; get; }
}
public class T_DECL_MAIN
{
///
/// GUID
///
public string DEC_ID { get; set; }
///
/// 报检号
///
public string DECL_NO { get; set; }
///
/// 申报类型
///
public string DEC_TYPE { get; set; }
///
/// 申报单位
///
public string DEC_ENT { get; set; }
///
/// 申报人
///
public string DEC_PERSON { get; set; }
///
/// 申报时间
///
public Nullable DEC_DATE { get; set; }
///
/// 创建时间
///
public Nullable CREATER_TIME { get; set; }
///
/// 审批人
///
public string OPERATOR { get; set; }
///
/// 创建人
///
public string CREATER { get; set; }
///
/// 部门编码
///
public string DEPT_CODE { get; set; }
///
/// 机构编码
///
public string ORG { get; set; }
///
/// 申报单状态
///
public string STATUS { get; set; }
///
/// 入库时间
///
public Nullable INSERT_DATE { get; set; }
///
/// 局端操作时间
///
public Nullable OPERATOR_TIME { get; set; }
///
/// 局端流程ID
///
public string PROCESS_ID { get; set; }
///
/// 交通工具名称
///
public string T_TRANS_NAME { get; set; }
///
/// 航次
///
public string VOYAGE { get; set; }
///
/// IMO或者航空器出厂编号
///
public string IMO { get; set; }
///
/// 是否归档 0 未归档 1 已归档
///
public string PROCESS_END_FLAG { get; set; }
///
/// 归档号
///
public string PROCESS_END_NO { get; set; }
///
/// 归档时间
///
public Nullable PROCESS_END_TIME { get; set; }
///
/// 归档人ID
///
public string PROCESS_END_PERSON { get; set; }
///
/// 具体申报类型
///
public string OP_TYPE { get; set; }
///
/// 外勤人员
///
public string PERSON_WORK { get; set; }
///
/// 海事放行时间
///
public string NBMSAAUDITTIME { get; set; }
}
public class T_DECL_HEALTH_CERT
{
///
/// GUID
///
public string DEC_ID { get; set; }
///
/// 报检单号
///
public string DECL_NO { get; set; }
///
/// 入出境申报报检号
///
public string TRANS_DECL_NO { get; set; }
///
/// 所需证书类型(C_CERT_TYPE)
///
public string CERT_CODE { get; set; }
///
/// 货舱数
///
public string HOLD_NUM { get; set; }
///
/// 交通工具上载有货物种类及数量
///
public string CARGO_DESC { get; set; }
///
/// 预订货物卸空日期
///
public Nullable ET_CARGO_CLEAR { get; set; }
///
/// 交通工具负责人
///
public string TRANS_CHARGE { get; set; }
///
/// 起飞重量(飞机有用)
///
public string TAKEOFF_WEIGHT { get; set; }
///
/// 状态 00 初始 10 受理 20登记 90 不予受理
///
public string STATE { get; set; }
///
/// 备注
///
public string MEMO { get; set; }
///
/// 录入人
///
public string OPERATOR_CODE { get; set; }
///
/// 录入时间
///
public Nullable OPERATE_DATE { get; set; }
///
/// 总分
///
public Nullable COUNT_NUM { get; set; }
///
/// 结论
///
public string RESULT { get; set; }
///
/// 监管人
///
public string SUPERVISE_USER { get; set; }
///
/// 监管操作(C_SUPERVISE)
///
public string SUPERVISE_CODE { get; set; }
///
/// 监管时间
///
public Nullable SUPERVISE_DATE { get; set; }
///
/// 监管说明
///
public string SUPERVISE_CONTENT { get; set; }
///
/// 监管人地址
///
public string SUPERVISE_USER_ADD { get; set; }
///
/// 检测医师1
///
public string DOCTOR { get; set; }
///
/// 检测医师地址
///
public string DOCTOR_ADDR { get; set; }
///
/// 申报受理号
///
public string ACCEPT_CODE { get; set; }
///
/// 检测医师1英文
///
public string DOCTOR_EN { get; set; }
///
/// 检测医师2
///
public string DOCTOR2 { get; set; }
///
/// 检测医师2英文
///
public string DOCTOR2_EN { get; set; }
///
/// 检测医师地址英文
///
public string DOCTOR_ADDR_EN { get; set; }
///
/// 货物数量
///
public string CARGO_DESC_WEIGHT { get; set; }
}
船籍/国家列表查询
- mode: HttpGet
- url: http://dev.nbeport.com/tims/rest/CountryRegion/List?para={para}&format=xml
- request: para 查询参数/
- response: C_COUNTRY_REGION_ViewModel
- test: para=美国
- testurl: http://dev.nbeport.com/tims/rest/CountryRegion/List?para=美国&format=xml
public class C_COUNTRY_REGION_ViewModel
{
///
/// 国家代码
///
public string X_CODE { get; set; }
///
/// 国家中文名
///
public string X_CNAME { get; set; }
///
/// 国家英文名
///
public string X_ENAME { get; set; }
///
///
///
public Nullable X_SEQ_NO { get; set; }
///
/// 国家英文名
///
public string X_CODE_CONT { get; set; }
///
///
///
public string X_OLD_CODE { get; set; }
///
/// 国家简称
///
public string X_SHORT_NAME { get; set; }
///
///
///
public Nullable EXIST { get; set; }
///
/// 国家长称
///
public string X_LONG_NAME { get; set; }
///
///
///
public Nullable EXIST2 { get; set; }
}
船籍/出发/目的/证书签发港列表查询
- mode: HttpGet
- url: http://dev.nbeport.com/tims/rest/ForPort/List?para={para}&format=xml
- request: para 查询参数/
- response: C_FOR_PORT_ViewModel
- test: para=曼达尔
- testurl: http://dev.nbeport.com/tims/rest/ForPort/List?para=曼达尔&format=xml
public class C_FOR_PORT_ViewModel
{
///
/// 港口代码(前3位代表国家)
///
public string X_CODE { get; set; }
///
/// 港口中文名
///
public string X_CNAME { get; set; }
///
/// 港口英文名
///
public string X_ENAME { get; set; }
///
///
///
public Nullable X_SEQ_NO { get; set; }
///
/// 国家代码
///
public string COUNTRY_CODE { get; set; }
///
/// 港口经度
///
public string PORT_LON { get; set; }
///
/// 港口纬度
///
public string PORT_LAT { get; set; }
///
/// 是否有申办免控证书的资质
///
public string IS_CONTROL_FREE { get; set; }
///
/// 最后更新日期
///
public Nullable LAST_DATE { get; set; }
///
/// 删除标记
///
public string DEL_FLAGE { get; set; }
///
/// 英文港口代码
///
public string X_ECODE { get; set; }
}
船舶类别查询
- mode: HttpGet
- url: http://dev.nbeport.com/tims/rest/CommItem/List?type_code=SHIP_TYPE&format=xml
- response: C_COMM_ITEM_ViewModel
public class C_COMM_ITEM_ViewModel
{
///
/// 类别代码
///
public string TYPE_CODE { get; set; }
///
/// 项目代码
///
public string ITEM_CODE { get; set; }
///
/// 项目名称
///
public string ITEM_NAME { get; set; }
///
///
///
public string ITEM_VALUE { get; set; }
///
/// 备注
///
public string REMARK { get; set; }
}
航线类别查询
- mode: HttpGet
- url: http://dev.nbeport.com/tims/rest/CommItem/List?type_code=ROUTE_TYPE&format=xml
- response: C_COMM_ITEM_ViewModel
public class C_COMM_ITEM_ViewModel
{
///
/// 类别代码
///
public string TYPE_CODE { get; set; }
///
/// 项目代码
///
public string ITEM_CODE { get; set; }
///
/// 项目名称
///
public string ITEM_NAME { get; set; }
///
///
///
public string ITEM_VALUE { get; set; }
///
/// 备注
///
public string REMARK { get; set; }
}
泊位列表查询
- mode: HttpGet
- url: http://dev.nbeport.com/tims/rest/Dock/DockBerthList?format=xml
- response: DockBerth_ViewModel
public class DockBerth_ViewModel
{
///
/// 码头名称
///
public string DOCK_NAME { get; set; }
///
/// 泊位代码
///
public string BERTH_ID { get; set; }
///
/// 泊位名称
///
public string BERTH_NAME { get; set; }
///
/// 机构代码
///
public string ORGID { get; set; }
///
/// 部门代码
///
public string DEPTID { get; set; }
///
/// 泊位类别
///
public string TYPENAME { get; set; }
///
/// 是否启用
///
public string IS_OPEN { get; set; }
}
机构列表查询
- mode: HttpGet
- url: http://dev.nbeport.com/tims/rest/OrgInfo/OrgDeptList?format=xml
- response: OrgDept_ViewModel
public class OrgDept_ViewModel
{
///
/// 机构部门代码
///
public string CODE { get; set; }
///
/// 机构名称
///
public string ORG { get; set; }
///
/// 部门名称
///
public string DEPT { get; set; }
///
/// 机构代码
///
public string ORGCODE { get; set; }
///
/// 部门代码
///
public string DEPTCODE { get; set; }
}
外勤人员列表查询
- mode: HttpGet
- url: http://dev.nbeport.com/tims/rest/PersonInfo/List?ent={ent}&format=xml
- request: ent 企业代码/
- response: T_PERSON_INFO_ViewModel
- test: para=A38000014004
- testurl: http://dev.nbeport.com/tims/rest/PersonInfo/List?ent=A38000014004&format=xml
public class T_PERSON_INFO_ViewModel
{
///
/// 报检员注册号
///
public string PERSON_CODE { get; set; }
///
/// 姓名
///
public string NAME { get; set; }
///
/// 身份证号
///
public string IDCARD { get; set; }
///
/// 手机
///
public string TEL { get; set; }
///
/// 企业注册号
///
public string ENT_CODE { get; set; }
///
/// 信用分值
///
public Nullable CREDIT_NUM { get; set; }
///
/// 状态 0 停用 1启用
///
public string STATUS { get; set; }
///
/// 备注
///
public string MEMO { get; set; }
///
/// 注册日期
///
public Nullable REG_DATE { get; set; }
///
/// 最后更新日期
///
public Nullable LAST_DATE { get; set; }
///
/// 性别0女,1男
///
public string SEX { get; set; }
///
/// 邮件地址
///
public string EMAIL { get; set; }
}
卫生证书类型
- dropdownlist: Text="免予卫生控制措施证书" Value="00001"; Text="卫生控制措施证书" Value="00004"
船舶列表查询
- mode: HttpGet
- url: http://dev.nbeport.com/tims/rest/TransPortInfo/List?imo={imo}&t_cname={t_cname}&page={page}&rows={rows}&format=xml
- request: imo imo/t_cname 船名/page 页码/rows 每页条数/
- response: T_TRANSPORT_INFO_ViewModel
- test: imo=9757319,t_cname=新明州28,page=1,rows=15
- remark: 参数非必填,支持imo和船名的模糊查询,查询单条明细可输入准确的imo号查询
public class T_TRANSPORT_INFO_ViewModel
{
///
/// IMO或者航空器出厂编号
///
public string IMO { get; set; }
///
/// 交通工具中文名称
///
public string T_CNAME { get; set; }
///
/// 交通工具英文名称
///
public string T_ENAME { get; set; }
///
/// MMSI
///
public string MMSI_CODE { get; set; }
///
/// 船舶类型/机型(在C_COMM_TYPE表中定义)
///
public string SHIP_TYPE_CODE { get; set; }
///
/// 航线类型(在C_COMM_TYPE表中定义)
///
public string ROUTE_TYPE_CODE { get; set; }
///
/// 交通工具类型(A航空器B船舶)
///
public string CLASS_TYPE { get; set; }
///
/// 国家代码
///
public string COUNTRY_CODE { get; set; }
///
/// 港口代码(在C_FOR_PORT表中定义)
///
public string PORT_CODE { get; set; }
///
/// 航空器用途类型代码(在C_COMM_TYPE表中定义)
///
public string AIR_USRAGE { get; set; }
///
/// 制造国家
///
public string CONSTRUCTION_COUNTRY { get; set; }
///
/// 船/航空公司中文名称
///
public string COMPANY_CNAME { get; set; }
///
/// 船/航空公司英文名称
///
public string COMPANY_ENAME { get; set; }
///
/// 公司缩写
///
public string COMPANY_ABB { get; set; }
///
/// 总吨
///
public string TRANS_GT { get; set; }
///
/// 净吨
///
public string TRANS_NETTON { get; set; }
///
/// 建造厂
///
public string CONSTRUCTION_PLANT { get; set; }
///
/// 建造年月
///
public Nullable CONSTRUCTION_YEARS { get; set; }
///
/// 船长
///
public Nullable SHIP_LEN { get; set; }
///
/// 最大吃水
///
public string MAX_DRAFT { get; set; }
///
/// 载重吨
///
public string DWT { get; set; }
///
/// 烟囱颜色
///
public string CHIMNEY_COLOR { get; set; }
///
/// 是否直航船舶
///
public string IS_DIRECT { get; set; }
///
/// 扣分值
///
public Nullable POINTS { get; set; }
///
/// 起飞重量
///
public string TAKE_OFF_WEIGHT { get; set; }
///
/// 机号
///
public string MACHINE_NO { get; set; }
///
/// 机型
///
public string MACHINE_MODEL { get; set; }
///
/// 最后更新日期
///
public Nullable LAST_DATE { get; set; }
///
/// 删除标记
///
public string DEL_FLAGE { get; set; }
///
/// 0默认1黑名单2红名单3白名单
///
public string INSPECT_FLAG { get; set; }
///
/// 使用过的船名
///
public string USED_NAME { get; set; }
///
/// 操作类型
///
public string RowStatus { get; set; }
}
船舶信息增加,修改
mode: HttpPost
url: http://dev.nbeport.com/tims/rest/TransPortInfo/Post
request: from body
response: imo
test: {"IMO":"yyl","T_CNAME":"远河","T_ENAME":"yuanhe","MMSI_CODE":"412102000","SHIP_TYPE_CODE":"0701",
"ROUTE_TYPE_CODE":null,"CLASS_TYPE":"B","COUNTRY_CODE":"156","PORT_CODE":"156331","AIR_USRAGE":null,
"CONSTRUCTION_COUNTRY":null,"COMPANY_CNAME":"中远集装箱代理有限公司","COMPANY_ENAME":"cosco",
"COMPANY_ABB":"cosco","TRANS_GT":"48311","TRANS_NETTON":"16601","CONSTRUCTION_PLANT":null,"
CONSTRUCTION_YEARS":"1994-04-01T00:00:00","SHIP_LEN":275.10,"MAX_DRAFT":"1252","DWT":"51280","
CHIMNEY_COLOR":null,"IS_DIRECT":"0","POINTS":null,"TAKE_OFF_WEIGHT":null,"MACHINE_NO":null,
"MACHINE_MODEL":null,"LAST_DATE":null,"DEL_FLAGE":null,"INSPECT_FLAG":"0","USED_NAME":null,"RowStatus":0}remark: RowStatus = Added(HttpPost请求新增)RowStatus = Modified(HttpPost请求修改),不填默认为Added
public class T_TRANSPORT_INFO_ViewModel
{
///
/// IMO或者航空器出厂编号
///
public string IMO { get; set; }
///
/// 交通工具中文名称
///
public string T_CNAME { get; set; }
///
/// 交通工具英文名称
///
public string T_ENAME { get; set; }
///
/// MMSI
///
public string MMSI_CODE { get; set; }
///
/// 船舶类型/机型(在C_COMM_TYPE表中定义)
///
public string SHIP_TYPE_CODE { get; set; }
///
/// 航线类型(在C_COMM_TYPE表中定义)
///
public string ROUTE_TYPE_CODE { get; set; }
///
/// 交通工具类型(A航空器B船舶)
///
public string CLASS_TYPE { get; set; }
///
/// 国家代码
///
public string COUNTRY_CODE { get; set; }
///
/// 港口代码(在C_FOR_PORT表中定义)
///
public string PORT_CODE { get; set; }
///
/// 航空器用途类型代码(在C_COMM_TYPE表中定义)
///
public string AIR_USRAGE { get; set; }
///
/// 制造国家
///
public string CONSTRUCTION_COUNTRY { get; set; }
///
/// 船/航空公司中文名称
///
public string COMPANY_CNAME { get; set; }
///
/// 船/航空公司英文名称
///
public string COMPANY_ENAME { get; set; }
///
/// 公司缩写
///
public string COMPANY_ABB { get; set; }
///
/// 总吨
///
public string TRANS_GT { get; set; }
///
/// 净吨
///
public string TRANS_NETTON { get; set; }
///
/// 建造厂
///
public string CONSTRUCTION_PLANT { get; set; }
///
/// 建造年月
///
public Nullable CONSTRUCTION_YEARS { get; set; }
///
/// 船长
///
public Nullable SHIP_LEN { get; set; }
///
/// 最大吃水
///
public string MAX_DRAFT { get; set; }
///
/// 载重吨
///
public string DWT { get; set; }
///
/// 烟囱颜色
///
public string CHIMNEY_COLOR { get; set; }
///
/// 是否直航船舶
///
public string IS_DIRECT { get; set; }
///
/// 扣分值
///
public Nullable POINTS { get; set; }
///
/// 起飞重量
///
public string TAKE_OFF_WEIGHT { get; set; }
///
/// 机号
///
public string MACHINE_NO { get; set; }
///
/// 机型
///
public string MACHINE_MODEL { get; set; }
///
/// 最后更新日期
///
public Nullable LAST_DATE { get; set; }
///
/// 删除标记
///
public string DEL_FLAGE { get; set; }
///
/// 0默认1黑名单2红名单3白名单
///
public string INSPECT_FLAG { get; set; }
///
/// 使用过的船名
///
public string USED_NAME { get; set; }
///
/// 操作类型
///
public string RowStatus { get; set; }
}
船舶信息删除
- mode: HttpPost
- url: http://dev.nbeport.com/tims/rest/TransPortInfo/Delete
- request: from body
- response: 无
- test: {"IMO":"yyl"}