ab56a9bcf7
SVN-Revision: r240
55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Lskj.Interface.Api
|
|
{
|
|
public class Module
|
|
{
|
|
public Module() { }
|
|
public Module(DataRow rowItem)
|
|
{
|
|
if (rowItem == null) return;
|
|
this.Fromkey = rowItem.Table.Columns.Contains("fromkey") ? rowItem["fromkey"] + "" : string.Empty;
|
|
this.MenuName = rowItem.Table.Columns.Contains("menuname") ? rowItem["menuname"] + "" : rowItem.Table.Columns.Contains("menucaption") ? rowItem["menucaption"] + "" : string.Empty;
|
|
this.ModuleId = rowItem.Table.Columns.Contains("MenuCode") ? rowItem["MenuCode"] + "" : string.Empty;
|
|
this.MenuPrefix = rowItem.Table.Columns.Contains("MenuPrefix") ? rowItem["MenuPrefix"] + "" : string.Empty;
|
|
this.MenuPrefix = rowItem.Table.Columns.Contains("MenuId") ? rowItem["MenuId"] + "" : string.Empty;
|
|
|
|
}
|
|
|
|
|
|
public virtual string MasterTable { get; set; }
|
|
|
|
public string Fromkey;
|
|
// 模块名称
|
|
public string MenuName;
|
|
// 模块编码
|
|
public string ModuleId;
|
|
// Gets or sets the menu prefix.编号前缀
|
|
public string MenuPrefix;
|
|
// 菜单id
|
|
public string MenuId;
|
|
|
|
public string IdField;
|
|
// 主键值
|
|
public string IdValue;
|
|
// 修改的时候,修改的行数据
|
|
public DataRow Updrow;
|
|
// 父级行
|
|
public String SLeftRecord;
|
|
// 父级menucode
|
|
public Module ParentModule;
|
|
// 明细配置
|
|
public BaseDetailModule DetailModule;
|
|
|
|
public bool IsAdd
|
|
{
|
|
get { return string.IsNullOrWhiteSpace(IdValue); }
|
|
}
|
|
}
|
|
}
|