/******************************
* 说明:附件对象
* 创建人:龚宇超
* 创建日期:2018-03-07
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace Lskj.Model
{
///
/// 附件对象
///
public class AttachModuleModel
{
///
/// 模块编号
///
/// The menu code.
public string MenuCode { get; private set; }
///
/// 模块名称
///
/// The name of the menu.
public string MenuName { get; private set; }
///
/// 目录ID
///
/// The dir identifier.
public string DirId { get; private set; }
///
/// Gets the menu BMP spec.
///
/// The menu BMP spec.
public string MenuBmpSpec { get; private set; }
///
/// 1.基础档案、2.单据
///
/// The type of the mod.
public int ModType { get; private set; }
///
/// 是否为报表
///
/// The is report.
public bool IsReport { get; private set; }
///
/// 表名
///
/// The name of the table.
public string TableName { get; private set; }
///
/// Gets the form key.
///
/// The form key.
public string FormKey { get; private set; }
///
/// 模块主键,只会出现在基础档案
///
/// The parmary key.
public string ParmaryKey;
public AttachModuleModel(DataRow rowItem)
{
this.MenuCode = rowItem["DllCoid"] + "";
this.MenuName = rowItem["ToolsName"] + "";
this.DirId = rowItem["dirid"] + "";
this.MenuBmpSpec = rowItem["bmpSpec"] + "";
this.ModType = Convert.ToInt32(rowItem["modType"] + "");
this.IsReport = "1".Equals(rowItem["isReport"] + "");
this.TableName = rowItem["TableName"] + "";
this.FormKey = rowItem.Table.Columns.Contains("formKey") ?rowItem["formKey"] + "":"";
}
}
}