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,98 +1,82 @@
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 ModuleElement
{
/// <summary>
/// ID
/// </summary>
/// <returns></returns>
public int Id { get; set; }
public partial class ModuleElement
{
public ModuleElement()
{
this.Id= 0;
this.DomId= string.Empty;
this.Name= string.Empty;
this.Type= string.Empty;
this.ModuleId= 0;
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>
/// <returns></returns>
public string DomId { get; set; }
/// <summary>
/// 流水号
/// </summary>
public int Id { get; set; }
/// <summary>
/// DOM ID
/// </summary>
public string DomId { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 类型
/// </summary>
public string Type { get; set; }
/// <summary>
/// 功能模块Id
/// </summary>
public int ModuleId { 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>
/// <returns></returns>
public string Name { get; set; }
/// <summary>
/// 组织类型
/// </summary>
/// <returns></returns>
public string Type { get; set; }
/// <summary>
/// 功能模块Id
/// </summary>
/// <returns></returns>
public int ModuleId { get; set; }
/// <summary>
/// 元素附加属性
/// </summary>
/// <returns></returns>
public string Attr { get; set; }
/// <summary>
/// 元素调用脚本
/// </summary>
/// <returns></returns>
public string Script { get; set; }
/// <summary>
/// 元素图标
/// </summary>
/// <returns></returns>
public string Icon { get; set; }
/// <summary>
/// 元素样式
/// </summary>
/// <returns></returns>
public string Class { get; set; }
/// <summary>
/// 备注
/// </summary>
/// <returns></returns>
public string Remark { get; set; }
/// <summary>
///
/// </summary>
/// <returns></returns>
public int Sort { get; set; }
public ModuleElement()
{
this.Id= 0;
this.DomId= string.Empty;
this.Name= string.Empty;
this.Type= string.Empty;
this.ModuleId= 0;
this.Attr= string.Empty;
this.Script= string.Empty;
this.Icon= string.Empty;
this.Class= string.Empty;
this.Remark= string.Empty;
this.Sort= 0;
}
}
}
}
}