Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            type = Request.QueryString["typeid"];
            string name = string.Empty;

            if (IsPostBack)
            {
                name = Request.Form["flow_name"];
            }

            flows = bwf.GetAll().Where(p => p.Status != 4);
            if (!name.IsNullOrEmpty())
            {
                flows = flows.Where(p => p.Name.IndexOf(name) >= 0);
            }
        }
        public ActionResult Open_List(FormCollection collection)
        {
            RoadFlow.Platform.WorkFlow bwf = new RoadFlow.Platform.WorkFlow();
            string name = string.Empty;
            string type = Request.QueryString["typeid"];

            if (collection != null)
            {
                name = Request.Form["flow_name"];
            }

            IEnumerable <RoadFlow.Data.Model.WorkFlow> flows = bwf.GetAll().Where(p => p.Status != 4);

            if (!name.IsNullOrEmpty())
            {
                flows = flows.Where(p => p.Name.IndexOf(name) >= 0);
            }
            ViewBag.Name = name;
            return(View(flows));
        }