using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CnasSynchrousModel { /// /// 数据源类型 /// public enum DataSourceType { None, Access, Excel, SQLLite, SQL, MySQL, Oracle, FoxPro, TXT } public enum PathType { Local, //本地 Remote //远程 } /// /// 仪表数据源类 /// public class InstrumentDataSourceInfo { /// /// 仪表数据源类型 /// public DataSourceType InstrumentDataSourceType { get; set; } /// /// 用户名 /// public string UserId { get; set; } /// /// 用户密码 /// public string UserPwd { get; set; } /// /// 数据源路径(只有数据源是本地文件时不为空) /// public string Path { get; set; } /// /// 服务器 /// public string Host { get; set; } /// /// 数据库名称 /// public string ServerName { get; set; } /// /// 数据库端口 /// public string Port { get; set; } /// /// 数据源来自本地还是其他电脑 /// public PathType DsPathType { get; set; } /// /// 远程电脑的用户名 /// public string RemoteUser { get; set; } /// /// 远程电脑的密码 /// public string RemotePwd { get; set; } } }