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

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

一些见解记录一下

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

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

先来点代码先:

 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 = "" +
               "" +
                  "";
            string appTime = Convert.ToDateTime(cEB311MessageOrder.Ceb311OrderheadInfo.Apptime).ToString("yyyyMMddHHmmss");
            returnOrderXml +=
              "" +
                  "" + cEB311MessageOrder.Guid + "" +//系统唯一序号
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Apptype + "" +//报送类型
                  "" + appTime + "" +//报送时间
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Appstatus + "" +//业务状态
                  "" + cEB311MessageOrder.Ceb311StoresorderdeclareparameterInfo.Ordertype + "" +//订单类型
                 "" + cEB311MessageOrder.Ceb311OrderheadInfo.Orderno + "" +//订单编号
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Ebpcode + "" +//电商平台代码
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Ebpname + "" +//电商平台名称
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Ebccode + "" +//电商企业代码
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Ebcname + "" +//电商企业名称
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Goodsvalue + "" +//商品价格 商品实际成交价,含非现金抵扣金额
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Freight + "" +//运杂费 不包含在商品价格中的运杂费,无则填写"0"
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Discount + "" +// 非现金抵扣金额
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Taxtotal + "" +//代扣税款
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Acturalpaid + "" +//实际支付金额
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Currency + "" +//币制
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Buyerregno + "" +//订购人注册号
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Buyername + "" +//订购人姓名
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Buyeridtype + "" +//订购人证件类型
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Buyeridnumber + "" +//订购人证件号码
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Paycode + "" +//支付企业代码
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Payname + "" +//支付企业名称
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Paytransactionid + "" +//支付交易编号
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Batchnumbers + "" +//商品批次号
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Consignee + "" +//收货人姓名
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Consigneetelephone + "" +//收货人电话
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Consigneeaddress + "" +//收货地址
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Consigneeditrict + "" +//收货地址行政区划代码cEB311MessageOrder.Ceb311OrderheadInfo.Consigneeditrict
                  "" + cEB311MessageOrder.Ceb311OrderheadInfo.Description + "" +//备注
              "
" +
               OrderListXml;
            returnOrderXml += "
";
            returnOrderXml += BaseTransferXml;
            string XmlEnd = "
";
            returnOrderXml += XmlEnd;
            returnOrderXml = FormatXml(returnOrderXml);//格式化代码
            CEBHelpUtilities.SaveOrderXml(returnOrderXml, "CEB311" + cEB311MessageOrder.Ceb311OrderheadInfo.Orderno);
            return returnOrderXml;

 

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

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

跨境统一版申报监管仓库管理系统_第1张图片

 

 

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

一起成长。一起实现梦想

 

你可能感兴趣的:(跨境统一版申报监管仓库管理系统)