现在的位置: 首页 > 综合 > 正文

Winform Field interface

2012年06月11日 ⁄ 综合 ⁄ 共 768字 ⁄ 字号 评论关闭
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();
    }
}

抱歉!评论已关闭.