You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Controls.Base
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 控件基础接口
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IBaseControl
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 标记控件内容类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
string MCKey { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 控件值
|
|
|
|
|
/// </summary>
|
|
|
|
|
object MCValue { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否为数据库控件
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool IsDbControl { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 控件根节点
|
|
|
|
|
/// </summary>
|
|
|
|
|
IBaseControl MCRoot { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// DataSource
|
|
|
|
|
/// </summary>
|
|
|
|
|
[TypeConverter(typeof(DataSourceConverter))]
|
|
|
|
|
string MCDataSourceID { get; set; }
|
|
|
|
|
MCDataSource MCDataSource { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 初始化SQL
|
|
|
|
|
/// </summary>
|
|
|
|
|
string InitDataSource { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 执行SQL
|
|
|
|
|
/// </summary>
|
|
|
|
|
string ActionDataSource { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 绑定数据库
|
|
|
|
|
/// </summary>
|
|
|
|
|
object BindDataSource { get; set; }
|
|
|
|
|
DbOptionTypes DbOptionType { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否可见
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool MCVisible { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否可用
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool MCEnabled { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否有效
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool IsValid { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 事件是否有效
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool IsEventValid { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum DbOptionTypes
|
|
|
|
|
{
|
|
|
|
|
None,
|
|
|
|
|
Query,
|
|
|
|
|
Modify,
|
|
|
|
|
QueryAndModify,
|
|
|
|
|
InitData
|
|
|
|
|
}
|
|
|
|
|
}
|