添加项目文件。
This commit is contained in:
26
SamplePre.Models/Models/ComboBoxListItem.cs
Normal file
26
SamplePre.Models/Models/ComboBoxListItem.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SamplePre.Models
|
||||
{
|
||||
public class ComboBoxListItem : Object
|
||||
{
|
||||
public string Text { get; set; }
|
||||
|
||||
public object Value { get; set; }
|
||||
|
||||
public ComboBoxListItem(string text, object value)
|
||||
{
|
||||
this.Text = text;
|
||||
this.Value = value;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return this.Text;
|
||||
}
|
||||
}
|
||||
}
|
||||
18
SamplePre.Models/Models/SopDataInfo.cs
Normal file
18
SamplePre.Models/Models/SopDataInfo.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Models.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SamplePre.Models
|
||||
{
|
||||
public class SopDataInfo
|
||||
{
|
||||
public sys_standard sysStandard { get; set; } = new sys_standard();
|
||||
|
||||
public List<sys_standard_action> sysStandActions { get; set; } = new List<sys_standard_action>();
|
||||
|
||||
public List<sys_standard_action_parm> sysStandardActionParms { get; set; } = new List<sys_standard_action_parm>();
|
||||
}
|
||||
}
|
||||
84
SamplePre.Models/Models/SysConfigData.cs
Normal file
84
SamplePre.Models/Models/SysConfigData.cs
Normal file
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Models
|
||||
{
|
||||
using System.Xml.Serialization;
|
||||
|
||||
/// <summary>
|
||||
/// 系统配置根实体类(对应XML根节点SystemConfig)
|
||||
/// </summary>
|
||||
[XmlRoot("SystemConfig")]
|
||||
public class SysConfigData
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据库配置(对应DbConfig节点)
|
||||
/// </summary>
|
||||
[XmlElement("DbConfig")]
|
||||
public DbConfigModel DbConfig { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 应用配置(对应AppConfig节点)
|
||||
/// </summary>
|
||||
[XmlElement("AppConfig")]
|
||||
public AppConfigModel AppConfig { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 数据库配置实体(对应DbConfig节点)
|
||||
/// </summary>
|
||||
public class DbConfigModel
|
||||
{
|
||||
/// <summary>
|
||||
/// SQL Server配置(对应SqlServer节点,含属性)
|
||||
/// </summary>
|
||||
[XmlElement("SqlServer")]
|
||||
public DbItemModel SqlServer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// MySQL配置(对应MySql节点,含属性)
|
||||
/// </summary>
|
||||
[XmlElement("MySql")]
|
||||
public DbItemModel MySql { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据库子项配置(对应SqlServer/MySql节点,含属性)
|
||||
/// </summary>
|
||||
public class DbItemModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 连接串(对应ConnStr属性)
|
||||
/// </summary>
|
||||
[XmlAttribute("ConnStr")]
|
||||
public string ConnStr { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 超时时间(对应TimeOut属性)
|
||||
/// </summary>
|
||||
[XmlAttribute("TimeOut")]
|
||||
public int TimeOut { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 应用配置实体(对应AppConfig节点)
|
||||
/// </summary>
|
||||
public class AppConfigModel
|
||||
{
|
||||
[XmlElement("AppName")]
|
||||
public string AppName { get; set; }
|
||||
|
||||
[XmlElement("Version")]
|
||||
public string Version { get; set; }
|
||||
|
||||
[XmlElement("MaxLoginCount")]
|
||||
public int MaxLoginCount { get; set; }
|
||||
|
||||
[XmlElement("IsDebug")]
|
||||
public bool IsDebug { get; set; }
|
||||
}
|
||||
}
|
||||
20
SamplePre.Models/Models/TreeListItem.cs
Normal file
20
SamplePre.Models/Models/TreeListItem.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SamplePre.Models
|
||||
{
|
||||
// 定义树节点数据模型
|
||||
public class TreeListItem
|
||||
{
|
||||
// 节点唯一ID(主键)
|
||||
public string ID { get; set; }
|
||||
// 父节点ID(根节点的ParentID为0,子节点对应父节点的ID)
|
||||
public string ParentID { get; set; }
|
||||
// 节点显示的文本
|
||||
public string DisplayText { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user