initial commit
This commit is contained in:
40
Project/_Common/fItems.cs
Normal file
40
Project/_Common/fItems.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Project._Common
|
||||
{
|
||||
public partial class fItems : Form
|
||||
{
|
||||
public fItems()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void fItems_Load(object sender, EventArgs e)
|
||||
{
|
||||
// TODO: 이 코드는 데이터를 'dsMSSQL.Items' 테이블에 로드합니다. 필요한 경우 이 코드를 이동하거나 제거할 수 있습니다.
|
||||
this.itemsTableAdapter.Fill(this.dsMSSQL.Items);
|
||||
this.dsMSSQL.Items.TableNewRow += Items_TableNewRow;
|
||||
}
|
||||
|
||||
void Items_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
{
|
||||
e.Row["wuid"] = Pub.Login.no;
|
||||
e.Row["wdate"] = DateTime.Now;
|
||||
}
|
||||
private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Validate();
|
||||
this.itemsBindingSource.EndEdit();
|
||||
this.tableAdapterManager.UpdateAll(this.dsMSSQL);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user