This commit is contained in:
2024-05-12 11:56:13 +08:00
parent 1edc2cce70
commit 258866a8a5
3 changed files with 25 additions and 3 deletions
@@ -28,7 +28,7 @@ namespace BLL
dic.Add("管道无损检测结果汇总表", BLL.Const.NdtTotalReport1);
dic.Add("管道无损检测结果汇总表(续)", BLL.Const.NdtTotalReport2);
dic.Add("管道无损检测比例统计表", BLL.Const.NdtRateReport1);
return dic;
}
@@ -36,9 +36,17 @@ namespace BLL
/// 试压包打印下拉项
/// </summary>
/// <returns></returns>
public static List<Template_Files> TestPackageSelectPrint()
public static object TestPackageSelectPrint()
{
var result = Funs.DB.Template_Files.OrderBy(t=>t.SortIndex).ToList();
//var result = Funs.DB.Template_Files.OrderBy(t=>t.SortIndex).ToList();
var result = (from x in Funs.DB.Template_Files
select new
{
Id = x.Id,
FilePath = x.FilePath,
SortIndex = x.SortIndex,
Title = (x.SortIndex ?? 0).ToString() + "-" + x.Title,
}).OrderBy(t => t.SortIndex).ToList();
return result;
}
}