Exemple #1
0
        internal void UpdateHousePriceIfYes(int soLuong, float phanTram)
        {
            QUANLYNHADATEntities db = new QUANLYNHADATEntities();
            var dataContext         = db.USP_IsPriceIncreases(phanTram, soLuong, MACN);
            var screen = new Agency_IsHousePriceIncreases("Thông kê nhà tăng giá")
            {
                DataContext = dataContext
            };

            screen.Show();
        }
Exemple #2
0
        internal void GetHouseSuitable(int maLoai)
        {
            QUANLYNHADATEntities db = new QUANLYNHADATEntities();
            var dataContext         = db.USP_GetCustomerSuitableHouse(maLoai, MACN);
            var screen = new Agency_IsHousePriceIncreases("Các nhà phù hợp yêu cầu")
            {
                DataContext = dataContext
            };

            screen.Show();
        }
Exemple #3
0
 internal void UpdateOldNewHousetypeRequest()
 {
     try
     {
         int maKH                = SelectedCustomer.MAKH;
         int oldType             = OldNewHousetypeRequest.Keys.ToList()[0];
         int newType             = OldNewHousetypeRequest[oldType];
         QUANLYNHADATEntities db = new QUANLYNHADATEntities();
         var datacontext         = db.USP_UpdateCustomerDemand(maKH, newType, oldType, MACN);
         var screen              = new Agency_IsHousePriceIncreases("Sau khi cập nhập thong tin khách hàng")
         {
             DataContext = datacontext
         };
         screen.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }