天津投入产出系统后端
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.
 
 
 
 
 
 

218 lines
7.6 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc.Html;
using QMFrameWork.WebUI.Attribute;
using QMFrameWork.WebUI;
namespace QMAPP.MD.Web.Models
{
/// <summary>
/// 模块名称:物料
/// 作 者:郭兆福
/// 编写日期:2017年05月10日
/// </summary>
public class MaterialModel : QDGModel
{
/// <summary>
/// 物料主键
/// </summary>
[Description("物料主键")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 36)]
[InputType(inputType.hidden)]
[DGColumn(Hidden = true, PrimaryKey = true)]
public string PID { get; set; }
/// <summary>
/// 物料号
/// </summary>
[Description("物料号")]
[HTMLInput(UpdateRead = true, required = true, MaxLength = 20)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = true, Sortable = true, Width = 140, DataAlign = DataAlign.left)]
public string MATERIAL_CODE { get; set; }
/// <summary>
/// 物料名称
/// </summary>
[Description("物料名称")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 30, Width = 150)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = true, Sortable = true, Width = 240, DataAlign = DataAlign.left)]
public string MATERIAL_NAME { get; set; }
/// <summary>
/// 简称
/// </summary>
[Description("简称")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 50)]
[InputType(inputType.text)]
[DGColumn(frozenColumns = true, Sortable = true, Width = 100, DataAlign = DataAlign.left)]
public string MATERIAL_SHORT { get; set; }
/// <summary>
/// 项目号
/// </summary>
[Description("项目号")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 50)]
[InputType(inputType.combobox)]
//[DGColumn(Sortable = true, Width = 90, DataAlign = DataAlign.left)]
public string PROJECTCODE { get; set; }
[Description("项目号")]
[DGColumn(frozenColumns = true, Sortable = true, Width = 90, DataAlign = DataAlign.left)]
public string PROJECT_NAME { get; set; }
/// <summary>
/// 物料分类编号
/// </summary>
[Description("物料分类")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 100, JsonUtl = "/Dict/GetMaterialClassTree")]
[InputType(inputType.combotree)]
public string MATERIAL_TYPE_CODE { get; set; }
// <summary>
/// 物料分类
/// </summary>
[Description("物料分类")]
[DGColumn(frozenColumns = true, Sortable = true, Width = 170, DataAlign = DataAlign.left)]
public string MATERIAL_TYPE_NAME { get; set; }
/// <summary>
/// 颜色
/// </summary>
[Description("颜色")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 100, JsonUtl = "/Dict/GetFixedComboxSource?kind=COLOR")]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 50, DataAlign = DataAlign.left)]
public string COLOR { get; set; }
///<summary>
/// 配置
/// </summary>
[Description("配置")]
[HTMLInput(UpdateRead = false, required = false, MaxLength = 100, JsonUtl = "/Dict/GetFixedComboxSource?kind=HBTYPE")]
[InputType(inputType.combobox)]
[DGColumn(frozenColumns = false, Sortable = true, Width = 40, DataAlign = DataAlign.left)]
public string HBTYPE { get; set; }
/// <summary>
/// 计量单位
/// </summary>
[Description("计量单位")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 10)]
[InputType(inputType.text)]
public string UNIT_CODE { get; set; }
/// <summary>
/// 厂商
/// </summary>
[Description("厂商")]
[HTMLInput(UpdateRead = false, required = false, MaxLength = 30)]
[InputType(inputType.text)]
[DGColumn(Sortable = true, Width = 330, DataAlign = DataAlign.left)]
public string MATERIAL_COMP { get; set; }
/// <summary>
/// 外购件标识
/// </summary>
[Description("外购件标识")]
[HTMLInput(UpdateRead = false, required = false, MaxLength = 100, JsonUtl = "/Dict/GetFixedComboxSource?kind=OutSourceFlag&WithEmpty=false")]
[InputType(inputType.combobox)]
public string OUTSOURCE { get; set; }
/// <summary>
/// 外购件标识名称
/// </summary>
[Description("外购件")]
[DGColumn(Sortable = true, Width = 50, DataAlign = DataAlign.left)]
public string OUTSOURCE_NAME { get; set; }
// <summary>
/// 标准包装数量
/// </summary>
[Description("标准包装数量")]
[HTMLInput(UpdateRead = false, required = false, MaxLength = 30, DataType = QDataType.number, NumberMax = 2147483647)]
[InputType(inputType.text)]
[DGColumn(Sortable = true, Width = 90, DataAlign = DataAlign.left)]
public int STD_QTY { get; set; }
/// <summary>
/// 规格描述
/// </summary>
[Description("规格描述")]
[HTMLInput(UpdateRead = false, required = false, MaxLength = 100,Width = 420, Height = 50)]
[InputType(inputType.textArea)]
[DGColumn(Sortable = true, Width = 200, DataAlign = DataAlign.left)]
public string REMARK { get; set; }
///<summary>
///删除标识
///</summary>
[Description("删除标识")]
[HTMLInput(UpdateRead = false, required = true, MaxLength = 1)]
[InputType(inputType.hidden)]
public string FLGDEL { get; set; }
/// <summary>
/// 创建用户
/// </summary>
[Description("创建用户")]
public string CREATEUSER { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Description("创建时间")]
[HTMLInput(UpdateRead = true, MaxLength = 20)]
[InputType(inputType.hidden)]
public DateTime CREATEDATE { get; set; }
/// <summary>
/// 更新用户
/// </summary>
[Description("更新用户")]
public string UPDATEUSER { get; set; }
/// <summary>
/// 更新时间
/// </summary>
[Description("更新时间")]
[HTMLInput(UpdateRead = true, MaxLength = 20)]
[InputType(inputType.hidden)]
public DateTime UPDATEDATE { get; set; }
/// <summary>
/// 工厂编号
/// </summary>
[Description("工厂")]
[HTMLInput(UpdateRead = true, required = true, JsonUtl = "/Dict/GetFactoryComboxSource", MaxLength = 20, Width = 153)]
[InputType(inputType.combobox)]
[DGColumn(Sortable = true, Width = 50, DataAlign = DataAlign.left)]
public string FACTORY_CODE { get; set; }
/// <summary>
/// 工厂名称
/// </summary>
[Description("工厂名称")]
[DGColumn(Sortable = true, Width = 320, DataAlign = DataAlign.left)]
public string FACTORY_NAME { get; set; }
// <summary>
/// 上传图片
/// </summary>
[Description("上传图片")]
[HTMLInput(UpdateRead = false, required = false, MaxLength = 100)]
[InputType(inputType.text)]
[DGColumn(Sortable = true, Width = 90, DataAlign = DataAlign.left)]
public string IMAGE_PATH { get; set; }
}
}