审批序列化

This commit is contained in:
艾竹
2023-04-16 12:21:51 +08:00
parent 5dee3a9907
commit 4b8a03afb6
9 changed files with 103 additions and 41 deletions

View File

@@ -8,6 +8,8 @@ using System.Threading.Tasks;
using System.Windows.Media;
using System.Xml.Serialization;
using AIStudio.Wpf.DiagramDesigner;
using System.ComponentModel.Design;
using System.Reflection;
namespace AIStudio.Wpf.Flowchart.Models
{
@@ -24,28 +26,67 @@ namespace AIStudio.Wpf.Flowchart.Models
UserIds = middleFlow.UserIds;
RoleIds = middleFlow.RoleIds;
ActType = middleFlow.ActType;
SimulateApprove = middleFlow.SimulateApprove;
}
Color = item.StatusColor;
Kind = item.Kind;
StateImage = item.StateImage;
Status = item.Status;
Remark = item.Remark;
}
[XmlArray]
public List<string> UserIds { get; set; }
public List<string> UserIds
{
get; set;
}
[XmlArray]
public List<string> RoleIds { get; set; }
public List<string> RoleIds
{
get; set;
}
[XmlAttribute]
public string ActType { get; set; }
public string ActType
{
get; set;
}
[XmlAttribute]
public string Color { get; set; }
public bool SimulateApprove
{
get; set;
}
[XmlAttribute]
public NodeKinds Kind { get; set; }
public int Status
{
get; set;
}
[XmlAttribute]
public string StateImage { get; set; }
public string Remark
{
get; set;
}
[XmlAttribute]
public string Color
{
get; set;
}
[XmlAttribute]
public NodeKinds Kind
{
get; set;
}
[XmlAttribute]
public string StateImage
{
get; set;
}
}
}