..
This commit is contained in:
@@ -38,10 +38,25 @@ namespace FPJ0000
|
||||
|
||||
this.ProjectIndex = idx_;
|
||||
this.FormClosed += fPartList_FormClosed;
|
||||
this.FormClosing += FPartList_FormClosing;
|
||||
this.KeyDown += fPartList_KeyDown;
|
||||
this.dsPRJ.ProjectsPart.TableNewRow += ProjectsPart_TableNewRow;
|
||||
}
|
||||
|
||||
private void FPartList_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
var dt = this.dsPRJ.ProjectsPart.GetChanges();
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
var dlg = FCOMMON.Util.MsgQ("변경된 자료가 있습니다.\n화면을 닫으면 손실됩니다.\n화면을 닫을까요?");
|
||||
if (dlg != DialogResult.Yes)
|
||||
{
|
||||
e.Cancel = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ProjectsPart_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
{
|
||||
e.Row["wuid"] = FCOMMON.info.Login.no;
|
||||
@@ -202,7 +217,7 @@ namespace FPJ0000
|
||||
// if (value_bconf != null) bconf = (Boolean)value_bconf;
|
||||
|
||||
if (bbuy) PO발행전체 += 1;
|
||||
// if (bbuy && string.IsNullOrEmpty(value_supply))
|
||||
// if (bbuy && string.IsNullOrEmpty(value_supply))
|
||||
|
||||
|
||||
전체건수 += 1;
|
||||
@@ -325,11 +340,11 @@ namespace FPJ0000
|
||||
this.bsPart.EndEdit();
|
||||
|
||||
//모든데이터의 공백을 제거(sid)
|
||||
foreach(var item in this.dsPRJ.ProjectsPart)
|
||||
foreach (var item in this.dsPRJ.ProjectsPart)
|
||||
{
|
||||
//sid에 공백제거
|
||||
if (item.RowState == DataRowState.Deleted || item.RowState == DataRowState.Detached) continue;
|
||||
if(item.ItemSid != item.ItemSid.Replace(" ","").Trim())
|
||||
if (item.ItemSid != item.ItemSid.Replace(" ", "").Trim())
|
||||
{
|
||||
item.ItemSid = item.ItemSid.Replace(" ", "").Trim();
|
||||
item.EndEdit();
|
||||
@@ -462,7 +477,7 @@ namespace FPJ0000
|
||||
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_item].Value = f.item;
|
||||
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_itemname].Value = f.itemName;
|
||||
|
||||
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_sid].Value = f.SID.Replace(" ","").Trim();
|
||||
fpSpread1.ActiveSheet.Cells[Rowidx, colidx_sid].Value = f.SID.Replace(" ", "").Trim();
|
||||
|
||||
//공급사는 기록하지 않는다 200623
|
||||
//fpSpread1.ActiveSheet.Cells[Rowidx, colidx_supplyidx].Value = f.itemSupplyidx;
|
||||
@@ -569,7 +584,7 @@ namespace FPJ0000
|
||||
FormattingData();
|
||||
this.tbFind.SelectAll();
|
||||
this.tbFind.Focus();
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -773,5 +788,37 @@ namespace FPJ0000
|
||||
var f = new rPartList(this.ProjectIndex);
|
||||
f.Show();
|
||||
}
|
||||
|
||||
private void button4_Click(object sender, EventArgs e)
|
||||
{
|
||||
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 = "/" + tbIdx.Text;
|
||||
|
||||
if (tbPath.StartsWith("\\") == false)
|
||||
{
|
||||
if (tbPath.StartsWith("/")) tbPath = tbPath.Replace("/", "\\");
|
||||
else tbPath = "\\" + tbPath;
|
||||
}
|
||||
|
||||
var serverpath = @"\\10.131.32.29\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(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user