Winform Field interface
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Bronze.DEPSP.Complaint
{
public interface IFormField
{
/// <summary>
/// 表单字段名
/// </summary>
string FieldName { get; set; }
/// <summary>
/// 控件值
/// </summary>
object FieldValue { get; set; }
string ValuePropertyName { get; set; }
/// <summary>
/// 是否允许为空
/// </summary>
bool AllowBlank { get; set; }
string EmptyText { get; set; }
string VaildExpression
{
get;
set;
}
/// <summary>
/// 验证为空时的提示信息
/// </summary>
string EmptyMsg { get; set; }
/// <summary>
/// 控件默认值
/// </summary>
string DefaultValue { get; set; }
/// <summary>
/// 判断是否为空
/// </summary>
/// <returns></returns>
bool InputEmpty();
}
}