EquipmentList.OrderBy
This commit is contained in:
@@ -1143,7 +1143,7 @@ namespace DDUtilityApp.LOGPARSER
|
||||
|
||||
}
|
||||
|
||||
return equipments.OrderBy(x => x.Line).ThenBy(x => x.ProcessSegmentID).ThenBy(x => x.MesName).ToArray();
|
||||
return equipments.OrderBy(x => x.OrderByKey).ThenBy(x => x.Line).ThenBy(x => x.ProcessSegmentID).ThenBy(x => x.MesName).ToArray();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -1293,6 +1293,8 @@ namespace DDUtilityApp.LOGPARSER
|
||||
try
|
||||
{
|
||||
string connectionString = string.Empty;
|
||||
connectionString = $@"server=192.168.8.232;database=ddmes;uid=DDB2MESAdmin;pwd=Yhqe4csJXJ4W5$%;";
|
||||
|
||||
StringBuilder query = new StringBuilder();
|
||||
query.AppendLine($" SELECT A.SITEID, ");
|
||||
query.AppendLine($" A.FACILITYID, ");
|
||||
@@ -1312,9 +1314,6 @@ namespace DDUtilityApp.LOGPARSER
|
||||
query.AppendLine($" A.MAKER, ");
|
||||
query.AppendLine($" A.EQPSTATE, ");
|
||||
query.AppendLine($" A.LOCATION ");
|
||||
|
||||
connectionString = $@"server=192.168.8.232;database=ddmes;uid=DDB2MESAdmin;pwd=Yhqe4csJXJ4W5$%;";
|
||||
|
||||
query.AppendLine($" , E.PLANDATE ");
|
||||
query.AppendLine($" FROM CIM_EQUIPMENT A (nolock) ");
|
||||
query.AppendLine($" LEFT JOIN CIM_PROCESSSEGMENT B (nolock) ON A.PROCESSSEGMENTID = B.PROCESSSEGMENTID AND A.SITEID = B.SITEID ");
|
||||
@@ -1365,7 +1364,7 @@ namespace DDUtilityApp.LOGPARSER
|
||||
LogFile[] logFiles = fileItems
|
||||
.Select(item => new LogFile
|
||||
{
|
||||
Access = AccessType.SMB,
|
||||
Account = this.Account,
|
||||
Name = Path.GetFileNameWithoutExtension(item.Name),
|
||||
FullName = item.FullName,
|
||||
Extension = Path.GetExtension(item.Name),
|
||||
@@ -1390,7 +1389,7 @@ namespace DDUtilityApp.LOGPARSER
|
||||
LogFile[] logFiles = fileItems.Where(item => item.Type == FtpFileSystemObjectType.File)
|
||||
.Select(item => new LogFile
|
||||
{
|
||||
Access = AccessType.FTPS,
|
||||
Account = this.Account,
|
||||
Name = Path.GetFileNameWithoutExtension(item.Name),
|
||||
FullName = item.FullName,
|
||||
Extension = Path.GetExtension(item.Name),
|
||||
@@ -1415,7 +1414,7 @@ namespace DDUtilityApp.LOGPARSER
|
||||
LogFile[] logFiles = fileItems.Where(item => !item.IsDirectory && item.Name != "." && item.Name != "..")
|
||||
.Select(item => new LogFile
|
||||
{
|
||||
Access = AccessType.SFTP,
|
||||
Account = this.Account,
|
||||
Name = Path.GetFileNameWithoutExtension(item.Name),
|
||||
FullName = item.FullName,
|
||||
Extension = Path.GetExtension(item.Name),
|
||||
@@ -1440,6 +1439,7 @@ namespace DDUtilityApp.LOGPARSER
|
||||
LogFile[] logFiles = ((FtpListItem[])fileItems).Where(item => item.Type == FtpFileSystemObjectType.File)
|
||||
.Select(item => new LogFile
|
||||
{
|
||||
Account = this.Account,
|
||||
Name = Path.GetFileNameWithoutExtension(item.Name),
|
||||
FullName = item.FullName,
|
||||
Extension = Path.GetExtension(item.Name),
|
||||
|
||||
Reference in New Issue
Block a user