private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { PhieuLuongEntity pl = new PhieuLuongEntity(); pl.MaPhieuLuong = MaLuong; PhieuLuongBus plg = new PhieuLuongBus(); plg.Xoa(pl); } catch { MessageBox.Show("Mời bạn chọn phiếu lương cần xóa"); } }
private void simpleButton1_Click(object sender, EventArgs e) { PhieuLuongEntity pl = new PhieuLuongEntity(); pl.MaPhieuLuong = maLG; pl.LuongCoBan = txtLuongCoBan.Text; pl.HeSoLuong = txthsl.Text; pl.PhuCap = txtPhuCap.Text; pl.TienThuong = txtTienThuong.Text; pl.TongLinh = txtTongLinh.Text; pl.NgayLinh = dtNgayLinh.Value.ToString(); PhieuLuongBus plg = new PhieuLuongBus(); plg.Sua(pl); }