Esempio n. 1
0
 public DataSet DoTaiKhoan1(string user, string pass, string Quyen)
 {
     return(db.ExecuteQueryDataSetWithPra("dbo.spDoTkQuyen", CommandType.StoredProcedure,
                                          new SqlParameter("@user", user),
                                          new SqlParameter("@pass", pass),
                                          new SqlParameter("@Quyen", Quyen)));
 }
Esempio n. 2
0
 public DataSet KiemTraMaDH(string MaDH)
 {
     return(db.ExecuteQueryDataSetWithPra("spKiemTraMaHDNH", CommandType.StoredProcedure,
                                          new SqlParameter("@MaDH", MaDH)));
 }
Esempio n. 3
0
 public DataSet DoMaBH(string MaBH)
 {
     return(db.ExecuteQueryDataSetWithPra("spDoMaBH", CommandType.StoredProcedure,
                                          new SqlParameter("@MaBH", MaBH)));
 }
 public DataSet LayThongKeTheoThangNam(int Thang, int Nam)
 {
     return(db.ExecuteQueryDataSetWithPra("spThongKeChiPhiBanTheoThangNam", CommandType.StoredProcedure,
                                          new SqlParameter("@Thang", Thang),
                                          new SqlParameter("@Nam", Nam)));
 }
Esempio n. 5
0
 public DataSet KiemTraMaThahHToan(string MaThanhToan)
 {
     return(db.ExecuteQueryDataSetWithPra("spKiemTraMaThanhToan", CommandType.StoredProcedure, new SqlParameter("@MaThanhToan", MaThanhToan)));
 }
 public DataSet InHoaDon(string MaDH)
 {
     return(db.ExecuteQueryDataSetWithPra("spInHoaDonBanHang", CommandType.StoredProcedure,
                                          new SqlParameter("@MaHD", MaDH)));
 }
 public DataSet ThongKeSLTheoLoai(string MaLoai)
 {
     return(db.ExecuteQueryDataSetWithPra("spThongKeSoLuongSPBanRaTheoLoai", CommandType.StoredProcedure,
                                          new SqlParameter("@MaLoai", MaLoai)));
 }
Esempio n. 8
0
 public DataSet LayListSanPhamTheoLoai(string MaLoai)
 {
     return(db.ExecuteQueryDataSetWithPra("spLayListSanPhamTheoLoai", CommandType.StoredProcedure, new SqlParameter("@MaLoai", MaLoai)));
 }
 // Lấy giá trị HĐ bán hàng
 public DataSet GiaTriDonBan(string maHoaDon)
 {
     return(db.ExecuteQueryDataSetWithPra("spLayGiaTriHDBan", CommandType.StoredProcedure, new SqlParameter("@MaDon", maHoaDon)));
 }
Esempio n. 10
0
 // Lấy chi tiết nhập theo mã đơn nhập
 public DataSet LayChiTietNhapTheoMaDon(string MaDonNhap)
 {
     return(db.ExecuteQueryDataSetWithPra("spLayChiTietNhapTheoMaHD", CommandType.StoredProcedure, new SqlParameter("@MaDonNhap", MaDonNhap)));
 }
 // lấy chi tiết hóa đơn theo mã hóa đơn
 public DataSet LayChiTietHDBanHangTheoMaHD(string maHoaDon)
 {
     return(db.ExecuteQueryDataSetWithPra("spLayChiTietHDBanHangTheoMa", CommandType.StoredProcedure,
                                          new SqlParameter("@MaHD", maHoaDon)));
 }