public FormNhomHang() { InitializeComponent(); themOrSua = 1; nhomHangBUS = new NhomHangBUS(); NH = new NhomHangO(); }
public FormNhomHang(int themOrSua, NhomHangO nh) { this.themOrSua = themOrSua; InitializeComponent(); nhomHangBUS = new NhomHangBUS(); NH = nh; }
public bool CapNhatNhomHang(ref string err, NhomHangO nh) { return(conn.MyExecuteNonQuery("proSuaNhomHang", CommandType.StoredProcedure, ref err, new SqlParameter("@MaNhomHang", nh.MaNhomHang), new SqlParameter("@TenNhomHang", nh.TenNhomHang), new SqlParameter("@GhiChu", nh.GhiChu), new SqlParameter("@ConQuanLy", nh.ConQuanLy) )); }
public bool XoaNhomHang(ref string err, NhomHangO nh) { return(conn.MyExecuteNonQuery("proXoaNhomHang", CommandType.StoredProcedure, ref err, new SqlParameter("@MaNhomHang", nh.MaNhomHang))); }
public bool XoaNhomHangBUS(ref string err, NhomHangO nh) { return(nhomHangDAO.XoaNhomHang(ref err, nh)); }
public bool CapNhatNhomHangBUS(ref string err, NhomHangO nh) { return(nhomHangDAO.CapNhatNhomHang(ref err, nh)); }
public UCNhomHang() { InitializeComponent(); nhomHangBUS = new NhomHangBUS(); nh = new NhomHangO(); }