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 NotPostBackSetting() { TextBoxCommon.SetOnlyInteger(txtSortOrder); this.SetButton(); this.SetFormData(); }
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; }
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 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); }
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 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); //----------------- 라디오버튼 유효성 검사 끝 ------------------- } }