Ejemplo n.º 1
0
        /// <summary>
        /// 分块转换数据条目为XML格式
        /// </summary>
        /// <param name="listsothm">分块后的数据列表</param>
        /// <param name="flag">单据状态</param>
        private void BlockConvertToXml(List <sothm> listsothm, int flag)
        {
            //运单信息XML字符串初始化
            string receiveinfoXml = WriteDataXml(listsothm, flag);

            UploadToDHM.UploadXml(receiveinfoXml, LoaninfoXml);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 将汇款单据及相关运单数据转换为XML文件并上传到大红门集团
        /// </summary>
        /// <returns></returns>
        public string ConvertToXML()
        {
            foreach (hmdshz item in _hmdshzlist)
            {
                //获取运单XML
                string ReceiveinfoXml = GetReceiveinfoXml(item);
                //获取汇款XML
                string LoaninfoXml = GetLoaninfoXml(item);
                //上传XML
                UploadToDHM.UploadXml(ReceiveinfoXml, LoaninfoXml);
            }

            return(_hmdshzlist.Count.ToString());
        }