diff --git a/Tiobon.Core.Model/ViewModels/Menu.cs b/Tiobon.Core.Model/ViewModels/Menu.cs index 650ebce6..4b867bff 100644 --- a/Tiobon.Core.Model/ViewModels/Menu.cs +++ b/Tiobon.Core.Model/ViewModels/Menu.cs @@ -138,6 +138,7 @@ public class TableColumn1 public string searchable { get; set; } public string searchRequired { get; set; } public int? searchColumnSeq { get; set; } + public string searchColumnSeq1 { get; set; } public string multipleSearchValue { get; set; } public string maxTagCount { get; set; } public string selfDefine { get; set; } diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamServices.cs index 9b0dc404..f412ad80 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_ExamServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_ExamServices.cs @@ -311,7 +311,7 @@ public class Ghre_ExamServices : BaseServices(sql); - var SearchFormFields = Mapper.Map(TableColumn).ToANew>(); + var TableColumns = Db.Ado.SqlQuery(sql); + + TableColumns.ForEach(x => + { + try + { + if (!string.IsNullOrWhiteSpace(x.searchColumnSeq1)) + x.searchColumnSeq = Convert.ToInt32(x.searchColumnSeq1); + + } + catch (Exception) + { + } + }); + var SearchFormFields = Mapper.Map(TableColumns).ToANew>(); SearchFormFields.ForEach(x => { if (!string.IsNullOrWhiteSpace(x.searchOperator1))