添加项目文件。

This commit is contained in:
2026-04-30 11:34:41 +08:00
parent a8539ccaac
commit 80635aa46e
181 changed files with 16378 additions and 0 deletions

View 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;
}
}
}

View 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>();
}
}

View 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; }
}
}

View 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; }
}
}