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

namespace QMAPP.Web.Models.Sys
{
    public class UserPowerModel
    {
        /// <summary>
        /// 用户主键
        /// </summary>
        [Description("用户主键")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
        [InputType(inputType.hidden)]
        public string UserID { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Description("用户名")]
        [HTMLInput(UpdateRead = true, required = true, MaxLength = 50, Width = 100)]
        [InputType(inputType.text)]
        public string LoginUserID { get; set; }

        /// <summary>
        /// 员工工号
        /// </summary>
        [Description("员工工号")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 15, Width = 100)]
        [InputType(inputType.text)]
        public string EmployeeNO { get; set; }

        /// <summary>
        /// 员工姓名
        /// </summary>
        [Description("员工姓名")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 50, Width = 100)]
        [InputType(inputType.text)]
        public string UserName { get; set; }

        /// <summary>
        /// 更新日期
        /// </summary>
        [Description("更新日期")]
        [InputType(inputType.hidden)]    
        public DateTime UpdateDate { get; set; }

        [Description("仓库")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
        [InputType(inputType.text)]       
        public string CorpID { get; set; }

        ///<summary>
        ///仓库编号
        ///</summary>
        [Description("仓库编号")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 4,Width=120)]
        [InputType(inputType.text)]
        public string CorpCode { get; set; }

        ///<summary>
        ///仓库名称
        ///</summary>
        [Description("仓库名称")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 4,Width=120)]
        [InputType(inputType.text)]
        public string CorpName { get; set; }

        ///<summary>
        ///零件类别
        ///</summary>
        [Description("零件类别")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
        [InputType(inputType.text)]       
        public string MatSortID { get; set; }


        ///<summary>
        ///零件类别编号
        ///</summary>
        [Description("零件类别编号")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 3, Width = 120)]
        [InputType(inputType.text)]       
        public string MatSortNO { get; set; }


        ///<summary>
        ///零件类别名称
        ///</summary>
        [Description("零件类别名称")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 50, Width = 120)]
        [InputType(inputType.text)]   
        public string MatSortName { get; set; }

        [Description("全部授权")]
        [HTMLInput]
        [InputType(inputType.checkBox)]  
        public bool AllLines { get; set; }

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

        ///<summary>
        ///路线编号
        ///</summary>
        [Description("路线编号")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 3,Width=100)]
        [InputType(inputType.text)]        
        public string LineNO { get; set; }

        ///<summary>
        ///路线名称
        ///</summary>
        [Description("路线名称")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 3,Width=100)]
        [InputType(inputType.combobox)]   
        public string LineName { get; set; }

        ///<summary>
        ///要货地
        ///</summary>
        [Description("要货地")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
        [InputType(inputType.text)]
        public string PLACEDISID { get; set; }


        ///<summary>
        ///要货地编号
        ///</summary>
        [Description("要货地编号")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 6, Width = 120)]
        [InputType(inputType.text)]
        public string PLACEDISNO { get; set; }


        ///<summary>
        ///要货地名称
        ///</summary>
        [Description("要货地名称")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 50, Width = 120)]
        [InputType(inputType.text)]
        public string DESCRIBE_SITE { get; set; }

        ///<summary>
        ///发货地
        ///</summary>
        [Description("发货地")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
        [InputType(inputType.text)]
        public string SENDPLACEID { get; set; }


        ///<summary>
        ///发货地编号
        ///</summary>
        [Description("发货地编号")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 3, Width = 120)]
        [InputType(inputType.text)]
        public string SENDPLACENO { get; set; }


        ///<summary>
        ///发货地名称
        ///</summary>
        [Description("发货地名称")]
        [HTMLInput(UpdateRead = false, required = true, MaxLength = 50, Width = 120)]
        [InputType(inputType.text)]
        public string SENDPLACENAME { get; set; }

        /// <summary>
        /// 已选中仓库(逗号分隔)
        /// </summary>
        public string SelectedCorp { get; set; }

        /// <summary>
        /// 相关仓库
        /// </summary>
        public string CorpList { get; set; }

        /// <summary>
        /// 相关路线
        /// </summary>
        public string LineList { get; set; }

        /// <summary>
        /// 相关零件类别
        /// </summary>
        public string MatSortList { get; set; }

        /// <summary>
        /// 相关要货地
        /// </summary>
        public string RequestPlaceList { get; set; }

        /// <summary>
        /// 相关发货地
        /// </summary>
        public string SendPlaceList { get; set; }
    }
}