프로젝트정보추가 site/plant/package/package
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user