• 跨境统一版申报监管仓库管理系统


    最近做跨境进出口申报监管仓库管理系统正开发

    一些见解记录一下

    对接接口想想大家以不是什么新鲜事了,最近对接的太多了。

    项目有点大,估计一个月下来能不能完成。

    先来点代码先:

     public static string GetCEB311Message(CEB311MessageOrderSendModel cEB311MessageOrder)
            {
                string returnOrderXml = string.Empty;
                string OrderListXml = string.Empty;
                string BaseTransferXml = string.Empty;
                OrderListXml = GetOrderListXml(cEB311MessageOrder.Ceb311OrderDateilList);//获取明细
                BaseTransferXml = GetBaseTransferXml(cEB311MessageOrder.CebBasetransferInfo);//传输企业代码           
                returnOrderXml = "<?xml version="1.0" encoding="UTF-8"?>" +
                   "<ceb:CEB311Message guid="" + cEB311MessageOrder.Guid + ""  version="1.0"  xmlns:ceb="http://www.chinaport.gov.cn/ceb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">" +
                      "<ceb:Order>";
                string appTime = Convert.ToDateTime(cEB311MessageOrder.Ceb311OrderheadInfo.Apptime).ToString("yyyyMMddHHmmss");
                returnOrderXml +=
                  "<ceb:OrderHead>" +
                      "<ceb:guid>" + cEB311MessageOrder.Guid + "</ceb:guid>" +//系统唯一序号
                      "<ceb:appType>" + cEB311MessageOrder.Ceb311OrderheadInfo.Apptype + "</ceb:appType>" +//报送类型
                      "<ceb:appTime>" + appTime + "</ceb:appTime>" +//报送时间
                      "<ceb:appStatus>" + cEB311MessageOrder.Ceb311OrderheadInfo.Appstatus + "</ceb:appStatus>" +//业务状态
                      "<ceb:orderType>" + cEB311MessageOrder.Ceb311StoresorderdeclareparameterInfo.Ordertype + "</ceb:orderType>" +//订单类型
                     "<ceb:orderNo>" + cEB311MessageOrder.Ceb311OrderheadInfo.Orderno + "</ceb:orderNo>" +//订单编号
                      "<ceb:ebpCode>" + cEB311MessageOrder.Ceb311OrderheadInfo.Ebpcode + "</ceb:ebpCode>" +//电商平台代码
                      "<ceb:ebpName>" + cEB311MessageOrder.Ceb311OrderheadInfo.Ebpname + "</ceb:ebpName>" +//电商平台名称
                      "<ceb:ebcCode>" + cEB311MessageOrder.Ceb311OrderheadInfo.Ebccode + "</ceb:ebcCode>" +//电商企业代码
                      "<ceb:ebcName>" + cEB311MessageOrder.Ceb311OrderheadInfo.Ebcname + "</ceb:ebcName>" +//电商企业名称
                      "<ceb:goodsValue>" + cEB311MessageOrder.Ceb311OrderheadInfo.Goodsvalue + "</ceb:goodsValue>" +//商品价格 商品实际成交价,含非现金抵扣金额
                      "<ceb:freight>" + cEB311MessageOrder.Ceb311OrderheadInfo.Freight + "</ceb:freight>" +//运杂费 不包含在商品价格中的运杂费,无则填写"0"
                      "<ceb:discount>" + cEB311MessageOrder.Ceb311OrderheadInfo.Discount + "</ceb:discount>" +// 非现金抵扣金额
                      "<ceb:taxTotal>" + cEB311MessageOrder.Ceb311OrderheadInfo.Taxtotal + "</ceb:taxTotal>" +//代扣税款
                      "<ceb:acturalPaid>" + cEB311MessageOrder.Ceb311OrderheadInfo.Acturalpaid + "</ceb:acturalPaid>" +//实际支付金额
                      "<ceb:currency>" + cEB311MessageOrder.Ceb311OrderheadInfo.Currency + "</ceb:currency>" +//币制
                      "<ceb:buyerRegNo>" + cEB311MessageOrder.Ceb311OrderheadInfo.Buyerregno + "</ceb:buyerRegNo>" +//订购人注册号
                      "<ceb:buyerName>" + cEB311MessageOrder.Ceb311OrderheadInfo.Buyername + "</ceb:buyerName>" +//订购人姓名
                      "<ceb:buyerIdType>" + cEB311MessageOrder.Ceb311OrderheadInfo.Buyeridtype + "</ceb:buyerIdType>" +//订购人证件类型
                      "<ceb:buyerIdNumber>" + cEB311MessageOrder.Ceb311OrderheadInfo.Buyeridnumber + "</ceb:buyerIdNumber>" +//订购人证件号码
                      "<ceb:payCode>" + cEB311MessageOrder.Ceb311OrderheadInfo.Paycode + "</ceb:payCode>" +//支付企业代码
                      "<ceb:payName>" + cEB311MessageOrder.Ceb311OrderheadInfo.Payname + "</ceb:payName>" +//支付企业名称
                      "<ceb:payTransactionId>" + cEB311MessageOrder.Ceb311OrderheadInfo.Paytransactionid + "</ceb:payTransactionId>" +//支付交易编号
                      "<ceb:batchNumbers>" + cEB311MessageOrder.Ceb311OrderheadInfo.Batchnumbers + "</ceb:batchNumbers>" +//商品批次号
                      "<ceb:consignee>" + cEB311MessageOrder.Ceb311OrderheadInfo.Consignee + "</ceb:consignee>" +//收货人姓名
                      "<ceb:consigneeTelephone>" + cEB311MessageOrder.Ceb311OrderheadInfo.Consigneetelephone + "</ceb:consigneeTelephone>" +//收货人电话
                      "<ceb:consigneeAddress>" + cEB311MessageOrder.Ceb311OrderheadInfo.Consigneeaddress + "</ceb:consigneeAddress>" +//收货地址
                      "<ceb:consigneeDistrict>" + cEB311MessageOrder.Ceb311OrderheadInfo.Consigneeditrict + "</ceb:consigneeDistrict>" +//收货地址行政区划代码cEB311MessageOrder.Ceb311OrderheadInfo.Consigneeditrict
                      "<ceb:note>" + cEB311MessageOrder.Ceb311OrderheadInfo.Description + "</ceb:note>" +//备注
                  "</ceb:OrderHead>" +
                   OrderListXml;
                returnOrderXml += "</ceb:Order>";
                returnOrderXml += BaseTransferXml;
                string XmlEnd = "</ceb:CEB311Message>";
                returnOrderXml += XmlEnd;
                returnOrderXml = FormatXml(returnOrderXml);//格式化代码
                CEBHelpUtilities.SaveOrderXml(returnOrderXml, "CEB311" + cEB311MessageOrder.Ceb311OrderheadInfo.Orderno);
                return returnOrderXml;

    这是订单的代码整理,想想比之前写的还是要先进一点了。

    这是二次升级开发这个系统了,后续加入出口申报的报文。

    日写夜写我的跨境宝还差好几个步骤。有没有相关企业同行一起来开发的。加我QQ :183840232,手机:15557148372

    一起成长。一起实现梦想

  • 相关阅读:
    10A:子串计算
    09I:鸡蛋的硬度
    09H:数字组合
    09G:登山
    09F:股票买卖
    09E-计算字符串距离
    09D-最大上升子序列和
    09C-全排列
    02C-垃圾炸弹
    【c#基础】vs2019设置高级选项
  • 原文地址:https://www.cnblogs.com/kuangood2018/p/9251593.html
Copyright © 2020-2023  润新知