You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Areas/MvcShipping/Models/MsTemplet/Templet.cs

447 lines
12 KiB
C#

3 years ago
using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.Models.MsTemplet
{
[JsonObject]
public class MsLayShowList : ModelObjectBillHead
{
#region private Fields
private string _gid = string.Empty;
private string _title = string.Empty;
private string _url = string.Empty;
private string _content = string.Empty;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
[ModelDB]
public string TITLE
{
get { return _title; }
set { _title = value; }
}
[ModelDB]
public string URL
{
get { return _url; }
set { _url = value; }
}
[ModelDB]
public string CONTENT
{
get { return _content; }
set { _content = value; }
}
#endregion
public MsLayShowList()
{
TableName = "templet";
}
}
[JsonObject]
public class MsTempletStructure : ModelObjectBillHead
{
#region private Fields
private string _gid = string.Empty;
private string _templetid = string.Empty;
private string _templetname = string.Empty;
private string _templetthumb = string.Empty;
private string _showtempletid = string.Empty;
private string _templeturl = string.Empty;
private bool _hasimg = false;
private string _mainimgurl = string.Empty;
private bool _haslist = false;
private int _liststyle = -1;
private int _colourstyle = -1;
private bool _haschild = false;
private string _parentitemid = string.Empty;
private string _itemid = string.Empty;
private int _itemtype = -1;
private string _imgurl = string.Empty;
private string _companyid = string.Empty;
private string _userid = string.Empty;
private string _parentid = string.Empty;
private string _itemname = string.Empty;
private string _linkurl = string.Empty;
private string _sql = string.Empty;
private bool isicoway = false;
private string iconname = string.Empty;
private int _sort = -1;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
[ModelDB]
public string TEMPLETID
{
get { return _templetid; }
set { _templetid = value; }
}
[ModelDB]
public string TEMPLETNAME
{
get { return _templetname; }
set { _templetname = value; }
}
[ModelDB]
public string TEMPLETTHUMB
{
get { return _templetthumb; }
set { _templetthumb = value; }
}
[ModelDB]
public string SHOWTEMPLETID
{
get { return _showtempletid; }
set { _showtempletid = value; }
}
[ModelDB]
public string TEMPLETURL
{
get { return _templeturl; }
set { _templeturl = value; }
}
[ModelDB]
public bool HASIMG
{
get { return _hasimg; }
set { _hasimg = value; }
}
[ModelDB]
public string MAINIMGURL
{
get { return _mainimgurl; }
set { _mainimgurl = value; }
}
[ModelDB]
public bool HASLIST
{
get { return _haslist; }
set { _haslist = value; }
}
[ModelDB]
public int LISTSTYLE
{
get { return _liststyle; }
set { _liststyle = value; }
}
[ModelDB]
public int COLOURSTYLE
{
get { return _colourstyle; }
set { _colourstyle = value; }
}
[ModelDB]
public bool HASCHILD
{
get { return _haschild; }
set { _haschild = value; }
}
[ModelDB]
public string PARENTITEMID
{
get { return _parentitemid; }
set { _parentitemid = value; }
}
[ModelDB]
public string ITEMID
{
get { return _itemid; }
set { _itemid = value; }
}
[ModelDB]
public int ITEMTYPE
{
get { return _itemtype; }
set { _itemtype = value; }
}
[ModelDB]
public string IMGURL
{
get { return _imgurl; }
set { _imgurl = value; }
}
[ModelDB]
public string COMPANYID
{
get { return _companyid; }
set { _companyid = value; }
}
[ModelDB]
public string USERID
{
get { return _userid; }
set { _userid = value; }
}
[ModelDB]
public string PARENTID
{
get { return _parentid; }
set { _parentid = value; }
}
[ModelDB]
public string ITEMNAME
{
get { return _itemname; }
set { _itemname = value; }
}
[ModelDB]
public string LINKURL
{
get { return _linkurl; }
set { _linkurl = value; }
}
[ModelDB]
public string SQL
{
get { return _sql; }
set { _sql = value; }
}
[ModelDB]
public bool ISICOWAY
{
get { return isicoway; }
set { isicoway = value; }
}
[ModelDB]
public string ICONNAME
{
get { return iconname; }
set { iconname = value; }
}
[ModelDB]
public int SORT
{
get { return _sort; }
set { _sort = value; }
}
#endregion
public MsTempletStructure()
{
TableName = "templet";
}
}
[JsonObject]
public class Module : ModelObjectBillHead
{
#region 私有成员
private string _gid = "";//主键唯一值
private string _name = "";//模块系统名称
private string _description = "";//模块中文名称
private string _url = "";//模块链接地址
private string _icon = "";//模块图标文件全名
private string _parentid = "";//父模块GID标识父节点,通过这个字段与父模块关联,如果值为”0”则当前模块为父模块或者是顶层模块,如果不为0则应是模块GID值
private int _sort = 0;//模块排序值
private int _state = 1;//模块状态值
private int _showroot = 0;//是否显示模块根菜单和顶部菜单状态栏,如果当前模块为顶级模块并且模块为非主显示菜单当值为0时显示Root菜单如果值为1时自动隐藏Root菜单和顶部显示菜单信息栏
private int _type = 0;//标识当前模块所显示位置0表示现在主界面模块1表示模块只在操作界面内显示不在主界面显示
private string _create_user;//创建人
private DateTime _create_time;//创建时间
private string _modified_user;//最后一次更新操作人GID
private DateTime _modified_time;//最后一次更新操作时间
#endregion
#region 构造函数
/// <summary>
/// 不带参数构造函数
/// </summary>
public Module()
{
TableName = "sys_module";
}
#endregion
#region 读写属性
/// <summary>
/// 主键唯一值
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string Gid
{
get { return _gid; }
set { _gid = value; }
}
/// <summary>
/// 模块系统名称
/// </summary>
[ModelDB]
public string ModuleName
{
get { return _name; }
set { _name = value; }
}
/// <summary>
/// 模块中文名称
/// </summary>
[ModelDB]
public string ModuleDescription
{
get { return _description; }
set { _description = value; }
}
/// <summary>
/// 模块链接地址
/// </summary>
[ModelDB]
public string ModuleUrl
{
get { return _url; }
set { _url = value; }
}
/// <summary>
/// 模块图标文件全名
/// </summary>
[ModelDB]
public string ModuleIcon
{
get { return _icon; }
set { _icon = value; }
}
/// <summary>
/// 父模块GID标识父节点,通过这个字段与父模块关联,如果值为”0”则当前模块为父模块或者是顶层模块,如果不为0则应是模块GID值
/// </summary>
[ModelDB]
public string ParentID
{
get { return _parentid; }
set { _parentid = value; }
}
/// <summary>
/// 模块状态值
/// </summary>
[ModelDB]
public int ModuleState
{
get { return _state; }
set { _state = value; }
}
/// <summary>
/// 模块排序值
/// </summary>
[ModelDB]
public int ModuleSort
{
get { return _sort; }
set { _sort = value; }
}
/// <summary>
/// 是否显示模块根菜单和顶部菜单状态栏
/// 如果当前模块为顶级模块并且模块为非主显示菜单当值为0时显示Root菜单如果值为1时自动隐藏Root菜单和顶部显示菜单信息栏
/// </summary>
[ModelDB]
public int ShowRootState
{
get { return _showroot; }
set { _showroot = value; }
}
/// <summary>
/// 标识当前模块所显示位置0表示现在主界面模块1表示模块只在操作界面内显示不在主界面显示
/// </summary>
[ModelDB]
public int ModuleType
{
get { return _type; }
set { _type = value; }
}
/// <summary>
/// 创建人
/// </summary>
[ModelDB]
public string CreateUser
{
get { return _create_user; }
set { _create_user = value; }
}
/// <summary>
/// 创建时间
/// </summary>
[ModelDB]
public DateTime CreateTime
{
get { return _create_time; }
set { _create_time = value; }
}
/// <summary>
/// 最后一次更新操作人GID
/// </summary>
[ModelDB]
public string ModifiedUser
{
get { return _modified_user; }
set { _modified_user = value; }
}
/// <summary>
/// 最后一次更新操作时间
/// </summary>
[ModelDB]
public DateTime ModifiedTime
{
get { return _modified_time; }
set { _modified_time = value; }
}
#endregion
}
[JsonObject]
public class MsMonthSumDataSet : ModelObjectBillHead
{
#region private Fields
private string _OBJNAME = String.Empty;
private decimal _OBJNUM = 0;
private string _MONTHFIELDNAME = String.Empty;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string OBJNAME
{
get { return _OBJNAME; }
set { _OBJNAME = value; }
}
[ModelDB]
public decimal OBJNUM
{
get { return _OBJNUM; }
set { _OBJNUM = value; }
}
[ModelDB]
public string MONTHFIELDNAME
{
get { return _MONTHFIELDNAME; }
set { _MONTHFIELDNAME = value; }
}
#endregion
}
}