..
This commit is contained in:
@@ -71,11 +71,25 @@ namespace FPJ0000
|
||||
}
|
||||
RefreshData();
|
||||
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize);
|
||||
|
||||
|
||||
}
|
||||
void RefreshData()
|
||||
{
|
||||
this.ta.FillByIDX(this.dsPRJ.Projects, this.ProjectIndex);
|
||||
this.taPart.Fill(this.dsPRJ.ProjectsPart, this.ProjectIndex);
|
||||
if(dsPRJ.HasChanges())
|
||||
{
|
||||
var dlg = FCOMMON.Util.MsgQ("변경 사항이 있습니다. 갱신하면 변경 내용이 손실 됩니다.\n지금 갱신 하겠습니까?");
|
||||
if (dlg != System.Windows.Forms.DialogResult.Yes) return;
|
||||
}
|
||||
|
||||
try {
|
||||
this.ta.FillByIDX(this.dsPRJ.Projects, this.ProjectIndex);
|
||||
this.taPart.Fill(this.dsPRJ.ProjectsPart, this.ProjectIndex);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
FCOMMON.Util.MsgE(ex.Message);
|
||||
}
|
||||
|
||||
//로딩후에 sid 와 suuply 를 조회해준다.
|
||||
//foreach (dsPRJ.ProjectsPartRow dr in this.dsPRJ.ProjectsPart.Rows)
|
||||
@@ -113,6 +127,7 @@ namespace FPJ0000
|
||||
{
|
||||
var cnt = this.tam.UpdateAll(this.dsPRJ);
|
||||
FCOMMON.Util.MsgI(cnt.ToString() + "건의 자료가 업데이트 되었습니다.");
|
||||
this.dsPRJ.AcceptChanges();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -269,5 +284,10 @@ namespace FPJ0000
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void btRefresh_Click(object sender, EventArgs e)
|
||||
{
|
||||
RefreshData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user