Exemplo n.º 1
0
 public ActionResult Editstatemain()
 {
     Business.Sys_FlowerDemand Sys_FlowerDemand = new Business.Sys_FlowerDemand();
     if (Sys_FlowerDemand.EditState(Request["state"], Request["id"]))
     {
         return(Content("1"));
     }
     return(Content("2"));
 }
Exemplo n.º 2
0
 public ActionResult CustomRequirements(Model.FlowerDemand FlowerDemand)
 {
     ViewData["deptSelectItems"]     = GetdeptSelectItems();
     FlowerDemand.FlowerCategoryType = Request["deptSelectItems"];
     Business.Sys_FlowerDemand Sys_FlowerDemand = new Business.Sys_FlowerDemand();
     if (Sys_FlowerDemand.InsertFlowerDemand(FlowerDemand))
     {
         ViewData["success"] = "添加成功";
     }
     return(View());
 }
Exemplo n.º 3
0
        public JsonResult GetCustomRequirementsList(int offset, string State, string SelectItem)
        {
            Business.Sys_FlowerDemand Sys_FlowerDemand = new Business.Sys_FlowerDemand();
            StringBuilder             sb = new StringBuilder();

            if (!string.IsNullOrEmpty(State))
            {
                sb.Append(" and State='" + State + "'");
            }
            if (!string.IsNullOrEmpty(SelectItem))
            {
                sb.Append(" and FlowerCategoryType='" + SelectItem + "'");
            }
            return(Json(new { total = Sys_FlowerDemand.GetFlowerDemandListCount(sb.ToString()), rows = Sys_FlowerDemand.GetList(offset, sb.ToString()) }, JsonRequestBehavior.AllowGet));
        }