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

@@ -0,0 +1,62 @@
//------------------------------------------------------------------------------
// <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 ApplyTransitionHistory :Entity
{
public ApplyTransitionHistory()
{
this.AllowedToUserNames= string.Empty;
this.InitialState= string.Empty;
this.DestinationState= string.Empty;
this.Command= string.Empty;
}
/// <summary>
///
/// </summary>
public System.Guid ApplyId { get; set; }
/// <summary>
///
/// </summary>
public System.Guid? UserId { get; set; }
/// <summary>
///
/// </summary>
public string AllowedToUserNames { get; set; }
/// <summary>
///
/// </summary>
public System.DateTime? TransitionTime { get; set; }
/// <summary>
///
/// </summary>
public long Order { get; set; }
/// <summary>
///
/// </summary>
public string InitialState { get; set; }
/// <summary>
///
/// </summary>
public string DestinationState { get; set; }
/// <summary>
///
/// </summary>
public string Command { get; set; }
}
}

View File

@@ -0,0 +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; }
}
}

View File

@@ -0,0 +1,66 @@
//------------------------------------------------------------------------------
// <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 CommonApply : Entity
{
public CommonApply()
{
this.Sort= 0;
this.Name= string.Empty;
this.Comment= string.Empty;
this.State= string.Empty;
this.StateName= string.Empty;
this.ApplyTime = DateTime.Now;
}
/// <summary>
///
/// </summary>
public int Sort { get; set; }
/// <summary>
///
/// </summary>
public DateTime ApplyTime { get; set; }
/// <summary>
///
/// </summary>
public string Name { get; set; }
/// <summary>
///
/// </summary>
public string Comment { get; set; }
/// <summary>
///
/// </summary>
public string State { get; set; }
/// <summary>
///
/// </summary>
public string StateName { get; set; }
/// <summary>
///
/// </summary>
public System.Guid UserId { get; set; }
/// <summary>
///
/// </summary>
public System.Guid? ControllerUserId { get; set; }
public string WorkflowName { get; set; }
}
}

View File

@@ -0,0 +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; }
}
}

View File

@@ -0,0 +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; }
}
}

View File

@@ -0,0 +1,14 @@
using System;
namespace OpenAuth.Domain
{
public abstract class Entity
{
public System.Guid Id { get; set; }
public Entity()
{
Id = Guid.NewGuid();
}
}
}

View File

@@ -0,0 +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; }
}
}

View File

@@ -0,0 +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; }
}
}

View File

@@ -0,0 +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; }
}
}

View File

@@ -0,0 +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; }
}
}

View File

@@ -0,0 +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; }
}
}

View File

@@ -0,0 +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; }
}
}

View File

@@ -0,0 +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 Stock :Entity
{
public Stock()
{
this.Name= string.Empty;
this.Number= 0;
this.Price= 0;
this.Status= 0;
this.Viewable = string.Empty;
this.Time= DateTime.Now;
}
/// <summary>
/// 产品名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 产品数量
/// </summary>
public int Number { get; set; }
/// <summary>
/// 产品单价
/// </summary>
public decimal Price { get; set; }
/// <summary>
/// 出库/入库
/// </summary>
public int Status { get; set; }
/// <summary>
///
/// </summary>
public string Viewable { get; set; }
/// <summary>
/// 操作时间
/// </summary>
public System.DateTime Time { get; set; }
/// <summary>
/// 组织ID
/// </summary>
public System.Guid? OrgId { 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

@@ -0,0 +1,36 @@
//------------------------------------------------------------------------------
// <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 WorkflowScheme
{
public WorkflowScheme()
{
this.Code= string.Empty;
this.Scheme= string.Empty;
}
/// <summary>
///
/// </summary>
public string Code { get; set; }
/// <summary>
///
/// </summary>
public string Scheme { get; set; }
}
}