using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc.Html;
using QMFrameWork.WebUI.Attribute;
using QMFrameWork.WebUI;
using System.Web.Mvc;

namespace QMAPP.Web.Models.Sys
{
    /// <summary>
    /// 公告页面模型
    /// </summary>
    public class MyNoticeInfoModel : QDGModel
    {
        public MyNoticeInfoModel()
        {
            //StartTime = null;
            //EndTime = null;
            USETIME = DateTime.Now.ToString("yyyy-MM-dd");

            this.propertyParameter = new Dictionary<string, string>();
            this.propertyParameter.Add("onClickRow"
                        , "function (rowIndex, rowData) {ClickNotice(rowData[\"NoticeID\"]);return false;}");
        }

        ///<summary>
        ///
        ///</summary>
        [Description("")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
        [InputType(inputType.text)]
        [DGColumn(Hidden = true, PrimaryKey = true)]
        public string NOTICEID { get; set; }


        ///<summary>
        ///通知标题
        ///</summary>
        [Description("通知标题")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 200, Width = 380)]
        [InputType(inputType.text)]
        [DGColumn(frozenColumns = true, Sortable = true, Width = 200, DataAlign = DataAlign.left, Linked = true)]
        public string NOTICETITLE { get; set; }

        [Description("通知标题")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 200)]
        [InputType(inputType.text)] 
        public string NOTICETITLE1 { get; set; }


        ///<summary>
        ///通知类型
        ///</summary>
        [Description("通知类型")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 20, JsonUtl = "/Notice/GetEquComboxSource")]
        [InputType(inputType.combobox)]
        [DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)]
        public string NOTICETYPE { get; set; }


        ///<summary>
        ///通知内容
        ///</summary>
        [Description("通知内容")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 8000, Height = 90, Width = 380)]
        [InputType(inputType.textArea)]
        [DGColumn(frozenColumns = true, Hidden = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)]
        public string NOTICECONTEXT { get; set; }


        ///<summary>
        ///通知日期
        ///</summary>
        [Description("通知日期")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 3)]
        [InputType(inputType.datebox)]
        [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd")]
        public string USETIME { get; set; }
         
        ///<summary>
        ///附件
        ///</summary>
        [Description("附件")]
        [HTMLInput(UpdateRead = false, required = false, MaxLength = 100)]
        [InputType(inputType.text)] 
        public string ATTACHFILE { get; set; }


        ///<summary>
        ///是否可回复
        ///</summary>
        [Description("是否回复")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 1)]
        [InputType(inputType.checkBox)] 
        public string CANREPLY { get; set; }


        ///<summary>
        ///发送标志
        ///</summary>
        [Description("发送标志")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 1)]
        [InputType(inputType.text)] 
        public string SENDFLG { get; set; }


        ///<summary>
        ///发送目标
        ///</summary>
        [Description("发送目标")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 2000, Height = 30, Width = 380)]
        [InputType(inputType.textArea)] 
        public string SENDAIM { get; set; }


        ///<summary>
        ///发送时间
        ///</summary>
        [Description("发送时间")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 3)]
        [InputType(inputType.datebox)]
        [DGColumn(frozenColumns = false, Sortable = true, Width = 130, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd hh:mm:ss")]
        public DateTime SENDTIME { get; set; } 

        ///<summary>
        ///发送人
        ///</summary>
        [Description("发送人")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
        [InputType(inputType.text)]
        [DGColumn(frozenColumns = false, Sortable = true, Width = 100, DataAlign = DataAlign.left)]
        public string UPDATEUSER { get; set; }
         
        public string INFOLIST { get; set; }
    }
}