This commit is contained in:
yubaolee
2017-01-12 19:16:37 +08:00
parent ccf1269eca
commit 21b37f77cf
270 changed files with 1935 additions and 5907 deletions

View File

@@ -1,60 +1,60 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 分类表
/// </summary>
public partial class Category :Entity
{
public Category()
{
this.CascadeId= string.Empty;
this.Name= string.Empty;
this.Status= 0;
this.SortNo= 0;
this.RootKey= string.Empty;
this.RootName= string.Empty;
}
/// <summary>
/// 节点语义ID
/// </summary>
public string CascadeId { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 当前状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
/// <summary>
/// 分类所属科目
/// </summary>
public string RootKey { get; set; }
/// <summary>
/// 分类所属科目名称
/// </summary>
public string RootName { get; set; }
/// <summary>
/// 父节点流水号
/// </summary>
public System.Guid? ParentId { get; set; }
}
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 分类表
/// </summary>
public partial class Category :Entity
{
public Category()
{
this.CascadeId= string.Empty;
this.Name= string.Empty;
this.Status= 0;
this.SortNo= 0;
this.RootKey= string.Empty;
this.RootName= string.Empty;
}
/// <summary>
/// 节点语义ID
/// </summary>
public string CascadeId { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 当前状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
/// <summary>
/// 分类所属科目
/// </summary>
public string RootKey { get; set; }
/// <summary>
/// 分类所属科目名称
/// </summary>
public string RootName { get; set; }
/// <summary>
/// 父节点流水号
/// </summary>
public System.Guid? ParentId { get; set; }
}
}

View File

@@ -1,55 +1,55 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 数据字典详情
/// </summary>
public partial class DicDetail :Entity
{
public DicDetail()
{
this.Value= string.Empty;
this.Text= string.Empty;
this.SortNo= 0;
this.Status= 0;
this.Description= string.Empty;
}
/// <summary>
/// 值
/// </summary>
public string Value { get; set; }
/// <summary>
/// 文本描述
/// </summary>
public string Text { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 所属字典ID
/// </summary>
public System.Guid DicId { get; set; }
}
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 数据字典详情
/// </summary>
public partial class DicDetail :Entity
{
public DicDetail()
{
this.Value= string.Empty;
this.Text= string.Empty;
this.SortNo= 0;
this.Status= 0;
this.Description= string.Empty;
}
/// <summary>
/// 值
/// </summary>
public string Value { get; set; }
/// <summary>
/// 文本描述
/// </summary>
public string Text { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 所属字典ID
/// </summary>
public System.Guid DicId { get; set; }
}
}

View File

@@ -1,50 +1,50 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 数据字典
/// </summary>
public partial class DicIndex :Entity
{
public DicIndex()
{
this.Name= string.Empty;
this.Key= string.Empty;
this.SortNo= 0;
this.Description= string.Empty;
}
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
///
/// </summary>
public string Key { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 所属分类
/// </summary>
public System.Guid? CategoryId { get; set; }
}
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 数据字典
/// </summary>
public partial class DicIndex :Entity
{
public DicIndex()
{
this.Name= string.Empty;
this.Key= string.Empty;
this.SortNo= 0;
this.Description= string.Empty;
}
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
///
/// </summary>
public string Key { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 所属分类
/// </summary>
public System.Guid? CategoryId { get; set; }
}
}

View File

@@ -1,83 +1,83 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 功能模块表
/// </summary>
public partial class Module:Entity
{
public Module()
{
this.CascadeId= string.Empty;
this.Name= string.Empty;
this.Url= string.Empty;
this.HotKey= string.Empty;
this.IconName= string.Empty;
this.Status= 0;
this.ParentName= string.Empty;
this.Vector= string.Empty;
this.SortNo= 0;
}
/// <summary>
/// 节点语义ID
/// </summary>
public string CascadeId { get; set; }
/// <summary>
/// 功能模块名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 主页面URL
/// </summary>
public string Url { get; set; }
/// <summary>
/// 热键
/// </summary>
public string HotKey { get; set; }
/// <summary>
/// 父节点流水号
/// </summary>
public Guid? ParentId { get; set; }
/// <summary>
/// 是否叶子节点
/// </summary>
public bool IsLeaf { get; set; }
/// <summary>
/// 是否自动展开
/// </summary>
public bool IsAutoExpand { get; set; }
/// <summary>
/// 节点图标文件名称
/// </summary>
public string IconName { get; set; }
/// <summary>
/// 当前状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 父节点名称
/// </summary>
public string ParentName { get; set; }
/// <summary>
/// 矢量图标
/// </summary>
public string Vector { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
}
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 功能模块表
/// </summary>
public partial class Module:Entity
{
public Module()
{
this.CascadeId= string.Empty;
this.Name= string.Empty;
this.Url= string.Empty;
this.HotKey= string.Empty;
this.IconName= string.Empty;
this.Status= 0;
this.ParentName= string.Empty;
this.Vector= string.Empty;
this.SortNo= 0;
}
/// <summary>
/// 节点语义ID
/// </summary>
public string CascadeId { get; set; }
/// <summary>
/// 功能模块名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 主页面URL
/// </summary>
public string Url { get; set; }
/// <summary>
/// 热键
/// </summary>
public string HotKey { get; set; }
/// <summary>
/// 父节点流水号
/// </summary>
public Guid? ParentId { get; set; }
/// <summary>
/// 是否叶子节点
/// </summary>
public bool IsLeaf { get; set; }
/// <summary>
/// 是否自动展开
/// </summary>
public bool IsAutoExpand { get; set; }
/// <summary>
/// 节点图标文件名称
/// </summary>
public string IconName { get; set; }
/// <summary>
/// 当前状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 父节点名称
/// </summary>
public string ParentName { get; set; }
/// <summary>
/// 矢量图标
/// </summary>
public string Vector { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
}
}

View File

@@ -1,75 +1,75 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 模块元素表(需要权限控制的按钮)
/// </summary>
public partial class ModuleElement :Entity
{
public ModuleElement()
{
this.DomId= string.Empty;
this.Name= string.Empty;
this.Type= string.Empty;
this.Attr= string.Empty;
this.Script= string.Empty;
this.Icon= string.Empty;
this.Class= string.Empty;
this.Remark= string.Empty;
this.Sort= 0;
}
/// <summary>
/// DOM ID
/// </summary>
public string DomId { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 类型
/// </summary>
public string Type { get; set; }
/// <summary>
/// 元素附加属性
/// </summary>
public string Attr { get; set; }
/// <summary>
/// 元素调用脚本
/// </summary>
public string Script { get; set; }
/// <summary>
/// 元素图标
/// </summary>
public string Icon { get; set; }
/// <summary>
/// 元素样式
/// </summary>
public string Class { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 排序字段
/// </summary>
public int Sort { get; set; }
/// <summary>
///
/// </summary>
public System.Guid ModuleId { get; set; }
}
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 模块元素表(需要权限控制的按钮)
/// </summary>
public partial class ModuleElement :Entity
{
public ModuleElement()
{
this.DomId= string.Empty;
this.Name= string.Empty;
this.Type= string.Empty;
this.Attr= string.Empty;
this.Script= string.Empty;
this.Icon= string.Empty;
this.Class= string.Empty;
this.Remark= string.Empty;
this.Sort= 0;
}
/// <summary>
/// DOM ID
/// </summary>
public string DomId { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 类型
/// </summary>
public string Type { get; set; }
/// <summary>
/// 元素附加属性
/// </summary>
public string Attr { get; set; }
/// <summary>
/// 元素调用脚本
/// </summary>
public string Script { get; set; }
/// <summary>
/// 元素图标
/// </summary>
public string Icon { get; set; }
/// <summary>
/// 元素样式
/// </summary>
public string Class { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 排序字段
/// </summary>
public int Sort { get; set; }
/// <summary>
///
/// </summary>
public System.Guid ModuleId { get; set; }
}
}

View File

@@ -1,98 +1,98 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 组织表
/// </summary>
public partial class Org:Entity
{
public Org()
{
this.CascadeId= string.Empty;
this.Name= string.Empty;
this.HotKey= string.Empty;
this.ParentName= string.Empty;
this.IconName= string.Empty;
this.Status= 0;
this.Type= 0;
this.BizCode= string.Empty;
this.CustomCode= string.Empty;
this.CreateTime= DateTime.Now;
this.CreateId= 0;
this.SortNo= 0;
}
/// <summary>
/// 节点语义ID
/// </summary>
public string CascadeId { get; set; }
/// <summary>
/// 组织名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 热键
/// </summary>
public string HotKey { get; set; }
/// <summary>
/// 父节点名称
/// </summary>
public string ParentName { get; set; }
/// <summary>
/// 是否叶子节点
/// </summary>
public bool IsLeaf { get; set; }
/// <summary>
/// 是否自动展开
/// </summary>
public bool IsAutoExpand { get; set; }
/// <summary>
/// 节点图标文件名称
/// </summary>
public string IconName { get; set; }
/// <summary>
/// 当前状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 组织类型
/// </summary>
public int Type { get; set; }
/// <summary>
/// 业务对照码
/// </summary>
public string BizCode { get; set; }
/// <summary>
/// 自定义扩展码
/// </summary>
public string CustomCode { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public System.DateTime CreateTime { get; set; }
/// <summary>
/// 创建人ID
/// </summary>
public int CreateId { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
/// <summary>
/// 父节点流水号
/// </summary>
public System.Guid? ParentId { get; set; }
}
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 组织表
/// </summary>
public partial class Org:Entity
{
public Org()
{
this.CascadeId= string.Empty;
this.Name= string.Empty;
this.HotKey= string.Empty;
this.ParentName= string.Empty;
this.IconName= string.Empty;
this.Status= 0;
this.Type= 0;
this.BizCode= string.Empty;
this.CustomCode= string.Empty;
this.CreateTime= DateTime.Now;
this.CreateId= 0;
this.SortNo= 0;
}
/// <summary>
/// 节点语义ID
/// </summary>
public string CascadeId { get; set; }
/// <summary>
/// 组织名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 热键
/// </summary>
public string HotKey { get; set; }
/// <summary>
/// 父节点名称
/// </summary>
public string ParentName { get; set; }
/// <summary>
/// 是否叶子节点
/// </summary>
public bool IsLeaf { get; set; }
/// <summary>
/// 是否自动展开
/// </summary>
public bool IsAutoExpand { get; set; }
/// <summary>
/// 节点图标文件名称
/// </summary>
public string IconName { get; set; }
/// <summary>
/// 当前状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 组织类型
/// </summary>
public int Type { get; set; }
/// <summary>
/// 业务对照码
/// </summary>
public string BizCode { get; set; }
/// <summary>
/// 自定义扩展码
/// </summary>
public string CustomCode { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public System.DateTime CreateTime { get; set; }
/// <summary>
/// 创建人ID
/// </summary>
public int CreateId { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
/// <summary>
/// 父节点流水号
/// </summary>
public System.Guid? ParentId { get; set; }
}
}

View File

@@ -1,59 +1,59 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 多对多关系集中映射
/// </summary>
public partial class Relevance :Entity
{
public Relevance()
{
this.Description= string.Empty;
this.Key= string.Empty;
this.Status= 0;
this.OperateTime= DateTime.Now;
this.OperatorId= 0;
}
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
///
/// </summary>
public string Key { get; set; }
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 授权时间
/// </summary>
public System.DateTime OperateTime { get; set; }
/// <summary>
/// 授权人
/// </summary>
public int OperatorId { get; set; }
/// <summary>
/// 第一个表主键ID
/// </summary>
public System.Guid FirstId { get; set; }
/// <summary>
/// 第二个表主键ID
/// </summary>
public System.Guid SecondId { get; set; }
}
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 多对多关系集中映射
/// </summary>
public partial class Relevance :Entity
{
public Relevance()
{
this.Description= string.Empty;
this.Key= string.Empty;
this.Status= 0;
this.OperateTime= DateTime.Now;
this.OperatorId= 0;
}
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
///
/// </summary>
public string Key { get; set; }
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 授权时间
/// </summary>
public System.DateTime OperateTime { get; set; }
/// <summary>
/// 授权人
/// </summary>
public int OperatorId { get; set; }
/// <summary>
/// 第一个表主键ID
/// </summary>
public System.Guid FirstId { get; set; }
/// <summary>
/// 第二个表主键ID
/// </summary>
public System.Guid SecondId { get; set; }
}
}

View File

@@ -1,64 +1,64 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 资源表
/// </summary>
public partial class Resource :Entity
{
public Resource()
{
this.CascadeId= string.Empty;
this.Key= string.Empty;
this.Name= string.Empty;
this.Status= 0;
this.SortNo= 0;
this.Description= string.Empty;
}
/// <summary>
/// 节点语义ID
/// </summary>
public string CascadeId { get; set; }
/// <summary>
///
/// </summary>
public string Key { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 当前状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
/// <summary>
/// 资源分类
/// </summary>
public Guid? CategoryId { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 父节点流水号
/// </summary>
public System.Guid? ParentId { get; set; }
}
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 资源表
/// </summary>
public partial class Resource :Entity
{
public Resource()
{
this.CascadeId= string.Empty;
this.Key= string.Empty;
this.Name= string.Empty;
this.Status= 0;
this.SortNo= 0;
this.Description= string.Empty;
}
/// <summary>
/// 节点语义ID
/// </summary>
public string CascadeId { get; set; }
/// <summary>
///
/// </summary>
public string Key { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 当前状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int SortNo { get; set; }
/// <summary>
/// 资源分类
/// </summary>
public Guid? CategoryId { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 父节点流水号
/// </summary>
public System.Guid? ParentId { get; set; }
}
}

View File

@@ -1,51 +1,51 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 角色表
/// </summary>
public partial class Role :Entity
{
public Role()
{
this.Name= string.Empty;
this.Status= 0;
this.Type= 0;
this.CreateTime= DateTime.Now;
this.CreateId= string.Empty;
}
/// <summary>
/// 角色名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 当前状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 角色类型
/// </summary>
public int Type { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public System.DateTime CreateTime { get; set; }
/// <summary>
/// 创建人ID
/// </summary>
public string CreateId { get; set; }
}
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 角色表
/// </summary>
public partial class Role :Entity
{
public Role()
{
this.Name= string.Empty;
this.Status= 0;
this.Type= 0;
this.CreateTime= DateTime.Now;
this.CreateId= string.Empty;
}
/// <summary>
/// 角色名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 当前状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 角色类型
/// </summary>
public int Type { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public System.DateTime CreateTime { get; set; }
/// <summary>
/// 创建人ID
/// </summary>
public string CreateId { get; set; }
}
}

View File

@@ -1,19 +1,69 @@
using System;
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 用户ID
/// <summary>
///
/// </summary>
public partial class User
{
public void CheckPassword(string password)
{
if (Password != password)
{
throw new Exception("密码错误");
}
}
public partial class User :Entity
{
public User()
{
this.Account= string.Empty;
this.Password= string.Empty;
this.Name= string.Empty;
this.Sex= 0;
this.Status= 0;
this.Type= 0;
this.BizCode= string.Empty;
this.CreateTime= DateTime.Now;
}
}
}
/// <summary>
///
/// </summary>
public string Account { get; set; }
/// <summary>
///
/// </summary>
public string Password { get; set; }
/// <summary>
///
/// </summary>
public string Name { get; set; }
/// <summary>
///
/// </summary>
public int Sex { get; set; }
/// <summary>
///
/// </summary>
public int Status { get; set; }
/// <summary>
///
/// </summary>
public int Type { get; set; }
/// <summary>
///
/// </summary>
public string BizCode { get; set; }
/// <summary>
///
/// </summary>
public System.DateTime CreateTime { get; set; }
/// <summary>
///
/// </summary>
public System.Guid? CrateId { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using System;
namespace OpenAuth.Domain
{
/// <summary>
/// 用户ID
/// </summary>
public static class UserExt
{
public static void CheckPassword(this User user, string password)
{
if (user.Password != password)
{
throw new Exception("密码错误");
}
}
}
}

View File

@@ -42,13 +42,13 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ApplyTransitionHistory.cs" />
<Compile Include="Category.cs" />
<Compile Include="Core\User.cs" />
<Compile Include="DicDetail.cs" />
<Compile Include="DicIndex.cs" />
<Compile Include="Entity.cs" />
<Compile Include="CommonApply.cs" />
<Compile Include="Core\ApplyTransitionHistory.cs" />
<Compile Include="Core\Category.cs" />
<Compile Include="Core\UserExt.cs" />
<Compile Include="Core\DicDetail.cs" />
<Compile Include="Core\DicIndex.cs" />
<Compile Include="Core\Entity.cs" />
<Compile Include="Core\CommonApply.cs" />
<Compile Include="Interface\IWorkflowSchemeRepository.cs" />
<Compile Include="Interface\ICategoryRepository.cs" />
<Compile Include="Interface\IModuleRepository.cs" />
@@ -60,13 +60,13 @@
<Compile Include="Interface\IStockRepository.cs" />
<Compile Include="Interface\IUnitWork.cs" />
<Compile Include="Interface\IUserRepository.cs" />
<Compile Include="Module.cs" />
<Compile Include="ModuleElement.cs" />
<Compile Include="Org.cs" />
<Compile Include="Core\Module.cs" />
<Compile Include="Core\ModuleElement.cs" />
<Compile Include="Core\Org.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Relevance.cs" />
<Compile Include="Resource.cs" />
<Compile Include="Role.cs" />
<Compile Include="Core\Relevance.cs" />
<Compile Include="Core\Resource.cs" />
<Compile Include="Core\Role.cs" />
<Compile Include="Service\AuthoriseFactory.cs" />
<Compile Include="Service\SystemAuthService.cs" />
<Compile Include="Service\AuthoriseService.cs" />
@@ -74,9 +74,17 @@
<Compile Include="Service\ModuleManService.cs" />
<Compile Include="Service\ResManagerService.cs" />
<Compile Include="Service\StockManagerService.cs" />
<Compile Include="Stock.cs" />
<Compile Include="User.cs" />
<Compile Include="WorkflowScheme.cs" />
<Compile Include="Service\WorkflowService.cs" />
<Compile Include="Core\Stock.cs" />
<Compile Include="Core\User.cs" />
<Compile Include="Core\WFFrmMain.cs" />
<Compile Include="Core\WFProcessInstance.cs" />
<Compile Include="Core\WFProcessOperationHistory.cs" />
<Compile Include="Core\WFProcessScheme.cs" />
<Compile Include="Core\WFProcessTransitionHistory.cs" />
<Compile Include="Core\WFSchemeContent.cs" />
<Compile Include="Core\WFSchemeInfo.cs" />
<Compile Include="Core\WorkflowScheme.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View File

@@ -1,69 +0,0 @@
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a CodeSmith Template.
//
// DO NOT MODIFY contents of this file. Changes to this
// file will be lost if the code is regenerated.
// Author:Yubao Li
// </autogenerated>
//------------------------------------------------------------------------------
using System;
namespace OpenAuth.Domain
{
/// <summary>
///
/// </summary>
public partial class User :Entity
{
public User()
{
this.Account= string.Empty;
this.Password= string.Empty;
this.Name= string.Empty;
this.Sex= 0;
this.Status= 0;
this.Type= 0;
this.BizCode= string.Empty;
this.CreateTime= DateTime.Now;
}
/// <summary>
///
/// </summary>
public string Account { get; set; }
/// <summary>
///
/// </summary>
public string Password { get; set; }
/// <summary>
///
/// </summary>
public string Name { get; set; }
/// <summary>
///
/// </summary>
public int Sex { get; set; }
/// <summary>
///
/// </summary>
public int Status { get; set; }
/// <summary>
///
/// </summary>
public int Type { get; set; }
/// <summary>
///
/// </summary>
public string BizCode { get; set; }
/// <summary>
///
/// </summary>
public System.DateTime CreateTime { get; set; }
/// <summary>
///
/// </summary>
public System.Guid? CrateId { get; set; }
}
}