using System; using System.Data; using System.Collections; using System.Collections.Generic; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.MvcShipping.Models.MsMainForm { [JsonObject] public class Mainmodule : ModelObjectBillHead { #region private Fields private string _gid = string.Empty; private string _companyid = string.Empty; private string _modulename = String.Empty; private string _moduletitle = String.Empty; private string _moduleurl = String.Empty; private string _usertempletid = string.Empty; private int _defaultwidth = 0; private int _defaultheight = 0; private int _modulewidth = 0; private int _moduleheight = 0; private int _moduletop = 0; private int _moduleleft = 0; private int _colourstyle = 0; private Boolean _isuse =true; private Boolean _issys = true; private Boolean _isicoway = true; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _gid; } set { _gid = value; } } [ModelDB] public string COMPANYID { get { return _companyid; } set { _companyid = value; } } [ModelDB] public string MODULENAME { get { return _modulename; } set { _modulename = value; } } [ModelDB] public string MODULETITLE { get { return _moduletitle; } set { _moduletitle = value; } } [ModelDB] public string MODULEURL { get { return _moduleurl; } set { _moduleurl = value; } } [ModelDB] public string USERTEMPLETID { get { return _usertempletid; } set { _usertempletid = value; } } [ModelDB] public int DEFAULTWIDTH { get { return _defaultwidth; } set { _defaultwidth = value; } } [ModelDB] public int DEFAULTHEIGHT { get { return _defaultheight; } set { _defaultheight = value; } } [ModelDB] public int MODULEWIDTH { get { return _modulewidth; } set { _modulewidth = value; } } [ModelDB] public int MODULEHEIGHT { get { return _moduleheight; } set { _moduleheight = value; } } [ModelDB] public int MODULETOP { get { return _moduletop; } set { _moduletop = value; } } [ModelDB] public int MODULELEFT { get { return _moduleleft; } set { _moduleleft = value; } } [ModelDB] public int COLOURSTYLE { get { return _colourstyle; } set { _colourstyle = value; } } [ModelDB] public Boolean ISUSE { get { return _isuse; } set { _isuse = value; } } [ModelDB] public Boolean ISSYS { get { return _issys; } set { _issys = value; } } [ModelDB] public Boolean ISICOWAY { get { return _isicoway; } set { _isicoway = value; } } #endregion public Mainmodule() { TableName = "main_module"; } } [JsonObject] public class UserMainmoduleSet : ModelObjectBillHead { #region private Fields private string _gid = string.Empty; private string _moduleid = string.Empty; private string _userid = string.Empty; private string _modulename = String.Empty; private string _moduletitle = String.Empty; private string _parentitemid = string.Empty; private string _itemid = string.Empty; private int _colourstyle = -1; private bool _isvisiable = false; private string _moduleurl = String.Empty; private int _modulewidth = 0; private int _moduleheight = 0; private int _sort = 0; private Boolean _issys = true; private string _usertempletid = string.Empty; private int _defaultmodulewidth = 0; private int _defaultmoduleheight = 0; private int _moduletop = 0; private int _moduleleft = 0; private Boolean _isuse = true; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _gid; } set { _gid = value; } } [ModelDB] public string MODULEID { get { return _moduleid; } set { _moduleid = value; } } [ModelDB] public string USERTEMPLETID { get { return _usertempletid; } set { _usertempletid = value; } } [ModelDB] public string USERID { get { return _userid; } set { _userid = value; } } [ModelDB] public string MODULENAME { get { return _modulename; } set { _modulename = value; } } [ModelDB] public string MODULETITLE { get { return _moduletitle; } set { _moduletitle = value; } } [ModelDB] public string PARENTITEMID { get { return _parentitemid; } set { _parentitemid = value; } } [ModelDB] public string ITEMID { get { return _itemid; } set { _itemid = value; } } [ModelDB] public int COLOURSTYLE { get { return _colourstyle; } set { _colourstyle = value; } } [ModelDB] public bool ISVISIABLE { get { return _isvisiable; } set { _isvisiable = value; } } [ModelDB] public string MODULEURL { get { return _moduleurl; } set { _moduleurl = value; } } [ModelDB] public int DEFAULTMODULEWIDTH { get { return _defaultmodulewidth; } set { _defaultmodulewidth = value; } } [ModelDB] public int DEFAULTMODULEHEIGHT { get { return _defaultmoduleheight; } set { _defaultmoduleheight = value; } } [ModelDB] public int MODULEWIDTH { get { return _modulewidth; } set { _modulewidth = value; } } [ModelDB] public int MODULEHEIGHT { get { return _moduleheight; } set { _moduleheight = value; } } [ModelDB] public int MODULETOP { get { return _moduletop; } set { _moduletop = value; } } [ModelDB] public int MODULELEFT { get { return _moduleleft; } set { _moduleleft = value; } } [ModelDB] public int SORT { get { return _sort; } set { _sort = value; } } [ModelDB] public Boolean ISSYS { get { return _issys; } set { _issys = value; } } [ModelDB] public Boolean ISUSE { get { return _isuse; } set { _isuse = value; } } #endregion public UserMainmoduleSet() { TableName = "main_module"; } } }