Browse Source

[WHAT] 參數類別匯出撰寫

[WHY] FEATURE
[HOW]
Dev
alina 2 years ago
parent
commit
c1612d612f
  1. 15
      EuroTran/EasyBL.WEBAPP/SYS/ArgumentClassMaintain_QryService.cs

15
EuroTran/EasyBL.WEBAPP/SYS/ArgumentClassMaintain_QryService.cs

@ -4,6 +4,7 @@ using Entity.ViewModels;
using SqlSugar; using SqlSugar;
using SqlSugar.Base; using SqlSugar.Base;
using System; using System;
using System.Collections.Generic;
namespace EasyBL.WEBAPP.SYS namespace EasyBL.WEBAPP.SYS
{ {
@ -53,6 +54,20 @@ namespace EasyBL.WEBAPP.SYS
rm = new SuccessResponseMessage(null, i_crm); rm = new SuccessResponseMessage(null, i_crm);
if (bExcel) if (bExcel)
{ {
const string sFileName = "參數類別";
var oHeader = new Dictionary<string, string>
{
{ "RowIndex", "項次" },
{ "ArgumentClassID", "參數類別編號" },
{ "ArgumentClassName", "參數類別名稱" },
{ "OrderByValue", "排序" },
{ "Effective", "狀態(Y:有效;N:無效)" }
};
var dicAlain = ExcelService.GetExportAlain(oHeader, "Effective");
var saArguments = pml.DataList as List<View_SYS_ArgumentClass>;
var bOk = new ExcelService().CreateExcelByList(saArguments, out string sPath, oHeader, dicAlain, sFileName);
rm.DATA.Add(BLWording.REL, sPath);
} }
else else
{ {

Loading…
Cancel
Save