public override void WriteTo(XmlWriter xmlWriter) { xmlWriter.WriteStartElement("Textbox"); { xmlWriter.WriteAttributeString("Name", Name); xmlWriter.WriteElementString("rd:DefaultName", rdDefaultName); if (TextBox.Action != null) { RAction rAction = new RAction(TextBox.Action); rAction.WriteTo(xmlWriter); } xmlWriter.WriteElementString("ZIndex", ZIndex.ToString()); //base.Write(xmlWriter); RStyle rStyle = new RStyle(this, Item.Style); rStyle.WriteTo(xmlWriter); xmlWriter.WriteElementString("CanGrow", RdlcWrapper.RdlcValueConverter.GetBoolean(TextBox.CanGrow)); //xmlWriter.WriteElementString("HideDuplicates", RdlcWrapper.RdlcValueConverter.GetBoolean(TextBox.HideDuplicates)); xmlWriter.WriteElementString("Value", TextBox.Value); } xmlWriter.WriteEndElement(); }
public ActionResult DeleteConfirmed(int id) { RAction note = actionManager.Find(x => x.Id == id); actionManager.Delete(note); return(RedirectToAction("Index")); }
public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } RAction com = actionManager.Find(x => x.Id == id); if (com == null) { return(HttpNotFound()); } return(View(com)); }
public ActionResult Edit(Company company) { if (ModelState.IsValid) { RAction db_action = actionManager.Find(x => x.Id == company.Id); actionManager.Update(db_action); return(RedirectToAction("Index")); } //ViewBag.CategoryId = new SelectList(CacheHelper.GetCategoriesFromCache(), "Id", "Title", note.CategoryId); return(View(company)); }
public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } RAction com = actionManager.Find(x => x.Id == id); if (com == null) { return(HttpNotFound()); } //ViewBag.CategoryId = new SelectList(CacheHelper.GetCategoriesFromCache(), "Id", "Title", note.CategoryId); return(View(com)); }
public ActionResult Creat(RAction raction) { if (ModelState.IsValid) { raction.status_bit = true; raction.dateLogged = DateTime.Now; //actionManager.Insert(Raction); BusinessLayerResult <RAction> act = actionManager.Insert(raction); if (act.Errors.Count > 0) { act.Errors.ForEach(x => ModelState.AddModelError("", x.Message)); return(View(raction)); } return(RedirectToAction("Index")); } return(View("Index")); }
public override void WriteTo(XmlWriter xmlWriter) { xmlWriter.WriteStartElement("Image"); { xmlWriter.WriteAttributeString("Name", Name); if (!IsTableOrMatrixSubItem) { xmlWriter.WriteElementString("Top", Item.Top.ToString()); xmlWriter.WriteElementString("Width", Item.Width.ToString()); } if (!IsTableOrMatrixSubItem) { xmlWriter.WriteElementString("Left", Item.Left.ToString()); xmlWriter.WriteElementString("Height", Item.Height.ToString()); } if (ImageBox.Action != null) { RAction rAction = new RAction(ImageBox.Action); rAction.WriteTo(xmlWriter); } //Style //base.Write(xmlWriter); RStyle rStyle = new RStyle(this, Item.Style); rStyle.WriteTo(xmlWriter); xmlWriter.WriteElementString("ZIndex", ZIndex.ToString()); RBaseImage rBaseImage = new RBaseImage(ImageBox.Image); rBaseImage.WriteTo(xmlWriter); } xmlWriter.WriteEndElement(); }