전자실 자료 입력화면 dialog 방식 해제
This commit is contained in:
@@ -278,18 +278,17 @@ namespace FPJ0000
|
||||
newdr.EndEdit();
|
||||
|
||||
var f = new fEboardData(newdr);
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
this.dsMSSQL.EETGW_JobReport_EBoard.AddEETGW_JobReport_EBoardRow(newdr);
|
||||
}
|
||||
else
|
||||
{
|
||||
newdr.Delete();
|
||||
}
|
||||
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
this.bs.Position = 0;
|
||||
f.Show();
|
||||
f.FormClosed += (s1, e1) => {
|
||||
if (f.DialogResult == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
this.dsMSSQL.EETGW_JobReport_EBoard.AddEETGW_JobReport_EBoardRow(newdr);
|
||||
}
|
||||
else newdr.Delete();
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
this.bs.Position = 0;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -414,23 +413,16 @@ namespace FPJ0000
|
||||
//this.bs.Position = this.bs.Count - 1;
|
||||
|
||||
var f = new fEboardData(newdr);
|
||||
var dlg = f.ShowDialog();
|
||||
if (dlg == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
this.dsMSSQL.EETGW_JobReport_EBoard.AddEETGW_JobReport_EBoardRow(newdr);
|
||||
|
||||
//try
|
||||
//{
|
||||
// ta.Update(newdr);
|
||||
//}
|
||||
//catch (Exception ex)
|
||||
//{
|
||||
// FCOMMON.Util.MsgE("Save Error\n" + ex.Message);
|
||||
//}
|
||||
}
|
||||
else newdr.Delete();
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
f.Show();
|
||||
f.FormClosed += (s1, e1) => {
|
||||
if (f.DialogResult == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
this.dsMSSQL.EETGW_JobReport_EBoard.AddEETGW_JobReport_EBoardRow(newdr);
|
||||
}
|
||||
else newdr.Delete();
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
};
|
||||
}
|
||||
|
||||
private void btEdit_Click(object sender, EventArgs e)
|
||||
@@ -443,17 +435,15 @@ namespace FPJ0000
|
||||
if (drv == null) return;
|
||||
var dr = drv.Row as dsPRJ.EETGW_JobReport_EBoardRow;
|
||||
var f = new fEboardData(dr);
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
|
||||
//int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAuthType.project));
|
||||
//if (curLevel < 5)
|
||||
//{
|
||||
// funcSave(false); //자동저장
|
||||
//}
|
||||
}
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
f.Show();
|
||||
f.FormClosed += (s1, e1) => {
|
||||
if (f.DialogResult == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
private void 편집ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user