Exemplo n.º 1
0
        public static void HistorialInmuDescripcion(string c, string inm, string desc)
        {
            try
               {
               historial_inmueble him = new historial_inmueble();
               him.CLIENTE = c;
               him.INMUEBLE = inm;
               him.FECHA = DateTime.Now;
               him.DESCRIPCION_S = desc +" " + inm;
               bd.historial_inmueble.Add(him);
               bd.SaveChanges();
               }
               catch (Exception)
               {

               throw;
               }
        }
Exemplo n.º 2
0
        protected void HistorialInmu(string c, string inm)
        {
            try
               {   historial_inmueble him = new historial_inmueble();
               him.CLIENTE=c;
               him.INMUEBLE= inm;
               him.FECHA=DateTime.Now;
               him.DESCRIPCION_S = "El inmueble"+ inm+ "  "+"ha pasado a un proceso de compra";
               bd.historial_inmueble.Add(him);
               bd.SaveChanges();
               }
               catch (Exception)
               {

               throw;
               }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Metodo para anexar al historial del inmuebles
        /// </summary>
        /// <param name="s"></param>
        protected void Historial_inmuebles(inmueble_separacion s,string op)
        {
            try
            {
                historial_inmueble hm = new historial_inmueble();
                hm.CLIENTE = s.CLIENTE;
                hm.INMUEBLE = s.INMUEBLE;
                switch (op)
                {
                   case "S":
                     hm.DESCRIPCION_S = "El cliente ha iniciado el proceso de  separacion del inmueble " + hm.INMUEBLE;
                   break;
                   case "D":
                     hm.DESCRIPCION_S = "El cliente ha decistido el proceso de separacion del inmueble " + hm.INMUEBLE;
                   break;
                   case "L":
                   hm.DESCRIPCION_S = "El cliente ha inicado el proceso de compra del inmueble " + hm.INMUEBLE;
                   break;
                }
                hm.FECHA = DateTime.Now;
                db.historial_inmueble.Add(hm);
                db.SaveChanges();
            }
            catch (Exception)
            {

                throw;
            }
        }