You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
749 B
27 lines
749 B
using System.Data; |
|
using BrilliantSightClient.Model.Attributes; |
|
using BrilliantSightClient.Model.Helper; |
|
|
|
namespace BrilliantSightClient.Model.GradeResult.Entity; |
|
|
|
public class Name |
|
{ |
|
public string Id { get; set; } |
|
public string name { get; set; } |
|
|
|
[Log] |
|
public static string getNameById(string id) |
|
{ |
|
string sql = $"SELECT NAME, EN_NAME FROM NAME WHERE ID = '{id}'"; |
|
DataTable data = DataBaseHelper.ExecuteQuery(sql); |
|
string nameType = "zn-ch".Equals(MultilingualHelper.getLangType())?"NAME":MultilingualHelper.getString("NameType"); |
|
if (data.Rows.Count>0) |
|
{ |
|
return data.Rows[0][nameType].ToString(); |
|
} |
|
else |
|
{ |
|
return ""; |
|
} |
|
} |
|
} |