代码乱了(靳如坦的技术blog)

专注于.net,c#,Ajax、Sql Server、SmartClient等相关的开发
posts - 151, comments - 775, trackbacks - 13, articles - 2
  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理

Winform Field interface

Posted on 2011-01-27 17:44 代码乱了 阅读(79) 评论(0) 编辑 收藏
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();
    }
}