天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

117 lines
4.3 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc.Html;
using QMFrameWork.WebUI;
using QMFrameWork.WebUI.Attribute;
namespace QMAPP.FJC.Web.Models
{
/// <summary>
/// 用户信息模型
/// </summary>
public class ExampleUserInfoModel : QDGModel
{
public ExampleUserInfoModel()
{
this.propertyParameter = new Dictionary<string, string>();
//this.propertyParameter.Add("view", "detailview");
//this.propertyParameter.Add("detailFormatter", "function (rowIndex, rowData) { return showDetail(rowIndex, rowData); } ");
//this.propertyParameter.Add("onExpandRow", "function (rowIndex,rowData){ openDetailView(rowIndex,rowData); }");
}
/// <summary>
/// 用户主键
/// </summary>
[Description("用户主键")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.hidden)]
[DGColumn(Hidden=true, PrimaryKey = true)]
public string UserID { get; set; }
/// <summary>
/// 用户名
/// </summary>
[Description("用户名")]
[HTMLInput(UpdateRead = true, required = true, MaxLength = 20)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.center)]
public string UserName { get; set; }
/// <summary>
/// 用户姓名
/// </summary>
[Description("用户姓名")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 50)]
[InputType(inputType.text)]
[DGColumn(Sortable = true, Width = 200, DataAlign = DataAlign.left)]
public string UserDes { get; set; }
/// <summary>
/// 性别
/// </summary>
[Description("性别")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 1,Width=155)]
[InputType(inputType.combobox)]
[DGColumn(Sortable = true, Width = 40, DataAlign = DataAlign.left)]
[ModelDictionary]
public string Sex { get; set; }
/// <summary>
/// 组织机构
/// </summary>
[Description("组织机构")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36, JsonUtl = "/Dict/GetOrganComboxDataSource", multiple = false,Width=155)]
[InputType(inputType.combobox)]
[DGColumn(Sortable = true, Width = 40, DataAlign = DataAlign.left)]
public string OrganID { get; set; }
/// <summary>
/// 年龄
/// </summary>
[Description("年龄")]
[HTMLInput(UpdateRead = false, MaxLength = 3,NumberMax=100000000,NumberMin=0)]
[InputType(inputType.text)]
[DGColumn(Sortable = true, Width = 120, DataAlign = DataAlign.center)]
public int Age { get; set; }
/// <summary>
/// 职务
/// </summary>
[Description("职务")]
[HTMLInput(UpdateRead = false, MaxLength = 36)]
[InputType(inputType.text)]
public string PostInfo { get; set; }
/// <summary>
/// 出生日期
/// </summary>
[Description("出生日期")]
[HTMLInput(UpdateRead = false, MaxLength = 20)]
[InputType(inputType.datebox)]
[DGColumn(Sortable = true, Width = 120, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd")]
public DateTime BirthDate { get; set; }
/// <summary>
/// 备注
/// </summary>
[Description("备注")]
[HTMLInput(UpdateRead = false,MaxLength = 100, Width = 150, Height = 50)]
[InputType(inputType.textArea)]
[DGColumn(Sortable = true, Width = 120, DataAlign = DataAlign.center)]
public string Remark { get; set; }
[Description("创建时间")]
[HTMLInput(UpdateRead = true, MaxLength = 20)]
[InputType(inputType.hidden)]
[DGColumn(Sortable = true, Width = 120, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd")]
public DateTime CreateTime { get; set; }
[Description("更新时间")]
[HTMLInput(UpdateRead = true, MaxLength = 20)]
[InputType(inputType.hidden)]
[DGColumn(Sortable = true, Width = 120, DataAlign = DataAlign.center, FormatDate = "yyyy-MM-dd")]
public DateTime UpdateTime { get; set; }
}
}