public FormKhoHang(int themOrSua, KhoO k) { InitializeComponent(); this.themOrSua = themOrSua; khoBUS = new KhoBUS(); nhanVienBUS = new NhanVienBUS(); K = k; }
public FormKhoHang() { InitializeComponent(); themOrSua = 1; nhanVienBUS = new NhanVienBUS(); khoBUS = new KhoBUS(); K = new KhoO(); }
public bool CapNhatKho(ref string err, KhoO k)// string MaKhuVuc, string TenKhuVuc, string GhiChu, int ConQuanLy) { return(conn.MyExecuteNonQuery("proSuaKho", CommandType.StoredProcedure, ref err, new SqlParameter("@MaKho", k.MaKho), new SqlParameter("@TenKho", k.TenKho), new SqlParameter("@MaNguoiQuanLy", k.MaNguoiQuanLy), new SqlParameter("@KyHieu", k.KyHieu), new SqlParameter("@NguoiLienHe", k.NguoiLienHe), new SqlParameter("@DiaChi", k.DiaChi), new SqlParameter("@Fax", k.Fax), new SqlParameter("@SoDienThoai", k.SoDienThoai), new SqlParameter("@Email", k.Email), new SqlParameter("@DienGiai", k.DienGiai), new SqlParameter("@ConQuanLy", k.ConQuanLy) )); }
public bool XoaKhoBUS(ref string err, KhoO k) { return(khoDAO.XoaKho(ref err, k)); }
public bool CapNhatKhoBUS(ref string err, KhoO k) { return(khoDAO.CapNhatKho(ref err, k)); }
public bool ThemKhoBUS(ref string err, KhoO k) { return(khoDAO.ThemKho(ref err, k)); }
public KhoBUS() { khoDAO = new KhoDAO(); K = new KhoO(); }
public UCKhoHang() { InitializeComponent(); khoBUS = new KhoBUS(); k = new KhoO(); }
public bool XoaKho(ref string err, KhoO k)// string MaKhuVuc) { return(conn.MyExecuteNonQuery("proXoaKho", CommandType.StoredProcedure, ref err, new SqlParameter("@MaKho", k.MaKho))); }