Ver 2025.03.25.0

FrmLogParser :: LogFile DragDrop 패치
This commit is contained in:
2025-03-25 17:06:01 +09:00
parent 0507461566
commit e7a8c36412
5 changed files with 21 additions and 6 deletions

View File

@@ -7,6 +7,6 @@ using System.Threading.Tasks;
namespace DDUtilityApp
{
public enum AccessType { SMB, FTP, FTPS, SFTP };
public enum AccessType { SMB, FTP, FTPS, SFTP, LOCAL };
}

View File

@@ -300,7 +300,10 @@ namespace DDUtilityApp.LOGPARSER
{
ListViewItem lviewItem = this.lviewFiles.Items.Add(Path.GetFileName(filePath));
lviewItem.Checked = true;
lviewItem.Tag = filePath;
LogFile logFile = new LogFile(filePath);
logFile.Account = new Account();
logFile.Account.Access = AccessType.LOCAL;
lviewItem.Tag = logFile;
}
this.tboxEISInfo01.Clear();
@@ -1311,6 +1314,7 @@ namespace DDUtilityApp.LOGPARSER
XLogger.Instance.Info(lviewItem.Text);
LogFile logFile = lviewItem.Tag as LogFile;
if (logFile == null) continue;
switch(logFile.Account.Access)
{
case AccessType.SMB:
@@ -1361,6 +1365,15 @@ namespace DDUtilityApp.LOGPARSER
break;
case AccessType.FTP:
break;
case AccessType.LOCAL:
{
destPath = Path.Combine(GlobalVariable.Instance.DownloadPath, "Local");
if (Directory.Exists(destPath) == false) Directory.CreateDirectory(destPath);
logFile.DestFullName = Path.Combine(destPath, logFile.FileName);
System.IO.File.Copy(logFile.FullName, logFile.DestFullName, true);
}
break;
}
lstFileName.Add(logFile.DestFullName);
@@ -1377,7 +1390,7 @@ namespace DDUtilityApp.LOGPARSER
}
catch (Exception ex)
{
XLogger.Instance.Fatal(ex);
XLogger.Instance.Fatal(ex, true);
return this.StandardCollection;
}
}

View File

@@ -75,7 +75,7 @@ namespace DDUtilityApp.LOGPARSER.PARSER
}
catch (Exception ex01)
{
XLogger.Instance.Fatal(ex01);
XLogger.Instance.Fatal(ex01, true);
}
if (reader != null) reader.Close();

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2025.03.20.0")]
[assembly: AssemblyFileVersion("2025.03.20.0")]
[assembly: AssemblyVersion("2025.03.25.0")]
[assembly: AssemblyFileVersion("2025.03.25.0")]

View File

@@ -1117,6 +1117,8 @@ namespace DDUtilityApp.TIBRENDEZVOUS
this.tboxSendMessage.Text = xmlReply.XmlData.GetText();
this.tboxSendMessage.Tag = xmlReply;
xmlReply.SendSubject = this.cboxSendSubject.Text;
if (xmlReply.IsReply && xmlReply.RequestMessage != null)
if (!string.IsNullOrEmpty(xmlReply.RequestMessage.ReplySubject)) this.SendButtons_Focus(this.btnSendReply);
else this.SendButtons_Focus(this.btnSend);