전자실 자료 입력화면 dialog 방식 해제

This commit is contained in:
chi
2021-02-05 08:29:14 +09:00
parent 8fbee34f90
commit 0e4f3d84d4
12 changed files with 292 additions and 206 deletions

View File

@@ -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)