Beispiel #1
0
 private void BtThem_Click(object sender, EventArgs e)
 {
     int MaNCC = DAL.DALNhaCungCap.Matudong();
     string tenNCC = txtTenNCC.Text;
     string Diachi = txtDiaChi.Text;
     string email = txtEmail.Text;
     string Sodienthoai = txtSoDT.Text;
     string IDtaikhoan = txtTaiKhoan.Text;
     DateTime ngaymoTK = Convert.ToDateTime(dateTimePicker1.Text);
     string chuTK = txtChuTK.Text;
     string chitietkhac = txtChitietkhac.Text;
     BUSNhaCungCap ncc = new BUSNhaCungCap();
     ncc.ThemNCC(MaNCC, tenNCC, Diachi, email, Sodienthoai, IDtaikhoan, ngaymoTK, chuTK, chitietkhac);
     List<Propertiess.NhaCungCapProperties> dsncc = ncc.dayDSNCC();
     dataGridViewNCC.DataSource = dsncc;
 }
Beispiel #2
0
 private void FrmNhaCungCap_Load(object sender, EventArgs e)
 {
     BUSNhaCungCap ncc=new BUSNhaCungCap();
     List<Propertiess.NhaCungCapProperties> dsncc = ncc.dayDSNCC();
     dataGridViewNCC.DataSource = dsncc;
 }