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 BindPositionRank(DropDownList ddl, bool isDefault) { Biz_PositionRanks position = new Biz_PositionRanks(); DataSet ds = position.GetPositionRanks(); ddl.DataValueField = "POS_RNK_ID"; ddl.DataTextField = "POS_RNK_NAME"; ddl.DataSource = ds; ddl.DataBind(); if (isDefault) { ListItem itemA = new ListItem("----------", "-"); ddl.Items.Insert(0, itemA); } }
protected void doBindEstEmpList() { Biz_Est_Data bizEstData = new Biz_Est_Data(); DataTable dt = bizEstData.GetEstData(COMP_ID , EST_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , 0 , "" , 0 , TGT_EMP_ID); dt.Columns.Add("EST_DEPT_NAME"); dt.Columns.Add("EST_EMP_NAME"); dt.Columns.Add("EST_POS_CLS"); dt.Columns.Add("EST_POS_RNK"); dt.Columns.Add("ESTTERM_STEP_NAME"); dt = DataTypeUtility.FilterSortDataTable(dt, "ESTTERM_STEP_ID=2 OR ESTTERM_STEP_ID=3", "ESTTERM_STEP_ID ASC"); for (int i = 0; i < dt.Rows.Count; i++) { int est_dept_id = DataTypeUtility.GetToInt32(dt.Rows[i]["EST_DEPT_ID"]); int est_emp_id = DataTypeUtility.GetToInt32(dt.Rows[i]["EST_EMP_ID"]); Biz_EmpInfos bizEmpInfo = new Biz_EmpInfos(est_emp_id); Biz_Com_Dept_Info bizDeptInfo = new Biz_Com_Dept_Info(est_dept_id); string est_dept_name = DataTypeUtility.GetString(bizDeptInfo.DEPT_NAME); string est_emp_name = DataTypeUtility.GetString(bizEmpInfo.Emp_Name); Biz_PositionClasses bizPosCls = new Biz_PositionClasses(bizEmpInfo.Position_Class_Code); Biz_PositionRanks bizPosRnk = new Biz_PositionRanks(bizEmpInfo.Position_Rank_Code); string est_pos_cls = DataTypeUtility.GetString(bizPosCls.Pos_Cls_Name); string est_pos_rnk = DataTypeUtility.GetString(bizPosRnk.Pos_Rnk_Name); dt.Rows[i]["EST_DEPT_NAME"] = est_dept_name; dt.Rows[i]["EST_EMP_NAME"] = est_emp_name; dt.Rows[i]["EST_POS_CLS"] = est_pos_cls; dt.Rows[i]["EST_POS_RNK"] = est_pos_rnk; int estterm_step_id = DataTypeUtility.GetToInt32(dt.Rows[i]["ESTTERM_STEP_ID"]); string estterm_step_name = ""; if (estterm_step_id == 2) { estterm_step_name = "1차 평가자"; } else if (estterm_step_id == 3) { estterm_step_name = "2차 평가자"; } dt.Rows[i]["ESTTERM_STEP_NAME"] = estterm_step_name; } ugrdEstEmpList.Clear(); ugrdEstEmpList.DataSource = dt; ugrdEstEmpList.DataBind(); }