private void DoBinding() { Biz_BiasDatas bizBias = new Biz_BiasDatas(); DataTable dt = bizBias.GetBiasGroup(this.ICOMP_ID, this.IEST_ID, ""); ugrdGroup.DataSource = dt; ugrdGroup.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { YEAR_YN = WebUtility.GetRequest("YEAR_YN", "N"); MERGE_YN = WebUtility.GetRequest("MERGE_YN", "N"); EST_JOB_IDS = WebUtility.GetRequest("EST_JOB_IDS"); //BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnApplyBiasPoint); //BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnCalcBiasPoint); if (!Page.IsPostBack) { this.IEST_ID = WebUtility.GetRequest("EST_ID", ""); this.IEST_JOB_IDS = WebUtility.GetRequest("EST_JOB_IDS", ""); lblCalc1.Font.Size = lblCalc2.Font.Size = FontUnit.Point(8); DropDownListCommom.BindComp(ddlCompID, lblCompTitle); DropDownListCommom.BindEstTerm(ddlEstTermRefID); DropDownListCommom.BindDefaultValue(ddlEstTermSubID, "----------", ""); DropDownListCommom.BindDefaultValue(ddlEstTermStepID, "----------", ""); if (this.ICOMP_ID == 0) { this.ICOMP_ID = WebUtility.GetIntByValueDropDownList(ddlCompID); } if (this.IESTTERM_REF_ID == 0) { this.IESTTERM_REF_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermRefID); } DropDownListCommom.BindEstTermSub(ddlEstTermSubID, this.ICOMP_ID, this.IEST_ID, ""); DropDownListCommom.BindEstTermStep(ddlEstTermStepID, this.ICOMP_ID, this.IEST_ID); if (this.IESTTERM_SUB_ID == 0) { this.IESTTERM_SUB_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermSubID); } if (this.IESTTERM_STEP_ID == 0) { this.IESTTERM_STEP_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermStepID); } if (MERGE_YN.Equals("Y")) { this.IESTTERM_STEP_ID = BizUtility.GetEstTermStepIDByMergeYN(COMP_ID); } else { if (ESTTERM_STEP_ALL_USE_YN.Equals("Y")) { this.IESTTERM_STEP_ID = 0; } else { this.IESTTERM_STEP_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermStepID); } } //평가마감되었는지 확인 BizUtility.SetButtonVisibleByEstJobID(this.IEST_JOB_IDS , ibtnCalc , this.ICOMP_ID , this.IEST_ID , this.IESTTERM_REF_ID , this.IESTTERM_SUB_ID , this.IESTTERM_STEP_ID); ibtnInsert.Visible = ddlPointType.Visible = ibtnCalc.Visible;//ibtnConfirm.Visible = Biz_BiasDatas bizBiasData = new Biz_BiasDatas(); DataTable dtGroup = bizBiasData.GetBiasGroup(this.ICOMP_ID, this.IEST_ID, "Y"); ddlGroup.DataTextField = "BIAS_GRP_NM"; ddlGroup.DataValueField = "BIAS_GRP_ID"; ddlGroup.DataSource = dtGroup; ddlGroup.DataBind(); ddlGroup.Width = Unit.Pixel(200); this.IBIAS_GRP_ID = WebUtility.GetIntByValueDropDownList(ddlGroup); DataTable dtPointType = bizBiasData.GetBiasColumns(this.ICOMP_ID, this.IEST_ID, "Y", "Y"); if (dtPointType.Rows.Count > 0) { DataRow[] drPointType = dtPointType.Select("COL_TYPE = 'USERKEY' AND PROC_TYPE = 'Y'", "COL_ORDER ASC"); foreach (DataRow dr in drPointType) { ddlPointType.Items.Add(new ListItem(dr["COL_NAME"].ToString(), dr["COL_KEY"].ToString())); } if (ddlPointType.Items.Count > 0) { ddlPointType.Items[0].Selected = true; } } if (!this.IEST_ID.Equals("")) { DoBindingData(); } else { ibtnCalc.Visible = ddlPointType.Visible = ibtnInsert.Visible = ibtnDownload.Visible = false;//ibtnConfirm.Visible = } DoBindingBiasMethod(); } if (YEAR_YN.Equals("Y")) { this.IESTTERM_SUB_ID = BizUtility.GetEstTermSubIDByYearYN(COMP_ID); } else { this.IESTTERM_SUB_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermSubID); } if (MERGE_YN.Equals("Y")) { this.IESTTERM_STEP_ID = BizUtility.GetEstTermStepIDByMergeYN(COMP_ID); } else { this.IESTTERM_STEP_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermStepID); } DoSortColumn(); if (ddlPointType.Items.Count == 0) { ibtnInsert.Visible = ddlPointType.Visible = false;//ibtnConfirm.Visible = } ltrScript.Text = ""; }