private void DoConfig() { string strStatusStyleID = "0004"; DropDownListCommom.BindComp(ddlCompID, lblCompTitle); DropDownListCommom.BindEstTerm(ddlEstTermRefID); DropDownListCommom.BindEstTermSubByYearYN(ddlEstTermSubID , WebUtility.GetIntByValueDropDownList(ddlCompID) , "N"); TreeViewCommom.BindEst(TreeView1, WebUtility.GetIntByValueDropDownList(ddlCompID)); Biz_Status status = new Biz_Status(); DataSet ds = status.GetStatuses(strStatusStyleID); UltraWebGrid1.Columns.FromKey("STATUS_YN").ValueList.DataSource = ds.Tables[0]; UltraWebGrid1.Columns.FromKey("STATUS_YN").ValueList.DisplayMember = "STATUS_NAME"; UltraWebGrid1.Columns.FromKey("STATUS_YN").ValueList.ValueMember = "STATUS_ID"; UltraWebGrid1.Columns.FromKey("STATUS_YN").ValueList.DataBind(); Biz_TermSteps termStep = new Biz_TermSteps(); DataSet dsStep = termStep.GetTermSteps(WebUtility.GetIntByValueDropDownList(ddlCompID), "Y"); UltraWebGrid1.Columns.FromKey("STEP_ID").ValueList.DataSource = dsStep.Tables[0]; UltraWebGrid1.Columns.FromKey("STEP_ID").ValueList.DisplayMember = "ESTTERM_STEP_NAME"; UltraWebGrid1.Columns.FromKey("STEP_ID").ValueList.ValueMember = "ESTTERM_STEP_ID"; UltraWebGrid1.Columns.FromKey("STEP_ID").ValueList.DataBind(); UltraWebGrid1.Columns.FromKey("STEP_ID").ValueList.ValueListItems.RemoveAt(0); UltraWebGrid1.Columns.FromKey("STEP_ID").ValueList.ValueListItems.Insert(0, new ValueListItem("-", 0)); }
private void GridBinding(int comp_id) { Biz_TermSteps termSteps = new Biz_TermSteps(); DataSet ds = termSteps.GetTermSteps(comp_id, ""); UltraWebGrid1.DataSource = ds; UltraWebGrid1.DataBind(); lblRowCount.Text = ds.Tables[0].Rows.Count.ToString(); }
public static void BindEstTermStep(RadioButtonList rbtnlist, int comp_id) { Biz_TermSteps termSteps = new Biz_TermSteps(); DataSet ds = termSteps.GetTermSteps(comp_id, "Y"); rbtnlist.DataSource = ds; rbtnlist.DataTextField = "ESTTERM_STEP_NAME"; rbtnlist.DataValueField = "ESTTERM_STEP_ID"; rbtnlist.DataBind(); if (ds.Tables[0].Rows.Count > 0) { rbtnlist.Items[0].Selected = true; } }
/// <summary> /// 평가 차수 /// </summary> /// <param name="ddl"></param> public static void BindEstTermStep(DropDownList ddl, int comp_id) { Biz_TermSteps termStep = new Biz_TermSteps(); DataSet ds = termStep.GetTermSteps(comp_id, "Y"); ddl.DataTextField = "ESTTERM_STEP_NAME"; ddl.DataValueField = "ESTTERM_STEP_ID"; ddl.DataSource = ds; ddl.DataBind(); //if(ds.Tables[0].Rows.Count == 1) //{ // ddl.Visible = false; //} //else //{ // ddl.Visible = false; //} }