1 完成用户部门权限分配处理,可以为用户分配可见部门,如果没有任何可见部门,则只能查看自己有关的数据;

2 完善进出库实例;
3 添加CodeSmith生成EF DbContext Entity Mapping;
This commit is contained in:
yubaolee
2016-01-07 11:47:43 +08:00
parent c2099cd337
commit f0b42e83d4
62 changed files with 5687 additions and 1592 deletions

View File

@@ -1,77 +1,67 @@
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;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
namespace OpenAuth.Domain
{
/// <summary>
/// 多对多映射
/// <summary>
/// 多对多关系集中映射
/// </summary>
public partial class Relevance
{
/// <summary>
/// ID
/// </summary>
/// <returns></returns>
public int Id { get; set; }
public partial class Relevance
{
public Relevance()
{
this.Id= 0;
this.FirstId= 0;
this.SecondId= 0;
this.Description= string.Empty;
this.Key= string.Empty;
this.Status= 0;
this.OperateTime= DateTime.Now;
this.OperatorId= 0;
}
/// <summary>
/// 第一个表主键ID
/// </summary>
/// <returns></returns>
public int FirstId { get; set; }
/// <summary>
/// 流水号
/// </summary>
public int Id { get; set; }
/// <summary>
/// 第一个表主键ID
/// </summary>
public int FirstId { get; set; }
/// <summary>
/// 第二个表主键ID
/// </summary>
public int SecondId { get; set; }
/// <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>
/// <returns></returns>
public int SecondId { get; set; }
/// <summary>
/// 描述
/// </summary>
/// <returns></returns>
public string Description { get; set; }
/// <summary>
///
/// </summary>
/// <returns></returns>
public string Key { get; set; }
/// <summary>
/// 资源分类标识
/// </summary>
/// <returns></returns>
public int Status { get; set; }
/// <summary>
/// 授权时间
/// </summary>
/// <returns></returns>
public System.DateTime OperateTime { get; set; }
/// <summary>
/// 授权人
/// </summary>
/// <returns></returns>
public int OperatorId { get; set; }
public Relevance()
{
this.Id= 0;
this.FirstId= 0;
this.SecondId= 0;
this.Description= string.Empty;
this.Key= string.Empty;
this.Status= 0;
this.OperateTime= DateTime.Now;
this.OperatorId= 0;
}
}
}
}
}