Bladeren bron

【修改】导入配置页面增加“登录者账号”;

新疆体育高职分支
dyy 1 jaar geleden
bovenliggende
commit
a1448e62aa
5 gewijzigde bestanden met toevoegingen van 12 en 3 verwijderingen
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/ExcelImportController.cs
  2. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/ExcelImport/Form.js
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/ExcelImport/SetFieldForm.js
  4. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportBLL.cs
  5. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportFieldEntity.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/ExcelImportController.cs Bestand weergeven

@@ -184,7 +184,7 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers
DataTable dt = new DataTable();
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()
{


+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/ExcelImport/Form.js Bestand weergeven

@@ -44,6 +44,9 @@ var bootstrap = function ($, learun) {
case 7://操作时间
row.F_Description = '导入时间';
break;
case 8://操作人账号
row.F_Description = '登录者账号';
break;
}

}


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Views/ExcelImport/SetFieldForm.js Bestand weergeven

@@ -47,7 +47,7 @@ var bootstrap = function ($, learun) {
});

$('#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,
maxHeight: 190,
select: function (item) {


+ 6
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportBLL.cs Bestand weergeven

@@ -388,6 +388,9 @@ namespace Learun.Application.Excel
case 7://操作时间
dp.Add(col.F_Name, DateTime.Now, dbType);
break;
case 8://操作人账号
dp.Add(col.F_Name, userInfo.account, dbType);
break;
}
}
if (!flag) continue;
@@ -576,6 +579,9 @@ namespace Learun.Application.Excel
case 7://操作时间
dp.Add(col.F_Name, DateTime.Now, dbType);
break;
case 8://操作人账号
dp.Add(col.F_Name, userInfo.account, dbType);
break;
}
}
if (!flag) continue;


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportFieldEntity.cs Bestand weergeven

@@ -44,7 +44,7 @@ namespace Learun.Application.Excel
[Column("F_ONLYONE")]
public int? F_OnlyOne { get; set; }
/// <summary>
/// 关联类型0:无关联,1:GUID,2:数据字典3:数据表;4:固定数值;5:操作人ID;6:操作人名字;7:操作时间;
/// 关联类型0:无关联,1:GUID,2:数据字典3:数据表;4:固定数值;5:操作人ID;6:操作人名字;7:操作时间;8:操作人账号;
/// </summary>
/// <returns></returns>
[Column("F_RELATIONTYPE")]


Laden…
Annuleren
Opslaan