修改导入显示

This commit is contained in:
admin
2020-12-19 13:04:35 +08:00
parent a82c4d5096
commit ee176b4e24
10 changed files with 383 additions and 173 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace U8AppMain.ResultEnity
{
public class Item
{
// <item key = "CGQGD2132133" succeed="0" dsc="ok" u8key="CGQGD2132133"></item>
[XmlAttribute]
public string key { get; set; }
[XmlAttribute]
public string succeed { get; set; }
[XmlAttribute]
public string dsc { get; set; }
[XmlAttribute]
public string u8key { get; set; }
}
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace U8AppMain.ResultEnity
{
public class ufinterface
{
// <ufinterface roottag = "return" docid="123" proc="add" sender="u8" receiver="003" 
// request-roottag="purchaseapp">
//    <item key = "CGQGD2132133" succeed="0" dsc="ok" u8key="CGQGD2132133"></item>
//</ufinterface>
[XmlAttribute]
public string roottag { get; set; }
[XmlAttribute]
public string docid { get; set; }
[XmlAttribute]
public string proc { get; set; }
[XmlAttribute]
public string receiver { get; set; }
[XmlAttribute(attributeName: "request-roottag")]
public string requestroottag { get; set; }
[XmlElement(Type = typeof(Item),ElementName ="item")]
public List<Item> Items { get; set; } = new List<Item>();
}
}