private void xoa_bt3_Click(object sender, EventArgs e) { while (dataGridView4.SelectedRows.Count > 0) { dataGridView4.Rows.RemoveAt(dataGridView4.SelectedRows[0].Index); } XuLyDuLieu2.ghiBang("DoanhThuCN", DoanhthuCN); }
private void XoaChay_Click(object sender, EventArgs e) { while (dataGridView2.SelectedRows.Count > 0) { dataGridView2.Rows.RemoveAt(dataGridView2.SelectedRows[0].Index); } XuLyDuLieu2.ghiBang("MonChay", MonChay); }
private void XoaABC_Click(object sender, EventArgs e) { while (dataGridView1.SelectedRows.Count > 0) { dataGridView1.Rows.RemoveAt(dataGridView1.SelectedRows[0].Index); } XuLyDuLieu2.ghiBang("DoanhThu", ds); }
private void button1_Click(object sender, EventArgs e) { while (dataGridView3.SelectedRows.Count > 0) { dataGridView3.Rows.RemoveAt(dataGridView3.SelectedRows[0].Index); } XuLyDuLieu2.ghiBang("MonAn", MonBo); }
private void button3_Click(object sender, EventArgs e) { DataRow dh = DoanhthuCN.NewRow(); dh["ChiNhanh"] = CN2.Text; dh["TIME"] = time2.Text; dh["TienBan"] = tienban.Text; dh["PhiPhatSinh"] = phatsinh.Text; DoanhthuCN.Rows.Add(dh); XuLyDuLieu2.ghiBang("DoanhThuCN", DoanhthuCN); }
private void themABC_Click_1(object sender, EventArgs e) { DataRow dh = ds.NewRow(); dh["TIME"] = time.Text; dh["TongDoanhThu"] = doanhthu.Text; dh["ChiNhanhCaoNhat"] = caonhat.Text; dh["DoanhThuChiNhanh"] = CN.Text; ds.Rows.Add(dh); XuLyDuLieu2.ghiBang("DoanhThu", ds); }
private void BT1_Click(object sender, EventArgs e) { DataRow dh = MonBo.NewRow(); dh["Loai"] = loai.Text; dh["TenMonAn"] = tenmon.Text; dh["DonVi"] = donvi.Text; dh["GiaTien"] = giatien.Text; MonBo.Rows.Add(dh); XuLyDuLieu2.ghiBang("MonAn", MonBo); }
private void ThemChay_Click(object sender, EventArgs e) { DataRow dh = MonChay.NewRow(); dh["ChiNhanh"] = CN1.Text; dh["TIME"] = time1.Text; dh["TenMonAn"] = TenMA1.Text; dh["DonVi"] = DonVi1.Text; dh["SoLuong"] = SoLg.Text; MonChay.Rows.Add(dh); XuLyDuLieu2.ghiBang("MonChay", MonChay); }