예제 #1
0
 public FormKhoHang(int themOrSua, KhoO k)
 {
     InitializeComponent();
     this.themOrSua = themOrSua;
     khoBUS         = new KhoBUS();
     nhanVienBUS    = new NhanVienBUS();
     K = k;
 }
예제 #2
0
 public FormKhoHang()
 {
     InitializeComponent();
     themOrSua   = 1;
     nhanVienBUS = new NhanVienBUS();
     khoBUS      = new KhoBUS();
     K           = new KhoO();
 }
예제 #3
0
 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)
                                   ));
 }
예제 #4
0
 public bool XoaKhoBUS(ref string err, KhoO k)
 {
     return(khoDAO.XoaKho(ref err, k));
 }
예제 #5
0
 public bool CapNhatKhoBUS(ref string err, KhoO k)
 {
     return(khoDAO.CapNhatKho(ref err, k));
 }
예제 #6
0
 public bool ThemKhoBUS(ref string err, KhoO k)
 {
     return(khoDAO.ThemKho(ref err, k));
 }
예제 #7
0
 public KhoBUS()
 {
     khoDAO = new KhoDAO();
     K      = new KhoO();
 }
예제 #8
0
 public UCKhoHang()
 {
     InitializeComponent();
     khoBUS = new KhoBUS();
     k      = new KhoO();
 }
예제 #9
0
 public bool XoaKho(ref string err, KhoO k)// string MaKhuVuc)
 {
     return(conn.MyExecuteNonQuery("proXoaKho",
                                   CommandType.StoredProcedure, ref err,
                                   new SqlParameter("@MaKho", k.MaKho)));
 }