private string GetPosName(string pos_id, string pos_value) { string reVal = string.Empty; if (pos_id.Equals("CLS")) { Biz_PositionClasses biz = new Biz_PositionClasses(pos_value); reVal = biz.Pos_Cls_Name + ":"; } else if (pos_id.Equals("DUT")) { Biz_PositionDutys biz = new Biz_PositionDutys(pos_value); reVal = biz.Pos_Dut_Name + ":"; } else if (pos_id.Equals("GRP")) { Biz_PositionGroups biz = new Biz_PositionGroups(pos_value); reVal = biz.Pos_Grp_Name + ":"; } else if (pos_id.Equals("RNK")) { Biz_PositionRanks biz = new Biz_PositionRanks(pos_value); reVal = biz.Pos_Rnk_Name + ":"; } return(reVal); }
public static void BindPositionGroup(DropDownList ddl, bool isDefault) { Biz_PositionGroups position = new Biz_PositionGroups(); DataSet ds = position.GetPositionGroups(); ddl.DataValueField = "POS_GRP_ID"; ddl.DataTextField = "POS_GRP_NAME"; ddl.DataSource = ds; ddl.DataBind(); if (isDefault) { ListItem itemA = new ListItem("----------", "-"); ddl.Items.Insert(0, itemA); } }