예제 #1
0
 public DealModel(string _dealNo, Dictionary <string, string>[] dic)
 {
     this.astr_jybh     = _dealNo;
     this.astr_jysr_xml = XMLHelper.CreateXml(dic);
 }
예제 #2
0
        ///// <summary>
        ///// 从返回的XML里,根据xpath,创建json返回
        ///// </summary>
        ///// <returns></returns>
        //public string GetJsonResultFromXML()
        //{
        //    Dictionary<string,string> dicResult = XMLHelper.GetDicFromXML(this.astr_jysc_xml, ResultXmlXpath);

        //    if (IsSuccess)
        //    {
        //        dicResult.Add("status", "success");
        //    }
        //    else
        //    {

        //    }

        //    return JsonHelper.ConvertDicToJson(dicResult, DealName);

        //}Z


        public Dictionary <string, string> GetDicResult()
        {
            return(XMLHelper.GetDicFromXML(this.astr_jysc_xml, ResultXmlXpath));
        }