Ejemplo n.º 1
0
        public ActionResult StartFlow(FormCollection collection)
        {
            string s_FlowName = this.Request.QueryString["FlowName"];

            if (collection != null)
            {
                s_FlowName = this.Request.Form["FlowName"];
            }
            List <WorkFlowStart> workFlowStartList = new RoadFlow.Platform.WorkFlow().GetUserStartFlows(RoadFlow.Platform.Users.CurrentUserID);

            if (!s_FlowName.IsNullOrEmpty())
            {
                workFlowStartList = workFlowStartList.FindAll((Predicate <WorkFlowStart>)(p => p.Name.Contains(s_FlowName.Trim1(), StringComparison.CurrentCultureIgnoreCase)));
            }
            // ISSUE: reference to a compiler-generated field
            if (WorkFlowRunController.\u003C\u003Eo__23.\u003C\u003Ep__0 == null)
            {
                // ISSUE: reference to a compiler-generated field
                WorkFlowRunController.\u003C\u003Eo__23.\u003C\u003Ep__0 = CallSite <Func <CallSite, object, string, object> > .Create(Binder.SetMember(CSharpBinderFlags.None, "FlowName", typeof(WorkFlowRunController), (IEnumerable <CSharpArgumentInfo>) new CSharpArgumentInfo[2]
                {
                    CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string)null),
                    CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, (string)null)
                }));
            }
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            object obj = WorkFlowRunController.\u003C\u003Eo__23.\u003C\u003Ep__0.Target((CallSite)WorkFlowRunController.\u003C\u003Eo__23.\u003C\u003Ep__0, this.ViewBag, s_FlowName);

            return((ActionResult)this.View((object)workFlowStartList));
        }
Ejemplo n.º 2
0
        public ActionResult Index(FormCollection coll)
        {
            RoadFlow.Platform.WeiXin.Organize.CheckLogin();
            RoadFlow.Platform.Users users = new RoadFlow.Platform.Users();
            string s_searchkey            = this.Request.QueryString["searchkey"];

            if (coll != null)
            {
                s_searchkey = this.Request.Form["searchkey"];
            }
            List <WorkFlowStart> workFlowStartList = new RoadFlow.Platform.WorkFlow().GetUserStartFlows(RoadFlow.Platform.WeiXin.Organize.CurrentUserID);

            if (!s_searchkey.IsNullOrEmpty())
            {
                workFlowStartList = workFlowStartList.FindAll((Predicate <WorkFlowStart>)(p => p.Name.Contains(s_searchkey.Trim1(), StringComparison.CurrentCultureIgnoreCase)));
            }
            return((ActionResult)this.View((object)workFlowStartList));
        }