Files
lserp_cs_6.0/插件库/Lskj.Model/AttachModuleModel.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

82 lines
2.5 KiB
C#

/******************************
* 说明:附件对象
* 创建人:龚宇超
* 创建日期: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
{
/// <summary>
/// 附件对象
/// </summary>
public class AttachModuleModel
{
/// <summary>
/// 模块编号
/// </summary>
/// <value>The menu code.</value>
public string MenuCode { get; private set; }
/// <summary>
/// 模块名称
/// </summary>
/// <value>The name of the menu.</value>
public string MenuName { get; private set; }
/// <summary>
/// 目录ID
/// </summary>
/// <value>The dir identifier.</value>
public string DirId { get; private set; }
/// <summary>
/// Gets the menu BMP spec.
/// </summary>
/// <value>The menu BMP spec.</value>
public string MenuBmpSpec { get; private set; }
/// <summary>
/// 1.基础档案、2.单据
/// </summary>
/// <value>The type of the mod.</value>
public int ModType { get; private set; }
/// <summary>
/// 是否为报表
/// </summary>
/// <value>The is report.</value>
public bool IsReport { get; private set; }
/// <summary>
/// 表名
/// </summary>
/// <value>The name of the table.</value>
public string TableName { get; private set; }
/// <summary>
/// Gets the form key.
/// </summary>
/// <value>The form key.</value>
public string FormKey { get; private set; }
/// <summary>
/// 模块主键,只会出现在基础档案
/// </summary>
/// <value>The parmary key.</value>
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"] + "":"";
}
}
}