메일백업
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user