跨境統一版申報監管倉庫管理系統

lcc發表於2021-09-09

最近做跨境進出口申報監管倉庫管理系統正開發

一些見解記錄一下

對接介面想想大家以不是什麼新鮮事了,最近對接的太多了。

專案有點大,估計一個月下來能不能完成。

先來點程式碼先:

 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;

 

這是訂單的程式碼整理,想想比之前寫的還是要先進一點了。

這是二次升級開發這個系統了,後續加入出口申報的報文。

圖片描述

原文出處

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/2331/viewspace-2803612/,如需轉載,請註明出處,否則將追究法律責任。

相關文章