예제 #1
0
            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();
            }
예제 #2
0
        public ActionResult DeleteConfirmed(int id)
        {
            RAction note = actionManager.Find(x => x.Id == id);

            actionManager.Delete(note);
            return(RedirectToAction("Index"));
        }
예제 #3
0
        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));
        }
예제 #4
0
        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));
        }
예제 #5
0
        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));
        }
예제 #6
0
 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"));
 }
예제 #7
0
            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();
            }