public static string[] GetIndentMethod(string prefixText, int count) { string sProj = HttpContext.Current.Session["Project"].ToString(); int indexstart = sProj.IndexOf('-'); string ProjectId = sProj.Substring(0, indexstart); //txtProject.Text.ToString(); //HttpContext.Current.Session["Project"].ToString(); //string sProj = (string)HttpContext.Current.Session["ProjName"]; //string sElement = (string)HttpContext.Current.Session["Element"]; WorkFlow objWorkFlow = new WorkFlow(); DataTable dt = objWorkFlow.GetIndent(prefixText, ProjectId); List <string> lst = new List <string>(); foreach (DataRow dr in dt.Rows) { string indent = dr["t_rqno"].ToString() + " ( " + dr["t_rqln"].ToString() + ")"; lst.Add(indent); } return(lst.ToArray()); }
private void GetIndent() { WorkFlow objWorkFlow = new WorkFlow(); string[] Project = txtProject.Text.Split('-'); objWorkFlow.Project = Project[0]; string[] Element = txtElement.Text.Split('-'); objWorkFlow.Element = Element[0]; DataTable dt = objWorkFlow.GetIndent(); if (dt.Rows.Count > 0) { ddlIndent.DataSource = dt; ddlIndent.DataValueField = "t_rqno"; ddlIndent.DataTextField = "drpdwn"; ddlIndent.DataBind(); ddlIndent.Items.Insert(0, "Select"); } else { } }