|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using HcUtility.Core;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace HomeService.Models
|
|
|
|
|
{
|
|
|
|
|
[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 _templeturl = string.Empty;
|
|
|
|
|
private bool _hasimg = false;
|
|
|
|
|
private string _mainimgurl = string.Empty;
|
|
|
|
|
private bool _haslist = false;
|
|
|
|
|
private int _liststyle = -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 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 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 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 int SORT
|
|
|
|
|
{
|
|
|
|
|
get { return _sort; }
|
|
|
|
|
set { _sort = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public MsTempletStructure()
|
|
|
|
|
{
|
|
|
|
|
TableName = "templet";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|