This commit is contained in:
chi
2021-02-25 16:33:03 +09:00
parent 71698b5d8b
commit c5f6947344
18 changed files with 1147 additions and 630 deletions

View File

@@ -750,39 +750,53 @@ namespace FPJ0000
if (drv == null) return;
var dr = drv.Row as dsPRJ.ProjectPartStatusRow;
if (dr.IspathNull())
{
util.MsgE("공유 폴더가 생성되지 않은 프로젝트 입니다\n열람 가능한 파일이 없습니다");
return;
}
var tbPath = dr.path;
if (tbPath.Equals(""))
{
util.MsgE("공유폴더가 존재하지 않는 프로젝트 입니다. 프로젝트 정보에서 공유폴더를 클릭해 먼저 생성한 후 다시 시도하세요");
return;
}
if (tbPath.StartsWith("\\") == false)
{
if (tbPath.StartsWith("/")) tbPath = tbPath.Replace("/", "\\");
else tbPath = "\\" + tbPath;
}
var serverpath = Properties.Settings.Default.SharePath + @"\Project\" + dr.Project.ToString();
var serverpath = @"\\" + FCOMMON.info.serverip + @"\Data\Project";
//if (tbPath == "") tbPath = "/" + dr.idx.ToString();
//if (tbPath.StartsWith("\\") == false)
//{
// if (tbPath.StartsWith("/")) tbPath = tbPath.Replace("/", "\\");
// else tbPath = "\\" + tbPath;
//}
//\\10.131.32.29\Data
if (System.IO.Directory.Exists(serverpath) == false)
{
FCOMMON.Util.MsgE("프로젝트 기본경로가 존재하지 않아 진행할 수 없습니다\n\n" +
FCOMMON.Util.MsgE("프로젝트 경로가 존재하지 않아 진행할 수 없습니다\n\n" +
serverpath);
return;
}
var path = serverpath + tbPath;
if (System.IO.Directory.Exists(path) == false)
{
FCOMMON.Util.MsgE("프로젝트 저장소 없음");
}
FCOMMON.Util.RunExplorer(path);
//if (tbPath.Equals(""))
//{
// util.MsgE("공유폴더가 존재하지 않는 프로젝트 입니다. 프로젝트 정보에서 공유폴더를 클릭해 먼저 생성한 후 다시 시도하세요");
// return;
//}
//if (tbPath.StartsWith("\\") == false)
//{
// if (tbPath.StartsWith("/")) tbPath = tbPath.Replace("/", "\\");
// else tbPath = "\\" + tbPath;
//}
//var serverpath = @"\\" + FCOMMON.info.serverip + @"\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)
//{
// FCOMMON.Util.MsgE("프로젝트 저장소 없음");
//}
FCOMMON.Util.RunExplorer(serverpath);
}
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)