From 472d90e84a7ab0366691f61ef84d2b0cf35a6cec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A4=E5=85=B0?= Date: Wed, 4 Jun 2025 15:51:21 +0800 Subject: [PATCH] update --- .../Ghrp/Ghrp_PerformanceTemplateServices.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Tiobon.Core.Services/Ghrp/Ghrp_PerformanceTemplateServices.cs b/Tiobon.Core.Services/Ghrp/Ghrp_PerformanceTemplateServices.cs index 7b72144a..d6f6d891 100644 --- a/Tiobon.Core.Services/Ghrp/Ghrp_PerformanceTemplateServices.cs +++ b/Tiobon.Core.Services/Ghrp/Ghrp_PerformanceTemplateServices.cs @@ -28,12 +28,14 @@ namespace Tiobon.Core.Services result.result.DT_TableDataT1.ForEach(async x => { - x.StageItem = await GetParaLabel("PerformanceStageItem", x.StageItem); - x.MGShowType = await GetParaLabelListString("Performance", "PerformanceMGShowType", x.MGShowType); - x.TemplateType = await GetParaLabelListString("Performance", "PerformanceTemplateType", x.TemplateType); - x.StaffGroupName = Db.Ado.GetString("select StaffGroupName from Ghra_StaffGroup where StaffGroupID=@StaffGroupID" + x.StageItem = await GetParaLabel("PerformanceStageItem", x.StageItem); + x.MGShowType = await GetParaLabel("PerformanceMGShowType", x.MGShowType); + x.TemplateType = await GetParaLabel("PerformanceTemplateType", x.TemplateType); + //x.MGShowType = await GetParaLabelListString("Performance", "PerformanceMGShowType", x.MGShowType); + //x.TemplateType = await GetParaLabelListString("Performance", "PerformanceTemplateType", x.TemplateType); + x.StaffGroupName = Db.Ado.GetString("select StaffGroupName from Ghra_StaffGroup where ID=@StaffGroupID" , new { StaffGroupID = x.StaffGroupID }); - x.PeriodTypeName = Db.Ado.GetString("select PeriodTypeName from Ghrp_PerformancePeriodType where PerformancePeriodTypeID=@PerformancePeriodTypeID" + x.PeriodTypeName = Db.Ado.GetString("select PeriodTypeName from Ghrp_PerformancePeriodType where ID=@PerformancePeriodTypeID" , new { PerformancePeriodTypeID = x.PerformancePeriodTypeID }); }); return result;