diff --git a/COMCMS.API/COMCMS.API.csproj b/COMCMS.API/COMCMS.API.csproj
index e1d2cb8..be03c83 100644
--- a/COMCMS.API/COMCMS.API.csproj
+++ b/COMCMS.API/COMCMS.API.csproj
@@ -5,9 +5,9 @@
-
-
-
+
+
+
diff --git a/COMCMS.Common/COMCMS.Common.csproj b/COMCMS.Common/COMCMS.Common.csproj
index 47ee252..58633bb 100644
--- a/COMCMS.Common/COMCMS.Common.csproj
+++ b/COMCMS.Common/COMCMS.Common.csproj
@@ -6,11 +6,11 @@
-
+
-
-
+
+
diff --git a/COMCMS.Core/Article/文章.cs b/COMCMS.Core/Article/文章.cs
index a9d52e3..647fa39 100644
--- a/COMCMS.Core/Article/文章.cs
+++ b/COMCMS.Core/Article/文章.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Article/文章栏目.cs b/COMCMS.Core/Article/文章栏目.cs
index e268adc..0fba6a0 100644
--- a/COMCMS.Core/Article/文章栏目.cs
+++ b/COMCMS.Core/Article/文章栏目.cs
@@ -7,6 +7,7 @@ using System.Xml.Serialization;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/COMCMS.Core.csproj b/COMCMS.Core/COMCMS.Core.csproj
index 94051ee..2be41af 100644
--- a/COMCMS.Core/COMCMS.Core.csproj
+++ b/COMCMS.Core/COMCMS.Core.csproj
@@ -5,7 +5,7 @@
-
+
diff --git a/COMCMS.Core/Core/Tag标签.cs b/COMCMS.Core/Core/Tag标签.cs
index 7c4c631..8835531 100644
--- a/COMCMS.Core/Core/Tag标签.cs
+++ b/COMCMS.Core/Core/Tag标签.cs
@@ -7,6 +7,7 @@ using System.Xml.Serialization;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/Tag标签详情.cs b/COMCMS.Core/Core/Tag标签详情.cs
index 68774f5..73026da 100644
--- a/COMCMS.Core/Core/Tag标签详情.cs
+++ b/COMCMS.Core/Core/Tag标签详情.cs
@@ -7,6 +7,7 @@ using System.Xml.Serialization;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/其他配置.cs b/COMCMS.Core/Core/其他配置.cs
index 9f68806..84a1e3b 100644
--- a/COMCMS.Core/Core/其他配置.cs
+++ b/COMCMS.Core/Core/其他配置.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/友情连接详情.cs b/COMCMS.Core/Core/友情连接详情.cs
index d2d4c0e..122697b 100644
--- a/COMCMS.Core/Core/友情连接详情.cs
+++ b/COMCMS.Core/Core/友情连接详情.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/友情链接分类.cs b/COMCMS.Core/Core/友情链接分类.cs
index 1f638ad..0a8a175 100644
--- a/COMCMS.Core/Core/友情链接分类.cs
+++ b/COMCMS.Core/Core/友情链接分类.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/后台菜单.cs b/COMCMS.Core/Core/后台菜单.cs
index 35ee25f..86c59f4 100644
--- a/COMCMS.Core/Core/后台菜单.cs
+++ b/COMCMS.Core/Core/后台菜单.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/后台菜单对应的事件权限.cs b/COMCMS.Core/Core/后台菜单对应的事件权限.cs
index 74d2ef7..c36cee6 100644
--- a/COMCMS.Core/Core/后台菜单对应的事件权限.cs
+++ b/COMCMS.Core/Core/后台菜单对应的事件权限.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/小程序Session.Biz.cs b/COMCMS.Core/Core/小程序Session.Biz.cs
deleted file mode 100644
index 7cbf94c..0000000
--- a/COMCMS.Core/Core/小程序Session.Biz.cs
+++ /dev/null
@@ -1,112 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.IO;
-using System.Linq;
-using System.Reflection;
-using System.Text;
-using System.Threading.Tasks;
-using System.Web;
-using System.Xml.Serialization;
-using NewLife;
-using NewLife.Data;
-using NewLife.Log;
-using NewLife.Model;
-using NewLife.Reflection;
-using NewLife.Threading;
-using NewLife.Web;
-using XCode;
-using XCode.Cache;
-using XCode.Configuration;
-using XCode.DataAccessLayer;
-using XCode.Membership;
-
-namespace COMCMS.Core
-{
- /// 小程序Session
- public partial class WXAppSession : Entity
- {
- #region 对象操作
- static WXAppSession()
- {
- // 累加字段
- //Meta.Factory.AdditionalFields.Add(__.Logins);
-
- // 过滤器 UserModule、TimeModule、IPModule
- }
-
- /// 验证数据,通过抛出异常的方式提示验证失败。
- /// 是否插入
- public override void Valid(Boolean isNew)
- {
- // 如果没有脏数据,则不需要进行任何处理
- if (!HasDirty) return;
-
- // 在新插入数据或者修改了指定字段时进行修正
- }
-
- ///// 首次连接数据库时初始化数据,仅用于实体类重载,用户不应该调用该方法
- //[EditorBrowsable(EditorBrowsableState.Never)]
- //protected override void InitData()
- //{
- // // InitData一般用于当数据表没有数据时添加一些默认数据,该实体类的任何第一次数据库操作都会触发该方法,默认异步调用
- // if (Meta.Count > 0) return;
-
- // if (XTrace.Debug) XTrace.WriteLine("开始初始化WXAppSession[小程序Session]数据……");
-
- // var entity = new WXAppSession();
- // entity.Id = 0;
- // entity.UId = 0;
- // entity.IP = "abc";
- // entity.Key = "abc";
- // entity.SessionKey = "abc";
- // entity.OpenId = "abc";
- // entity.AddTime = DateTime.Now;
- // entity.Insert();
-
- // if (XTrace.Debug) XTrace.WriteLine("完成初始化WXAppSession[小程序Session]数据!");
- //}
-
- ///// 已重载。基类先调用Valid(true)验证数据,然后在事务保护内调用OnInsert
- /////
- //public override Int32 Insert()
- //{
- // return base.Insert();
- //}
-
- ///// 已重载。在事务保护范围内处理业务,位于Valid之后
- /////
- //protected override Int32 OnDelete()
- //{
- // return base.OnDelete();
- //}
- #endregion
-
- #region 扩展属性
- #endregion
-
- #region 扩展查询
- /// 根据编号查找
- /// 编号
- /// 实体对象
- public static WXAppSession FindById(Int32 id)
- {
- if (id <= 0) return null;
-
- // 实体缓存
- if (Meta.Count < 1000) return Meta.Cache.Find(e => e.Id == id);
-
- // 单对象缓存
- //return Meta.SingleCache[id];
-
- return Find(_.Id == id);
- }
- #endregion
-
- #region 高级查询
- #endregion
-
- #region 业务操作
- #endregion
- }
-}
\ No newline at end of file
diff --git a/COMCMS.Core/Core/小程序Session.cs b/COMCMS.Core/Core/小程序Session.cs
deleted file mode 100644
index 1d47945..0000000
--- a/COMCMS.Core/Core/小程序Session.cs
+++ /dev/null
@@ -1,200 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using XCode;
-using XCode.Configuration;
-using XCode.DataAccessLayer;
-
-namespace COMCMS.Core
-{
- /// 小程序Session
- [Serializable]
- [DataObject]
- [Description("小程序Session")]
- [BindTable("WXAppSession", Description = "小程序Session", ConnName = "dbconn", DbType = DatabaseType.SqlServer)]
- public partial class WXAppSession : IWXAppSession
- {
- #region 属性
- private Int32 _Id;
- /// 编号
- [DisplayName("编号")]
- [Description("编号")]
- [DataObjectField(true, true, false, 0)]
- [BindColumn("Id", "编号", "int")]
- public Int32 Id { get { return _Id; } set { if (OnPropertyChanging(__.Id, value)) { _Id = value; OnPropertyChanged(__.Id); } } }
-
- private Int32 _UId;
- /// 用户ID
- [DisplayName("用户ID")]
- [Description("用户ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("UId", "用户ID", "int")]
- public Int32 UId { get { return _UId; } set { if (OnPropertyChanging(__.UId, value)) { _UId = value; OnPropertyChanged(__.UId); } } }
-
- private String _IP;
- /// 登录IP
- [DisplayName("登录IP")]
- [Description("登录IP")]
- [DataObjectField(false, false, true, 20)]
- [BindColumn("IP", "登录IP", "nvarchar(20)")]
- public String IP { get { return _IP; } set { if (OnPropertyChanging(__.IP, value)) { _IP = value; OnPropertyChanged(__.IP); } } }
-
- private String _Key;
- /// 系统生成Key
- [DisplayName("系统生成Key")]
- [Description("系统生成Key")]
- [DataObjectField(false, false, true, 50)]
- [BindColumn("Key", "系统生成Key", "nvarchar(50)")]
- public String Key { get { return _Key; } set { if (OnPropertyChanging(__.Key, value)) { _Key = value; OnPropertyChanged(__.Key); } } }
-
- private String _SessionKey;
- /// 微信SessionKey
- [DisplayName("微信SessionKey")]
- [Description("微信SessionKey")]
- [DataObjectField(false, false, true, 50)]
- [BindColumn("SessionKey", "微信SessionKey", "nvarchar(50)")]
- public String SessionKey { get { return _SessionKey; } set { if (OnPropertyChanging(__.SessionKey, value)) { _SessionKey = value; OnPropertyChanged(__.SessionKey); } } }
-
- private String _OpenId;
- /// 微信小程序OpenId
- [DisplayName("微信小程序OpenId")]
- [Description("微信小程序OpenId")]
- [DataObjectField(false, false, true, 50)]
- [BindColumn("OpenId", "微信小程序OpenId", "nvarchar(50)")]
- public String OpenId { get { return _OpenId; } set { if (OnPropertyChanging(__.OpenId, value)) { _OpenId = value; OnPropertyChanged(__.OpenId); } } }
-
- private DateTime _AddTime;
- /// 添加时间
- [DisplayName("添加时间")]
- [Description("添加时间")]
- [DataObjectField(false, false, true, 0)]
- [BindColumn("AddTime", "添加时间", "datetime")]
- public DateTime AddTime { get { return _AddTime; } set { if (OnPropertyChanging(__.AddTime, value)) { _AddTime = value; OnPropertyChanged(__.AddTime); } } }
- #endregion
-
- #region 获取/设置 字段值
- /// 获取/设置 字段值
- /// 字段名
- ///
- public override Object this[String name]
- {
- get
- {
- switch (name)
- {
- case __.Id : return _Id;
- case __.UId : return _UId;
- case __.IP : return _IP;
- case __.Key : return _Key;
- case __.SessionKey : return _SessionKey;
- case __.OpenId : return _OpenId;
- case __.AddTime : return _AddTime;
- default: return base[name];
- }
- }
- set
- {
- switch (name)
- {
- case __.Id : _Id = Convert.ToInt32(value); break;
- case __.UId : _UId = Convert.ToInt32(value); break;
- case __.IP : _IP = Convert.ToString(value); break;
- case __.Key : _Key = Convert.ToString(value); break;
- case __.SessionKey : _SessionKey = Convert.ToString(value); break;
- case __.OpenId : _OpenId = Convert.ToString(value); break;
- case __.AddTime : _AddTime = Convert.ToDateTime(value); break;
- default: base[name] = value; break;
- }
- }
- }
- #endregion
-
- #region 字段名
- /// 取得小程序Session字段信息的快捷方式
- public partial class _
- {
- /// 编号
- public static readonly Field Id = FindByName(__.Id);
-
- /// 用户ID
- public static readonly Field UId = FindByName(__.UId);
-
- /// 登录IP
- public static readonly Field IP = FindByName(__.IP);
-
- /// 系统生成Key
- public static readonly Field Key = FindByName(__.Key);
-
- /// 微信SessionKey
- public static readonly Field SessionKey = FindByName(__.SessionKey);
-
- /// 微信小程序OpenId
- public static readonly Field OpenId = FindByName(__.OpenId);
-
- /// 添加时间
- public static readonly Field AddTime = FindByName(__.AddTime);
-
- static Field FindByName(String name) { return Meta.Table.FindByName(name); }
- }
-
- /// 取得小程序Session字段名称的快捷方式
- public partial class __
- {
- /// 编号
- public const String Id = "Id";
-
- /// 用户ID
- public const String UId = "UId";
-
- /// 登录IP
- public const String IP = "IP";
-
- /// 系统生成Key
- public const String Key = "Key";
-
- /// 微信SessionKey
- public const String SessionKey = "SessionKey";
-
- /// 微信小程序OpenId
- public const String OpenId = "OpenId";
-
- /// 添加时间
- public const String AddTime = "AddTime";
- }
- #endregion
- }
-
- /// 小程序Session接口
- public partial interface IWXAppSession
- {
- #region 属性
- /// 编号
- Int32 Id { get; set; }
-
- /// 用户ID
- Int32 UId { get; set; }
-
- /// 登录IP
- String IP { get; set; }
-
- /// 系统生成Key
- String Key { get; set; }
-
- /// 微信SessionKey
- String SessionKey { get; set; }
-
- /// 微信小程序OpenId
- String OpenId { get; set; }
-
- /// 添加时间
- DateTime AddTime { get; set; }
- #endregion
-
- #region 获取/设置 字段值
- /// 获取/设置 字段值
- /// 字段名
- ///
- Object this[String name] { get; set; }
- #endregion
- }
-}
\ No newline at end of file
diff --git a/COMCMS.Core/Core/广告类别.cs b/COMCMS.Core/Core/广告类别.cs
index afa4e22..61bbb7c 100644
--- a/COMCMS.Core/Core/广告类别.cs
+++ b/COMCMS.Core/Core/广告类别.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/广告详情.cs b/COMCMS.Core/Core/广告详情.cs
index fe92a41..6039306 100644
--- a/COMCMS.Core/Core/广告详情.cs
+++ b/COMCMS.Core/Core/广告详情.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/数据字典.cs b/COMCMS.Core/Core/数据字典.cs
index 448b67d..f8e6ed4 100644
--- a/COMCMS.Core/Core/数据字典.cs
+++ b/COMCMS.Core/Core/数据字典.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/数据字典详情.cs b/COMCMS.Core/Core/数据字典详情.cs
index 454be68..cc6a2e6 100644
--- a/COMCMS.Core/Core/数据字典详情.cs
+++ b/COMCMS.Core/Core/数据字典详情.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/用户.cs b/COMCMS.Core/Core/用户.cs
index cd86f39..c5c131b 100644
--- a/COMCMS.Core/Core/用户.cs
+++ b/COMCMS.Core/Core/用户.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/用户余额变化记录.cs b/COMCMS.Core/Core/用户余额变化记录.cs
index f45d387..04c3ac4 100644
--- a/COMCMS.Core/Core/用户余额变化记录.cs
+++ b/COMCMS.Core/Core/用户余额变化记录.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/用户地址.cs b/COMCMS.Core/Core/用户地址.cs
index e4d2dd3..5b6b4ed 100644
--- a/COMCMS.Core/Core/用户地址.cs
+++ b/COMCMS.Core/Core/用户地址.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/用户提现订单.cs b/COMCMS.Core/Core/用户提现订单.cs
index 283f507..77f3925 100644
--- a/COMCMS.Core/Core/用户提现订单.cs
+++ b/COMCMS.Core/Core/用户提现订单.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/用户日志表.cs b/COMCMS.Core/Core/用户日志表.cs
index fd6092a..244a8a5 100644
--- a/COMCMS.Core/Core/用户日志表.cs
+++ b/COMCMS.Core/Core/用户日志表.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/用户角色.cs b/COMCMS.Core/Core/用户角色.cs
index 8368a46..fb3c164 100644
--- a/COMCMS.Core/Core/用户角色.cs
+++ b/COMCMS.Core/Core/用户角色.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/用户返现余额变化记录.cs b/COMCMS.Core/Core/用户返现余额变化记录.cs
index a7dd924..7eed8e6 100644
--- a/COMCMS.Core/Core/用户返现余额变化记录.cs
+++ b/COMCMS.Core/Core/用户返现余额变化记录.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/留言分类.cs b/COMCMS.Core/Core/留言分类.cs
index b267749..f72775c 100644
--- a/COMCMS.Core/Core/留言分类.cs
+++ b/COMCMS.Core/Core/留言分类.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/留言详情.cs b/COMCMS.Core/Core/留言详情.cs
index 715f936..d87cfed 100644
--- a/COMCMS.Core/Core/留言详情.cs
+++ b/COMCMS.Core/Core/留言详情.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/目标事件.cs b/COMCMS.Core/Core/目标事件.cs
index 00e116b..396e0c9 100644
--- a/COMCMS.Core/Core/目标事件.cs
+++ b/COMCMS.Core/Core/目标事件.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/管理员.cs b/COMCMS.Core/Core/管理员.cs
index 8db7bb7..355e488 100644
--- a/COMCMS.Core/Core/管理员.cs
+++ b/COMCMS.Core/Core/管理员.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/管理日志表.cs b/COMCMS.Core/Core/管理日志表.cs
index 31cbf5e..7908430 100644
--- a/COMCMS.Core/Core/管理日志表.cs
+++ b/COMCMS.Core/Core/管理日志表.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/管理角色.cs b/COMCMS.Core/Core/管理角色.cs
index d14f5fd..af41b13 100644
--- a/COMCMS.Core/Core/管理角色.cs
+++ b/COMCMS.Core/Core/管理角色.cs
@@ -7,6 +7,7 @@ using System.Xml.Serialization;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/系统配置.cs b/COMCMS.Core/Core/系统配置.cs
index d196e6c..0e1c0fe 100644
--- a/COMCMS.Core/Core/系统配置.cs
+++ b/COMCMS.Core/Core/系统配置.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Core/部门.cs b/COMCMS.Core/Core/部门.cs
index 7d06176..eb4b749 100644
--- a/COMCMS.Core/Core/部门.cs
+++ b/COMCMS.Core/Core/部门.cs
@@ -7,6 +7,7 @@ using System.Xml.Serialization;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/优惠券.cs b/COMCMS.Core/Mall/优惠券.cs
index dcc9df6..243c507 100644
--- a/COMCMS.Core/Mall/优惠券.cs
+++ b/COMCMS.Core/Mall/优惠券.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/优惠券使用记录.cs b/COMCMS.Core/Mall/优惠券使用记录.cs
index 85bb06b..7f7b7a7 100644
--- a/COMCMS.Core/Mall/优惠券使用记录.cs
+++ b/COMCMS.Core/Mall/优惠券使用记录.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/优惠券分类.cs b/COMCMS.Core/Mall/优惠券分类.cs
index a190da1..42f6034 100644
--- a/COMCMS.Core/Mall/优惠券分类.cs
+++ b/COMCMS.Core/Mall/优惠券分类.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/商品.cs b/COMCMS.Core/Mall/商品.cs
index 57211f5..7892998 100644
--- a/COMCMS.Core/Mall/商品.cs
+++ b/COMCMS.Core/Mall/商品.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/商品栏目.cs b/COMCMS.Core/Mall/商品栏目.cs
index f1caf57..adf66ea 100644
--- a/COMCMS.Core/Mall/商品栏目.cs
+++ b/COMCMS.Core/Mall/商品栏目.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/商家.cs b/COMCMS.Core/Mall/商家.cs
index 16eca02..c840675 100644
--- a/COMCMS.Core/Mall/商家.cs
+++ b/COMCMS.Core/Mall/商家.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/商家分类.cs b/COMCMS.Core/Mall/商家分类.cs
index 8e580d8..47f8351 100644
--- a/COMCMS.Core/Mall/商家分类.cs
+++ b/COMCMS.Core/Mall/商家分类.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/在线支付订单.cs b/COMCMS.Core/Mall/在线支付订单.cs
index b2e9ac2..041e548 100644
--- a/COMCMS.Core/Mall/在线支付订单.cs
+++ b/COMCMS.Core/Mall/在线支付订单.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/快餐.Biz.cs b/COMCMS.Core/Mall/快餐.Biz.cs
deleted file mode 100644
index 42ea3bc..0000000
--- a/COMCMS.Core/Mall/快餐.Biz.cs
+++ /dev/null
@@ -1,178 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.IO;
-using System.Linq;
-using System.Reflection;
-using System.Text;
-using System.Threading.Tasks;
-using System.Web;
-using System.Xml.Serialization;
-using NewLife;
-using NewLife.Data;
-using NewLife.Log;
-using NewLife.Model;
-using NewLife.Reflection;
-using NewLife.Threading;
-using NewLife.Web;
-using XCode;
-using XCode.Cache;
-using XCode.Configuration;
-using XCode.DataAccessLayer;
-using XCode.Membership;
-
-namespace COMCMS.Core
-{
- /// 快餐
- public partial class Food : Entity
- {
- #region 对象操作
- static Food()
- {
- // 累加字段
- //Meta.Factory.AdditionalFields.Add(__.Logins);
-
- // 过滤器 UserModule、TimeModule、IPModule
- Meta.Modules.Add();
- }
-
- /// 验证数据,通过抛出异常的方式提示验证失败。
- /// 是否插入
- public override void Valid(Boolean isNew)
- {
- // 如果没有脏数据,则不需要进行任何处理
- if (!HasDirty) return;
-
- // 在新插入数据或者修改了指定字段时进行修正
- // 货币保留6位小数
- Price = Math.Round(Price, 6);
- MarketPrice = Math.Round(MarketPrice, 6);
- SpecialPrice = Math.Round(SpecialPrice, 6);
- Fare = Math.Round(Fare, 6);
- Discount = Math.Round(Discount, 6);
- //if (!Dirtys[nameof(UpdateTime)]) nameof(UpdateTime) = DateTime.Now;
- }
-
- ///// 首次连接数据库时初始化数据,仅用于实体类重载,用户不应该调用该方法
- //[EditorBrowsable(EditorBrowsableState.Never)]
- //protected override void InitData()
- //{
- // // InitData一般用于当数据表没有数据时添加一些默认数据,该实体类的任何第一次数据库操作都会触发该方法,默认异步调用
- // if (Meta.Count > 0) return;
-
- // if (XTrace.Debug) XTrace.WriteLine("开始初始化Food[快餐]数据……");
-
- // var entity = new Food();
- // entity.Id = 0;
- // entity.KId = 0;
- // entity.BId = 0;
- // entity.ShopId = 0;
- // entity.CId = 0;
- // entity.SupportId = 0;
- // entity.Title = "abc";
- // entity.ItemNO = "abc";
- // entity.SubTitle = "abc";
- // entity.Unit = "abc";
- // entity.Spec = "abc";
- // entity.Color = "abc";
- // entity.Weight = "abc";
- // entity.Price = 0.0;
- // entity.MarketPrice = 0.0;
- // entity.SpecialPrice = 0.0;
- // entity.Fare = 0.0;
- // entity.Discount = 0.0;
- // entity.Material = "abc";
- // entity.Front = "abc";
- // entity.Credits = 0;
- // entity.Stock = 0;
- // entity.WarnStock = 0;
- // entity.IsSubProduct = 0;
- // entity.PPId = 0;
- // entity.Content = "abc";
- // entity.Parameters = "abc";
- // entity.Keyword = "abc";
- // entity.Description = "abc";
- // entity.LinkURL = "abc";
- // entity.TitleColor = "abc";
- // entity.TemplateFile = "abc";
- // entity.IsRecommend = 0;
- // entity.IsHide = 0;
- // entity.IsLock = 0;
- // entity.IsDel = 0;
- // entity.IsTop = 0;
- // entity.IsBest = 0;
- // entity.IsComment = 0;
- // entity.IsMember = 0;
- // entity.IsNew = 0;
- // entity.IsSpecial = 0;
- // entity.IsPromote = 0;
- // entity.IsHotSales = 0;
- // entity.IsBreakup = 0;
- // entity.IsShelves = 0;
- // entity.IsVerify = 0;
- // entity.Hits = 0;
- // entity.IsGift = 0;
- // entity.IsPart = 0;
- // entity.Sequence = 0;
- // entity.CommentCount = 0;
- // entity.Icon = "abc";
- // entity.ClassName = "abc";
- // entity.BannerImg = "abc";
- // entity.Pic = "abc";
- // entity.AdsId = 0;
- // entity.Tags = "abc";
- // entity.ItemImg = "abc";
- // entity.Service = "abc";
- // entity.AuthorId = 0;
- // entity.AddTime = DateTime.Now;
- // entity.UpdateTime = DateTime.Now;
- // entity.Location = "abc";
- // entity.FilePath = "abc";
- // entity.Insert();
-
- // if (XTrace.Debug) XTrace.WriteLine("完成初始化Food[快餐]数据!");
- //}
-
- ///// 已重载。基类先调用Valid(true)验证数据,然后在事务保护内调用OnInsert
- /////
- //public override Int32 Insert()
- //{
- // return base.Insert();
- //}
-
- ///// 已重载。在事务保护范围内处理业务,位于Valid之后
- /////
- //protected override Int32 OnDelete()
- //{
- // return base.OnDelete();
- //}
- #endregion
-
- #region 扩展属性
- #endregion
-
- #region 扩展查询
- /// 根据编号查找
- /// 编号
- /// 实体对象
- public static Food FindById(Int32 id)
- {
- if (id <= 0) return null;
-
- // 实体缓存
- if (Meta.Count < 1000) return Meta.Cache.Find(e => e.Id == id);
-
- // 单对象缓存
- //return Meta.SingleCache[id];
-
- return Find(_.Id == id);
- }
- #endregion
-
- #region 高级查询
- #endregion
-
- #region 业务操作
- #endregion
- }
-}
\ No newline at end of file
diff --git a/COMCMS.Core/Mall/快餐.cs b/COMCMS.Core/Mall/快餐.cs
deleted file mode 100644
index ccd7808..0000000
--- a/COMCMS.Core/Mall/快餐.cs
+++ /dev/null
@@ -1,1302 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using XCode;
-using XCode.Configuration;
-using XCode.DataAccessLayer;
-
-namespace COMCMS.Core
-{
- /// 快餐
- [Serializable]
- [DataObject]
- [Description("快餐")]
- [BindTable("Food", Description = "快餐", ConnName = "dbconn", DbType = DatabaseType.SqlServer)]
- public partial class Food : IFood
- {
- #region 属性
- private Int32 _Id;
- /// 编号
- [DisplayName("编号")]
- [Description("编号")]
- [DataObjectField(true, true, false, 0)]
- [BindColumn("Id", "编号", "int")]
- public Int32 Id { get { return _Id; } set { if (OnPropertyChanging(__.Id, value)) { _Id = value; OnPropertyChanged(__.Id); } } }
-
- private Int32 _KId;
- /// 栏目ID
- [DisplayName("栏目ID")]
- [Description("栏目ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("KId", "栏目ID", "int")]
- public Int32 KId { get { return _KId; } set { if (OnPropertyChanging(__.KId, value)) { _KId = value; OnPropertyChanged(__.KId); } } }
-
- private Int32 _BId;
- /// 品牌ID
- [DisplayName("品牌ID")]
- [Description("品牌ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("BId", "品牌ID", "int")]
- public Int32 BId { get { return _BId; } set { if (OnPropertyChanging(__.BId, value)) { _BId = value; OnPropertyChanged(__.BId); } } }
-
- private Int32 _ShopId;
- /// 店铺ID
- [DisplayName("店铺ID")]
- [Description("店铺ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("ShopId", "店铺ID", "int")]
- public Int32 ShopId { get { return _ShopId; } set { if (OnPropertyChanging(__.ShopId, value)) { _ShopId = value; OnPropertyChanged(__.ShopId); } } }
-
- private Int32 _CId;
- /// 颜色ID
- [DisplayName("颜色ID")]
- [Description("颜色ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("CId", "颜色ID", "int")]
- public Int32 CId { get { return _CId; } set { if (OnPropertyChanging(__.CId, value)) { _CId = value; OnPropertyChanged(__.CId); } } }
-
- private Int32 _SupportId;
- /// 供货商ID
- [DisplayName("供货商ID")]
- [Description("供货商ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("SupportId", "供货商ID", "int")]
- public Int32 SupportId { get { return _SupportId; } set { if (OnPropertyChanging(__.SupportId, value)) { _SupportId = value; OnPropertyChanged(__.SupportId); } } }
-
- private String _Title;
- /// 标题
- [DisplayName("标题")]
- [Description("标题")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Title", "标题", "nvarchar(250)", Master = true)]
- public String Title { get { return _Title; } set { if (OnPropertyChanging(__.Title, value)) { _Title = value; OnPropertyChanged(__.Title); } } }
-
- private String _ItemNO;
- /// 编号
- [DisplayName("编号")]
- [Description("编号")]
- [DataObjectField(false, false, true, 50)]
- [BindColumn("ItemNO", "编号", "nvarchar(50)")]
- public String ItemNO { get { return _ItemNO; } set { if (OnPropertyChanging(__.ItemNO, value)) { _ItemNO = value; OnPropertyChanged(__.ItemNO); } } }
-
- private String _SubTitle;
- /// 副标题
- [DisplayName("副标题")]
- [Description("副标题")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("SubTitle", "副标题", "nvarchar(250)")]
- public String SubTitle { get { return _SubTitle; } set { if (OnPropertyChanging(__.SubTitle, value)) { _SubTitle = value; OnPropertyChanged(__.SubTitle); } } }
-
- private String _Unit;
- /// 商品单位
- [DisplayName("商品单位")]
- [Description("商品单位")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Unit", "商品单位", "nvarchar(250)")]
- public String Unit { get { return _Unit; } set { if (OnPropertyChanging(__.Unit, value)) { _Unit = value; OnPropertyChanged(__.Unit); } } }
-
- private String _Spec;
- /// 商品规格尺寸
- [DisplayName("商品规格尺寸")]
- [Description("商品规格尺寸")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Spec", "商品规格尺寸", "nvarchar(250)")]
- public String Spec { get { return _Spec; } set { if (OnPropertyChanging(__.Spec, value)) { _Spec = value; OnPropertyChanged(__.Spec); } } }
-
- private String _Color;
- /// 颜色
- [DisplayName("颜色")]
- [Description("颜色")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Color", "颜色", "nvarchar(250)")]
- public String Color { get { return _Color; } set { if (OnPropertyChanging(__.Color, value)) { _Color = value; OnPropertyChanged(__.Color); } } }
-
- private String _Weight;
- /// 重量
- [DisplayName("重量")]
- [Description("重量")]
- [DataObjectField(false, false, true, 50)]
- [BindColumn("Weight", "重量", "nvarchar(50)")]
- public String Weight { get { return _Weight; } set { if (OnPropertyChanging(__.Weight, value)) { _Weight = value; OnPropertyChanged(__.Weight); } } }
-
- private Decimal _Price;
- /// 价格
- [DisplayName("价格")]
- [Description("价格")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Price", "价格", "money")]
- public Decimal Price { get { return _Price; } set { if (OnPropertyChanging(__.Price, value)) { _Price = value; OnPropertyChanged(__.Price); } } }
-
- private Decimal _MarketPrice;
- /// 市场价格
- [DisplayName("市场价格")]
- [Description("市场价格")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("MarketPrice", "市场价格", "money")]
- public Decimal MarketPrice { get { return _MarketPrice; } set { if (OnPropertyChanging(__.MarketPrice, value)) { _MarketPrice = value; OnPropertyChanged(__.MarketPrice); } } }
-
- private Decimal _SpecialPrice;
- /// 特价,如有特价,以特价为准
- [DisplayName("特价")]
- [Description("特价,如有特价,以特价为准")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("SpecialPrice", "特价,如有特价,以特价为准", "money")]
- public Decimal SpecialPrice { get { return _SpecialPrice; } set { if (OnPropertyChanging(__.SpecialPrice, value)) { _SpecialPrice = value; OnPropertyChanged(__.SpecialPrice); } } }
-
- private Decimal _Fare;
- /// 运费
- [DisplayName("运费")]
- [Description("运费")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Fare", "运费", "money")]
- public Decimal Fare { get { return _Fare; } set { if (OnPropertyChanging(__.Fare, value)) { _Fare = value; OnPropertyChanged(__.Fare); } } }
-
- private Decimal _Discount;
- /// 折扣
- [DisplayName("折扣")]
- [Description("折扣")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Discount", "折扣", "money")]
- public Decimal Discount { get { return _Discount; } set { if (OnPropertyChanging(__.Discount, value)) { _Discount = value; OnPropertyChanged(__.Discount); } } }
-
- private String _Material;
- /// 材料
- [DisplayName("材料")]
- [Description("材料")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Material", "材料", "nvarchar(250)")]
- public String Material { get { return _Material; } set { if (OnPropertyChanging(__.Material, value)) { _Material = value; OnPropertyChanged(__.Material); } } }
-
- private String _Front;
- /// 封面
- [DisplayName("封面")]
- [Description("封面")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Front", "封面", "nvarchar(250)")]
- public String Front { get { return _Front; } set { if (OnPropertyChanging(__.Front, value)) { _Front = value; OnPropertyChanged(__.Front); } } }
-
- private Int32 _Credits;
- /// 积分
- [DisplayName("积分")]
- [Description("积分")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Credits", "积分", "int")]
- public Int32 Credits { get { return _Credits; } set { if (OnPropertyChanging(__.Credits, value)) { _Credits = value; OnPropertyChanged(__.Credits); } } }
-
- private Int32 _Stock;
- /// 库存
- [DisplayName("库存")]
- [Description("库存")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Stock", "库存", "int")]
- public Int32 Stock { get { return _Stock; } set { if (OnPropertyChanging(__.Stock, value)) { _Stock = value; OnPropertyChanged(__.Stock); } } }
-
- private Int32 _WarnStock;
- /// 警告库存
- [DisplayName("警告库存")]
- [Description("警告库存")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("WarnStock", "警告库存", "int")]
- public Int32 WarnStock { get { return _WarnStock; } set { if (OnPropertyChanging(__.WarnStock, value)) { _WarnStock = value; OnPropertyChanged(__.WarnStock); } } }
-
- private Int32 _IsSubProduct;
- /// 是否为子商品
- [DisplayName("是否为子商品")]
- [Description("是否为子商品")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsSubProduct", "是否为子商品", "int")]
- public Int32 IsSubProduct { get { return _IsSubProduct; } set { if (OnPropertyChanging(__.IsSubProduct, value)) { _IsSubProduct = value; OnPropertyChanged(__.IsSubProduct); } } }
-
- private Int32 _PPId;
- /// 父商品ID。如果为子商品,则需要填写父商品ID。实现多颜色功能
- [DisplayName("父商品ID")]
- [Description("父商品ID。如果为子商品,则需要填写父商品ID。实现多颜色功能")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("PPId", "父商品ID。如果为子商品,则需要填写父商品ID。实现多颜色功能", "int")]
- public Int32 PPId { get { return _PPId; } set { if (OnPropertyChanging(__.PPId, value)) { _PPId = value; OnPropertyChanged(__.PPId); } } }
-
- private String _Content;
- /// 内容
- [DisplayName("内容")]
- [Description("内容")]
- [DataObjectField(false, false, true, -1)]
- [BindColumn("Content", "内容", "ntext")]
- public String Content { get { return _Content; } set { if (OnPropertyChanging(__.Content, value)) { _Content = value; OnPropertyChanged(__.Content); } } }
-
- private String _Parameters;
- /// 商品参数
- [DisplayName("商品参数")]
- [Description("商品参数")]
- [DataObjectField(false, false, true, -1)]
- [BindColumn("Parameters", "商品参数", "ntext")]
- public String Parameters { get { return _Parameters; } set { if (OnPropertyChanging(__.Parameters, value)) { _Parameters = value; OnPropertyChanged(__.Parameters); } } }
-
- private String _Keyword;
- /// 描述
- [DisplayName("描述")]
- [Description("描述")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Keyword", "描述", "nvarchar(250)")]
- public String Keyword { get { return _Keyword; } set { if (OnPropertyChanging(__.Keyword, value)) { _Keyword = value; OnPropertyChanged(__.Keyword); } } }
-
- private String _Description;
- /// 介绍
- [DisplayName("介绍")]
- [Description("介绍")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Description", "介绍", "nvarchar(250)")]
- public String Description { get { return _Description; } set { if (OnPropertyChanging(__.Description, value)) { _Description = value; OnPropertyChanged(__.Description); } } }
-
- private String _LinkURL;
- /// 跳转链接
- [DisplayName("跳转链接")]
- [Description("跳转链接")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("LinkURL", "跳转链接", "nvarchar(250)")]
- public String LinkURL { get { return _LinkURL; } set { if (OnPropertyChanging(__.LinkURL, value)) { _LinkURL = value; OnPropertyChanged(__.LinkURL); } } }
-
- private String _TitleColor;
- /// 类别名称颜色
- [DisplayName("类别名称颜色")]
- [Description("类别名称颜色")]
- [DataObjectField(false, false, true, 50)]
- [BindColumn("TitleColor", "类别名称颜色", "nvarchar(50)")]
- public String TitleColor { get { return _TitleColor; } set { if (OnPropertyChanging(__.TitleColor, value)) { _TitleColor = value; OnPropertyChanged(__.TitleColor); } } }
-
- private String _TemplateFile;
- /// 模板
- [DisplayName("模板")]
- [Description("模板")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("TemplateFile", "模板", "nvarchar(250)")]
- public String TemplateFile { get { return _TemplateFile; } set { if (OnPropertyChanging(__.TemplateFile, value)) { _TemplateFile = value; OnPropertyChanged(__.TemplateFile); } } }
-
- private Int32 _IsRecommend;
- /// 是否推荐
- [DisplayName("是否推荐")]
- [Description("是否推荐")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsRecommend", "是否推荐", "int")]
- public Int32 IsRecommend { get { return _IsRecommend; } set { if (OnPropertyChanging(__.IsRecommend, value)) { _IsRecommend = value; OnPropertyChanged(__.IsRecommend); } } }
-
- private Int32 _IsHide;
- /// 是否隐藏
- [DisplayName("是否隐藏")]
- [Description("是否隐藏")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsHide", "是否隐藏", "int")]
- public Int32 IsHide { get { return _IsHide; } set { if (OnPropertyChanging(__.IsHide, value)) { _IsHide = value; OnPropertyChanged(__.IsHide); } } }
-
- private Int32 _IsLock;
- /// 是否锁定,不允许删除
- [DisplayName("是否锁定")]
- [Description("是否锁定,不允许删除")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsLock", "是否锁定,不允许删除", "int")]
- public Int32 IsLock { get { return _IsLock; } set { if (OnPropertyChanging(__.IsLock, value)) { _IsLock = value; OnPropertyChanged(__.IsLock); } } }
-
- private Int32 _IsDel;
- /// 是否删除,已经删除到回收站
- [DisplayName("是否删除")]
- [Description("是否删除,已经删除到回收站")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsDel", "是否删除,已经删除到回收站", "int")]
- public Int32 IsDel { get { return _IsDel; } set { if (OnPropertyChanging(__.IsDel, value)) { _IsDel = value; OnPropertyChanged(__.IsDel); } } }
-
- private Int32 _IsTop;
- /// 是否置顶
- [DisplayName("是否置顶")]
- [Description("是否置顶")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsTop", "是否置顶", "int")]
- public Int32 IsTop { get { return _IsTop; } set { if (OnPropertyChanging(__.IsTop, value)) { _IsTop = value; OnPropertyChanged(__.IsTop); } } }
-
- private Int32 _IsBest;
- /// 是否精华
- [DisplayName("是否精华")]
- [Description("是否精华")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsBest", "是否精华", "int")]
- public Int32 IsBest { get { return _IsBest; } set { if (OnPropertyChanging(__.IsBest, value)) { _IsBest = value; OnPropertyChanged(__.IsBest); } } }
-
- private Int32 _IsComment;
- /// 是否允许评论
- [DisplayName("是否允许评论")]
- [Description("是否允许评论")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsComment", "是否允许评论", "int")]
- public Int32 IsComment { get { return _IsComment; } set { if (OnPropertyChanging(__.IsComment, value)) { _IsComment = value; OnPropertyChanged(__.IsComment); } } }
-
- private Int32 _IsMember;
- /// 是否会员栏目
- [DisplayName("是否会员栏目")]
- [Description("是否会员栏目")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsMember", "是否会员栏目", "int")]
- public Int32 IsMember { get { return _IsMember; } set { if (OnPropertyChanging(__.IsMember, value)) { _IsMember = value; OnPropertyChanged(__.IsMember); } } }
-
- private Int32 _IsNew;
- /// 是否新品
- [DisplayName("是否新品")]
- [Description("是否新品")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsNew", "是否新品", "int")]
- public Int32 IsNew { get { return _IsNew; } set { if (OnPropertyChanging(__.IsNew, value)) { _IsNew = value; OnPropertyChanged(__.IsNew); } } }
-
- private Int32 _IsSpecial;
- /// 是否特价
- [DisplayName("是否特价")]
- [Description("是否特价")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsSpecial", "是否特价", "int")]
- public Int32 IsSpecial { get { return _IsSpecial; } set { if (OnPropertyChanging(__.IsSpecial, value)) { _IsSpecial = value; OnPropertyChanged(__.IsSpecial); } } }
-
- private Int32 _IsPromote;
- /// 是否促销
- [DisplayName("是否促销")]
- [Description("是否促销")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsPromote", "是否促销", "int")]
- public Int32 IsPromote { get { return _IsPromote; } set { if (OnPropertyChanging(__.IsPromote, value)) { _IsPromote = value; OnPropertyChanged(__.IsPromote); } } }
-
- private Int32 _IsHotSales;
- /// 是否热销
- [DisplayName("是否热销")]
- [Description("是否热销")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsHotSales", "是否热销", "int")]
- public Int32 IsHotSales { get { return _IsHotSales; } set { if (OnPropertyChanging(__.IsHotSales, value)) { _IsHotSales = value; OnPropertyChanged(__.IsHotSales); } } }
-
- private Int32 _IsBreakup;
- /// 是否缺货
- [DisplayName("是否缺货")]
- [Description("是否缺货")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsBreakup", "是否缺货", "int")]
- public Int32 IsBreakup { get { return _IsBreakup; } set { if (OnPropertyChanging(__.IsBreakup, value)) { _IsBreakup = value; OnPropertyChanged(__.IsBreakup); } } }
-
- private Int32 _IsShelves;
- /// 是否下架
- [DisplayName("是否下架")]
- [Description("是否下架")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsShelves", "是否下架", "int")]
- public Int32 IsShelves { get { return _IsShelves; } set { if (OnPropertyChanging(__.IsShelves, value)) { _IsShelves = value; OnPropertyChanged(__.IsShelves); } } }
-
- private Int32 _IsVerify;
- /// 是否审核,1为已经审核前台显示
- [DisplayName("是否审核")]
- [Description("是否审核,1为已经审核前台显示")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsVerify", "是否审核,1为已经审核前台显示", "int")]
- public Int32 IsVerify { get { return _IsVerify; } set { if (OnPropertyChanging(__.IsVerify, value)) { _IsVerify = value; OnPropertyChanged(__.IsVerify); } } }
-
- private Int32 _Hits;
- /// 点击数量
- [DisplayName("点击数量")]
- [Description("点击数量")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Hits", "点击数量", "int")]
- public Int32 Hits { get { return _Hits; } set { if (OnPropertyChanging(__.Hits, value)) { _Hits = value; OnPropertyChanged(__.Hits); } } }
-
- private Int32 _IsGift;
- /// 是否为礼品商品
- [DisplayName("是否为礼品商品")]
- [Description("是否为礼品商品")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsGift", "是否为礼品商品", "int")]
- public Int32 IsGift { get { return _IsGift; } set { if (OnPropertyChanging(__.IsGift, value)) { _IsGift = value; OnPropertyChanged(__.IsGift); } } }
-
- private Int32 _IsPart;
- /// 是否为配件
- [DisplayName("是否为配件")]
- [Description("是否为配件")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsPart", "是否为配件", "int")]
- public Int32 IsPart { get { return _IsPart; } set { if (OnPropertyChanging(__.IsPart, value)) { _IsPart = value; OnPropertyChanged(__.IsPart); } } }
-
- private Int32 _Sequence;
- /// 排序
- [DisplayName("排序")]
- [Description("排序")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Sequence", "排序", "int")]
- public Int32 Sequence { get { return _Sequence; } set { if (OnPropertyChanging(__.Sequence, value)) { _Sequence = value; OnPropertyChanged(__.Sequence); } } }
-
- private Int32 _CommentCount;
- /// 评论数量
- [DisplayName("评论数量")]
- [Description("评论数量")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("CommentCount", "评论数量", "int")]
- public Int32 CommentCount { get { return _CommentCount; } set { if (OnPropertyChanging(__.CommentCount, value)) { _CommentCount = value; OnPropertyChanged(__.CommentCount); } } }
-
- private String _Icon;
- /// 图标
- [DisplayName("图标")]
- [Description("图标")]
- [DataObjectField(false, false, true, 100)]
- [BindColumn("Icon", "图标", "nvarchar(100)")]
- public String Icon { get { return _Icon; } set { if (OnPropertyChanging(__.Icon, value)) { _Icon = value; OnPropertyChanged(__.Icon); } } }
-
- private String _ClassName;
- /// 样式名称
- [DisplayName("样式名称")]
- [Description("样式名称")]
- [DataObjectField(false, false, true, 50)]
- [BindColumn("ClassName", "样式名称", "nvarchar(50)")]
- public String ClassName { get { return _ClassName; } set { if (OnPropertyChanging(__.ClassName, value)) { _ClassName = value; OnPropertyChanged(__.ClassName); } } }
-
- private String _BannerImg;
- /// banner图片
- [DisplayName("banner图片")]
- [Description("banner图片")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("BannerImg", "banner图片", "nvarchar(250)")]
- public String BannerImg { get { return _BannerImg; } set { if (OnPropertyChanging(__.BannerImg, value)) { _BannerImg = value; OnPropertyChanged(__.BannerImg); } } }
-
- private String _Pic;
- /// 图片
- [DisplayName("图片")]
- [Description("图片")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Pic", "图片", "nvarchar(250)")]
- public String Pic { get { return _Pic; } set { if (OnPropertyChanging(__.Pic, value)) { _Pic = value; OnPropertyChanged(__.Pic); } } }
-
- private Int32 _AdsId;
- /// 广告ID
- [DisplayName("广告ID")]
- [Description("广告ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("AdsId", "广告ID", "int")]
- public Int32 AdsId { get { return _AdsId; } set { if (OnPropertyChanging(__.AdsId, value)) { _AdsId = value; OnPropertyChanged(__.AdsId); } } }
-
- private String _Tags;
- /// TAG
- [DisplayName("TAG")]
- [Description("TAG")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Tags", "TAG", "nvarchar(250)")]
- public String Tags { get { return _Tags; } set { if (OnPropertyChanging(__.Tags, value)) { _Tags = value; OnPropertyChanged(__.Tags); } } }
-
- private String _ItemImg;
- /// 更多图片
- [DisplayName("更多图片")]
- [Description("更多图片")]
- [DataObjectField(false, false, true, -1)]
- [BindColumn("ItemImg", "更多图片", "ntext")]
- public String ItemImg { get { return _ItemImg; } set { if (OnPropertyChanging(__.ItemImg, value)) { _ItemImg = value; OnPropertyChanged(__.ItemImg); } } }
-
- private String _Service;
- /// 售后服务
- [DisplayName("售后服务")]
- [Description("售后服务")]
- [DataObjectField(false, false, true, -1)]
- [BindColumn("Service", "售后服务", "ntext")]
- public String Service { get { return _Service; } set { if (OnPropertyChanging(__.Service, value)) { _Service = value; OnPropertyChanged(__.Service); } } }
-
- private Int32 _AuthorId;
- /// 添加管理员ID
- [DisplayName("添加管理员ID")]
- [Description("添加管理员ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("AuthorId", "添加管理员ID", "int")]
- public Int32 AuthorId { get { return _AuthorId; } set { if (OnPropertyChanging(__.AuthorId, value)) { _AuthorId = value; OnPropertyChanged(__.AuthorId); } } }
-
- private DateTime _AddTime;
- /// 添加时间
- [DisplayName("添加时间")]
- [Description("添加时间")]
- [DataObjectField(false, false, true, 0)]
- [BindColumn("AddTime", "添加时间", "datetime")]
- public DateTime AddTime { get { return _AddTime; } set { if (OnPropertyChanging(__.AddTime, value)) { _AddTime = value; OnPropertyChanged(__.AddTime); } } }
-
- private DateTime _UpdateTime;
- /// 时间
- [DisplayName("时间")]
- [Description("时间")]
- [DataObjectField(false, false, true, 0)]
- [BindColumn("UpdateTime", "时间", "datetime")]
- public DateTime UpdateTime { get { return _UpdateTime; } set { if (OnPropertyChanging(__.UpdateTime, value)) { _UpdateTime = value; OnPropertyChanged(__.UpdateTime); } } }
-
- private String _Location;
- /// 路径
- [DisplayName("路径")]
- [Description("路径")]
- [DataObjectField(false, false, true, 100)]
- [BindColumn("Location", "路径", "nvarchar(100)")]
- public String Location { get { return _Location; } set { if (OnPropertyChanging(__.Location, value)) { _Location = value; OnPropertyChanged(__.Location); } } }
-
- private String _FilePath;
- /// 存放目录
- [DisplayName("存放目录")]
- [Description("存放目录")]
- [DataObjectField(false, false, true, 100)]
- [BindColumn("FilePath", "存放目录", "nvarchar(100)")]
- public String FilePath { get { return _FilePath; } set { if (OnPropertyChanging(__.FilePath, value)) { _FilePath = value; OnPropertyChanged(__.FilePath); } } }
- #endregion
-
- #region 获取/设置 字段值
- /// 获取/设置 字段值
- /// 字段名
- ///
- public override Object this[String name]
- {
- get
- {
- switch (name)
- {
- case __.Id : return _Id;
- case __.KId : return _KId;
- case __.BId : return _BId;
- case __.ShopId : return _ShopId;
- case __.CId : return _CId;
- case __.SupportId : return _SupportId;
- case __.Title : return _Title;
- case __.ItemNO : return _ItemNO;
- case __.SubTitle : return _SubTitle;
- case __.Unit : return _Unit;
- case __.Spec : return _Spec;
- case __.Color : return _Color;
- case __.Weight : return _Weight;
- case __.Price : return _Price;
- case __.MarketPrice : return _MarketPrice;
- case __.SpecialPrice : return _SpecialPrice;
- case __.Fare : return _Fare;
- case __.Discount : return _Discount;
- case __.Material : return _Material;
- case __.Front : return _Front;
- case __.Credits : return _Credits;
- case __.Stock : return _Stock;
- case __.WarnStock : return _WarnStock;
- case __.IsSubProduct : return _IsSubProduct;
- case __.PPId : return _PPId;
- case __.Content : return _Content;
- case __.Parameters : return _Parameters;
- case __.Keyword : return _Keyword;
- case __.Description : return _Description;
- case __.LinkURL : return _LinkURL;
- case __.TitleColor : return _TitleColor;
- case __.TemplateFile : return _TemplateFile;
- case __.IsRecommend : return _IsRecommend;
- case __.IsHide : return _IsHide;
- case __.IsLock : return _IsLock;
- case __.IsDel : return _IsDel;
- case __.IsTop : return _IsTop;
- case __.IsBest : return _IsBest;
- case __.IsComment : return _IsComment;
- case __.IsMember : return _IsMember;
- case __.IsNew : return _IsNew;
- case __.IsSpecial : return _IsSpecial;
- case __.IsPromote : return _IsPromote;
- case __.IsHotSales : return _IsHotSales;
- case __.IsBreakup : return _IsBreakup;
- case __.IsShelves : return _IsShelves;
- case __.IsVerify : return _IsVerify;
- case __.Hits : return _Hits;
- case __.IsGift : return _IsGift;
- case __.IsPart : return _IsPart;
- case __.Sequence : return _Sequence;
- case __.CommentCount : return _CommentCount;
- case __.Icon : return _Icon;
- case __.ClassName : return _ClassName;
- case __.BannerImg : return _BannerImg;
- case __.Pic : return _Pic;
- case __.AdsId : return _AdsId;
- case __.Tags : return _Tags;
- case __.ItemImg : return _ItemImg;
- case __.Service : return _Service;
- case __.AuthorId : return _AuthorId;
- case __.AddTime : return _AddTime;
- case __.UpdateTime : return _UpdateTime;
- case __.Location : return _Location;
- case __.FilePath : return _FilePath;
- default: return base[name];
- }
- }
- set
- {
- switch (name)
- {
- case __.Id : _Id = Convert.ToInt32(value); break;
- case __.KId : _KId = Convert.ToInt32(value); break;
- case __.BId : _BId = Convert.ToInt32(value); break;
- case __.ShopId : _ShopId = Convert.ToInt32(value); break;
- case __.CId : _CId = Convert.ToInt32(value); break;
- case __.SupportId : _SupportId = Convert.ToInt32(value); break;
- case __.Title : _Title = Convert.ToString(value); break;
- case __.ItemNO : _ItemNO = Convert.ToString(value); break;
- case __.SubTitle : _SubTitle = Convert.ToString(value); break;
- case __.Unit : _Unit = Convert.ToString(value); break;
- case __.Spec : _Spec = Convert.ToString(value); break;
- case __.Color : _Color = Convert.ToString(value); break;
- case __.Weight : _Weight = Convert.ToString(value); break;
- case __.Price : _Price = Convert.ToDecimal(value); break;
- case __.MarketPrice : _MarketPrice = Convert.ToDecimal(value); break;
- case __.SpecialPrice : _SpecialPrice = Convert.ToDecimal(value); break;
- case __.Fare : _Fare = Convert.ToDecimal(value); break;
- case __.Discount : _Discount = Convert.ToDecimal(value); break;
- case __.Material : _Material = Convert.ToString(value); break;
- case __.Front : _Front = Convert.ToString(value); break;
- case __.Credits : _Credits = Convert.ToInt32(value); break;
- case __.Stock : _Stock = Convert.ToInt32(value); break;
- case __.WarnStock : _WarnStock = Convert.ToInt32(value); break;
- case __.IsSubProduct : _IsSubProduct = Convert.ToInt32(value); break;
- case __.PPId : _PPId = Convert.ToInt32(value); break;
- case __.Content : _Content = Convert.ToString(value); break;
- case __.Parameters : _Parameters = Convert.ToString(value); break;
- case __.Keyword : _Keyword = Convert.ToString(value); break;
- case __.Description : _Description = Convert.ToString(value); break;
- case __.LinkURL : _LinkURL = Convert.ToString(value); break;
- case __.TitleColor : _TitleColor = Convert.ToString(value); break;
- case __.TemplateFile : _TemplateFile = Convert.ToString(value); break;
- case __.IsRecommend : _IsRecommend = Convert.ToInt32(value); break;
- case __.IsHide : _IsHide = Convert.ToInt32(value); break;
- case __.IsLock : _IsLock = Convert.ToInt32(value); break;
- case __.IsDel : _IsDel = Convert.ToInt32(value); break;
- case __.IsTop : _IsTop = Convert.ToInt32(value); break;
- case __.IsBest : _IsBest = Convert.ToInt32(value); break;
- case __.IsComment : _IsComment = Convert.ToInt32(value); break;
- case __.IsMember : _IsMember = Convert.ToInt32(value); break;
- case __.IsNew : _IsNew = Convert.ToInt32(value); break;
- case __.IsSpecial : _IsSpecial = Convert.ToInt32(value); break;
- case __.IsPromote : _IsPromote = Convert.ToInt32(value); break;
- case __.IsHotSales : _IsHotSales = Convert.ToInt32(value); break;
- case __.IsBreakup : _IsBreakup = Convert.ToInt32(value); break;
- case __.IsShelves : _IsShelves = Convert.ToInt32(value); break;
- case __.IsVerify : _IsVerify = Convert.ToInt32(value); break;
- case __.Hits : _Hits = Convert.ToInt32(value); break;
- case __.IsGift : _IsGift = Convert.ToInt32(value); break;
- case __.IsPart : _IsPart = Convert.ToInt32(value); break;
- case __.Sequence : _Sequence = Convert.ToInt32(value); break;
- case __.CommentCount : _CommentCount = Convert.ToInt32(value); break;
- case __.Icon : _Icon = Convert.ToString(value); break;
- case __.ClassName : _ClassName = Convert.ToString(value); break;
- case __.BannerImg : _BannerImg = Convert.ToString(value); break;
- case __.Pic : _Pic = Convert.ToString(value); break;
- case __.AdsId : _AdsId = Convert.ToInt32(value); break;
- case __.Tags : _Tags = Convert.ToString(value); break;
- case __.ItemImg : _ItemImg = Convert.ToString(value); break;
- case __.Service : _Service = Convert.ToString(value); break;
- case __.AuthorId : _AuthorId = Convert.ToInt32(value); break;
- case __.AddTime : _AddTime = Convert.ToDateTime(value); break;
- case __.UpdateTime : _UpdateTime = Convert.ToDateTime(value); break;
- case __.Location : _Location = Convert.ToString(value); break;
- case __.FilePath : _FilePath = Convert.ToString(value); break;
- default: base[name] = value; break;
- }
- }
- }
- #endregion
-
- #region 字段名
- /// 取得快餐字段信息的快捷方式
- public partial class _
- {
- /// 编号
- public static readonly Field Id = FindByName(__.Id);
-
- /// 栏目ID
- public static readonly Field KId = FindByName(__.KId);
-
- /// 品牌ID
- public static readonly Field BId = FindByName(__.BId);
-
- /// 店铺ID
- public static readonly Field ShopId = FindByName(__.ShopId);
-
- /// 颜色ID
- public static readonly Field CId = FindByName(__.CId);
-
- /// 供货商ID
- public static readonly Field SupportId = FindByName(__.SupportId);
-
- /// 标题
- public static readonly Field Title = FindByName(__.Title);
-
- /// 编号
- public static readonly Field ItemNO = FindByName(__.ItemNO);
-
- /// 副标题
- public static readonly Field SubTitle = FindByName(__.SubTitle);
-
- /// 商品单位
- public static readonly Field Unit = FindByName(__.Unit);
-
- /// 商品规格尺寸
- public static readonly Field Spec = FindByName(__.Spec);
-
- /// 颜色
- public static readonly Field Color = FindByName(__.Color);
-
- /// 重量
- public static readonly Field Weight = FindByName(__.Weight);
-
- /// 价格
- public static readonly Field Price = FindByName(__.Price);
-
- /// 市场价格
- public static readonly Field MarketPrice = FindByName(__.MarketPrice);
-
- /// 特价,如有特价,以特价为准
- public static readonly Field SpecialPrice = FindByName(__.SpecialPrice);
-
- /// 运费
- public static readonly Field Fare = FindByName(__.Fare);
-
- /// 折扣
- public static readonly Field Discount = FindByName(__.Discount);
-
- /// 材料
- public static readonly Field Material = FindByName(__.Material);
-
- /// 封面
- public static readonly Field Front = FindByName(__.Front);
-
- /// 积分
- public static readonly Field Credits = FindByName(__.Credits);
-
- /// 库存
- public static readonly Field Stock = FindByName(__.Stock);
-
- /// 警告库存
- public static readonly Field WarnStock = FindByName(__.WarnStock);
-
- /// 是否为子商品
- public static readonly Field IsSubProduct = FindByName(__.IsSubProduct);
-
- /// 父商品ID。如果为子商品,则需要填写父商品ID。实现多颜色功能
- public static readonly Field PPId = FindByName(__.PPId);
-
- /// 内容
- public static readonly Field Content = FindByName(__.Content);
-
- /// 商品参数
- public static readonly Field Parameters = FindByName(__.Parameters);
-
- /// 描述
- public static readonly Field Keyword = FindByName(__.Keyword);
-
- /// 介绍
- public static readonly Field Description = FindByName(__.Description);
-
- /// 跳转链接
- public static readonly Field LinkURL = FindByName(__.LinkURL);
-
- /// 类别名称颜色
- public static readonly Field TitleColor = FindByName(__.TitleColor);
-
- /// 模板
- public static readonly Field TemplateFile = FindByName(__.TemplateFile);
-
- /// 是否推荐
- public static readonly Field IsRecommend = FindByName(__.IsRecommend);
-
- /// 是否隐藏
- public static readonly Field IsHide = FindByName(__.IsHide);
-
- /// 是否锁定,不允许删除
- public static readonly Field IsLock = FindByName(__.IsLock);
-
- /// 是否删除,已经删除到回收站
- public static readonly Field IsDel = FindByName(__.IsDel);
-
- /// 是否置顶
- public static readonly Field IsTop = FindByName(__.IsTop);
-
- /// 是否精华
- public static readonly Field IsBest = FindByName(__.IsBest);
-
- /// 是否允许评论
- public static readonly Field IsComment = FindByName(__.IsComment);
-
- /// 是否会员栏目
- public static readonly Field IsMember = FindByName(__.IsMember);
-
- /// 是否新品
- public static readonly Field IsNew = FindByName(__.IsNew);
-
- /// 是否特价
- public static readonly Field IsSpecial = FindByName(__.IsSpecial);
-
- /// 是否促销
- public static readonly Field IsPromote = FindByName(__.IsPromote);
-
- /// 是否热销
- public static readonly Field IsHotSales = FindByName(__.IsHotSales);
-
- /// 是否缺货
- public static readonly Field IsBreakup = FindByName(__.IsBreakup);
-
- /// 是否下架
- public static readonly Field IsShelves = FindByName(__.IsShelves);
-
- /// 是否审核,1为已经审核前台显示
- public static readonly Field IsVerify = FindByName(__.IsVerify);
-
- /// 点击数量
- public static readonly Field Hits = FindByName(__.Hits);
-
- /// 是否为礼品商品
- public static readonly Field IsGift = FindByName(__.IsGift);
-
- /// 是否为配件
- public static readonly Field IsPart = FindByName(__.IsPart);
-
- /// 排序
- public static readonly Field Sequence = FindByName(__.Sequence);
-
- /// 评论数量
- public static readonly Field CommentCount = FindByName(__.CommentCount);
-
- /// 图标
- public static readonly Field Icon = FindByName(__.Icon);
-
- /// 样式名称
- public static readonly Field ClassName = FindByName(__.ClassName);
-
- /// banner图片
- public static readonly Field BannerImg = FindByName(__.BannerImg);
-
- /// 图片
- public static readonly Field Pic = FindByName(__.Pic);
-
- /// 广告ID
- public static readonly Field AdsId = FindByName(__.AdsId);
-
- /// TAG
- public static readonly Field Tags = FindByName(__.Tags);
-
- /// 更多图片
- public static readonly Field ItemImg = FindByName(__.ItemImg);
-
- /// 售后服务
- public static readonly Field Service = FindByName(__.Service);
-
- /// 添加管理员ID
- public static readonly Field AuthorId = FindByName(__.AuthorId);
-
- /// 添加时间
- public static readonly Field AddTime = FindByName(__.AddTime);
-
- /// 时间
- public static readonly Field UpdateTime = FindByName(__.UpdateTime);
-
- /// 路径
- public static readonly Field Location = FindByName(__.Location);
-
- /// 存放目录
- public static readonly Field FilePath = FindByName(__.FilePath);
-
- static Field FindByName(String name) { return Meta.Table.FindByName(name); }
- }
-
- /// 取得快餐字段名称的快捷方式
- public partial class __
- {
- /// 编号
- public const String Id = "Id";
-
- /// 栏目ID
- public const String KId = "KId";
-
- /// 品牌ID
- public const String BId = "BId";
-
- /// 店铺ID
- public const String ShopId = "ShopId";
-
- /// 颜色ID
- public const String CId = "CId";
-
- /// 供货商ID
- public const String SupportId = "SupportId";
-
- /// 标题
- public const String Title = "Title";
-
- /// 编号
- public const String ItemNO = "ItemNO";
-
- /// 副标题
- public const String SubTitle = "SubTitle";
-
- /// 商品单位
- public const String Unit = "Unit";
-
- /// 商品规格尺寸
- public const String Spec = "Spec";
-
- /// 颜色
- public const String Color = "Color";
-
- /// 重量
- public const String Weight = "Weight";
-
- /// 价格
- public const String Price = "Price";
-
- /// 市场价格
- public const String MarketPrice = "MarketPrice";
-
- /// 特价,如有特价,以特价为准
- public const String SpecialPrice = "SpecialPrice";
-
- /// 运费
- public const String Fare = "Fare";
-
- /// 折扣
- public const String Discount = "Discount";
-
- /// 材料
- public const String Material = "Material";
-
- /// 封面
- public const String Front = "Front";
-
- /// 积分
- public const String Credits = "Credits";
-
- /// 库存
- public const String Stock = "Stock";
-
- /// 警告库存
- public const String WarnStock = "WarnStock";
-
- /// 是否为子商品
- public const String IsSubProduct = "IsSubProduct";
-
- /// 父商品ID。如果为子商品,则需要填写父商品ID。实现多颜色功能
- public const String PPId = "PPId";
-
- /// 内容
- public const String Content = "Content";
-
- /// 商品参数
- public const String Parameters = "Parameters";
-
- /// 描述
- public const String Keyword = "Keyword";
-
- /// 介绍
- public const String Description = "Description";
-
- /// 跳转链接
- public const String LinkURL = "LinkURL";
-
- /// 类别名称颜色
- public const String TitleColor = "TitleColor";
-
- /// 模板
- public const String TemplateFile = "TemplateFile";
-
- /// 是否推荐
- public const String IsRecommend = "IsRecommend";
-
- /// 是否隐藏
- public const String IsHide = "IsHide";
-
- /// 是否锁定,不允许删除
- public const String IsLock = "IsLock";
-
- /// 是否删除,已经删除到回收站
- public const String IsDel = "IsDel";
-
- /// 是否置顶
- public const String IsTop = "IsTop";
-
- /// 是否精华
- public const String IsBest = "IsBest";
-
- /// 是否允许评论
- public const String IsComment = "IsComment";
-
- /// 是否会员栏目
- public const String IsMember = "IsMember";
-
- /// 是否新品
- public const String IsNew = "IsNew";
-
- /// 是否特价
- public const String IsSpecial = "IsSpecial";
-
- /// 是否促销
- public const String IsPromote = "IsPromote";
-
- /// 是否热销
- public const String IsHotSales = "IsHotSales";
-
- /// 是否缺货
- public const String IsBreakup = "IsBreakup";
-
- /// 是否下架
- public const String IsShelves = "IsShelves";
-
- /// 是否审核,1为已经审核前台显示
- public const String IsVerify = "IsVerify";
-
- /// 点击数量
- public const String Hits = "Hits";
-
- /// 是否为礼品商品
- public const String IsGift = "IsGift";
-
- /// 是否为配件
- public const String IsPart = "IsPart";
-
- /// 排序
- public const String Sequence = "Sequence";
-
- /// 评论数量
- public const String CommentCount = "CommentCount";
-
- /// 图标
- public const String Icon = "Icon";
-
- /// 样式名称
- public const String ClassName = "ClassName";
-
- /// banner图片
- public const String BannerImg = "BannerImg";
-
- /// 图片
- public const String Pic = "Pic";
-
- /// 广告ID
- public const String AdsId = "AdsId";
-
- /// TAG
- public const String Tags = "Tags";
-
- /// 更多图片
- public const String ItemImg = "ItemImg";
-
- /// 售后服务
- public const String Service = "Service";
-
- /// 添加管理员ID
- public const String AuthorId = "AuthorId";
-
- /// 添加时间
- public const String AddTime = "AddTime";
-
- /// 时间
- public const String UpdateTime = "UpdateTime";
-
- /// 路径
- public const String Location = "Location";
-
- /// 存放目录
- public const String FilePath = "FilePath";
- }
- #endregion
- }
-
- /// 快餐接口
- public partial interface IFood
- {
- #region 属性
- /// 编号
- Int32 Id { get; set; }
-
- /// 栏目ID
- Int32 KId { get; set; }
-
- /// 品牌ID
- Int32 BId { get; set; }
-
- /// 店铺ID
- Int32 ShopId { get; set; }
-
- /// 颜色ID
- Int32 CId { get; set; }
-
- /// 供货商ID
- Int32 SupportId { get; set; }
-
- /// 标题
- String Title { get; set; }
-
- /// 编号
- String ItemNO { get; set; }
-
- /// 副标题
- String SubTitle { get; set; }
-
- /// 商品单位
- String Unit { get; set; }
-
- /// 商品规格尺寸
- String Spec { get; set; }
-
- /// 颜色
- String Color { get; set; }
-
- /// 重量
- String Weight { get; set; }
-
- /// 价格
- Decimal Price { get; set; }
-
- /// 市场价格
- Decimal MarketPrice { get; set; }
-
- /// 特价,如有特价,以特价为准
- Decimal SpecialPrice { get; set; }
-
- /// 运费
- Decimal Fare { get; set; }
-
- /// 折扣
- Decimal Discount { get; set; }
-
- /// 材料
- String Material { get; set; }
-
- /// 封面
- String Front { get; set; }
-
- /// 积分
- Int32 Credits { get; set; }
-
- /// 库存
- Int32 Stock { get; set; }
-
- /// 警告库存
- Int32 WarnStock { get; set; }
-
- /// 是否为子商品
- Int32 IsSubProduct { get; set; }
-
- /// 父商品ID。如果为子商品,则需要填写父商品ID。实现多颜色功能
- Int32 PPId { get; set; }
-
- /// 内容
- String Content { get; set; }
-
- /// 商品参数
- String Parameters { get; set; }
-
- /// 描述
- String Keyword { get; set; }
-
- /// 介绍
- String Description { get; set; }
-
- /// 跳转链接
- String LinkURL { get; set; }
-
- /// 类别名称颜色
- String TitleColor { get; set; }
-
- /// 模板
- String TemplateFile { get; set; }
-
- /// 是否推荐
- Int32 IsRecommend { get; set; }
-
- /// 是否隐藏
- Int32 IsHide { get; set; }
-
- /// 是否锁定,不允许删除
- Int32 IsLock { get; set; }
-
- /// 是否删除,已经删除到回收站
- Int32 IsDel { get; set; }
-
- /// 是否置顶
- Int32 IsTop { get; set; }
-
- /// 是否精华
- Int32 IsBest { get; set; }
-
- /// 是否允许评论
- Int32 IsComment { get; set; }
-
- /// 是否会员栏目
- Int32 IsMember { get; set; }
-
- /// 是否新品
- Int32 IsNew { get; set; }
-
- /// 是否特价
- Int32 IsSpecial { get; set; }
-
- /// 是否促销
- Int32 IsPromote { get; set; }
-
- /// 是否热销
- Int32 IsHotSales { get; set; }
-
- /// 是否缺货
- Int32 IsBreakup { get; set; }
-
- /// 是否下架
- Int32 IsShelves { get; set; }
-
- /// 是否审核,1为已经审核前台显示
- Int32 IsVerify { get; set; }
-
- /// 点击数量
- Int32 Hits { get; set; }
-
- /// 是否为礼品商品
- Int32 IsGift { get; set; }
-
- /// 是否为配件
- Int32 IsPart { get; set; }
-
- /// 排序
- Int32 Sequence { get; set; }
-
- /// 评论数量
- Int32 CommentCount { get; set; }
-
- /// 图标
- String Icon { get; set; }
-
- /// 样式名称
- String ClassName { get; set; }
-
- /// banner图片
- String BannerImg { get; set; }
-
- /// 图片
- String Pic { get; set; }
-
- /// 广告ID
- Int32 AdsId { get; set; }
-
- /// TAG
- String Tags { get; set; }
-
- /// 更多图片
- String ItemImg { get; set; }
-
- /// 售后服务
- String Service { get; set; }
-
- /// 添加管理员ID
- Int32 AuthorId { get; set; }
-
- /// 添加时间
- DateTime AddTime { get; set; }
-
- /// 时间
- DateTime UpdateTime { get; set; }
-
- /// 路径
- String Location { get; set; }
-
- /// 存放目录
- String FilePath { get; set; }
- #endregion
-
- #region 获取/设置 字段值
- /// 获取/设置 字段值
- /// 字段名
- ///
- Object this[String name] { get; set; }
- #endregion
- }
-}
\ No newline at end of file
diff --git a/COMCMS.Core/Mall/用户优惠券.cs b/COMCMS.Core/Mall/用户优惠券.cs
index 4f38835..9c7a89d 100644
--- a/COMCMS.Core/Mall/用户优惠券.cs
+++ b/COMCMS.Core/Mall/用户优惠券.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/订单.cs b/COMCMS.Core/Mall/订单.cs
index 652000c..4287440 100644
--- a/COMCMS.Core/Mall/订单.cs
+++ b/COMCMS.Core/Mall/订单.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/订单日志.cs b/COMCMS.Core/Mall/订单日志.cs
index d15c25d..c645db8 100644
--- a/COMCMS.Core/Mall/订单日志.cs
+++ b/COMCMS.Core/Mall/订单日志.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/订单详情.cs b/COMCMS.Core/Mall/订单详情.cs
index 3c69a42..0c7e171 100644
--- a/COMCMS.Core/Mall/订单详情.cs
+++ b/COMCMS.Core/Mall/订单详情.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/购物车.cs b/COMCMS.Core/Mall/购物车.cs
index ca05aae..4344cc3 100644
--- a/COMCMS.Core/Mall/购物车.cs
+++ b/COMCMS.Core/Mall/购物车.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Mall/酒店房间.Biz.cs b/COMCMS.Core/Mall/酒店房间.Biz.cs
deleted file mode 100644
index ec85ea0..0000000
--- a/COMCMS.Core/Mall/酒店房间.Biz.cs
+++ /dev/null
@@ -1,180 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.IO;
-using System.Linq;
-using System.Reflection;
-using System.Text;
-using System.Threading.Tasks;
-using System.Web;
-using System.Xml.Serialization;
-using NewLife;
-using NewLife.Data;
-using NewLife.Log;
-using NewLife.Model;
-using NewLife.Reflection;
-using NewLife.Threading;
-using NewLife.Web;
-using XCode;
-using XCode.Cache;
-using XCode.Configuration;
-using XCode.DataAccessLayer;
-using XCode.Membership;
-
-namespace COMCMS.Core
-{
- /// 酒店房间
- public partial class HotelRoom : Entity
- {
- #region 对象操作
- static HotelRoom()
- {
- // 累加字段
- //Meta.Factory.AdditionalFields.Add(__.Logins);
-
- // 过滤器 UserModule、TimeModule、IPModule
- Meta.Modules.Add();
- }
-
- /// 验证数据,通过抛出异常的方式提示验证失败。
- /// 是否插入
- public override void Valid(Boolean isNew)
- {
- // 如果没有脏数据,则不需要进行任何处理
- if (!HasDirty) return;
-
- // 在新插入数据或者修改了指定字段时进行修正
- // 货币保留6位小数
- Price = Math.Round(Price, 6);
- MarketPrice = Math.Round(MarketPrice, 6);
- SpecialPrice = Math.Round(SpecialPrice, 6);
- Fare = Math.Round(Fare, 6);
- Discount = Math.Round(Discount, 6);
- //if (!Dirtys[nameof(UpdateTime)]) nameof(UpdateTime) = DateTime.Now;
- }
-
- ///// 首次连接数据库时初始化数据,仅用于实体类重载,用户不应该调用该方法
- //[EditorBrowsable(EditorBrowsableState.Never)]
- //protected override void InitData()
- //{
- // // InitData一般用于当数据表没有数据时添加一些默认数据,该实体类的任何第一次数据库操作都会触发该方法,默认异步调用
- // if (Meta.Count > 0) return;
-
- // if (XTrace.Debug) XTrace.WriteLine("开始初始化HotelRoom[酒店房间]数据……");
-
- // var entity = new HotelRoom();
- // entity.Id = 0;
- // entity.KId = 0;
- // entity.BId = 0;
- // entity.ShopId = 0;
- // entity.CId = 0;
- // entity.SupportId = 0;
- // entity.Title = "abc";
- // entity.ItemNO = "abc";
- // entity.SubTitle = "abc";
- // entity.Unit = "abc";
- // entity.Spec = "abc";
- // entity.Color = "abc";
- // entity.Weight = "abc";
- // entity.Price = 0.0;
- // entity.MarketPrice = 0.0;
- // entity.SpecialPrice = 0.0;
- // entity.Fare = 0.0;
- // entity.Discount = 0.0;
- // entity.Material = "abc";
- // entity.Front = "abc";
- // entity.Credits = 0;
- // entity.Stock = 0;
- // entity.WarnStock = 0;
- // entity.IsSubProduct = 0;
- // entity.PPId = 0;
- // entity.Content = "abc";
- // entity.Parameters = "abc";
- // entity.Keyword = "abc";
- // entity.Description = "abc";
- // entity.LinkURL = "abc";
- // entity.TitleColor = "abc";
- // entity.TemplateFile = "abc";
- // entity.IsRecommend = 0;
- // entity.IsHide = 0;
- // entity.IsLock = 0;
- // entity.IsDel = 0;
- // entity.IsTop = 0;
- // entity.IsBest = 0;
- // entity.IsComment = 0;
- // entity.IsMember = 0;
- // entity.IsNew = 0;
- // entity.IsSpecial = 0;
- // entity.IsPromote = 0;
- // entity.IsHotSales = 0;
- // entity.IsBreakup = 0;
- // entity.IsShelves = 0;
- // entity.IsVerify = 0;
- // entity.Hits = 0;
- // entity.IsGift = 0;
- // entity.IsPart = 0;
- // entity.Sequence = 0;
- // entity.CommentCount = 0;
- // entity.Icon = "abc";
- // entity.ClassName = "abc";
- // entity.BannerImg = "abc";
- // entity.Pic = "abc";
- // entity.AdsId = 0;
- // entity.Tags = "abc";
- // entity.ItemImg = "abc";
- // entity.Service = "abc";
- // entity.AuthorId = 0;
- // entity.AddTime = DateTime.Now;
- // entity.UpdateTime = DateTime.Now;
- // entity.Location = "abc";
- // entity.FilePath = "abc";
- // entity.PriceList = "abc";
- // entity.Insert();
-
- // if (XTrace.Debug) XTrace.WriteLine("完成初始化HotelRoom[酒店房间]数据!");
- //}
-
- ///// 已重载。基类先调用Valid(true)验证数据,然后在事务保护内调用OnInsert
- /////
- //public override Int32 Insert()
- //{
- // return base.Insert();
- //}
-
- ///// 已重载。在事务保护范围内处理业务,位于Valid之后
- /////
- //protected override Int32 OnDelete()
- //{
- // return base.OnDelete();
- //}
- #endregion
-
- #region 扩展属性
-
- #endregion
-
- #region 扩展查询
- /// 根据编号查找
- /// 编号
- /// 实体对象
- public static HotelRoom FindById(Int32 id)
- {
- if (id <= 0) return null;
-
- // 实体缓存
- if (Meta.Count < 1000) return Meta.Cache.Find(e => e.Id == id);
-
- // 单对象缓存
- //return Meta.SingleCache[id];
-
- return Find(_.Id == id);
- }
- #endregion
-
- #region 高级查询
- #endregion
-
- #region 业务操作
- #endregion
- }
-}
\ No newline at end of file
diff --git a/COMCMS.Core/Mall/酒店房间.cs b/COMCMS.Core/Mall/酒店房间.cs
deleted file mode 100644
index f750142..0000000
--- a/COMCMS.Core/Mall/酒店房间.cs
+++ /dev/null
@@ -1,1321 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using XCode;
-using XCode.Configuration;
-using XCode.DataAccessLayer;
-
-namespace COMCMS.Core
-{
- /// 酒店房间
- [Serializable]
- [DataObject]
- [Description("酒店房间")]
- [BindTable("HotelRoom", Description = "酒店房间", ConnName = "dbconn", DbType = DatabaseType.SqlServer)]
- public partial class HotelRoom : IHotelRoom
- {
- #region 属性
- private Int32 _Id;
- /// 编号
- [DisplayName("编号")]
- [Description("编号")]
- [DataObjectField(true, true, false, 0)]
- [BindColumn("Id", "编号", "int")]
- public Int32 Id { get { return _Id; } set { if (OnPropertyChanging(__.Id, value)) { _Id = value; OnPropertyChanged(__.Id); } } }
-
- private Int32 _KId;
- /// 栏目ID
- [DisplayName("栏目ID")]
- [Description("栏目ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("KId", "栏目ID", "int")]
- public Int32 KId { get { return _KId; } set { if (OnPropertyChanging(__.KId, value)) { _KId = value; OnPropertyChanged(__.KId); } } }
-
- private Int32 _BId;
- /// 品牌ID
- [DisplayName("品牌ID")]
- [Description("品牌ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("BId", "品牌ID", "int")]
- public Int32 BId { get { return _BId; } set { if (OnPropertyChanging(__.BId, value)) { _BId = value; OnPropertyChanged(__.BId); } } }
-
- private Int32 _ShopId;
- /// 店铺ID
- [DisplayName("店铺ID")]
- [Description("店铺ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("ShopId", "店铺ID", "int")]
- public Int32 ShopId { get { return _ShopId; } set { if (OnPropertyChanging(__.ShopId, value)) { _ShopId = value; OnPropertyChanged(__.ShopId); } } }
-
- private Int32 _CId;
- /// 颜色ID
- [DisplayName("颜色ID")]
- [Description("颜色ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("CId", "颜色ID", "int")]
- public Int32 CId { get { return _CId; } set { if (OnPropertyChanging(__.CId, value)) { _CId = value; OnPropertyChanged(__.CId); } } }
-
- private Int32 _SupportId;
- /// 供货商ID
- [DisplayName("供货商ID")]
- [Description("供货商ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("SupportId", "供货商ID", "int")]
- public Int32 SupportId { get { return _SupportId; } set { if (OnPropertyChanging(__.SupportId, value)) { _SupportId = value; OnPropertyChanged(__.SupportId); } } }
-
- private String _Title;
- /// 标题
- [DisplayName("标题")]
- [Description("标题")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Title", "标题", "nvarchar(250)", Master = true)]
- public String Title { get { return _Title; } set { if (OnPropertyChanging(__.Title, value)) { _Title = value; OnPropertyChanged(__.Title); } } }
-
- private String _ItemNO;
- /// 编号
- [DisplayName("编号")]
- [Description("编号")]
- [DataObjectField(false, false, true, 50)]
- [BindColumn("ItemNO", "编号", "nvarchar(50)")]
- public String ItemNO { get { return _ItemNO; } set { if (OnPropertyChanging(__.ItemNO, value)) { _ItemNO = value; OnPropertyChanged(__.ItemNO); } } }
-
- private String _SubTitle;
- /// 副标题
- [DisplayName("副标题")]
- [Description("副标题")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("SubTitle", "副标题", "nvarchar(250)")]
- public String SubTitle { get { return _SubTitle; } set { if (OnPropertyChanging(__.SubTitle, value)) { _SubTitle = value; OnPropertyChanged(__.SubTitle); } } }
-
- private String _Unit;
- /// 商品单位
- [DisplayName("商品单位")]
- [Description("商品单位")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Unit", "商品单位", "nvarchar(250)")]
- public String Unit { get { return _Unit; } set { if (OnPropertyChanging(__.Unit, value)) { _Unit = value; OnPropertyChanged(__.Unit); } } }
-
- private String _Spec;
- /// 商品规格尺寸
- [DisplayName("商品规格尺寸")]
- [Description("商品规格尺寸")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Spec", "商品规格尺寸", "nvarchar(250)")]
- public String Spec { get { return _Spec; } set { if (OnPropertyChanging(__.Spec, value)) { _Spec = value; OnPropertyChanged(__.Spec); } } }
-
- private String _Color;
- /// 颜色
- [DisplayName("颜色")]
- [Description("颜色")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Color", "颜色", "nvarchar(250)")]
- public String Color { get { return _Color; } set { if (OnPropertyChanging(__.Color, value)) { _Color = value; OnPropertyChanged(__.Color); } } }
-
- private String _Weight;
- /// 重量
- [DisplayName("重量")]
- [Description("重量")]
- [DataObjectField(false, false, true, 50)]
- [BindColumn("Weight", "重量", "nvarchar(50)")]
- public String Weight { get { return _Weight; } set { if (OnPropertyChanging(__.Weight, value)) { _Weight = value; OnPropertyChanged(__.Weight); } } }
-
- private Decimal _Price;
- /// 价格
- [DisplayName("价格")]
- [Description("价格")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Price", "价格", "money")]
- public Decimal Price { get { return _Price; } set { if (OnPropertyChanging(__.Price, value)) { _Price = value; OnPropertyChanged(__.Price); } } }
-
- private Decimal _MarketPrice;
- /// 市场价格
- [DisplayName("市场价格")]
- [Description("市场价格")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("MarketPrice", "市场价格", "money")]
- public Decimal MarketPrice { get { return _MarketPrice; } set { if (OnPropertyChanging(__.MarketPrice, value)) { _MarketPrice = value; OnPropertyChanged(__.MarketPrice); } } }
-
- private Decimal _SpecialPrice;
- /// 特价,如有特价,以特价为准
- [DisplayName("特价")]
- [Description("特价,如有特价,以特价为准")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("SpecialPrice", "特价,如有特价,以特价为准", "money")]
- public Decimal SpecialPrice { get { return _SpecialPrice; } set { if (OnPropertyChanging(__.SpecialPrice, value)) { _SpecialPrice = value; OnPropertyChanged(__.SpecialPrice); } } }
-
- private Decimal _Fare;
- /// 运费
- [DisplayName("运费")]
- [Description("运费")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Fare", "运费", "money")]
- public Decimal Fare { get { return _Fare; } set { if (OnPropertyChanging(__.Fare, value)) { _Fare = value; OnPropertyChanged(__.Fare); } } }
-
- private Decimal _Discount;
- /// 折扣
- [DisplayName("折扣")]
- [Description("折扣")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Discount", "折扣", "money")]
- public Decimal Discount { get { return _Discount; } set { if (OnPropertyChanging(__.Discount, value)) { _Discount = value; OnPropertyChanged(__.Discount); } } }
-
- private String _Material;
- /// 材料
- [DisplayName("材料")]
- [Description("材料")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Material", "材料", "nvarchar(250)")]
- public String Material { get { return _Material; } set { if (OnPropertyChanging(__.Material, value)) { _Material = value; OnPropertyChanged(__.Material); } } }
-
- private String _Front;
- /// 封面
- [DisplayName("封面")]
- [Description("封面")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Front", "封面", "nvarchar(250)")]
- public String Front { get { return _Front; } set { if (OnPropertyChanging(__.Front, value)) { _Front = value; OnPropertyChanged(__.Front); } } }
-
- private Int32 _Credits;
- /// 积分
- [DisplayName("积分")]
- [Description("积分")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Credits", "积分", "int")]
- public Int32 Credits { get { return _Credits; } set { if (OnPropertyChanging(__.Credits, value)) { _Credits = value; OnPropertyChanged(__.Credits); } } }
-
- private Int32 _Stock;
- /// 库存
- [DisplayName("库存")]
- [Description("库存")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Stock", "库存", "int")]
- public Int32 Stock { get { return _Stock; } set { if (OnPropertyChanging(__.Stock, value)) { _Stock = value; OnPropertyChanged(__.Stock); } } }
-
- private Int32 _WarnStock;
- /// 警告库存
- [DisplayName("警告库存")]
- [Description("警告库存")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("WarnStock", "警告库存", "int")]
- public Int32 WarnStock { get { return _WarnStock; } set { if (OnPropertyChanging(__.WarnStock, value)) { _WarnStock = value; OnPropertyChanged(__.WarnStock); } } }
-
- private Int32 _IsSubProduct;
- /// 是否为子商品
- [DisplayName("是否为子商品")]
- [Description("是否为子商品")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsSubProduct", "是否为子商品", "int")]
- public Int32 IsSubProduct { get { return _IsSubProduct; } set { if (OnPropertyChanging(__.IsSubProduct, value)) { _IsSubProduct = value; OnPropertyChanged(__.IsSubProduct); } } }
-
- private Int32 _PPId;
- /// 父商品ID。如果为子商品,则需要填写父商品ID。实现多颜色功能
- [DisplayName("父商品ID")]
- [Description("父商品ID。如果为子商品,则需要填写父商品ID。实现多颜色功能")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("PPId", "父商品ID。如果为子商品,则需要填写父商品ID。实现多颜色功能", "int")]
- public Int32 PPId { get { return _PPId; } set { if (OnPropertyChanging(__.PPId, value)) { _PPId = value; OnPropertyChanged(__.PPId); } } }
-
- private String _Content;
- /// 内容
- [DisplayName("内容")]
- [Description("内容")]
- [DataObjectField(false, false, true, -1)]
- [BindColumn("Content", "内容", "ntext")]
- public String Content { get { return _Content; } set { if (OnPropertyChanging(__.Content, value)) { _Content = value; OnPropertyChanged(__.Content); } } }
-
- private String _Parameters;
- /// 商品参数
- [DisplayName("商品参数")]
- [Description("商品参数")]
- [DataObjectField(false, false, true, -1)]
- [BindColumn("Parameters", "商品参数", "ntext")]
- public String Parameters { get { return _Parameters; } set { if (OnPropertyChanging(__.Parameters, value)) { _Parameters = value; OnPropertyChanged(__.Parameters); } } }
-
- private String _Keyword;
- /// 描述
- [DisplayName("描述")]
- [Description("描述")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Keyword", "描述", "nvarchar(250)")]
- public String Keyword { get { return _Keyword; } set { if (OnPropertyChanging(__.Keyword, value)) { _Keyword = value; OnPropertyChanged(__.Keyword); } } }
-
- private String _Description;
- /// 介绍
- [DisplayName("介绍")]
- [Description("介绍")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Description", "介绍", "nvarchar(250)")]
- public String Description { get { return _Description; } set { if (OnPropertyChanging(__.Description, value)) { _Description = value; OnPropertyChanged(__.Description); } } }
-
- private String _LinkURL;
- /// 跳转链接
- [DisplayName("跳转链接")]
- [Description("跳转链接")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("LinkURL", "跳转链接", "nvarchar(250)")]
- public String LinkURL { get { return _LinkURL; } set { if (OnPropertyChanging(__.LinkURL, value)) { _LinkURL = value; OnPropertyChanged(__.LinkURL); } } }
-
- private String _TitleColor;
- /// 类别名称颜色
- [DisplayName("类别名称颜色")]
- [Description("类别名称颜色")]
- [DataObjectField(false, false, true, 50)]
- [BindColumn("TitleColor", "类别名称颜色", "nvarchar(50)")]
- public String TitleColor { get { return _TitleColor; } set { if (OnPropertyChanging(__.TitleColor, value)) { _TitleColor = value; OnPropertyChanged(__.TitleColor); } } }
-
- private String _TemplateFile;
- /// 模板
- [DisplayName("模板")]
- [Description("模板")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("TemplateFile", "模板", "nvarchar(250)")]
- public String TemplateFile { get { return _TemplateFile; } set { if (OnPropertyChanging(__.TemplateFile, value)) { _TemplateFile = value; OnPropertyChanged(__.TemplateFile); } } }
-
- private Int32 _IsRecommend;
- /// 是否推荐
- [DisplayName("是否推荐")]
- [Description("是否推荐")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsRecommend", "是否推荐", "int")]
- public Int32 IsRecommend { get { return _IsRecommend; } set { if (OnPropertyChanging(__.IsRecommend, value)) { _IsRecommend = value; OnPropertyChanged(__.IsRecommend); } } }
-
- private Int32 _IsHide;
- /// 是否隐藏
- [DisplayName("是否隐藏")]
- [Description("是否隐藏")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsHide", "是否隐藏", "int")]
- public Int32 IsHide { get { return _IsHide; } set { if (OnPropertyChanging(__.IsHide, value)) { _IsHide = value; OnPropertyChanged(__.IsHide); } } }
-
- private Int32 _IsLock;
- /// 是否锁定,不允许删除
- [DisplayName("是否锁定")]
- [Description("是否锁定,不允许删除")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsLock", "是否锁定,不允许删除", "int")]
- public Int32 IsLock { get { return _IsLock; } set { if (OnPropertyChanging(__.IsLock, value)) { _IsLock = value; OnPropertyChanged(__.IsLock); } } }
-
- private Int32 _IsDel;
- /// 是否删除,已经删除到回收站
- [DisplayName("是否删除")]
- [Description("是否删除,已经删除到回收站")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsDel", "是否删除,已经删除到回收站", "int")]
- public Int32 IsDel { get { return _IsDel; } set { if (OnPropertyChanging(__.IsDel, value)) { _IsDel = value; OnPropertyChanged(__.IsDel); } } }
-
- private Int32 _IsTop;
- /// 是否置顶
- [DisplayName("是否置顶")]
- [Description("是否置顶")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsTop", "是否置顶", "int")]
- public Int32 IsTop { get { return _IsTop; } set { if (OnPropertyChanging(__.IsTop, value)) { _IsTop = value; OnPropertyChanged(__.IsTop); } } }
-
- private Int32 _IsBest;
- /// 是否精华
- [DisplayName("是否精华")]
- [Description("是否精华")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsBest", "是否精华", "int")]
- public Int32 IsBest { get { return _IsBest; } set { if (OnPropertyChanging(__.IsBest, value)) { _IsBest = value; OnPropertyChanged(__.IsBest); } } }
-
- private Int32 _IsComment;
- /// 是否允许评论
- [DisplayName("是否允许评论")]
- [Description("是否允许评论")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsComment", "是否允许评论", "int")]
- public Int32 IsComment { get { return _IsComment; } set { if (OnPropertyChanging(__.IsComment, value)) { _IsComment = value; OnPropertyChanged(__.IsComment); } } }
-
- private Int32 _IsMember;
- /// 是否会员栏目
- [DisplayName("是否会员栏目")]
- [Description("是否会员栏目")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsMember", "是否会员栏目", "int")]
- public Int32 IsMember { get { return _IsMember; } set { if (OnPropertyChanging(__.IsMember, value)) { _IsMember = value; OnPropertyChanged(__.IsMember); } } }
-
- private Int32 _IsNew;
- /// 是否新品
- [DisplayName("是否新品")]
- [Description("是否新品")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsNew", "是否新品", "int")]
- public Int32 IsNew { get { return _IsNew; } set { if (OnPropertyChanging(__.IsNew, value)) { _IsNew = value; OnPropertyChanged(__.IsNew); } } }
-
- private Int32 _IsSpecial;
- /// 是否特价
- [DisplayName("是否特价")]
- [Description("是否特价")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsSpecial", "是否特价", "int")]
- public Int32 IsSpecial { get { return _IsSpecial; } set { if (OnPropertyChanging(__.IsSpecial, value)) { _IsSpecial = value; OnPropertyChanged(__.IsSpecial); } } }
-
- private Int32 _IsPromote;
- /// 是否促销
- [DisplayName("是否促销")]
- [Description("是否促销")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsPromote", "是否促销", "int")]
- public Int32 IsPromote { get { return _IsPromote; } set { if (OnPropertyChanging(__.IsPromote, value)) { _IsPromote = value; OnPropertyChanged(__.IsPromote); } } }
-
- private Int32 _IsHotSales;
- /// 是否热销
- [DisplayName("是否热销")]
- [Description("是否热销")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsHotSales", "是否热销", "int")]
- public Int32 IsHotSales { get { return _IsHotSales; } set { if (OnPropertyChanging(__.IsHotSales, value)) { _IsHotSales = value; OnPropertyChanged(__.IsHotSales); } } }
-
- private Int32 _IsBreakup;
- /// 是否缺货
- [DisplayName("是否缺货")]
- [Description("是否缺货")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsBreakup", "是否缺货", "int")]
- public Int32 IsBreakup { get { return _IsBreakup; } set { if (OnPropertyChanging(__.IsBreakup, value)) { _IsBreakup = value; OnPropertyChanged(__.IsBreakup); } } }
-
- private Int32 _IsShelves;
- /// 是否下架
- [DisplayName("是否下架")]
- [Description("是否下架")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsShelves", "是否下架", "int")]
- public Int32 IsShelves { get { return _IsShelves; } set { if (OnPropertyChanging(__.IsShelves, value)) { _IsShelves = value; OnPropertyChanged(__.IsShelves); } } }
-
- private Int32 _IsVerify;
- /// 是否审核,1为已经审核前台显示
- [DisplayName("是否审核")]
- [Description("是否审核,1为已经审核前台显示")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsVerify", "是否审核,1为已经审核前台显示", "int")]
- public Int32 IsVerify { get { return _IsVerify; } set { if (OnPropertyChanging(__.IsVerify, value)) { _IsVerify = value; OnPropertyChanged(__.IsVerify); } } }
-
- private Int32 _Hits;
- /// 点击数量
- [DisplayName("点击数量")]
- [Description("点击数量")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Hits", "点击数量", "int")]
- public Int32 Hits { get { return _Hits; } set { if (OnPropertyChanging(__.Hits, value)) { _Hits = value; OnPropertyChanged(__.Hits); } } }
-
- private Int32 _IsGift;
- /// 是否为礼品商品
- [DisplayName("是否为礼品商品")]
- [Description("是否为礼品商品")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsGift", "是否为礼品商品", "int")]
- public Int32 IsGift { get { return _IsGift; } set { if (OnPropertyChanging(__.IsGift, value)) { _IsGift = value; OnPropertyChanged(__.IsGift); } } }
-
- private Int32 _IsPart;
- /// 是否为配件
- [DisplayName("是否为配件")]
- [Description("是否为配件")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("IsPart", "是否为配件", "int")]
- public Int32 IsPart { get { return _IsPart; } set { if (OnPropertyChanging(__.IsPart, value)) { _IsPart = value; OnPropertyChanged(__.IsPart); } } }
-
- private Int32 _Sequence;
- /// 排序
- [DisplayName("排序")]
- [Description("排序")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("Sequence", "排序", "int")]
- public Int32 Sequence { get { return _Sequence; } set { if (OnPropertyChanging(__.Sequence, value)) { _Sequence = value; OnPropertyChanged(__.Sequence); } } }
-
- private Int32 _CommentCount;
- /// 评论数量
- [DisplayName("评论数量")]
- [Description("评论数量")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("CommentCount", "评论数量", "int")]
- public Int32 CommentCount { get { return _CommentCount; } set { if (OnPropertyChanging(__.CommentCount, value)) { _CommentCount = value; OnPropertyChanged(__.CommentCount); } } }
-
- private String _Icon;
- /// 图标
- [DisplayName("图标")]
- [Description("图标")]
- [DataObjectField(false, false, true, 100)]
- [BindColumn("Icon", "图标", "nvarchar(100)")]
- public String Icon { get { return _Icon; } set { if (OnPropertyChanging(__.Icon, value)) { _Icon = value; OnPropertyChanged(__.Icon); } } }
-
- private String _ClassName;
- /// 样式名称
- [DisplayName("样式名称")]
- [Description("样式名称")]
- [DataObjectField(false, false, true, 50)]
- [BindColumn("ClassName", "样式名称", "nvarchar(50)")]
- public String ClassName { get { return _ClassName; } set { if (OnPropertyChanging(__.ClassName, value)) { _ClassName = value; OnPropertyChanged(__.ClassName); } } }
-
- private String _BannerImg;
- /// banner图片
- [DisplayName("banner图片")]
- [Description("banner图片")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("BannerImg", "banner图片", "nvarchar(250)")]
- public String BannerImg { get { return _BannerImg; } set { if (OnPropertyChanging(__.BannerImg, value)) { _BannerImg = value; OnPropertyChanged(__.BannerImg); } } }
-
- private String _Pic;
- /// 图片
- [DisplayName("图片")]
- [Description("图片")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Pic", "图片", "nvarchar(250)")]
- public String Pic { get { return _Pic; } set { if (OnPropertyChanging(__.Pic, value)) { _Pic = value; OnPropertyChanged(__.Pic); } } }
-
- private Int32 _AdsId;
- /// 广告ID
- [DisplayName("广告ID")]
- [Description("广告ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("AdsId", "广告ID", "int")]
- public Int32 AdsId { get { return _AdsId; } set { if (OnPropertyChanging(__.AdsId, value)) { _AdsId = value; OnPropertyChanged(__.AdsId); } } }
-
- private String _Tags;
- /// TAG
- [DisplayName("TAG")]
- [Description("TAG")]
- [DataObjectField(false, false, true, 250)]
- [BindColumn("Tags", "TAG", "nvarchar(250)")]
- public String Tags { get { return _Tags; } set { if (OnPropertyChanging(__.Tags, value)) { _Tags = value; OnPropertyChanged(__.Tags); } } }
-
- private String _ItemImg;
- /// 更多图片
- [DisplayName("更多图片")]
- [Description("更多图片")]
- [DataObjectField(false, false, true, -1)]
- [BindColumn("ItemImg", "更多图片", "ntext")]
- public String ItemImg { get { return _ItemImg; } set { if (OnPropertyChanging(__.ItemImg, value)) { _ItemImg = value; OnPropertyChanged(__.ItemImg); } } }
-
- private String _Service;
- /// 售后服务
- [DisplayName("售后服务")]
- [Description("售后服务")]
- [DataObjectField(false, false, true, -1)]
- [BindColumn("Service", "售后服务", "ntext")]
- public String Service { get { return _Service; } set { if (OnPropertyChanging(__.Service, value)) { _Service = value; OnPropertyChanged(__.Service); } } }
-
- private Int32 _AuthorId;
- /// 添加管理员ID
- [DisplayName("添加管理员ID")]
- [Description("添加管理员ID")]
- [DataObjectField(false, false, false, 0)]
- [BindColumn("AuthorId", "添加管理员ID", "int")]
- public Int32 AuthorId { get { return _AuthorId; } set { if (OnPropertyChanging(__.AuthorId, value)) { _AuthorId = value; OnPropertyChanged(__.AuthorId); } } }
-
- private DateTime _AddTime;
- /// 添加时间
- [DisplayName("添加时间")]
- [Description("添加时间")]
- [DataObjectField(false, false, true, 0)]
- [BindColumn("AddTime", "添加时间", "datetime")]
- public DateTime AddTime { get { return _AddTime; } set { if (OnPropertyChanging(__.AddTime, value)) { _AddTime = value; OnPropertyChanged(__.AddTime); } } }
-
- private DateTime _UpdateTime;
- /// 时间
- [DisplayName("时间")]
- [Description("时间")]
- [DataObjectField(false, false, true, 0)]
- [BindColumn("UpdateTime", "时间", "datetime")]
- public DateTime UpdateTime { get { return _UpdateTime; } set { if (OnPropertyChanging(__.UpdateTime, value)) { _UpdateTime = value; OnPropertyChanged(__.UpdateTime); } } }
-
- private String _Location;
- /// 路径
- [DisplayName("路径")]
- [Description("路径")]
- [DataObjectField(false, false, true, 100)]
- [BindColumn("Location", "路径", "nvarchar(100)")]
- public String Location { get { return _Location; } set { if (OnPropertyChanging(__.Location, value)) { _Location = value; OnPropertyChanged(__.Location); } } }
-
- private String _FilePath;
- /// 存放目录
- [DisplayName("存放目录")]
- [Description("存放目录")]
- [DataObjectField(false, false, true, 100)]
- [BindColumn("FilePath", "存放目录", "nvarchar(100)")]
- public String FilePath { get { return _FilePath; } set { if (OnPropertyChanging(__.FilePath, value)) { _FilePath = value; OnPropertyChanged(__.FilePath); } } }
-
- private String _PriceList;
- /// 日期价格
- [DisplayName("日期价格")]
- [Description("日期价格")]
- [DataObjectField(false, false, true, -1)]
- [BindColumn("PriceList", "日期价格", "ntext")]
- public String PriceList { get { return _PriceList; } set { if (OnPropertyChanging(__.PriceList, value)) { _PriceList = value; OnPropertyChanged(__.PriceList); } } }
- #endregion
-
- #region 获取/设置 字段值
- /// 获取/设置 字段值
- /// 字段名
- ///
- public override Object this[String name]
- {
- get
- {
- switch (name)
- {
- case __.Id : return _Id;
- case __.KId : return _KId;
- case __.BId : return _BId;
- case __.ShopId : return _ShopId;
- case __.CId : return _CId;
- case __.SupportId : return _SupportId;
- case __.Title : return _Title;
- case __.ItemNO : return _ItemNO;
- case __.SubTitle : return _SubTitle;
- case __.Unit : return _Unit;
- case __.Spec : return _Spec;
- case __.Color : return _Color;
- case __.Weight : return _Weight;
- case __.Price : return _Price;
- case __.MarketPrice : return _MarketPrice;
- case __.SpecialPrice : return _SpecialPrice;
- case __.Fare : return _Fare;
- case __.Discount : return _Discount;
- case __.Material : return _Material;
- case __.Front : return _Front;
- case __.Credits : return _Credits;
- case __.Stock : return _Stock;
- case __.WarnStock : return _WarnStock;
- case __.IsSubProduct : return _IsSubProduct;
- case __.PPId : return _PPId;
- case __.Content : return _Content;
- case __.Parameters : return _Parameters;
- case __.Keyword : return _Keyword;
- case __.Description : return _Description;
- case __.LinkURL : return _LinkURL;
- case __.TitleColor : return _TitleColor;
- case __.TemplateFile : return _TemplateFile;
- case __.IsRecommend : return _IsRecommend;
- case __.IsHide : return _IsHide;
- case __.IsLock : return _IsLock;
- case __.IsDel : return _IsDel;
- case __.IsTop : return _IsTop;
- case __.IsBest : return _IsBest;
- case __.IsComment : return _IsComment;
- case __.IsMember : return _IsMember;
- case __.IsNew : return _IsNew;
- case __.IsSpecial : return _IsSpecial;
- case __.IsPromote : return _IsPromote;
- case __.IsHotSales : return _IsHotSales;
- case __.IsBreakup : return _IsBreakup;
- case __.IsShelves : return _IsShelves;
- case __.IsVerify : return _IsVerify;
- case __.Hits : return _Hits;
- case __.IsGift : return _IsGift;
- case __.IsPart : return _IsPart;
- case __.Sequence : return _Sequence;
- case __.CommentCount : return _CommentCount;
- case __.Icon : return _Icon;
- case __.ClassName : return _ClassName;
- case __.BannerImg : return _BannerImg;
- case __.Pic : return _Pic;
- case __.AdsId : return _AdsId;
- case __.Tags : return _Tags;
- case __.ItemImg : return _ItemImg;
- case __.Service : return _Service;
- case __.AuthorId : return _AuthorId;
- case __.AddTime : return _AddTime;
- case __.UpdateTime : return _UpdateTime;
- case __.Location : return _Location;
- case __.FilePath : return _FilePath;
- case __.PriceList : return _PriceList;
- default: return base[name];
- }
- }
- set
- {
- switch (name)
- {
- case __.Id : _Id = Convert.ToInt32(value); break;
- case __.KId : _KId = Convert.ToInt32(value); break;
- case __.BId : _BId = Convert.ToInt32(value); break;
- case __.ShopId : _ShopId = Convert.ToInt32(value); break;
- case __.CId : _CId = Convert.ToInt32(value); break;
- case __.SupportId : _SupportId = Convert.ToInt32(value); break;
- case __.Title : _Title = Convert.ToString(value); break;
- case __.ItemNO : _ItemNO = Convert.ToString(value); break;
- case __.SubTitle : _SubTitle = Convert.ToString(value); break;
- case __.Unit : _Unit = Convert.ToString(value); break;
- case __.Spec : _Spec = Convert.ToString(value); break;
- case __.Color : _Color = Convert.ToString(value); break;
- case __.Weight : _Weight = Convert.ToString(value); break;
- case __.Price : _Price = Convert.ToDecimal(value); break;
- case __.MarketPrice : _MarketPrice = Convert.ToDecimal(value); break;
- case __.SpecialPrice : _SpecialPrice = Convert.ToDecimal(value); break;
- case __.Fare : _Fare = Convert.ToDecimal(value); break;
- case __.Discount : _Discount = Convert.ToDecimal(value); break;
- case __.Material : _Material = Convert.ToString(value); break;
- case __.Front : _Front = Convert.ToString(value); break;
- case __.Credits : _Credits = Convert.ToInt32(value); break;
- case __.Stock : _Stock = Convert.ToInt32(value); break;
- case __.WarnStock : _WarnStock = Convert.ToInt32(value); break;
- case __.IsSubProduct : _IsSubProduct = Convert.ToInt32(value); break;
- case __.PPId : _PPId = Convert.ToInt32(value); break;
- case __.Content : _Content = Convert.ToString(value); break;
- case __.Parameters : _Parameters = Convert.ToString(value); break;
- case __.Keyword : _Keyword = Convert.ToString(value); break;
- case __.Description : _Description = Convert.ToString(value); break;
- case __.LinkURL : _LinkURL = Convert.ToString(value); break;
- case __.TitleColor : _TitleColor = Convert.ToString(value); break;
- case __.TemplateFile : _TemplateFile = Convert.ToString(value); break;
- case __.IsRecommend : _IsRecommend = Convert.ToInt32(value); break;
- case __.IsHide : _IsHide = Convert.ToInt32(value); break;
- case __.IsLock : _IsLock = Convert.ToInt32(value); break;
- case __.IsDel : _IsDel = Convert.ToInt32(value); break;
- case __.IsTop : _IsTop = Convert.ToInt32(value); break;
- case __.IsBest : _IsBest = Convert.ToInt32(value); break;
- case __.IsComment : _IsComment = Convert.ToInt32(value); break;
- case __.IsMember : _IsMember = Convert.ToInt32(value); break;
- case __.IsNew : _IsNew = Convert.ToInt32(value); break;
- case __.IsSpecial : _IsSpecial = Convert.ToInt32(value); break;
- case __.IsPromote : _IsPromote = Convert.ToInt32(value); break;
- case __.IsHotSales : _IsHotSales = Convert.ToInt32(value); break;
- case __.IsBreakup : _IsBreakup = Convert.ToInt32(value); break;
- case __.IsShelves : _IsShelves = Convert.ToInt32(value); break;
- case __.IsVerify : _IsVerify = Convert.ToInt32(value); break;
- case __.Hits : _Hits = Convert.ToInt32(value); break;
- case __.IsGift : _IsGift = Convert.ToInt32(value); break;
- case __.IsPart : _IsPart = Convert.ToInt32(value); break;
- case __.Sequence : _Sequence = Convert.ToInt32(value); break;
- case __.CommentCount : _CommentCount = Convert.ToInt32(value); break;
- case __.Icon : _Icon = Convert.ToString(value); break;
- case __.ClassName : _ClassName = Convert.ToString(value); break;
- case __.BannerImg : _BannerImg = Convert.ToString(value); break;
- case __.Pic : _Pic = Convert.ToString(value); break;
- case __.AdsId : _AdsId = Convert.ToInt32(value); break;
- case __.Tags : _Tags = Convert.ToString(value); break;
- case __.ItemImg : _ItemImg = Convert.ToString(value); break;
- case __.Service : _Service = Convert.ToString(value); break;
- case __.AuthorId : _AuthorId = Convert.ToInt32(value); break;
- case __.AddTime : _AddTime = Convert.ToDateTime(value); break;
- case __.UpdateTime : _UpdateTime = Convert.ToDateTime(value); break;
- case __.Location : _Location = Convert.ToString(value); break;
- case __.FilePath : _FilePath = Convert.ToString(value); break;
- case __.PriceList : _PriceList = Convert.ToString(value); break;
- default: base[name] = value; break;
- }
- }
- }
- #endregion
-
- #region 字段名
- /// 取得酒店房间字段信息的快捷方式
- public partial class _
- {
- /// 编号
- public static readonly Field Id = FindByName(__.Id);
-
- /// 栏目ID
- public static readonly Field KId = FindByName(__.KId);
-
- /// 品牌ID
- public static readonly Field BId = FindByName(__.BId);
-
- /// 店铺ID
- public static readonly Field ShopId = FindByName(__.ShopId);
-
- /// 颜色ID
- public static readonly Field CId = FindByName(__.CId);
-
- /// 供货商ID
- public static readonly Field SupportId = FindByName(__.SupportId);
-
- /// 标题
- public static readonly Field Title = FindByName(__.Title);
-
- /// 编号
- public static readonly Field ItemNO = FindByName(__.ItemNO);
-
- /// 副标题
- public static readonly Field SubTitle = FindByName(__.SubTitle);
-
- /// 商品单位
- public static readonly Field Unit = FindByName(__.Unit);
-
- /// 商品规格尺寸
- public static readonly Field Spec = FindByName(__.Spec);
-
- /// 颜色
- public static readonly Field Color = FindByName(__.Color);
-
- /// 重量
- public static readonly Field Weight = FindByName(__.Weight);
-
- /// 价格
- public static readonly Field Price = FindByName(__.Price);
-
- /// 市场价格
- public static readonly Field MarketPrice = FindByName(__.MarketPrice);
-
- /// 特价,如有特价,以特价为准
- public static readonly Field SpecialPrice = FindByName(__.SpecialPrice);
-
- /// 运费
- public static readonly Field Fare = FindByName(__.Fare);
-
- /// 折扣
- public static readonly Field Discount = FindByName(__.Discount);
-
- /// 材料
- public static readonly Field Material = FindByName(__.Material);
-
- /// 封面
- public static readonly Field Front = FindByName(__.Front);
-
- /// 积分
- public static readonly Field Credits = FindByName(__.Credits);
-
- /// 库存
- public static readonly Field Stock = FindByName(__.Stock);
-
- /// 警告库存
- public static readonly Field WarnStock = FindByName(__.WarnStock);
-
- /// 是否为子商品
- public static readonly Field IsSubProduct = FindByName(__.IsSubProduct);
-
- /// 父商品ID。如果为子商品,则需要填写父商品ID。实现多颜色功能
- public static readonly Field PPId = FindByName(__.PPId);
-
- /// 内容
- public static readonly Field Content = FindByName(__.Content);
-
- /// 商品参数
- public static readonly Field Parameters = FindByName(__.Parameters);
-
- /// 描述
- public static readonly Field Keyword = FindByName(__.Keyword);
-
- /// 介绍
- public static readonly Field Description = FindByName(__.Description);
-
- /// 跳转链接
- public static readonly Field LinkURL = FindByName(__.LinkURL);
-
- /// 类别名称颜色
- public static readonly Field TitleColor = FindByName(__.TitleColor);
-
- /// 模板
- public static readonly Field TemplateFile = FindByName(__.TemplateFile);
-
- /// 是否推荐
- public static readonly Field IsRecommend = FindByName(__.IsRecommend);
-
- /// 是否隐藏
- public static readonly Field IsHide = FindByName(__.IsHide);
-
- /// 是否锁定,不允许删除
- public static readonly Field IsLock = FindByName(__.IsLock);
-
- /// 是否删除,已经删除到回收站
- public static readonly Field IsDel = FindByName(__.IsDel);
-
- /// 是否置顶
- public static readonly Field IsTop = FindByName(__.IsTop);
-
- /// 是否精华
- public static readonly Field IsBest = FindByName(__.IsBest);
-
- /// 是否允许评论
- public static readonly Field IsComment = FindByName(__.IsComment);
-
- /// 是否会员栏目
- public static readonly Field IsMember = FindByName(__.IsMember);
-
- /// 是否新品
- public static readonly Field IsNew = FindByName(__.IsNew);
-
- /// 是否特价
- public static readonly Field IsSpecial = FindByName(__.IsSpecial);
-
- /// 是否促销
- public static readonly Field IsPromote = FindByName(__.IsPromote);
-
- /// 是否热销
- public static readonly Field IsHotSales = FindByName(__.IsHotSales);
-
- /// 是否缺货
- public static readonly Field IsBreakup = FindByName(__.IsBreakup);
-
- /// 是否下架
- public static readonly Field IsShelves = FindByName(__.IsShelves);
-
- /// 是否审核,1为已经审核前台显示
- public static readonly Field IsVerify = FindByName(__.IsVerify);
-
- /// 点击数量
- public static readonly Field Hits = FindByName(__.Hits);
-
- /// 是否为礼品商品
- public static readonly Field IsGift = FindByName(__.IsGift);
-
- /// 是否为配件
- public static readonly Field IsPart = FindByName(__.IsPart);
-
- /// 排序
- public static readonly Field Sequence = FindByName(__.Sequence);
-
- /// 评论数量
- public static readonly Field CommentCount = FindByName(__.CommentCount);
-
- /// 图标
- public static readonly Field Icon = FindByName(__.Icon);
-
- /// 样式名称
- public static readonly Field ClassName = FindByName(__.ClassName);
-
- /// banner图片
- public static readonly Field BannerImg = FindByName(__.BannerImg);
-
- /// 图片
- public static readonly Field Pic = FindByName(__.Pic);
-
- /// 广告ID
- public static readonly Field AdsId = FindByName(__.AdsId);
-
- /// TAG
- public static readonly Field Tags = FindByName(__.Tags);
-
- /// 更多图片
- public static readonly Field ItemImg = FindByName(__.ItemImg);
-
- /// 售后服务
- public static readonly Field Service = FindByName(__.Service);
-
- /// 添加管理员ID
- public static readonly Field AuthorId = FindByName(__.AuthorId);
-
- /// 添加时间
- public static readonly Field AddTime = FindByName(__.AddTime);
-
- /// 时间
- public static readonly Field UpdateTime = FindByName(__.UpdateTime);
-
- /// 路径
- public static readonly Field Location = FindByName(__.Location);
-
- /// 存放目录
- public static readonly Field FilePath = FindByName(__.FilePath);
-
- /// 日期价格
- public static readonly Field PriceList = FindByName(__.PriceList);
-
- static Field FindByName(String name) { return Meta.Table.FindByName(name); }
- }
-
- /// 取得酒店房间字段名称的快捷方式
- public partial class __
- {
- /// 编号
- public const String Id = "Id";
-
- /// 栏目ID
- public const String KId = "KId";
-
- /// 品牌ID
- public const String BId = "BId";
-
- /// 店铺ID
- public const String ShopId = "ShopId";
-
- /// 颜色ID
- public const String CId = "CId";
-
- /// 供货商ID
- public const String SupportId = "SupportId";
-
- /// 标题
- public const String Title = "Title";
-
- /// 编号
- public const String ItemNO = "ItemNO";
-
- /// 副标题
- public const String SubTitle = "SubTitle";
-
- /// 商品单位
- public const String Unit = "Unit";
-
- /// 商品规格尺寸
- public const String Spec = "Spec";
-
- /// 颜色
- public const String Color = "Color";
-
- /// 重量
- public const String Weight = "Weight";
-
- /// 价格
- public const String Price = "Price";
-
- /// 市场价格
- public const String MarketPrice = "MarketPrice";
-
- /// 特价,如有特价,以特价为准
- public const String SpecialPrice = "SpecialPrice";
-
- /// 运费
- public const String Fare = "Fare";
-
- /// 折扣
- public const String Discount = "Discount";
-
- /// 材料
- public const String Material = "Material";
-
- /// 封面
- public const String Front = "Front";
-
- /// 积分
- public const String Credits = "Credits";
-
- /// 库存
- public const String Stock = "Stock";
-
- /// 警告库存
- public const String WarnStock = "WarnStock";
-
- /// 是否为子商品
- public const String IsSubProduct = "IsSubProduct";
-
- /// 父商品ID。如果为子商品,则需要填写父商品ID。实现多颜色功能
- public const String PPId = "PPId";
-
- /// 内容
- public const String Content = "Content";
-
- /// 商品参数
- public const String Parameters = "Parameters";
-
- /// 描述
- public const String Keyword = "Keyword";
-
- /// 介绍
- public const String Description = "Description";
-
- /// 跳转链接
- public const String LinkURL = "LinkURL";
-
- /// 类别名称颜色
- public const String TitleColor = "TitleColor";
-
- /// 模板
- public const String TemplateFile = "TemplateFile";
-
- /// 是否推荐
- public const String IsRecommend = "IsRecommend";
-
- /// 是否隐藏
- public const String IsHide = "IsHide";
-
- /// 是否锁定,不允许删除
- public const String IsLock = "IsLock";
-
- /// 是否删除,已经删除到回收站
- public const String IsDel = "IsDel";
-
- /// 是否置顶
- public const String IsTop = "IsTop";
-
- /// 是否精华
- public const String IsBest = "IsBest";
-
- /// 是否允许评论
- public const String IsComment = "IsComment";
-
- /// 是否会员栏目
- public const String IsMember = "IsMember";
-
- /// 是否新品
- public const String IsNew = "IsNew";
-
- /// 是否特价
- public const String IsSpecial = "IsSpecial";
-
- /// 是否促销
- public const String IsPromote = "IsPromote";
-
- /// 是否热销
- public const String IsHotSales = "IsHotSales";
-
- /// 是否缺货
- public const String IsBreakup = "IsBreakup";
-
- /// 是否下架
- public const String IsShelves = "IsShelves";
-
- /// 是否审核,1为已经审核前台显示
- public const String IsVerify = "IsVerify";
-
- /// 点击数量
- public const String Hits = "Hits";
-
- /// 是否为礼品商品
- public const String IsGift = "IsGift";
-
- /// 是否为配件
- public const String IsPart = "IsPart";
-
- /// 排序
- public const String Sequence = "Sequence";
-
- /// 评论数量
- public const String CommentCount = "CommentCount";
-
- /// 图标
- public const String Icon = "Icon";
-
- /// 样式名称
- public const String ClassName = "ClassName";
-
- /// banner图片
- public const String BannerImg = "BannerImg";
-
- /// 图片
- public const String Pic = "Pic";
-
- /// 广告ID
- public const String AdsId = "AdsId";
-
- /// TAG
- public const String Tags = "Tags";
-
- /// 更多图片
- public const String ItemImg = "ItemImg";
-
- /// 售后服务
- public const String Service = "Service";
-
- /// 添加管理员ID
- public const String AuthorId = "AuthorId";
-
- /// 添加时间
- public const String AddTime = "AddTime";
-
- /// 时间
- public const String UpdateTime = "UpdateTime";
-
- /// 路径
- public const String Location = "Location";
-
- /// 存放目录
- public const String FilePath = "FilePath";
-
- /// 日期价格
- public const String PriceList = "PriceList";
- }
- #endregion
- }
-
- /// 酒店房间接口
- public partial interface IHotelRoom
- {
- #region 属性
- /// 编号
- Int32 Id { get; set; }
-
- /// 栏目ID
- Int32 KId { get; set; }
-
- /// 品牌ID
- Int32 BId { get; set; }
-
- /// 店铺ID
- Int32 ShopId { get; set; }
-
- /// 颜色ID
- Int32 CId { get; set; }
-
- /// 供货商ID
- Int32 SupportId { get; set; }
-
- /// 标题
- String Title { get; set; }
-
- /// 编号
- String ItemNO { get; set; }
-
- /// 副标题
- String SubTitle { get; set; }
-
- /// 商品单位
- String Unit { get; set; }
-
- /// 商品规格尺寸
- String Spec { get; set; }
-
- /// 颜色
- String Color { get; set; }
-
- /// 重量
- String Weight { get; set; }
-
- /// 价格
- Decimal Price { get; set; }
-
- /// 市场价格
- Decimal MarketPrice { get; set; }
-
- /// 特价,如有特价,以特价为准
- Decimal SpecialPrice { get; set; }
-
- /// 运费
- Decimal Fare { get; set; }
-
- /// 折扣
- Decimal Discount { get; set; }
-
- /// 材料
- String Material { get; set; }
-
- /// 封面
- String Front { get; set; }
-
- /// 积分
- Int32 Credits { get; set; }
-
- /// 库存
- Int32 Stock { get; set; }
-
- /// 警告库存
- Int32 WarnStock { get; set; }
-
- /// 是否为子商品
- Int32 IsSubProduct { get; set; }
-
- /// 父商品ID。如果为子商品,则需要填写父商品ID。实现多颜色功能
- Int32 PPId { get; set; }
-
- /// 内容
- String Content { get; set; }
-
- /// 商品参数
- String Parameters { get; set; }
-
- /// 描述
- String Keyword { get; set; }
-
- /// 介绍
- String Description { get; set; }
-
- /// 跳转链接
- String LinkURL { get; set; }
-
- /// 类别名称颜色
- String TitleColor { get; set; }
-
- /// 模板
- String TemplateFile { get; set; }
-
- /// 是否推荐
- Int32 IsRecommend { get; set; }
-
- /// 是否隐藏
- Int32 IsHide { get; set; }
-
- /// 是否锁定,不允许删除
- Int32 IsLock { get; set; }
-
- /// 是否删除,已经删除到回收站
- Int32 IsDel { get; set; }
-
- /// 是否置顶
- Int32 IsTop { get; set; }
-
- /// 是否精华
- Int32 IsBest { get; set; }
-
- /// 是否允许评论
- Int32 IsComment { get; set; }
-
- /// 是否会员栏目
- Int32 IsMember { get; set; }
-
- /// 是否新品
- Int32 IsNew { get; set; }
-
- /// 是否特价
- Int32 IsSpecial { get; set; }
-
- /// 是否促销
- Int32 IsPromote { get; set; }
-
- /// 是否热销
- Int32 IsHotSales { get; set; }
-
- /// 是否缺货
- Int32 IsBreakup { get; set; }
-
- /// 是否下架
- Int32 IsShelves { get; set; }
-
- /// 是否审核,1为已经审核前台显示
- Int32 IsVerify { get; set; }
-
- /// 点击数量
- Int32 Hits { get; set; }
-
- /// 是否为礼品商品
- Int32 IsGift { get; set; }
-
- /// 是否为配件
- Int32 IsPart { get; set; }
-
- /// 排序
- Int32 Sequence { get; set; }
-
- /// 评论数量
- Int32 CommentCount { get; set; }
-
- /// 图标
- String Icon { get; set; }
-
- /// 样式名称
- String ClassName { get; set; }
-
- /// banner图片
- String BannerImg { get; set; }
-
- /// 图片
- String Pic { get; set; }
-
- /// 广告ID
- Int32 AdsId { get; set; }
-
- /// TAG
- String Tags { get; set; }
-
- /// 更多图片
- String ItemImg { get; set; }
-
- /// 售后服务
- String Service { get; set; }
-
- /// 添加管理员ID
- Int32 AuthorId { get; set; }
-
- /// 添加时间
- DateTime AddTime { get; set; }
-
- /// 时间
- DateTime UpdateTime { get; set; }
-
- /// 路径
- String Location { get; set; }
-
- /// 存放目录
- String FilePath { get; set; }
-
- /// 日期价格
- String PriceList { get; set; }
- #endregion
-
- #region 获取/设置 字段值
- /// 获取/设置 字段值
- /// 字段名
- ///
- Object this[String name] { get; set; }
- #endregion
- }
-}
\ No newline at end of file
diff --git a/COMCMS.Core/Weixin/公众平台回复信息.cs b/COMCMS.Core/Weixin/公众平台回复信息.cs
index abd10fb..9dbf203 100644
--- a/COMCMS.Core/Weixin/公众平台回复信息.cs
+++ b/COMCMS.Core/Weixin/公众平台回复信息.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Weixin/微信公众号回复规则.cs b/COMCMS.Core/Weixin/微信公众号回复规则.cs
index 0034813..4a751e1 100644
--- a/COMCMS.Core/Weixin/微信公众号回复规则.cs
+++ b/COMCMS.Core/Weixin/微信公众号回复规则.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Core/Weixin/请求回复的内容.cs b/COMCMS.Core/Weixin/请求回复的内容.cs
index 552c085..1c3ef0f 100644
--- a/COMCMS.Core/Weixin/请求回复的内容.cs
+++ b/COMCMS.Core/Weixin/请求回复的内容.cs
@@ -4,6 +4,7 @@ using System.ComponentModel;
using XCode;
using XCode.Configuration;
using XCode.DataAccessLayer;
+using NewLife;
namespace COMCMS.Core
{
diff --git a/COMCMS.Web/COMCMS.Web.csproj b/COMCMS.Web/COMCMS.Web.csproj
index fc7adb0..01ca28e 100644
--- a/COMCMS.Web/COMCMS.Web.csproj
+++ b/COMCMS.Web/COMCMS.Web.csproj
@@ -6,24 +6,24 @@
-
+
-
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
diff --git a/COMCMS.Web/Controllers/api/UserController.cs b/COMCMS.Web/Controllers/api/UserController.cs
index 5465d28..076728e 100644
--- a/COMCMS.Web/Controllers/api/UserController.cs
+++ b/COMCMS.Web/Controllers/api/UserController.cs
@@ -40,59 +40,21 @@ namespace COMCMS.Web.Controllers.api
_appSettings = setting.Value;
}
- #region 用户授权信息同步
- ///
- /// 同步微信信息
- ///
- ///
+ #region 判断授权信息
[HttpGet]
- public ReJson SyncWeixinInfo(string sessionkey, string userInfo, int inviteid = 0)
+ public object CheckIdentity()
{
- if (string.IsNullOrEmpty(sessionkey))
+ var user = User;
+ //string name = user.Identity.Name;
+ if (user == null || string.IsNullOrEmpty(user.Identity.Name))
{
- return new ReJson(5003,"登录状态失败");
+ reJson.code = 401;//401 为授权错误,需要重新登录
+ reJson.message = "授权失败或者过期";
+ return reJson;
}
- WXAppSession entity = WXAppSession.Find(WXAppSession._.Key == sessionkey);
- if (entity == null)
- {
- return new ReJson("未找到登录状态!");
- }
- if (string.IsNullOrEmpty(userInfo))
- {
- return new ReJson("用户信息错误!");
- }
- WXAppUserInfo info = JsonConvert.DeserializeObject(userInfo);
- if (string.IsNullOrEmpty(info.avatarUrl))
- {
- return new ReJson("微信用户信息错误!");
- }
- //获取用户
- Member my = Member.FindById(entity.UId);
- if (my == null)
- {
- return new ReJson(40000, "系统找不到本用户!");
- }
- //同步用户信息
- my.Country = info.country;
- my.UserImg = info.avatarUrl;
- my.City = info.city;
- my.Province = info.province;
- my.Sex = info.gender;
- my.Nickname = info.nickName;
- my.LastLoginTime = DateTime.Now;
- if (inviteid > 0 & my.Parent == 0)
- {
- Member inviter = Member.Find(Member._.Id == inviteid);
- if (inviter != null)
- {
- my.Parent = inviter.Id;
- my.Grandfather = inviter.Parent;
- }
- }
- my.Update();
-
- var detail = new { sessionkey = entity.Key, username = info.nickName, userimg = info.avatarUrl };
- return new ReJson(0, "同步信息成功!", detail);
+ reJson.code = 0;
+ reJson.message = "授权失败或者过期";
+ return reJson;
}
#endregion