示例#1
0
        public DealDetail ShowDataToScreen()
        {
            string     maKH  = null;
            DealDetail model = new DealDetail();

            maKH = HttpContext.Current.Session["MAKH"].ToString();

            using (var context = new BankingContext())
            {
                var kh = context.KhachHang
                         .Where(b => b.MaKH == maKH)
                         .FirstOrDefault();

                model.TenKH = kh.TenKH;
            }

            model.ChiTietGD        = GetDealDetail();
            model.ChuyenKhoanModel = DataChuyenKhoan(maKH);
            model.RutTienModel     = DataRutTien(maKH);
            using (var context = new BankingContext())
            {
                model.dsNganHang = context.ChiNhanhNganHang.ToList();
            }

            return(model);
        }
示例#2
0
        public ActionResult DealDetail()
        {
            Session["MAKH"] = "KH0001";
            DealDetail model = new DealDetail();
            CTGiaoDich ctgd  = new CTGiaoDich();

            model = ctgd.ShowDataToScreen();
            return(View(model));
        }