|
|
@ -11,7 +11,7 @@ namespace PEIS.Model.Setting |
|
|
|
{ |
|
|
|
{ |
|
|
|
public List<BaseDictionaryType> GetItems() |
|
|
|
public List<BaseDictionaryType> GetItems() |
|
|
|
{ |
|
|
|
{ |
|
|
|
var result= DAOHelp.GetDataBySQL<BaseDictionaryType>("Select * From Base_Dictionary_Type ORDER BY DictOrder"); |
|
|
|
var result= DAOHelp.GetDataBySQL<BaseDictionaryType>("Select * From Dict_Dictionary_Type ORDER BY DictOrder"); |
|
|
|
return result == null ? new List<BaseDictionaryType>() : result; |
|
|
|
return result == null ? new List<BaseDictionaryType>() : result; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -20,12 +20,12 @@ namespace PEIS.Model.Setting |
|
|
|
{ |
|
|
|
{ |
|
|
|
public List<BaseDictionaryDetails> GetItems() |
|
|
|
public List<BaseDictionaryDetails> GetItems() |
|
|
|
{ |
|
|
|
{ |
|
|
|
var result = DAOHelp.GetDataBySQL<BaseDictionaryDetails>("Select * From Base_Dictionary_Details ORDER BY DetailOrder"); |
|
|
|
var result = DAOHelp.GetDataBySQL<BaseDictionaryDetails>("Select * From Dict_Dictionary_Details ORDER BY DetailOrder"); |
|
|
|
return result == null ? new List<BaseDictionaryDetails>() : result; |
|
|
|
return result == null ? new List<BaseDictionaryDetails>() : result; |
|
|
|
} |
|
|
|
} |
|
|
|
public List<BaseDictionaryDetails> GetItemByTDictId(Int64 tId) |
|
|
|
public List<BaseDictionaryDetails> GetItemByTDictId(Int64 tId) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var result = DAOHelp.GetDataBySQL<BaseDictionaryDetails>($"Select * From Base_Dictionary_Details D WHERE D.TID={tId} ORDER BY D.DetailOrder"); |
|
|
|
var result = DAOHelp.GetDataBySQL<BaseDictionaryDetails>($"Select * From Dict_Dictionary_Details D WHERE D.TID={tId} ORDER BY D.DetailOrder"); |
|
|
|
return result == null ? new List<BaseDictionaryDetails>() : result; |
|
|
|
return result == null ? new List<BaseDictionaryDetails>() : result; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|