protected void Page_Load(object sender, System.EventArgs e) { if (!Page.IsPostBack) { DropDownListCommom.BindComp(ddlCompID, lblCompTitle); DropDownListCommom.BindDefaultValue(ddlQObjID, "----------", ""); DropDownListCommom.BindDefaultValue(ddlQSbjID, "----------", ""); TextBoxCommon.SetOnlyInteger(txtNum); TextBoxCommon.SetOnlyPercent(txtPoint); ibnSearch.Attributes.Add("onclick", "return Search();"); ibnSearchQObjID.Attributes.Add("onclick", "return SearchQObjID();"); btnNew.Attributes.Add("onclick", "return chkOK();"); rblMode.Attributes.Add("onclick", "chkRBtn();"); btnDelete.Attributes.Add("onclick", "return chkDelete();"); ddlQObjID.Attributes.Add("onchange", "GetDataSet('GetDataSet.aspx','ddlQSbjID','Q_SBJ_NAME','Q_SBJ_ID', 'Survey', 'B', this.value );"); txtQItmName.Attributes["onkeypress"] = "if (event.keyCode == 13 && chkOK()) {" + Page.ClientScript.GetPostBackEventReference(ibnSearch, "") + ";return false;}"; txtNum.Attributes["onkeypress"] = "if (event.keyCode == 13 && chkOK()) {" + Page.ClientScript.GetPostBackEventReference(ibnSearch, "") + ";return false;}"; txtPoint.Attributes["onkeypress"] = "if (event.keyCode == 13 && chkOK()) {" + Page.ClientScript.GetPostBackEventReference(ibnSearch, "") + ";return false;}"; } COMP_ID = WebUtility.GetIntByValueDropDownList(ddlCompID); ltrScript.Text = ""; }
private void DoInitControl() { rblVISIBLE_YN.Items.Add(new ListItem("보이기", "Y")); rblVISIBLE_YN.Items.Add(new ListItem("숨기기", "N")); rblUSE_YN.Items.Add(new ListItem("사용함", "Y")); rblUSE_YN.Items.Add(new ListItem("사용안함", "N")); ddlTYPE.Items.Insert(0, new ListItem("필수", "FIXEDKEY")); ddlTYPE.Items.Insert(1, new ListItem("사용자정의", "USERKEY")); ddlALIGN.Items.Insert(0, new ListItem("Left", "Left")); ddlALIGN.Items.Insert(1, new ListItem("Center", "Center")); ddlALIGN.Items.Insert(2, new ListItem("Right", "Right")); ddlDATATYPE.Items.Insert(0, new ListItem("::선택::", "")); ddlDATATYPE.Items.Insert(1, new ListItem("System.String", "System.String")); ddlDATATYPE.Items.Insert(2, new ListItem("System.Char", "System.Char")); ddlDATATYPE.Items.Insert(3, new ListItem("System.DateTime", "System.DateTime")); ddlDATATYPE.Items.Insert(4, new ListItem("System.Decimal", "System.Decimal")); ddlDATATYPE.Items.Insert(5, new ListItem("System.Double", "System.Double")); ddlDATATYPE.Items.Insert(6, new ListItem("System.Int32", "System.Int32")); ddlPROCTYPE.Items.Insert(0, new ListItem("대상", "Y")); ddlPROCTYPE.Items.Insert(1, new ListItem("대상아님", "N")); TextBoxCommon.SetOnlyInteger(txtCOL_WIDTH); TextBoxCommon.SetOnlyInteger(txtCOL_ORDER); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DropDownListCommom.BindComp(ddlCompID, lblCompTitle); TextBoxCommon.SetOnlyInteger(txtWidth); TextBoxCommon.SetOnlyInteger(txtSeq); RadioButtonListCommom.BindUseYN(rbnVisibleYN); RadioButtonListCommom.BindUseYN(rbnColEmpVisibleYN); //RadioButtonListCommom.BindUseYN(rbnGradeToPointVisibleYN); //RadioButtonListCommom.BindUseYN(rbnEstTermSubVisibleYN); //RadioButtonListCommom.BindUseYN(rbnEstTermStepVisibleYN); DropDownListCommom.BindColumnStyle(ddlColStyleID, false); MakeData(ddlHAlign, halignList); MakeData(ddlDataType, dataTypeList); ButtonStatusInit(); ibnSearch.Attributes.Add("onclick", "return CheckForm();"); ibnCheckID.Attributes.Add("onclick", "return CheckID();"); ibnNew.Attributes.Add("onclick", "return CheckForm();"); ibnSave.Attributes.Add("onclick", "return SaveCheckForm();"); ibnDelete.Attributes.Add("onclick", "return ConfirmYN();"); } COMP_ID = WebUtility.GetIntByValueDropDownList(ddlCompID); EST_ID = hdfEstID.Value; ltrScript.Text = string.Empty; }
protected void Page_Load(object sender, EventArgs e) { EST_ID = ""; ESTTERM_SUB_ID = 0; if (!Page.IsPostBack) { DropDownListCommom.BindComp(ddlCompID, lblCompTitle); DropDownListCommom.BindEstTerm(ddlEstTermRefID); DropDownListCommom.BindEstScopeUnit(ddlScopeUnitID); RadioButtonListCommom.BindPointGradeType(rblPointGradeType); TextBoxCommon.SetOnlyPercent(txtScope); BindCtrlInfo(WebUtility.GetIntByValueDropDownList(ddlCompID) , WebUtility.GetIntByValueDropDownList(ddlEstTermRefID) , WebUtility.GetIntByValueDropDownList(ddlEstTermSubID) , WebUtility.GetByValueRadioButtonList(rblPointGradeType)); ibnSave.Attributes.Add("onclick", "return ValidCheck();"); SetEstJobID(); ButtonStatusInit(); } COMP_ID = WebUtility.GetIntByValueDropDownList(ddlCompID); ESTTERM_REF_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermRefID); CTRL_ID = hdfCtlID.Value; POINT_GRADE_TYPE = WebUtility.GetByValueRadioButtonList(rblPointGradeType); ltrScript.Text = ""; }
protected void uGridSub_InitializeRow(object sender, RowEventArgs e) { DataRowView drw = (DataRowView)e.Data; TemplatedColumn ckb_use_yn = (TemplatedColumn)e.Row.Band.Columns.FromKey("USE_YN"); CheckBox ckbUseYN = (CheckBox)((CellItem)ckb_use_yn.CellItems[e.Row.BandIndex]).FindControl("cBox"); TemplatedColumn weight_col = (TemplatedColumn)e.Row.Band.Columns.FromKey("WEIGHT"); TextBox txtWeight = (TextBox)((CellItem)weight_col.CellItems[e.Row.BandIndex]).FindControl("txtWeight"); TextBoxCommon.SetOnlyPercent(txtWeight); DataRow[] drArr = DT_ESTTERM_SUB_MAP.Select(string.Format(@"COMP_ID = {0} AND EST_ID = '{1}' AND ESTTERM_SUB_ID = {2}" , COMP_ID , TreeView1.SelectedValue , drw["ESTTERM_SUB_ID"])); if (drArr.Length > 0) { ckbUseYN.Checked = true; ckbUseYN.Attributes.Add("onclick", string.Format("enableCheckBox('{0}', '', '{1}')", ckbUseYN.ClientID, txtWeight.ClientID)); txtWeight.Text = drArr[0]["WEIGHT"].ToString(); //e.Row.Style.BackColor = Color.FromName("#FFFFFF"); } else { ckbUseYN.Checked = false; txtWeight.Text = ""; //e.Row.Style.BackColor = Color.FromName("#EBEBEB"); } }
private void NotPostBackSetting() { TextBoxCommon.SetOnlyInteger(txtSortOrder); this.SetButton(); this.SetFormData(); }
protected void UltraWebGrid1_InitializeRow(object sender, RowEventArgs e) { DataRowView drw = (DataRowView)e.Data; TemplatedColumn weight_col = (TemplatedColumn)e.Row.Band.Columns.FromKey("TXT_WEIGHT"); TextBox txtWeight = (TextBox)((CellItem)weight_col.CellItems[e.Row.BandIndex]).FindControl("txtWeightDept"); TextBoxCommon.SetOnlyPercent(txtWeight); DataRow[] drArr = _dtEstDetail.Select(string.Format(@"ESTTERM_REF_ID = {0} AND DEPT_REF_ID = {1} AND EST_ID = '{2}'" , ESTTERM_REF_ID , drw["DEPT_REF_ID"] , EST_ID)); if (drArr.Length > 0) { txtWeight.Text = drArr[0]["WEIGHT"].ToString(); if (drArr[0]["WEIGHT"].ToString().Length == 0) { e.Row.Cells.FromKey("STATUS").Value = "<img src='../images/icon/est_i03.gif'>"; } else { e.Row.Cells.FromKey("STATUS").Value = "<img src='../images/icon/est_i02.gif'>"; } } else { e.Row.Cells.FromKey("STATUS").Value = "<img src='../images/icon/est_i03.gif'>"; } }
protected void Page_Load(object sender, EventArgs e) { COMP_ID = WebUtility.GetRequestByInt("COMP_ID"); EST_ID = WebUtility.GetRequest("EST_ID"); ESTTERM_REF_ID = WebUtility.GetRequestByInt("ESTTERM_REF_ID"); WEIGHT_TYPE = WebUtility.GetRequest("WEIGHT_TYPE"); if (!Page.IsPostBack) { EST_JOB_ID = "JOB_15"; View(COMP_ID); TextBoxCommon.SetOnlyPercent(txtWeightAll); TextBoxCommon.SetOnlyPercent(txtWeightPos); ibnConfirm1.Attributes.Add("onclick", "return confirm('설정한 평가방법을 확정하시겠습니까?')"); ibnConfirmCancel1.Attributes.Add("onclick", "return confirm('확정을 취소하시겠습니까?')"); ibnConfirm2.Attributes.Add("onclick", "return confirm('설정한 평가방법을 확정하시겠습니까?')"); ibnConfirmCancel2.Attributes.Add("onclick", "return confirm('확정을 취소하시겠습니까?')"); ibnSavePosAll.Attributes.Add("onclick", "return confirm('현재 설정을 모든 부서에 일괄 적용하시겠습니까?')"); ibnSaveAll2.Attributes.Add("onclick", "return confirm('현재 설정을 모든 부서에 일괄 적용하시겠습니까?')"); ibnRemove.Attributes.Add("onclick", "return confirm('삭제하시겠습니까?')"); ibnSave2.Attributes.Add("onclick", "return confirm('저장하시겠습니까?')"); ibnSave3.Attributes.Add("onclick", "return confirm('저장하시겠습니까?')"); ibnInit2.Attributes.Add("onclick", "return confirm('선택된 부서를 초기화 하시겠습니까?')"); } Biz_Positions positions = new Biz_Positions(); dtPositionAll = positions.GetPositionAll(); ltrScript.Text = ""; }
protected void UltraWebGrid1_InitializeRow(object sender, RowEventArgs e) { DataRowView drw = (DataRowView)e.Data; // DDL - DDLSCALE_ID TemplatedColumn tcol_ScaleId = (TemplatedColumn)e.Row.Band.Columns.FromKey("DDLSCALE_ID"); DropDownList ddl_ScaleId = (DropDownList)((CellItem)tcol_ScaleId.CellItems[e.Row.BandIndex]).FindControl("ddlScaleId"); DropDownListCommom.BindEstScaleInfo(ddl_ScaleId, COMP_ID); if (e.Row.Cells.FromKey("SCALE_ID").Value != null) { WebUtility.FindByValueDropDownList(ddl_ScaleId, e.Row.Cells.FromKey("SCALE_ID").Value); } // TXT - START_SCOPE TemplatedColumn tcol_StartScope = (TemplatedColumn)e.Row.Band.Columns.FromKey("TXTSTART_SCOPE"); TextBox txtStartScope = (TextBox)((CellItem)tcol_StartScope.CellItems[e.Row.BandIndex]).FindControl("txtStartScope"); if (e.Row.Cells.FromKey("START_SCOPE").Value != null) { txtStartScope.Text = e.Row.Cells.FromKey("START_SCOPE").Value.ToString(); } TextBoxCommon.SetOnlyInteger(txtStartScope); // TXT - END_SCOPE TemplatedColumn tcol_EndScope = (TemplatedColumn)e.Row.Band.Columns.FromKey("TXTEND_SCOPE"); TextBox txtEndScope = (TextBox)((CellItem)tcol_EndScope.CellItems[e.Row.BandIndex]).FindControl("txtEndScope"); if (e.Row.Cells.FromKey("END_SCOPE").Value != null) { txtEndScope.Text = e.Row.Cells.FromKey("END_SCOPE").Value.ToString(); } TextBoxCommon.SetOnlyInteger(txtEndScope); // DDL - SCOPE_UNIT_ID TemplatedColumn tcol_ScopeUnitId = (TemplatedColumn)e.Row.Band.Columns.FromKey("DDLSCOPE_UNIT_ID"); DropDownList ddl_ScopeUnitId = (DropDownList)((CellItem)tcol_ScopeUnitId.CellItems[e.Row.BandIndex]).FindControl("ddlScopeUnitId"); DropDownListCommom.BindEstScopeUnit(ddl_ScopeUnitId); if (e.Row.Cells.FromKey("SCOPE_UNIT_ID").Value != null) { WebUtility.FindByValueDropDownList(ddl_ScopeUnitId, e.Row.Cells.FromKey("SCOPE_UNIT_ID").Value); } // TXT - GRADE_TO_POINT TemplatedColumn tcol_GradeToPoint = (TemplatedColumn)e.Row.Band.Columns.FromKey("TXTGRADE_TO_POINT"); TextBox txtGradeToPoint = (TextBox)((CellItem)tcol_GradeToPoint.CellItems[e.Row.BandIndex]).FindControl("txtGradeToPoint"); if (e.Row.Cells.FromKey("GRADE_TO_POINT").Value != null) { txtGradeToPoint.Text = e.Row.Cells.FromKey("GRADE_TO_POINT").Value.ToString(); } TextBoxCommon.SetOnlyInteger(txtGradeToPoint); }
protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { DataRowView drw = (DataRowView)e.Data; TemplatedColumn ckb_col = (TemplatedColumn)e.Row.Band.Columns.FromKey("selchk"); CheckBox ckbSelect = (CheckBox)((CellItem)ckb_col.CellItems[e.Row.BandIndex]).FindControl("cBox"); TemplatedColumn lbl_col = (TemplatedColumn)e.Row.Band.Columns.FromKey("CTRL_POINT"); Label lblPoint = (Label)((CellItem)lbl_col.CellItems[e.Row.BandIndex]).FindControl("lblPoint"); TemplatedColumn txt_col = (TemplatedColumn)e.Row.Band.Columns.FromKey("CTRL_POINT"); TextBox txtPoint = (TextBox)((CellItem)txt_col.CellItems[e.Row.BandIndex]).FindControl("txtPoint"); TextBoxCommon.SetOnlyPercent(txtPoint); DataRow[] drArr = DT_EST_DATA.Select(string.Format(@"TGT_DEPT_ID = {0}" , drw["DEPT_REF_ID"])); if (drArr.Length > 0) { if (AllowUpdate) { ckbSelect.Visible = true; lblPoint.Visible = false; txtPoint.Visible = true; ckbSelect.Attributes.Add("onclick", string.Format("enableCheckBox('{0}', '{1}');", ckbSelect.ClientID, txtPoint.ClientID)); ckbSelect.Checked = false; txtPoint.Enabled = false; txtPoint.Text = DataTypeUtility.GetToDouble(drArr[0]["POINT"]).ToString(); e.Row.Cells.FromKey("TGT_DEPT_ID").Value = drw["DEPT_REF_ID"]; } else { ckbSelect.Visible = false; lblPoint.Visible = true; txtPoint.Visible = false; lblPoint.Text = DataTypeUtility.GetToDouble(drArr[0]["POINT"]).ToString(); } e.Row.Style.BackColor = Color.FromName("#DBDBDB"); } else { ckbSelect.Visible = true; lblPoint.Visible = false; txtPoint.Visible = true; ckbSelect.Attributes.Add("onclick", string.Format("enableCheckBox('{0}', '{1}');", ckbSelect.ClientID, txtPoint.ClientID)); ckbSelect.Checked = false; txtPoint.Enabled = false; e.Row.Cells.FromKey("TGT_DEPT_ID").Value = drw["DEPT_REF_ID"]; } }
private void NotPostBackSetting() { TextBoxCommon.SetOnlyInteger(txtMenuRefID); TextBoxCommon.SetOnlyInteger(txtUpMenuID); TextBoxCommon.SetOnlyInteger(txtMenuPriority); this.SetButton(); this.SetFormData(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { WebCommon.SetEstTermDropDownList(ddlEstTermInfo); WebCommon.SetEstTermDropDownList(ddlEstTermInfo2); DoSetPossibleCopay(); TextBoxCommon.SetOnlyInteger(txtMAX_VALUE); TextBoxCommon.SetOnlyInteger(txtMIN_VALUE); DoBinding(); } ltrScript.Text = ""; }
public void SetFormInit() { TextBoxCommon.SetOnlyInteger(txtProceedRate); Biz_Com_Code_Info objCode = new Biz_Com_Code_Info(); objCode.GetTaskType(ddlTaskType, 0, false, 100); wdcSchPlanStartDate.Attributes.Add("onkeypress", "return processKeyPress();"); wdcSchPlanEndDate.Attributes.Add("onkeypress", "return processKeyPress();"); wdcSchActualStartDate.Attributes.Add("onkeypress", "return processKeyPress();"); wdcSchActualEndDate.Attributes.Add("onkeypress", "return processKeyPress();"); txtProceedRate.Attributes.Add("onkeypress", "return processKeyPress();"); txtProceedRate.Attributes.Add("onBlur", "return CheckValue();"); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DropDownListCommom.BindComp(ddlCompID, lblCompTitle); DropDownListCommom.BindDefaultValue(ddlEstJobID, "----------", ""); TextBoxCommon.SetOnlyInteger(txtSortOrder); BindGrid(WebUtility.GetIntByValueDropDownList(ddlCompID)); ButtonStatusByInit(); ClearValueControls(); } COMP_ID = WebUtility.GetIntByValueDropDownList(ddlCompID); ltrScript.Text = string.Empty; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DropDownListCommom.BindComp(ddlCompID, lblCompTitle); TextBoxCommon.SetOnlyInteger(txtEstTermStepID); TextBoxCommon.SetOnlyPercent(txtWeight); TextBoxCommon.SetOnlyInteger(txtSortOrder); GridBinding(WebUtility.GetIntByValueDropDownList(ddlCompID)); ButtonStatusInit(); } COMP_ID = WebUtility.GetIntByValueDropDownList(ddlCompID); ltrScript.Text = ""; }
private void DoInitControl() { //조직상황판 RadioButtonListCommom.BindYN(rbOSF_ALLSIGNAL); rbOSF_ALLSIGNAL.Items[rbOSF_ALLSIGNAL.SelectedIndex].Selected = false; for (int i = 1; i < 20; i++) { ddlOSF_BACKGROUNDIMAGE.Items.Insert(i - 1, new ListItem(i.ToString(), "../images/org/bg_org_" + i.ToString() + ".jpg")); } ddlOSF_BACKGROUNDIMAGE.SelectedIndex = ddlOSF_BACKGROUNDIMAGE.Items.Count - 1; for (int i = 1; i < 4; i++) { ddlOSF_IMAGESET.Items.Insert(i - 1, new ListItem(i.ToString(), "../images/org/signal_set" + i.ToString() + (i == 2 ? "/icon_ania.gif" : "/icon_a.gif"))); } //이미지설정 //txtIMG_MENULOGO.Text = "../images/logo/logo.gif"; //txtIMG_COPYLOGO.Text = "../images/logo/copy.gif"; //txtIMG_LOGINLOGO.Text = "../images/login/login.gif"; //DB 유형 //txtDBT_OLAPSERVER.Text = "192.168.1.1"; //rbDBT_PROVIDERTYPE.Items.Insert(0, new ListItem("MSSQL", "MSSQL")); //rbDBT_PROVIDERTYPE.Items.Insert(1, new ListItem("ORACLE", "ORACLE")); //rbDBT_PROVIDERTYPE.Items.Insert(2, new ListItem("OLEDB", "OLEDB")); //rbDBT_PROVIDERTYPE.SelectedIndex = 0; //SSO rbSSO_USEYN.Items.Insert(0, new ListItem("예", "Y")); rbSSO_USEYN.Items.Insert(1, new ListItem("아니오", "N")); rbSSO_USEYN.Items.Insert(2, new ListItem("회사별", "E")); //rbSSO_USEYN.SelectedIndex = 1; //txtSSO_DEFAULTPAGEURL.Text = "~/base/login.aspx"; rbSSO_SERVERCHECKYN.Items.Insert(0, new ListItem("체크", "Y")); rbSSO_SERVERCHECKYN.Items.Insert(1, new ListItem("미체크", "N")); //rbSSO_SERVERCHECKYN.SelectedIndex = 1; rbSSO_IDPWDCONFIRMYN.Items.Insert(0, new ListItem("ID만 인증", "Y")); rbSSO_IDPWDCONFIRMYN.Items.Insert(1, new ListItem("ID,PWD 모두 인증", "Y")); //rbSSO_IDPWDCONFIRMYN.SelectedIndex = 1; //첨부파일 TextBoxCommon.SetOnlyInteger(txtFLS_S); TextBoxCommon.SetOnlyInteger(txtFLS_M); TextBoxCommon.SetOnlyInteger(txtFLS_L); //txtFLS_S.Text = "5120"; //txtFLS_M.Text = "10240"; //txtFLS_L.Text = "20480"; //패스워드 rbPWD_ENCRYPTYN.Items.Insert(0, new ListItem("예", "Y")); rbPWD_ENCRYPTYN.Items.Insert(1, new ListItem("아니오", "N")); //rbPWD_ENCRYPTYN.SelectedIndex = 1; rbPWD_VALIDATEYN.Items.Insert(0, new ListItem("예", "Y")); rbPWD_VALIDATEYN.Items.Insert(1, new ListItem("아니오", "N")); //rbPWD_VALIDATEYN.SelectedIndex = 1; //결재 rbAPP_EXTERNALYN.Items.Insert(0, new ListItem("사용함", "Y")); rbAPP_EXTERNALYN.Items.Insert(1, new ListItem("사용안함", "N")); //rbAPP_EXTERNALYN.SelectedIndex = 1; rbAPP_SELFYN.Items.Insert(0, new ListItem("사용함", "N")); rbAPP_SELFYN.Items.Insert(1, new ListItem("사용안함", "Y")); //rbAPP_SELFYN.SelectedIndex = 1; rbAPP_HISTORYYN.Items.Insert(0, new ListItem("사용함", "Y")); rbAPP_HISTORYYN.Items.Insert(1, new ListItem("사용안함", "N")); //rbAPP_HISTORYYN.SelectedIndex = 1; //기타 //1:종합DASH BOARD, 2:종합평정결과분석, 3:조직상황판, 4:전략체계도, 5:시스템경고화면(경동) rbETC_DEFAULTPAGE.Items.Insert(0, new ListItem("종합DASHBOARD", "1")); rbETC_DEFAULTPAGE.Items.Insert(1, new ListItem("종합평정결과분석", "2")); rbETC_DEFAULTPAGE.Items.Insert(2, new ListItem("조직상황판", "3")); rbETC_DEFAULTPAGE.Items.Insert(3, new ListItem("전략체계도", "4")); rbETC_DEFAULTPAGE.Items.Insert(4, new ListItem("시스템경고화면(경동)", "5")); //rbETC_DEFAULTPAGE.SelectedIndex = 3; //txtETC_FCKEDITORPATH.Text = "/Wherever/Directory/"; rbETC_WORKMAPYN.Items.Insert(0, new ListItem("예", "Y")); rbETC_WORKMAPYN.Items.Insert(1, new ListItem("아니오", "N")); //rbETC_WORKMAPYN.SelectedIndex = 1; }
private void ViewOne(int comp_id, string est_id) { Biz_EstInfos estInfo = new Biz_EstInfos(comp_id, est_id); txtEstID.Text = estInfo.Est_ID; txtEstName.Text = estInfo.Est_Name; if (estInfo.Up_Est_ID != DBNull.Value) { Biz_EstInfos upEstInfo = new Biz_EstInfos(comp_id, estInfo.Up_Est_ID.ToString()); txtUpEstID.Text = upEstInfo.Est_Name; hdfUpEstID.Value = estInfo.Up_Est_ID.ToString(); } txtHeaderColor.Text = estInfo.Header_Color; WebUtility.FindByValueRadioButtonList(rblFixedWeightUseYN, estInfo.Fixed_Weight_Use_YN); txtFixedWeight.Text = estInfo.Fixed_Weight.ToString(); TextBoxCommon.SetOnlyPercent(txtFixedWeight); rblFixedWeightUseYN_SelectedIndexChanged(rblFixedWeightUseYN, null); WebUtility.FindByValueRadioButtonList(rblGradeConfirmYN, estInfo.Grade_Confirm_YN); WebUtility.FindByValueRadioButtonList(rblBiasYN, estInfo.Bias_YN); WebUtility.FindByValueRadioButtonList(rblBiasDeptUseID, estInfo.Bias_Dept_Use_YN); if (estInfo.Tgt_Opinion_YN.Equals("Y") && estInfo.FeedBack_YN.Equals("N")) { WebUtility.FindByValueRadioButtonList(rblTgtSendType, "OPN"); } else if (estInfo.Tgt_Opinion_YN.Equals("N") && estInfo.FeedBack_YN.Equals("Y")) { WebUtility.FindByValueRadioButtonList(rblTgtSendType, "FBK"); } else { WebUtility.FindByValueRadioButtonList(rblTgtSendType, "N"); } WebUtility.FindByValueDropDownList(ddlPointCtrlStep, estInfo.Point_Ctrl_Step); WebUtility.FindByValueDropDownList(ddlGradeCtrlStep, estInfo.Grade_Ctrl_Step); WebUtility.FindByValueRadioButtonList(rblOwnerType, estInfo.Owner_Type); WebUtility.FindByValueRadioButtonList(rblEstStyle, estInfo.Est_Style_ID); if (estInfo.Link_Est_ID != "") { Biz_EstInfos lnkEstInfo = new Biz_EstInfos(comp_id, estInfo.Link_Est_ID); txtLinkEstID.Text = lnkEstInfo.Est_Name; hdfLinkEstID.Value = estInfo.Link_Est_ID; } WebUtility.FindByValueRadioButtonList(rblWeightType, estInfo.Weight_Type); WebUtility.FindByValueRadioButtonList(rblScaleType, estInfo.Scale_Type); WebUtility.FindByValueDropDownList(ddlStatusStyleID, estInfo.Status_Style_ID); WebUtility.FindByValueDropDownList(ddlQuestionStyleID, estInfo.Q_Style_ID); WebUtility.FindByValueDropDownList(ddlBiasTypeID, estInfo.Bias_Type_ID); WebUtility.FindByValueRadioButtonList(rblQItemDescUseYN, estInfo.Q_Item_Desc_Use_YN); WebUtility.FindByValueRadioButtonList(rblQTgtPosBizUseYN, estInfo.Q_Tgt_Pos_Biz_Use_YN); WebUtility.FindByValueRadioButtonList(rblAllStepVisibleYN, estInfo.All_Step_Visible_YN); WebUtility.FindByValueRadioButtonList(rblEmpComDeptYN, estInfo.Emp_Com_Dept_YN); WebUtility.FindByValueRadioButtonList(rblUseYN, estInfo.Use_YN); WebUtility.FindByValueRadioButtonList(rblVisiblePastPointYN, estInfo.Visible_Past_Point_YN.Trim()); WebUtility.FindByValueRadioButtonList(rblEstQTTMBOYN, estInfo.Est_Qtt_Mbo_YN.Trim()); WebUtility.FindByValueRadioButtonList(rblMboScoreEstimateYN, estInfo.Mbo_Score_Estimate_YN.Trim()); WebUtility.FindByValueRadioButtonList(rblDashBoardTYPE, estInfo.DashBoard_TYPE.Trim()); if (estInfo.DashBoard_TYPE.Trim() == "" || estInfo.DashBoard_TYPE.Trim() == "N") { rblDashBoardTYPE.Items.FindByValue("N").Selected = true; ddlDashBoardTYPE.Style.Add("display", "none"); } else { rblDashBoardTYPE.Items.FindByValue("Y").Selected = true; ddlDashBoardTYPE.Style.Add("display", "block"); WebUtility.FindByValueDropDownList(ddlDashBoardTYPE, estInfo.DashBoard_TYPE.Trim()); } //이전차수의 질의평가지 보이기 여부 WebUtility.FindByValueDropDownList(ddlPreviousStempYN, estInfo.Question_Previous_Step_YN.Trim()); if (estInfo.Q_Style_ID.Trim() == "" || estInfo.Q_Style_ID.Trim() == "BLK") { divQPSYN.Style.Add("display", "none"); } else { divQPSYN.Style.Add("display", "true"); } // 평가주기 바인딩 BindCblEstTermSub(comp_id, est_id); // 평가차수 바인딩 BindCblEstTermStep(comp_id, est_id); BindEstJob(comp_id, est_id); rblEstStyle_SelectedIndexChanged(null, null); rblBiasYN_SelectedIndexChanged(null, null); MicroBSC.Integration.EST.Biz.Biz_Est_Outer_Data_Proc_Info bizOuterDataProcInfo = new MicroBSC.Integration.EST.Biz.Biz_Est_Outer_Data_Proc_Info(); DataTable dtOuterDataProcInfo = bizOuterDataProcInfo.GetOuterDataProcInfo(comp_id , est_id).Tables[0]; if (dtOuterDataProcInfo.Rows.Count > 0) { txtQueryString.Text = DataTypeUtility.GetValue(dtOuterDataProcInfo.Rows[0]["QUERY_STRING"]); } }
private void BindingItem_P(DataListItemEventArgs e) { DataRowView dr = (DataRowView)e.Item.DataItem; string q_dfn_id = DataTypeUtility.GetValue(dr["Q_DFN_ID"]); string q_sbj_id = DataTypeUtility.GetValue(dr["Q_SBJ_ID"]); string q_obj_id = DataTypeUtility.GetValue(dr["Q_OBJ_ID"]); string q_sbj_define = DataTypeUtility.GetValue(dr["Q_SBJ_DEFINE"]); string q_sbj_desc = DataTypeUtility.GetValue(dr["Q_SBJ_DESC"]); double weight = DataTypeUtility.GetToDouble(dr["WEIGHT"]); Literal ltrDefine = e.Item.FindControl("ltrLevelDefine") as Literal; Literal ltrDesc = e.Item.FindControl("ltrLevelDesc") as Literal; RadioButtonList rBtnList = e.Item.FindControl("rBtnList") as RadioButtonList; TextBox txtValue = e.Item.FindControl("txtLevelValue") as TextBox; HiddenField hAttachNo = e.Item.FindControl("hAttachNo") as HiddenField; DropDownList ddlFileUpload = e.Item.FindControl("ddlFileUpload") as DropDownList; ImageButton ibnDownload = e.Item.FindControl("ibnDownload") as ImageButton; ImageButton iBtnAttach = e.Item.FindControl("iBtnAttach") as ImageButton; Literal ltrUpload = e.Item.FindControl("ltrUpload") as Literal; TextBox txtTextValue = e.Item.FindControl("txtLevelTextValue") as TextBox; TextBox txtOpinion = e.Item.FindControl("txtLevelOpinion") as TextBox; Literal ltrPointData = e.Item.FindControl("ltrLevelPointData") as Literal; Label lblCnt = e.Item.FindControl("lblCnt") as Label; TextBoxCommon.SetOnlyInteger(txtValue); ltrUpload.Text = string.Format("<a href='#null' onclick=\"mfUpload('{0}');\"><img src='../images/icon/icon_gr_po05.gif' align='absmiddle' border='0'/></a>", hAttachNo.ClientID); ibnDownload.CausesValidation = false; ibnDownload.CommandName = ddlFileUpload.UniqueID; ltrDefine.Text = q_sbj_define; ltrDesc.Text = q_sbj_desc; DropDownListCommom.BindDefaultValue(ddlFileUpload, "--------------------", ""); Biz_QuestionItems questionItems = new Biz_QuestionItems(); DataSet ds = questionItems.GetQuestionItem("", q_sbj_id, Q_OBJ_ID); if (ds.Tables[0].Rows.Count == 0) { rBtnList.Visible = false; txtValue.Visible = false; txtValue.Width = Unit.Percentage(100); } else if (ds.Tables[0].Rows[0]["SUBJECT_ITEM_YN"].ToString() == "1") { rBtnList.Visible = false; txtValue.Visible = true; txtValue.Width = Unit.Percentage(100); } else { // 평가자인지 피평가인지 따라 if (EST_TGT_TYPE.Equals("EST")) { ibnDownload.Visible = true; ltrUpload.Visible = false; } else if (EST_TGT_TYPE.Equals("TGT")) { ibnDownload.Visible = true; ltrUpload.Visible = true; rBtnList.Visible = false; txtOpinion.Visible = false; } txtValue.Visible = false; // 만약 질의항목에 설명을 표시할 경우 if (_q_item_desc_use_yn.Equals("Y")) { rBtnList.RepeatLayout = RepeatLayout.Table; rBtnList.DataTextField = "Q_ITEM_DESC"; } rBtnList.DataSource = ds; rBtnList.DataBind(); Biz_QuestionDatas questionDatas = new Biz_QuestionDatas(COMP_ID , EST_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , this.IESTTERM_STEP_PREVIOUS_SELECT , 0 , 0 , TGT_DEPT_ID , TGT_EMP_ID , q_sbj_id); // 데이타 바인딩 WebUtility.FindByValueRadioButtonList(rBtnList, questionDatas.Q_Itm_ID); TOTALPOINT += questionDatas.Point * weight; txtTextValue.Text = questionDatas.Text_Value; txtOpinion.Text = questionDatas.Opinion; ltrPointData.Text = DataTypeUtility.GetToInt32_String(questionDatas.Point, "##.#0"); hAttachNo.Value = questionDatas.Attach_NO; SetUploadFileInfo(hAttachNo.Value, ddlFileUpload); if (ddlFileUpload.Items.Count > 1) { lblCnt.Text = string.Format("({0}건)", ddlFileUpload.Items.Count - 1); } //----------------- 라디오버튼 유효성 검사 시작 ------------------- string clientIDs = ""; for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { if (i != 0) { clientIDs += ";"; } clientIDs += rBtnList.ClientID + "_" + i.ToString(); } VALID_SCRIPT += string.Format("if(ValidQuestion('{0}', '{1}') == false) return false;", dr["Q_SBJ_NAME"], clientIDs); //----------------- 라디오버튼 유효성 검사 끝 ------------------- } }
private void BindingItem(DataListItemEventArgs e) { DataRowView dr = (DataRowView)e.Item.DataItem; string q_sbj_id = DataTypeUtility.GetValue(dr["Q_SBJ_ID"]); string q_sbj_name = DataTypeUtility.GetValue(dr["Q_SBJ_NAME"]); string q_sbj_define = DataTypeUtility.GetValue(dr["Q_SBJ_DEFINE"]); double weight = DataTypeUtility.GetToDouble(dr["WEIGHT"]); quizWeight.Columns.Add(q_sbj_id, typeof(double)); if (quizWeight.Rows.Count == 0) { quizWeight.Rows.Add(weight / 100); } else { quizWeight.Rows[0][q_sbj_id] = weight / 100; } Literal ltrSbjName = e.Item.FindControl("ltrLevelSbjName") as Literal; Literal ltrSbjDefine = e.Item.FindControl("ltrLevelSbjDefine") as Literal; RadioButtonList rBtnList = e.Item.FindControl("rBtnList") as RadioButtonList; TextBox txtValue = e.Item.FindControl("txtLevelValue") as TextBox; HiddenField hdfSubItmYN = e.Item.FindControl("tmpSubItmYN") as HiddenField; Literal ltrPointData = e.Item.FindControl("ltrLevelPointData") as Literal; DataList dtList = e.Item.FindControl("DataList3") as DataList; HtmlTableCell tdHeader = e.Item.FindControl("tdHeader") as HtmlTableCell; HtmlTableCell tdContent = null; if (dtList == null) { tdContent = e.Item.FindControl("tdContent") as HtmlTableCell; } else { tdContent = dtList.FindControl("tdContent") as HtmlTableCell; } TextBoxCommon.SetOnlyPercent(txtValue); ltrSbjName.Text = q_sbj_name; ltrSbjDefine.Text = q_sbj_define; Biz_QuestionItems questionItems = new Biz_QuestionItems(); DataSet ds = questionItems.GetQuestionItem("", q_sbj_id, Q_OBJ_ID); SUBJECT_ITEM_YN = ds.Tables[0].Rows[0]["SUBJECT_ITEM_YN"].ToString(); hdfSubItmYN.Value = SUBJECT_ITEM_YN; if (ds.Tables[0].Rows.Count == 0) { rBtnList.Visible = false; txtValue.Visible = false; txtValue.Width = Unit.Percentage(100); } else if (SUBJECT_ITEM_YN == "1") { rBtnList.Visible = false; txtValue.Visible = true; txtValue.Width = Unit.Percentage(100); Biz_Prj_QuestionData questionDatas = new Biz_Prj_QuestionData(COMP_ID , EST_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , ESTTERM_STEP_ID , EST_DEPT_ID , EST_EMP_ID , PRJ_REF_ID , q_sbj_id); txtValueText = questionDatas.Text_Value; txtValue.Text = txtValueText; } else { rBtnList.Visible = true; txtValue.Visible = false; // 만약 질의항목에 설명을 표시할 경우 if (_q_item_desc_use_yn.Equals("Y")) { rBtnList.RepeatLayout = RepeatLayout.Table; rBtnList.DataTextField = "Q_ITEM_DESC"; tdHeader.Style.Add("width", "260px"); if (tdContent != null) { tdContent.Style.Add("width", "262px"); } } rBtnList.DataSource = ds; rBtnList.DataBind(); if (READ_ONLY_YN.Equals("N")) { //Biz_Prj_QuestionData questionDatas = new Biz_Prj_QuestionData(COMP_ID // , EST_ID // , ESTTERM_REF_ID // , ESTTERM_SUB_ID // , ESTTERM_STEP_ID // , EST_DEPT_ID // , EST_EMP_ID // , PRJ_REF_ID // , q_sbj_id); //// 데이타 바인딩 //WebUtility.FindByValueRadioButtonList(rBtnList, questionDatas.Q_Itm_ID); Biz_Prj_QuestionData questionDatas = new Biz_Prj_QuestionData(COMP_ID , EST_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , ESTTERM_STEP_ID , EST_DEPT_ID , EST_EMP_ID , TGT_EMP_ID , PRJ_REF_ID , q_sbj_id); // 데이타 바인딩 WebUtility.FindByValueRadioButtonList(rBtnList, questionDatas.Q_Itm_ID); groupNumber += questionDatas.Point; if (questionDatas.Point.Equals(0)) { noneSelectCount = noneSelectCount + 1; } if (questionDatas.Point > 0) { ltrPointData.Text = "<font color=#BF0000>" + DataTypeUtility.GetToInt32_String(questionDatas.Point, "##.#0") + "</font>점"; //TOTALPOINT += questionDatas.Point * weight; } //----------------- 라디오버튼 유효성 검사 시작 ------------------- string clientIDs = ""; for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { if (i != 0) { clientIDs += ";"; } clientIDs += rBtnList.ClientID + "_" + i.ToString(); } VALID_SCRIPT += string.Format("if(ValidQuestion('{0}', '{1}') == false) return false;", dr["Q_SBJ_NAME"], clientIDs); //----------------- 라디오버튼 유효성 검사 끝 ------------------- } } }
protected void Page_Load(object sender, EventArgs e) { CTRL_ID = WebUtility.GetRequest("CTRL_ID"); COMP_ID = WebUtility.GetRequestByInt("COMP_ID"); EST_ID = WebUtility.GetRequest("EST_ID"); ESTTERM_REF_ID = WebUtility.GetRequestByInt("ESTTERM_REF_ID"); ESTTERM_SUB_ID = WebUtility.GetRequestByInt("ESTTERM_SUB_ID"); POINT_GRADE_TYPE = WebUtility.GetRequest("POINT_GRADE_TYPE"); EST_DEPT_ID = WebUtility.GetRequestByInt("EST_DEPT_ID"); EST_EMP_ID = WebUtility.GetRequestByInt("EST_EMP_ID"); CTRL_EMP_ID = WebUtility.GetRequestByInt("CTRL_EMP_ID"); TGT_DEPT_ID = WebUtility.GetRequestByInt("TGT_DEPT_ID"); TGT_EMP_ID = WebUtility.GetRequestByInt("TGT_EMP_ID"); if (!Page.IsPostBack) { if (CTRL_EMP_ID != EMP_REF_ID) { Response.Write(JSHelper.GetAlertScript("조정자와 접근한 조정 페이지의 권한자와 같지 않습니다.", true)); } // 현재 평가의 주체가 부서/ 사원인지 구분 if (TGT_EMP_ID >= -1) { trTgtDeptName.Visible = true; trTgtEmpName.Visible = false; Biz_DeptInfos deptInfo = new Biz_DeptInfos(TGT_DEPT_ID); lblTgtDeptName.Text = deptInfo.Dept_Name; } else { trTgtDeptName.Visible = false; trTgtEmpName.Visible = true; Biz_DeptInfos deptInfo = new Biz_DeptInfos(TGT_DEPT_ID); Biz_EmpInfos empInfo = new Biz_EmpInfos(TGT_EMP_ID); lblTgtEmpName.Text = string.Format("{0} / {1}", deptInfo.Dept_Name, empInfo.Emp_Name); } Biz_Datas data = new Biz_Datas(COMP_ID , EST_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , ESTTERM_STEP_ID , EST_DEPT_ID , EST_EMP_ID , TGT_DEPT_ID , TGT_EMP_ID); Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, EST_ID); Biz_CtrlInfos ctrlInfo = new Biz_CtrlInfos(CTRL_ID); if (ctrlInfo.Ctrl_Emp_ID == CTRL_EMP_ID) { ibnSave.Visible = true; } else { BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnSave); ibnSave.Visible = false; } if (ctrlInfo.Ctrl_Emp_ID == CTRL_EMP_ID && ctrlInfo.Confirm_Emp_YN == "Y") { ibnCtrlConfirm.Visible = true; } else { BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnCtrlConfirm); ibnCtrlConfirm.Visible = false; } if (POINT_GRADE_TYPE.Equals("PNT")) { TextBoxCommon.SetOnlyPercent(txtCtrlPoint); imgTitle.Src = "../images/title/popup_t73.gif"; trCurPoint.Visible = true; trCurGrade.Visible = false; trCtrlPoint.Visible = true; trCtrlGrade.Visible = false; UltraWebGrid1.Bands[0].Columns.FromKey("CTRL_GRADE_NAME").Hidden = true; lblPoint.Text = data.Point.ToString("#,##0.00"); lblCtrlMsg.Text = string.Format("- {0}는 {1}차까지 점수조정 가능합니다.", estInfo.Est_Name, estInfo.Point_Ctrl_Step); hdfCtrlStep.Value = estInfo.Point_Ctrl_Step.ToString(); } else if (POINT_GRADE_TYPE.Equals("GRD")) { DropDownListCommom.BindGrade(ddlCtrlGradeID, COMP_ID); WebUtility.FindByValueDropDownList(ddlCtrlGradeID, data.Grade_ID); imgTitle.Src = "../images/title/popup_t72.gif"; trCurPoint.Visible = false; trCurGrade.Visible = true; trCtrlPoint.Visible = false; trCtrlGrade.Visible = true; UltraWebGrid1.Bands[0].Columns.FromKey("CTRL_POINT").Hidden = true; lblGrade.Text = new Biz_Grades(COMP_ID, data.Grade_ID).Grade_Name; lblCtrlMsg.Text = string.Format("- {0}는 {1}차까지 등급조정 가능합니다.", estInfo.Est_Name, estInfo.Grade_Ctrl_Step); hdfCtrlStep.Value = estInfo.Grade_Ctrl_Step.ToString(); } else { ltrScript.Text = JSHelper.GetAlertScript("조정 타입이 없습니다.", true); } GridBinding(); } }