...
This commit is contained in:
BIN
SubProject/FPJ0000/Project/Project.zip
Normal file
BIN
SubProject/FPJ0000/Project/Project.zip
Normal file
Binary file not shown.
@@ -724,11 +724,13 @@
|
||||
//
|
||||
// btMailAddr
|
||||
//
|
||||
this.btMailAddr.ForeColor = System.Drawing.Color.Red;
|
||||
this.btMailAddr.Image = ((System.Drawing.Image)(resources.GetObject("btMailAddr.Image")));
|
||||
this.btMailAddr.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.btMailAddr.Name = "btMailAddr";
|
||||
this.btMailAddr.Size = new System.Drawing.Size(99, 22);
|
||||
this.btMailAddr.Text = "메일주소관리";
|
||||
this.btMailAddr.Visible = false;
|
||||
this.btMailAddr.Click += new System.EventHandler(this.btMailAddr_Click);
|
||||
//
|
||||
// btPath
|
||||
@@ -742,11 +744,13 @@
|
||||
//
|
||||
// btSendMail
|
||||
//
|
||||
this.btSendMail.ForeColor = System.Drawing.Color.Red;
|
||||
this.btSendMail.Image = ((System.Drawing.Image)(resources.GetObject("btSendMail.Image")));
|
||||
this.btSendMail.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.btSendMail.Name = "btSendMail";
|
||||
this.btSendMail.Size = new System.Drawing.Size(99, 22);
|
||||
this.btSendMail.Text = "알림메일발송";
|
||||
this.btSendMail.Visible = false;
|
||||
this.btSendMail.Click += new System.EventHandler(this.btSendMail_Click);
|
||||
//
|
||||
// dataGridView1
|
||||
|
||||
@@ -227,19 +227,67 @@ namespace FPJ0000
|
||||
|
||||
private void btPath_Click(object sender, EventArgs e)
|
||||
{
|
||||
string path = tbPath.Text.Trim();
|
||||
if (path == "")
|
||||
{
|
||||
path = "\\10.131.32.33\\Data\\Projects\\";
|
||||
path += tbIdx.Text;
|
||||
tbPath.Text = path;
|
||||
}
|
||||
var dlg = FCOMMON.Util.MsgQ("다음 폴더를 표시할까요?\n\n" +
|
||||
path);
|
||||
if (dlg == System.Windows.Forms.DialogResult.Yes)
|
||||
FCOMMON.Util.RunExplorer(path);
|
||||
showfolder();
|
||||
//string path = tbPath.Text.Trim();
|
||||
//if (path == "")
|
||||
//{
|
||||
// path = "\\10.131.32.33\\Data\\Projects\\";
|
||||
// path += tbIdx.Text;
|
||||
// tbPath.Text = path;
|
||||
//}
|
||||
//var dlg = FCOMMON.Util.MsgQ("다음 폴더를 표시할까요?\n\n" +
|
||||
// path);
|
||||
//if (dlg == System.Windows.Forms.DialogResult.Yes)
|
||||
// FCOMMON.Util.RunExplorer(path);
|
||||
}
|
||||
|
||||
void showfolder()
|
||||
{
|
||||
var dr = this.bs.Current as dsPRJ.ProjectsRow;
|
||||
if (dr == 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;
|
||||
}
|
||||
//\\10.131.32.29\Data
|
||||
var serverpath = System.IO.Path.Combine(FCOMMON.info.datapath, "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 btPart_Click(object sender, EventArgs e)
|
||||
{
|
||||
var f = new fPartList(dr.idx);
|
||||
|
||||
Reference in New Issue
Block a user