Exemplo n.º 1
0
        public static void FillWfpWithNull(TimDropDownList ctrl, string wfbId)
        {
            WorkflowEngine workflow   = new WorkflowEngine();
            string         workflowId = workflow.GetWorkflowId(wfbId);
            List <WFP>     lstWfp     = WFPUtils.GetWFP(workflowId);

            ctrl.Items.Clear();
            ctrl.Items.Add(new ListItem(" ", " ")
            {
                Selected = true
            });
            foreach (WFP item in lstWfp)
            {
                ctrl.Items.Add(new ListItem(item.WfpId.Trim() + "|" + item.WfpName.Trim(), item.WfpId.Trim()));
            }
        }
Exemplo n.º 2
0
        private void SubmitHandle()
        {
            List <WFL> lstNextWfl = base.Workflow.GetNextWfpId(base.Workflow.WfId, base.Workflow.WfpId);

            this.ddlNextWfpId.Items.Clear();
            foreach (WFL wfl in lstNextWfl)
            {
                WFP  nextWfp = WFPUtils.GetWFP(wfl.NextWfId, wfl.NextWfpId);
                bool flag    = nextWfp != null;
                if (flag)
                {
                    this.ddlNextWfpId.Items.Add(new ListItem(nextWfp.WfpId + "|" + nextWfp.WfpName, nextWfp.WfpId));
                }
            }
            bool flag2 = this.ddlNextWfpId.SelectedValue != "TTTT";

            if (flag2)
            {
                this.ParseWfpUsers();
            }
        }