Esempio n. 1
0
        public ActionResult Edit()
        {
            int id = int.Parse(Request["id"]);

            Business.Sys_FlowerActive Sys_FlowerActive = new Business.Sys_FlowerActive();
            ViewData["GetFlowerList"] = GetdeptSelectItems();
            return(View(Sys_FlowerActive.GetFlowerActiveById(id)));
        }
Esempio n. 2
0
 public ActionResult Add(Model.FlowerActive Flower)
 {
     Flower.CreateTime = DateTime.Now;
     Flower.UpdateTime = DateTime.Now;
     Flower.UsersId    = Utility.ChangeText.GetUsersId().ToString();
     Business.Sys_FlowerActive Sys_FlowerActive = new Business.Sys_FlowerActive();
     Sys_FlowerActive.InsertFlowerActive(Flower);
     return(View());
 }
Esempio n. 3
0
        public ActionResult Delete()
        {
            Business.Sys_FlowerActive Sys_FlowerActive = new Business.Sys_FlowerActive();
            int id = int.Parse(Request["id"]);

            if (Sys_FlowerActive.DeleteFlowerActive(id))
            {
                return(Content("True"));
            }
            return(Content("Fasle"));
        }
Esempio n. 4
0
 public ActionResult Edit(Model.FlowerActive Flower)
 {
     Business.Sys_FlowerActive Sys_FlowerActive = new Business.Sys_FlowerActive();
     Flower.UpdateTime = DateTime.Now;
     Flower.UsersId    = Utility.ChangeText.GetUsersId().ToString();
     //ViewData["success"] = "修改失败";
     if (Sys_FlowerActive.UpdateFlowerActive(Flower))
     {
         // ViewData["success"] = "修改成功";
     }
     Response.Write("<script>parent.layer.closeAll();</script>");
     return(Content(""));
 }
Esempio n. 5
0
        public ActionResult GetList(int?FlowerId)
        {
            int           offset = Convert.ToInt32(Request["offset"]);
            int           limit  = int.Parse(Request["limit"]);
            StringBuilder sb     = new StringBuilder();

            if (FlowerId != 0)
            {
                sb.Append("FlowerId=" + FlowerId);
            }
            Business.Sys_FlowerActive Sys_FlowerActive = new Business.Sys_FlowerActive();
            return(Json(new { total = Sys_FlowerActive.GetFlowerActiveListCount(sb.ToString()), rows = Sys_FlowerActive.FlowerActiveList(limit, offset, sb.ToString()) }, JsonRequestBehavior.AllowGet));
        }
Esempio n. 6
0
 public ActionResult Add(Model.FlowerActive Flower)
 {
     Flower.CreateTime = DateTime.Now;
     Flower.UpdateTime = DateTime.Now;
     Flower.UsersId    = Utility.ChangeText.GetUsersId().ToString();
     Business.Sys_FlowerActive Sys_FlowerActive = new Business.Sys_FlowerActive();
     //ViewData["success"] = "添加失败";
     if (Sys_FlowerActive.InsertFlowerActive(Flower))
     {
         // ViewData["success"] = "添加成功";
     }
     Response.Write("<script>parent.layer.closeAll();</script>");
     return(View());
 }
Esempio n. 7
0
 private List <Model.FlowerActive> GetList()
 {
     Business.Sys_FlowerActive Sys_FlowerActive = new Business.Sys_FlowerActive();
     return(Sys_FlowerActive.FlowerActiveList(1, 1, ""));
 }