init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,464 @@
|
||||
/******************************
|
||||
* 说明:基础模块(P_SystemDllTab)实体对象
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-11-21
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
|
||||
namespace Lskj.MyControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 基础模块(P_SystemDllTab)实体对象
|
||||
/// </summary>
|
||||
public class ModuleModel
|
||||
{
|
||||
#region private property
|
||||
private int _menuDirId;
|
||||
private int _menuType;
|
||||
private int _printType;
|
||||
private bool _canEdit;
|
||||
private bool _hasReport;
|
||||
private bool _addEnable;
|
||||
private bool _addCopyEnabled;
|
||||
private bool _deleteEnable;
|
||||
private bool _modifyEnable;
|
||||
private bool _importEnable;
|
||||
private bool _exportEnable;
|
||||
private bool _searchEnable;
|
||||
private bool _saveApplyEnable;
|
||||
private bool _modifyClose;
|
||||
private bool _anyAdd;
|
||||
private string _menuName;
|
||||
private string _menuText;
|
||||
private string _menuSql;
|
||||
private string _menuTable;
|
||||
private string _menuAddName;
|
||||
private string _menuBmpSpec;
|
||||
private string _formKey;
|
||||
private string _condKey;
|
||||
private string _modifyCond;
|
||||
private string _deleteCond;
|
||||
private string _addCond;
|
||||
private string _dragCond;
|
||||
private string _exportCond;
|
||||
private string _overBackOper;
|
||||
private string _overBackCond;
|
||||
private string _printSql;
|
||||
private string _printSql1;
|
||||
private string _printSql2;
|
||||
private string _printFile;
|
||||
private string _printCond;
|
||||
private string _basePrintSql;
|
||||
private string _basePrintSql1;
|
||||
private string _basePrintSql2;
|
||||
private string _addCaption;
|
||||
private string _modifyCaption;
|
||||
private string _applyCaption;
|
||||
private string _backSelected;
|
||||
#endregion
|
||||
|
||||
#region public property
|
||||
/// <summary>
|
||||
/// 附件目录ID
|
||||
/// </summary>
|
||||
/// <value>The menu dir identifier.</value>
|
||||
public int MenuDirId
|
||||
{
|
||||
get { return _menuDirId; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 模块类型(1.左侧树.2.左侧表格.3.无)
|
||||
/// </summary>
|
||||
/// <value>The type of the menu.</value>
|
||||
public int MenuType
|
||||
{
|
||||
get { return _menuType; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 打印模版类型
|
||||
/// </summary>
|
||||
/// <value>The type of the print.</value>
|
||||
public int PrintType
|
||||
{
|
||||
get { return this._printType; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 表格是否可以编辑
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance can edit; otherwise, <c>false</c>.</value>
|
||||
public bool CanEdit
|
||||
{
|
||||
get { return _canEdit; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 是否为报表
|
||||
/// </summary>
|
||||
/// <value>The has report.</value>
|
||||
public bool HasReport { get { return _hasReport; } }
|
||||
/// <summary>
|
||||
/// 添加按钮是否可用
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [add enable]; otherwise, <c>false</c>.</value>
|
||||
public bool AddEnable
|
||||
{
|
||||
get { return _addEnable; }
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [add copy enabled].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [add copy enabled]; otherwise, <c>false</c>.</value>
|
||||
public bool AddCopyEnabled
|
||||
{
|
||||
get { return _addCopyEnabled; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除按钮是否可用
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [delete enable]; otherwise, <c>false</c>.</value>
|
||||
public bool DeleteEnable
|
||||
{
|
||||
get { return _deleteEnable; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改按钮是否可用
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [modify enable]; otherwise, <c>false</c>.</value>
|
||||
public bool ModifyEnable
|
||||
{
|
||||
get { return _modifyEnable; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 导入按钮是否可用
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [import enable]; otherwise, <c>false</c>.</value>
|
||||
public bool ImportEnable
|
||||
{
|
||||
get { return _importEnable; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 导出按钮是否可用
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [export enable]; otherwise, <c>false</c>.</value>
|
||||
public bool ExportEnable
|
||||
{
|
||||
get { return _exportEnable; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 查询按钮是否可用
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [search enable]; otherwise, <c>false</c>.</value>
|
||||
public bool SearchEnable
|
||||
{
|
||||
get { return _hasReport ? true : _searchEnable; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 保存提交按钮是否可用
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [save apply enable]; otherwise, <c>false</c>.</value>
|
||||
public bool SaveApplyEnable
|
||||
{
|
||||
get { return _saveApplyEnable; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 无视左侧树结构、左侧表格,添加数据
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [any add]; otherwise, <c>false</c>.</value>
|
||||
public bool AnyAdd
|
||||
{
|
||||
get { return this._anyAdd; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改保存后是否关闭窗口,默认关闭.false:不关闭,true:关闭
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [modify close]; otherwise, <c>false</c>.</value>
|
||||
public bool ModifyClose
|
||||
{
|
||||
get { return _modifyClose; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 模块名称
|
||||
/// </summary>
|
||||
/// <value>The name of the menu.</value>
|
||||
public string MenuName
|
||||
{
|
||||
get { return _menuName; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 模块标题
|
||||
/// </summary>
|
||||
/// <value>The menu text.</value>
|
||||
public string MenuText
|
||||
{
|
||||
get { return _menuText; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 模块sql
|
||||
/// </summary>
|
||||
/// <value>The menu SQL.</value>
|
||||
public string MenuSql
|
||||
{
|
||||
get { return _menuSql; }
|
||||
set { this._menuSql = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 模块表名
|
||||
/// </summary>
|
||||
/// <value>The menu table.</value>
|
||||
public string MenuTable
|
||||
{
|
||||
get { return _menuTable; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 模块添加界面展示方式
|
||||
/// </summary>
|
||||
/// <value>The name of the menu add.</value>
|
||||
public string MenuAddName
|
||||
{
|
||||
get { return _menuAddName; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 附件目录编号
|
||||
/// </summary>
|
||||
/// <value>The menu BMP spec.</value>
|
||||
public string MenuBmpSpec
|
||||
{
|
||||
get { return _menuBmpSpec; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 当前模块key
|
||||
/// </summary>
|
||||
/// <value>The form key.</value>
|
||||
public string FormKey
|
||||
{
|
||||
get { return _formKey; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 当前模块查询条件key
|
||||
/// </summary>
|
||||
/// <value>The cond key.</value>
|
||||
public string CondKey
|
||||
{
|
||||
get { return _condKey; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改条件
|
||||
/// </summary>
|
||||
/// <value>The modify cond.</value>
|
||||
public string ModifyCond
|
||||
{
|
||||
get { return _modifyCond; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除条件
|
||||
/// </summary>
|
||||
/// <value>The delete cond.</value>
|
||||
public string DeleteCond
|
||||
{
|
||||
get { return _deleteCond; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 添加条件
|
||||
/// </summary>
|
||||
/// <value>The add cond.</value>
|
||||
public string AddCond
|
||||
{
|
||||
get { return _addCond; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 拖动条件
|
||||
/// </summary>
|
||||
/// <value>The drag cond.</value>
|
||||
public string DragCond
|
||||
{
|
||||
get { return _dragCond; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 导出条件
|
||||
/// </summary>
|
||||
/// <value>The export cond.</value>
|
||||
public string ExportCond
|
||||
{
|
||||
get { return _exportCond; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 审核回退可操作人
|
||||
/// </summary>
|
||||
/// <value>The over back oper.</value>
|
||||
public string OverBackOper
|
||||
{
|
||||
get { return _overBackOper; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 审核可回退条件
|
||||
/// </summary>
|
||||
/// <value>The over back cond.</value>
|
||||
public string OverBackCond
|
||||
{
|
||||
get { return _overBackCond; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 打印SQL
|
||||
/// </summary>
|
||||
/// <value>The print SQL.</value>
|
||||
public string PrintSql
|
||||
{
|
||||
get { return _printSql; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 打印SQL1
|
||||
/// </summary>
|
||||
/// <value>The print SQL1.</value>
|
||||
public string PrintSql1
|
||||
{
|
||||
get { return _printSql1; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 打印SQL2.
|
||||
/// </summary>
|
||||
/// <value>The print SQL2.</value>
|
||||
public string PrintSql2
|
||||
{
|
||||
get { return _printSql2; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 打印文件
|
||||
/// </summary>
|
||||
/// <value>The print file.</value>
|
||||
public string PrintFile
|
||||
{
|
||||
get { return _printFile; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 打印条件
|
||||
/// </summary>
|
||||
/// <value>The print cond.</value>
|
||||
public string PrintCond
|
||||
{
|
||||
get { return _printCond; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改界面打印sql
|
||||
/// </summary>
|
||||
/// <value>The base print SQL.</value>
|
||||
public string BasePrintSql
|
||||
{
|
||||
get { return _basePrintSql; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改界面打印sql1
|
||||
/// </summary>
|
||||
/// <value>The base print SQL1.</value>
|
||||
public string BasePrintSql1
|
||||
{
|
||||
get { return _basePrintSql1; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改界面打印sql2
|
||||
/// </summary>
|
||||
/// <value>The base print SQL2.</value>
|
||||
public string BasePrintSql2
|
||||
{
|
||||
get { return _basePrintSql2; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 添加按钮显示文本
|
||||
/// </summary>
|
||||
/// <value>The add caption.</value>
|
||||
public string AddCaption
|
||||
{
|
||||
get { return _addCaption; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改按钮显示文本
|
||||
/// </summary>
|
||||
/// <value>The modify caption.</value>
|
||||
public string ModifyCaption
|
||||
{
|
||||
get { return _modifyCaption; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 提交按钮显示文本
|
||||
/// </summary>
|
||||
/// <value>The apply caption.</value>
|
||||
public string ApplyCaption
|
||||
{
|
||||
get { return _applyCaption; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 返退标记
|
||||
/// </summary>
|
||||
/// <value>The back selected.</value>
|
||||
public string BackSelected
|
||||
{
|
||||
get { return _backSelected; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 模块主键
|
||||
/// </summary>
|
||||
public string ParmaryKey;
|
||||
/// <summary>
|
||||
/// 列前缀
|
||||
/// </summary>
|
||||
public string PrefixKey;
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 基础模块(P_SystemDllTab)实体对象
|
||||
/// </summary>
|
||||
/// <param name="rowItem">The row item.</param>
|
||||
public ModuleModel(DataRow rowItem)
|
||||
{
|
||||
if (rowItem == null) return;
|
||||
this._menuDirId = string.IsNullOrEmpty(rowItem["dirId"] + "") ? 0 : Convert.ToInt32(rowItem["dirId"] + "");
|
||||
this._menuType = string.IsNullOrEmpty(rowItem["dllType"] + "") ? 3 : Convert.ToInt32(rowItem["dllType"] + "");
|
||||
this._printType = string.IsNullOrEmpty(rowItem["printType"] + "") ? 1 : Convert.ToInt32(rowItem["printType"] + "");
|
||||
this._canEdit = "1".Equals(rowItem["selfEdit"] + "");
|
||||
this._addEnable = "1".Equals(rowItem["addEnable"] + "");
|
||||
this._addCopyEnabled = rowItem.Table.Columns.Contains("addCopyEnabled") ? "1".Equals(rowItem["addCopyEnabled"] + "") : true;
|
||||
this._deleteEnable = "1".Equals(rowItem["deleteEnable"] + "");
|
||||
this._modifyEnable = "1".Equals(rowItem["modifyEnable"] + "");
|
||||
this._importEnable = "1".Equals(rowItem["importEnable"] + "");
|
||||
this._exportEnable = "1".Equals(rowItem["exportEnable"] + "");
|
||||
this._searchEnable = rowItem.Table.Columns.Contains("searchEnable") ? "1".Equals(rowItem["searchEnable"] + "") : true;
|
||||
this._saveApplyEnable = rowItem.Table.Columns.Contains("saveApplyEnabled") ? "1".Equals(rowItem["saveApplyEnabled"] + "") : false;
|
||||
this._modifyClose = rowItem.Table.Columns.Contains("ModifyClose") ? string.IsNullOrEmpty(rowItem["ModifyClose"] + "") || "1".Equals(rowItem["ModifyClose"] + "") : true;
|
||||
this._anyAdd = rowItem.Table.Columns.Contains("AnyAdd") ? "true".Equals((rowItem["AnyAdd"] + "").ToLower()) : false;
|
||||
this._menuName = rowItem["dllName"] + "";
|
||||
this._menuText = rowItem["toolsName"] + "";
|
||||
this._menuSql = rowItem["SQL"] + "";
|
||||
this._menuTable = rowItem["SQLDT1"] + "";
|
||||
this._menuAddName = rowItem["AddDllName"] + "";
|
||||
this._menuBmpSpec = rowItem["BmpSpec"] + "";
|
||||
this._formKey = rowItem["formKey"] + "";
|
||||
this._condKey = rowItem["condKey"] + "";
|
||||
this._modifyCond = rowItem["modifyCond"] + "";
|
||||
this._deleteCond = rowItem["deleteCond"] + "";
|
||||
this._addCond = rowItem["addCond"] + "";
|
||||
this._hasReport = "1".Equals(rowItem["isReport"] + "");
|
||||
this._dragCond = rowItem.Table.Columns.Contains("dragCond") ? rowItem["dragCond"] + "" : string.Empty;
|
||||
this._exportCond = rowItem.Table.Columns.Contains("exportCond") ? rowItem["exportCond"] + "" : string.Empty;
|
||||
this._overBackOper = rowItem.Table.Columns.Contains("overBackOper") ? rowItem["overBackOper"] + "" : string.Empty;
|
||||
this._overBackCond = rowItem.Table.Columns.Contains("overBackCond") ? rowItem["overBackCond"] + "" : string.Empty;
|
||||
this._printSql = rowItem["printSql"] + "";
|
||||
this._printSql1 = rowItem["printSql1"] + "";
|
||||
this._printSql2 = rowItem["printSql2"] + "";
|
||||
this._printFile = rowItem["printFile"] + "";
|
||||
this._printCond = rowItem.Table.Columns.Contains("printCond") ? rowItem["printCond"] + "" : "";
|
||||
this._backSelected = rowItem.Table.Columns.Contains("backSelected") ? rowItem["backSelected"] + "" : "0";
|
||||
this._basePrintSql = rowItem.Table.Columns.Contains("basePrintSql") ? rowItem["basePrintSql"] + "" : string.Empty;
|
||||
this._basePrintSql1 = rowItem.Table.Columns.Contains("basePrintSql1") ? rowItem["basePrintSql1"] + "" : string.Empty;
|
||||
this._basePrintSql2 = rowItem.Table.Columns.Contains("asePrintSql2") ? rowItem["_basePrintSql2"] + "" : string.Empty;
|
||||
this._addCaption = rowItem.Table.Columns.Contains("addCaption") ? rowItem["addCaption"] + "" : string.Empty;
|
||||
this._modifyCaption = rowItem.Table.Columns.Contains("modifyCaption") ? rowItem["modifyCaption"] + "" : string.Empty;
|
||||
this._applyCaption = rowItem.Table.Columns.Contains("applyCaption") ? rowItem["applyCaption"] + "" : string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user