메일백업

This commit is contained in:
chi
2020-05-07 17:19:27 +09:00
parent ea20c93c27
commit f68c0a0ea4
18 changed files with 1289 additions and 438 deletions

View File

@@ -646,5 +646,60 @@ namespace FPJ0000
{
funcDelete();
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
showfolder();
}
void showfolder()
{
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsPRJ.ProjectsRow;
var tbPath = dr.path;
if (tbPath == "") tbPath = "/" + dr.idx.ToString();
if (tbPath.StartsWith("\\") == false)
{
if (tbPath.StartsWith("/")) tbPath = tbPath.Replace("/", "\\");
else tbPath = "\\" + tbPath;
}
var serverpath = @"\\10.131.36.57\Data\Project";
if (System.IO.Directory.Exists(serverpath) == false)
{
FCOMMON.Util.MsgE("프로젝트 기본경로가 존재하지 않아 진행할 수 없습니다\n\n" +
serverpath);
return;
}
var path = serverpath + tbPath;
if (System.IO.Directory.Exists(path) == false)
{
try
{
System.IO.Directory.CreateDirectory(path);
string[] subdir = new string[] { "Source", "Document", "Draw", "Estimate" };
foreach (var dir in subdir)
System.IO.Directory.CreateDirectory(path + "\\" + dir);
}
catch (Exception eX)
{
FCOMMON.Util.MsgE("프로젝트 저장소 생성실패\n" + eX.Message);
return;
}
}
FCOMMON.Util.RunExplorer(path);
}
private void toolStripButton4_Click(object sender, EventArgs e)
{
showfolder();
}
}
}