개정판 bd86dd48
issue #000: Setting Secondary 조건 수정, Header Rule 로직 수정, tieinpoint 로직 수정
Change-Id: I84ad7e4f5784ca7a0886e8900f2526f8d034e81a
DTI_PID/ID2PSN/DB.cs | ||
---|---|---|
893 | 893 |
return dt; |
894 | 894 |
} |
895 | 895 |
|
896 |
public static DataTable SelectTieInSymbolAttribute() |
|
897 |
{ |
|
898 |
DataTable dt = null; |
|
899 |
ID2Info id2Info = ID2Info.GetInstance(); |
|
900 |
|
|
901 |
using (IAbstractDatabase connection = id2Info.CreateConnection()) |
|
902 |
{ |
|
903 |
try |
|
904 |
{ |
|
905 |
// var query = "SELECT DISTINCT Attribute, DisplayAttribute FROM SymbolAttribute;"; |
|
906 |
var query = string.Empty; |
|
907 |
if (id2Info.ID2DBType == ID2DB_Type.MSSQL) |
|
908 |
query = "SELECT DISTINCT Attribute FROM SymbolAttribute WHERE SymbolType_UID IN(SELECT SymbolType_UID FROM Symbol WHERE CONVERT(varchar(Max), isnull([Name], '')) = 'TIEINPOINT');"; |
|
909 |
else |
|
910 |
query = "SELECT DISTINCT Attribute FROM SymbolAttribute WHERE SymbolType_UID IN(SELECT SymbolType_UID FROM Symbol WHERE ifnull([Name], '') = 'TIEINPOINT');"; |
|
911 |
|
|
912 |
using (var ds = connection.ExecuteDataSet(connection.GetSqlStringCommand(query))) |
|
913 |
{ |
|
914 |
dt = ds.Tables[0].Copy(); |
|
915 |
} |
|
916 |
} |
|
917 |
catch (Exception ex) |
|
918 |
{ |
|
919 |
Log.Write(ex.Message + "\r\n" + ex.StackTrace); |
|
920 |
} |
|
921 |
} |
|
922 |
|
|
923 |
return dt; |
|
924 |
} |
|
925 |
|
|
896 | 926 |
public static DataTable SelectSymbolName() |
897 | 927 |
{ |
898 | 928 |
DataTable dt = null; |
내보내기 Unified diff