Exemplo n.º 1
0
        public ActionResult DeleteConfirmed(long id)
        {
            record_type record_type = db.record_type.Find(id);

            db.record_type.Remove(record_type);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "RecordType_ID,RecordType_Name")] record_type record_type)
 {
     if (ModelState.IsValid)
     {
         db.Entry(record_type).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(record_type));
 }
Exemplo n.º 3
0
        public ActionResult Create([Bind(Include = "RecordType_ID,RecordType_Name")] record_type record_type)
        {
            if (ModelState.IsValid)
            {
                db.record_type.Add(record_type);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(record_type));
        }
Exemplo n.º 4
0
        // GET: record_type/Delete/5
        public ActionResult Delete(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            record_type record_type = db.record_type.Find(id);

            if (record_type == null)
            {
                return(HttpNotFound());
            }
            return(View(record_type));
        }
Exemplo n.º 5
0
 public override void visit(record_type _record_type)
 {
     //get_count(_record_type.rec_vars);
 }
Exemplo n.º 6
0
 public virtual void visit(record_type _record_type)
 {
     DefaultVisit(_record_type);
 }
Exemplo n.º 7
0
		public virtual void post_do_visit(record_type _record_type)
		{
		}
Exemplo n.º 8
0
		public override void visit(record_type _record_type)
		{
			DefaultVisit(_record_type);
			pre_do_visit(_record_type);
			visit(record_type.parts);
			visit(record_type.base_type);
			post_do_visit(_record_type);
		}
Exemplo n.º 9
0
 public virtual void visit(record_type _record_type)
 {
 }
Exemplo n.º 10
0
 public override void visit(record_type _record_type)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 11
0
		public virtual void visit(record_type _record_type)
		{
		}
		public virtual void visit(record_type _record_type)
		{
			DefaultVisit(_record_type);
		}
Exemplo n.º 13
0
 public override void visit(record_type _record_type)
 {
     prepare_node(_record_type.base_type, "base_type");
     prepare_node(_record_type.parts, "parts");
 }
Exemplo n.º 14
0
		public override void visit(record_type _record_type)
		{
			executer.visit(_record_type);
			if (_record_type.parts != null)
				this.visit((dynamic)_record_type.parts);
			if (_record_type.base_type != null)
				this.visit((dynamic)_record_type.base_type);
			if (_record_type.attr_list != null)
				this.visit((dynamic)_record_type.attr_list);
			if (_record_type.attributes != null)
				this.visit((dynamic)_record_type.attributes);
		}