예제 #1
0
        /// <summary>
        ///获取报文业务类型名称  GetBizRecTypeByTypeCode
        /// </summary>
        /// <param name="xmlPath"></param>
        /// <returns></returns>
        public static string GetBizXmlYWLXMC(string xmlPath)
        {
            string casetypename = string.Empty;

            try
            {
                casetypename = BizMessageHelper.GetBizRecTypeByTypeCode(GetBizXmlRecType(xmlPath));
                return(casetypename);
            }
            catch (Exception ex)
            {
                return("登记类型未知");

                throw ex;
            }
        }
예제 #2
0
        /// <summary>
        /// 获取报文登记时间
        /// </summary>
        /// <param name="xmlPath"></param>
        /// <returns></returns>
        public static string GetBizXmlDJSJ(string xmlPath)
        {
            string element = BizMessageHelper.GetBizDjsjElementByRecType(GetBizXmlRecType(xmlPath));

            try
            {
                XElement root = XElement.Load(xmlPath);
                string   djsj = root.Element("Data").Element(element).Attribute("DJSJ").Value;
                return(djsj);
            }
            catch (Exception ex)
            {
                return("无登记时间");

                throw ex;
            }
        }