示例#1
0
        //
        private void btnSua_Click(object sender, EventArgs e)
        {
            try
            {
                DTO_TongLuong sv = new DTO_TongLuong(txtMaNV.Text, txtHST.Text, txtHSL.Text);

                BUS_KhenThuong.Sua_khenthuong(sv);
                DialogResult dr = MessageBox.Show("Sua thanh Cong", "Thông Báo", MessageBoxButtons.OK);
                loaddata();
                if (dr == DialogResult.OK)
                {
                    loaddata();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Sua không thành công!\n" + ex.Message);
            }
        }
示例#2
0
 public static void Sua_khenthuong(DTO_TongLuong nv)
 {
     con = DAO_KetNoiDB.OpenConnect();
     SqlHelper.ExecuteNonQuery(con, "PR_SUA_KHENTHUONG", nv.MaNV, nv.HST, nv.HSL);
     DAO_KetNoiDB.CloseConnect(con);
 }
示例#3
0
 public static void Sua_khenthuong(DTO_TongLuong nv)
 {
     DAO_KhenThuong.Sua_khenthuong(nv);
 }