Example #1
0
        private void BuildVars(string sStepID)
        {
            string sErr  = "";
            Step   oStep = ft.GetSingleStep(sStepID, sUserID, ref sErr);

            //we need these on the page
            hidOutputParseType.Value = oStep.OutputParseType.ToString();
            hidRowDelimiter.Value    = oStep.OutputRowDelimiter.ToString();
            hidColDelimiter.Value    = oStep.OutputColumnDelimiter.ToString();

            //header
            lblTaskName.Text    = "[ " + oStep.Task.Name + " ] Version: [ " + oStep.Task.Version + " ]";
            lblCommandName.Text = oStep.Order.ToString() + " : " +
                                  oStep.Function.Category.Label + " - " + oStep.Function.Label;


            Literal lt = new Literal();

            if (sErr == "")
            {
                lt.Text = ft.DrawVariableSectionForEdit(oStep);
            }
            else
            {
                lt.Text = "<span class=\"red_text\">" + sErr + "</span>";
            }

            phVars.Controls.Add(lt);

            return;
        }