프로젝트정보추가 site/plant/package/package

This commit is contained in:
chi
2023-01-13 20:05:38 +09:00
parent ff2b5834fa
commit cd902327c8
20 changed files with 2555 additions and 1243 deletions

View File

@@ -905,5 +905,28 @@ namespace FPJ0000
this.comboBox1.SelectedIndex = this.comboBox1.Items.Count - 1;
}
private void button2_Click(object sender, EventArgs e)
{
var drv = this.bsPrjinfo.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsPRJ.ProjectsRow;
var f = new fProjectData(dr);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
this.Validate();
this.bsPrjinfo.EndEdit();
try
{
var ta = new dsPRJTableAdapters.ProjectsTableAdapter();
var cnt = ta.Update(this.dsPRJ.Projects);//.UpdateAll(this.dsMSSQL.Projects);
dsPRJ.Projects.AcceptChanges();
}
catch (Exception ex)
{
FCOMMON.Util.MsgE(ex.Message);
}
}
}
}
}