@@ -184,7 +184,7 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers | |||||
DataTable dt = new DataTable(); | DataTable dt = new DataTable(); | ||||
foreach (var col in fileds) | foreach (var col in fileds) | ||||
{ | { | ||||
if (col.F_RelationType != 1 && col.F_RelationType != 4 && col.F_RelationType != 5 && col.F_RelationType != 6 && col.F_RelationType != 7) | |||||
if (col.F_RelationType != 1 && col.F_RelationType != 4 && col.F_RelationType != 5 && col.F_RelationType != 6 && col.F_RelationType != 7 && col.F_RelationType != 8) | |||||
{ | { | ||||
excelconfig.ColumnEntity.Add(new ColumnModel() | excelconfig.ColumnEntity.Add(new ColumnModel() | ||||
{ | { | ||||
@@ -44,6 +44,9 @@ var bootstrap = function ($, learun) { | |||||
case 7://操作时间 | case 7://操作时间 | ||||
row.F_Description = '导入时间'; | row.F_Description = '导入时间'; | ||||
break; | break; | ||||
case 8://操作人账号 | |||||
row.F_Description = '登录者账号'; | |||||
break; | |||||
} | } | ||||
} | } | ||||
@@ -47,7 +47,7 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
$('#F_RelationType').lrselect({ | $('#F_RelationType').lrselect({ | ||||
data: [{ "id": 0, "text": "无关联" }, { "id": 1, "text": "GUID" }, { "id": 2, "text": "数据字典" }, { "id": 3, "text": "数据来源" }, { "id": 4, "text": "固定数据" }, { "id": 5, "text": "登录者ID" }, { "id": 6, "text": "登录者名字" }, { "id": 7, "text": "导入时间" }], | |||||
data: [{ "id": 0, "text": "无关联" }, { "id": 1, "text": "GUID" }, { "id": 2, "text": "数据字典" }, { "id": 3, "text": "数据来源" }, { "id": 4, "text": "固定数据" }, { "id": 5, "text": "登录者ID" }, { "id": 6, "text": "登录者名字" }, { "id": 7, "text": "导入时间" }, { "id": 8, "text": "登录者账号" }], | |||||
placeholder: false, | placeholder: false, | ||||
maxHeight: 190, | maxHeight: 190, | ||||
select: function (item) { | select: function (item) { | ||||
@@ -388,6 +388,9 @@ namespace Learun.Application.Excel | |||||
case 7://操作时间 | case 7://操作时间 | ||||
dp.Add(col.F_Name, DateTime.Now, dbType); | dp.Add(col.F_Name, DateTime.Now, dbType); | ||||
break; | break; | ||||
case 8://操作人账号 | |||||
dp.Add(col.F_Name, userInfo.account, dbType); | |||||
break; | |||||
} | } | ||||
} | } | ||||
if (!flag) continue; | if (!flag) continue; | ||||
@@ -576,6 +579,9 @@ namespace Learun.Application.Excel | |||||
case 7://操作时间 | case 7://操作时间 | ||||
dp.Add(col.F_Name, DateTime.Now, dbType); | dp.Add(col.F_Name, DateTime.Now, dbType); | ||||
break; | break; | ||||
case 8://操作人账号 | |||||
dp.Add(col.F_Name, userInfo.account, dbType); | |||||
break; | |||||
} | } | ||||
} | } | ||||
if (!flag) continue; | if (!flag) continue; | ||||
@@ -44,7 +44,7 @@ namespace Learun.Application.Excel | |||||
[Column("F_ONLYONE")] | [Column("F_ONLYONE")] | ||||
public int? F_OnlyOne { get; set; } | public int? F_OnlyOne { get; set; } | ||||
/// <summary> | /// <summary> | ||||
/// 关联类型0:无关联,1:GUID,2:数据字典3:数据表;4:固定数值;5:操作人ID;6:操作人名字;7:操作时间; | |||||
/// 关联类型0:无关联,1:GUID,2:数据字典3:数据表;4:固定数值;5:操作人ID;6:操作人名字;7:操作时间;8:操作人账号; | |||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
[Column("F_RELATIONTYPE")] | [Column("F_RELATIONTYPE")] | ||||