191024 chi 프로젝트 공유폴더 눌렀을떄 \\ 가 연속으로 붙는현상 수정

191018	chi	열저장방식 변경(필드명으로 저장)
This commit is contained in:
chi
2019-11-29 15:26:55 +09:00
parent 40946fb746
commit dfea311700
33 changed files with 5425 additions and 5295 deletions

View File

@@ -196,7 +196,6 @@ namespace FPJ0000
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
}
private void btwEdit_Click(object sender, EventArgs e)
@@ -220,13 +219,41 @@ namespace FPJ0000
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (tbPath.Text == "") tbPath.Text = "/" + tbIdx.Text;
var f = new FCOMMON.fFTPExplorer(nameTextBox.Text, tbPath.Text,
FCOMMON.info.ftp_ip,
FCOMMON.info.ftp_id,
FCOMMON.info.ftp_pw,
FCOMMON.info.ftp_port,
FCOMMON.info.ftp_passive);
f.ShowDialog();
if(tbPath.Text.StartsWith("\\")==false)
{
if (tbPath.Text.StartsWith("/")) tbPath.Text = tbPath.Text.Replace("/", "\\");
else tbPath.Text = "\\" + tbPath.Text;
}
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.Text;
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);
}
void SelectDate(TextBox ctl)
{