コード例 #1
0
 public HinhAnhController(BanGiayDBContext db)
 {
     this.db = db;
 }
コード例 #2
0
 public HinhAnhController()
 {
     this.db = new BanGiayDBContext();
 }
コード例 #3
0
 public DonHangController(BanGiayDBContext db)
 {
     this._db = db;
 }
コード例 #4
0
        protected List<String> _state; //lưu thông báo trả về cho view

        #endregion Fields

        #region Constructors

        public AdminController()
        {
            this._db = new BanGiayDBContext();
            this._nhanvien_permission = new List<String>();
            this._state = new List<String>();
        }
コード例 #5
0
 public PhanHoiController()
 {
     this._db = new BanGiayDBContext();
 }
コード例 #6
0
 public MauSacController(BanGiayDBContext db)
 {
     this._db = db;
 }
コード例 #7
0
 public Boolean _Update_LoaiKhachHang(BanGiayDBContext context)
 {
     foreach (var item in context.ds_loaikhachhang.OrderByDescending(x => x.mucdiem))
     {
         if (this.diem >= item.mucdiem)
         {
             this.loaikhachhang = item;
             return true;
         }
     }
     return false;
 }
コード例 #8
0
 public TinhTPController(BanGiayDBContext db)
 {
     this._db = db;
 }
コード例 #9
0
 public LoaiKhachHangController(BanGiayDBContext db)
 {
     this._db = db;
 }
コード例 #10
0
        public Boolean _huy_don_hang(BanGiayDBContext db)
        {
            if (this.trangthai.Equals("dabihuy"))
            {
                return false;
            }
            this.trangthai = "dabihuy";
            //cộng ngược sl lại vào sp

            foreach (var item in this.ds_chitiet_donhang)
            {
                item.chitietsp.soluong += item.soluong;
            }
            //Trừ lại điểm khách hàng
            if (this.khachhang != null)
            {
                this.khachhang.diem -= this.tongtien / 10000;
                this.khachhang._Update_LoaiKhachHang(db);

            }
            return true;
        }
コード例 #11
0
 public HangSXController(BanGiayDBContext db)
 {
     this._db = db;
 }
コード例 #12
0
 public KichThuocController(BanGiayDBContext db)
 {
     this._db = db;
 }
コード例 #13
0
 public PhanHoiController(BanGiayDBContext db)
 {
     this._db = db;
 }
コード例 #14
0
 public ChiTietSPController(BanGiayDBContext _db)
 {
     this._db = _db;
 }
コード例 #15
0
 public QuyenController(BanGiayDBContext db)
 {
     this._db = db;
 }
コード例 #16
0
 public ChiTietSPController()
 {
     this._db = new BanGiayDBContext();
 }
コード例 #17
0
 public SanPhamController(BanGiayDBContext db)
 {
     this._db = db;
 }
コード例 #18
0
 public TinhTPController()
 {
     this._db = new BanGiayDBContext();
 }
コード例 #19
0
 public LoaiNhanVienController(BanGiayDBContext db)
 {
     this._db = db;
 }