protected void ibtnDelete_Click(object sender, ImageClickEventArgs e) { string[] strCode = new string[] { "SCORE_CODE" }; DataTable dtTemp = new DataTable(); dtTemp.Columns.Add("SCORE_CODE", typeof(string)); dtTemp = UltraGridUtility.GetDataTableByCheckValue(UltraWebGrid1, "cBox", "selchk", strCode, dtTemp); if (dtTemp.Rows.Count > 0) { Biz_EstDeptOrgScoreInfos bizEDOS = new Biz_EstDeptOrgScoreInfos(); if (bizEDOS.DeleteEDOS(WebUtility.GetIntByValueDropDownList(ddlEstTermInfo), dtTemp)) { DoBinding(); ltrScript.Text = JSHelper.GetAlertScript("삭제하였습니다."); } else { ltrScript.Text = JSHelper.GetAlertScript("삭제실패!"); } } else { ltrScript.Text = JSHelper.GetAlertScript("선택하세요!"); } }
public string GetTotalNumer() { string strImg = ""; estDeptOrgScore_e = new Biz_EstDeptOrgScoreInfos("E"); estDeptOrgScore_g = new Biz_EstDeptOrgScoreInfos("G"); estDeptOrgScore_w = new Biz_EstDeptOrgScoreInfos("W"); estDeptOrgScore_a = new Biz_EstDeptOrgScoreInfos("A"); estDeptOrgScore_u = new Biz_EstDeptOrgScoreInfos("U"); if ((estDeptOrgScore_u.Min_Value <= dTotalPoint) && (estDeptOrgScore_u.Max_Value > dTotalPoint)) { strImg = "<img alt='Unmeasured' src='../images/icon_u.gif' style='vertical-align:middle;' border='0' />"; } else if ((estDeptOrgScore_a.Min_Value <= dTotalPoint) && (estDeptOrgScore_a.Max_Value > dTotalPoint)) { strImg = "<img alt='Alert' src='../images/icon_a.gif' style='vertical-align:middle;' border='0' />"; } else if ((estDeptOrgScore_w.Min_Value <= dTotalPoint) && (estDeptOrgScore_w.Max_Value > dTotalPoint)) { strImg = "<img alt='Watching' src='../images/icon_w.gif' style='vertical-align:middle;' border='0' />"; } else if ((estDeptOrgScore_g.Min_Value <= dTotalPoint) && (estDeptOrgScore_g.Max_Value > dTotalPoint)) { strImg = "<img alt='Good' src='../images/icon_g.gif' style='vertical-align:middle;' border='0' />"; } else if ((estDeptOrgScore_e.Min_Value <= dTotalPoint) && (estDeptOrgScore_e.Max_Value >= dTotalPoint)) { strImg = "<img alt='Excellent' src='../images/icon_e.gif' style='vertical-align:middle;' border='0' />"; } return(strImg); }
private void DoSetPossibleCopay() { this.IPOSSIBLE_COPY = true; Biz_EstDeptOrgScoreInfos bizEDOS = new Biz_EstDeptOrgScoreInfos(); DataTable dt = bizEDOS.GetEstDeptOrgScoreInfos(WebUtility.GetIntByValueDropDownList(ddlEstTermInfo2)).Tables[0]; this.IPOSSIBLE_COPY = (dt.Rows.Count > 0 ? false : true); }
private void DoBinding() { Biz_EstDeptOrgScoreInfos bizEDOS = new Biz_EstDeptOrgScoreInfos(); DataTable dt = bizEDOS.GetEstDeptOrgScoreInfos(PageUtility.GetIntByValueDropDownList(ddlEstTermInfo)).Tables[0]; UltraWebGrid1.Clear(); UltraWebGrid1.DataSource = dt; UltraWebGrid1.DataBind(); }
protected void ibtnSave_Click(object sender, ImageClickEventArgs e) { Biz_EstDeptOrgScoreInfos bizEDOS = new Biz_EstDeptOrgScoreInfos(); if (bizEDOS.InsertEDOS(WebUtility.GetIntByValueDropDownList(ddlEstTermInfo), txtSCORE_CODE.Text.Trim(), txtSCORE_NAME.Text.Trim(), DataTypeUtility.GetToDouble(txtMIN_VALUE.Text), DataTypeUtility.GetToDouble(txtMAX_VALUE.Text), gUserInfo.Emp_Ref_ID)) { DoBinding(); ltrScript.Text = JSHelper.GetAlertScript("저장하였습니다."); } else { ltrScript.Text = JSHelper.GetAlertScript("저장실패!"); } }
private void DoCopyStg() { Biz_EstDeptOrgScoreInfos bizEDOS = new Biz_EstDeptOrgScoreInfos(); if (bizEDOS.CopyEDOS(WebUtility.GetIntByValueDropDownList(ddlEstTermInfo), WebUtility.GetIntByValueDropDownList(ddlEstTermInfo2), gUserInfo.Emp_Ref_ID)) { PageUtility.AlertMessage("복사하였습니다."); } else { PageUtility.AlertMessage("복사 실패!"); } DoSetPossibleCopay(); }