private void InitControl() { try { base.pRender(this.Page, new object[, ] { { this.btnRetrieve, "I" }, { this.btnAdd, "E" }, { this.btnSave, "E" } }); string[] xParams = new string[1]; string xSql = string.Empty; DataTable xDt = null; //course type xParams = new string[2]; xParams[0] = "0019"; xParams[1] = "Y"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.APPLICATION, "CLT.WEB.UI.LMS.APPLICATION", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlApprovalFlg, xDt); } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************* * Function name : BindDropDownList * Purpose : DropDownList Bind 메서드 * * Input : void * Output : void *************************************************************/ #region BindDropDownList() public void BindDropDownList() { try { string[] xParams = new string[2]; string xSql = string.Empty; DataTable xDt = null; // 회사구분 (그룹사, 사업자 위수탁) xParams[0] = "0061"; xParams[1] = "Y"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.COMMUNITY, "CLT.WEB.UI.LMS.COMMUNITY", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlNoticeType, xDt); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
/************************************************************ * Function name : BindDropDownList * Purpose : DropDownList 데이터 바인딩을 위한 처리 * Input : void * Output : void *************************************************************/ #region BindDropDownList() private void BindDropDownList() { try { string[] xParams = new string[2]; string xSql = string.Empty; DataTable xDt = null; // 직급(직위) 해당 직급은 법인사 관리자에게만 해당되며, 인사시스템에서 사용하는 직급이아님!(사장, 과장, 부장 등...) xParams[0] = "0023"; xParams[1] = "Y"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.MANAGE, "CLT.WEB.UI.LMS.MANAGE", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlComapnyduty, xDt); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
/************************************************************ * Function name : BindDropDownList * Purpose : DropDownList 데이터 바인딩을 위한 처리 * Input : void * Output : void *************************************************************/ #region private void BindDropDownList() private void BindDropDownList() { try { string[] xParams = new string[1]; string xSql = string.Empty; DataTable xDt = null; //language xParams[0] = "0017"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.CURRICULUM, "CLT.WEB.UI.LMS.CURR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlLang, xDt); //classification xParams[0] = "0042"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.CURRICULUM, "CLT.WEB.UI.LMS.CURR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlClassification, xDt); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
/************************************************************* * Function name : BindDropDownList * Purpose : DropDownList Bind 메서드 * Input : void * Output : void *************************************************************/ #region BindDropDownList() public void BindDropDownList() { try { string[] xParams = new string[2]; string xSql = string.Empty; DataTable xDt = null; this.ddlGrade.Items.Add(new ListItem("", "")); this.ddlGrade.Items.Add(new ListItem("A", "A")); this.ddlGrade.Items.Add(new ListItem("B", "B")); this.ddlGrade.Items.Add(new ListItem("C", "C")); this.ddlGrade.Items.Add(new ListItem("D", "D")); // 직책(직급)코드 Dutystep xParams[1] = "Y"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetDutystepCodeInfo", LMS_SYSTEM.MANAGE, "CLT.WEB.UI.LMS.MANAGE", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlDutyStep, xDt, "step_name", "duty_step"); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
protected void grdItem_ItemDataBound(object seder, C1ItemEventArgs e) { try { DataRowView DRV = (DataRowView)e.Item.DataItem; // 직급 DropDownList ddlDutyStep = ((DropDownList)e.Item.FindControl("ddlDutyStep")); DropDownList ddlTraineeClass = ((DropDownList)e.Item.FindControl("ddlTraineeClass")); TextBox txtDate = (TextBox)e.Item.FindControl("txtAcquisition"); if (txtDate != null) { txtDate.Attributes.Add("onkeyup", "ChkDate(this);"); } if (ddlDutyStep != null) { WebControlHelper.SetDropDownList(ddlDutyStep, iDtDutystep, "step_name", "duty_step"); WebControlHelper.SetSelectText_DropDownList(ddlDutyStep, DRV["직급"].ToString()); } if (ddlTraineeClass != null) { WebControlHelper.SetDropDownList(ddlTraineeClass, iDtTraineeclass); WebControlHelper.SetSelectText_DropDownList(ddlTraineeClass, DRV["훈련생 구분"].ToString()); } } catch (Exception ex) { base.NotifyError(ex); } }
private void BindDDLApproval() { try { // 평가대상 if (!Util.IsNullOrEmptyObject(ddlStepGu.SelectedValue)) { string[] xParams = new string[1]; xParams[0] = ddlStepGu.SelectedValue; DataTable xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.APPR.vp_a_appraisal_md", "GetDtApprTarget", LMS_SYSTEM.CAPABILITY, "CLT.WEB.UI.LMS.APPR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlAppDutyStep, xDt, "D_KNM", "D_CD", WebControlHelper.ComboType.NullAble); } } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
/************************************************************ * Function name : ddlCus_NM_OnSelectedIndexChanged * Purpose : 과정선택 DropDownList 이벤트 * Input : void * Output : void *************************************************************/ #region protected void ddlCus_NM_OnSelectedIndexChanged(object sender, EventArgs e) protected void ddlCus_NM_OnSelectedIndexChanged(object sender, EventArgs e) { try { if (this.ddlCus_NM.SelectedItem.Value == "*") { return; } string[] xParams = new string[3]; xParams[0] = ddlCus_NM.SelectedItem.Value; xParams[1] = this.txtCus_From.Text; xParams[2] = this.txtCus_To.Text; DataTable xDt = new DataTable(); xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.APPLICATION.vp_m_sms_md", "GetOpenCourseDate", LMS_SYSTEM.APPLICATION, "CLT.WEB.UI.LMS.APPLICATION", (object)xParams); WebControlHelper.SetDropDownList(this.ddlCus_Date, xDt, "course_date", "open_course_id"); } catch (Exception ex) { base.NotifyError(ex); } }
/****************************************************************************************** * Function name : ddlInOut_SelectIndexChange * Purpose : * Input : void * Output : void ******************************************************************************************/ protected void ddlInOut_SelectIndexChange(object sender, EventArgs e) { try { string xInOut = this.ddlInOut.SelectedItem.Value; string[] xParams = new string[1]; DataTable xDt = null; xParams[0] = string.Empty; if (xInOut == "000001") { //사내 xParams[0] = "0008"; } else if (xInOut == "000002") { //사외 xParams[0] = "0009"; } xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.CURRICULUM, "CLT.WEB.UI.LMS.CURR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlPlace, xDt, WebControlHelper.ComboType.NullAble); } catch (Exception ex) { base.NotifyError(ex); } }
private void InitControl() { try { string[] xParams = new string[2]; string xSql = string.Empty; // 직급코드 Dutystep xParams[1] = "Y"; DataTable xDtDutyStep = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetDutystepCodeInfo", LMS_SYSTEM.MANAGE, "CLT.WEB.UI.LMS.MANAGE" , (object)xParams , Thread.CurrentThread.CurrentCulture ); WebControlHelper.SetDropDownList(this.ddlDutyStep, xDtDutyStep, "step_name", "duty_step", WebControlHelper.ComboType.NullAble); this.SetGridClear(this.grdList, this.PageNavigator1, this.PageInfo1); //btnDel.OnClientClick = "return confirm('" + MsgInfo.GetMsg("A119", new string[] { "" }, new string[] { "" }, Thread.CurrentThread.CurrentCulture) + @"');"; } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
private void BindDropDownList() { try { string[] xParams = new string[1]; string xSql = string.Empty; DataTable xDt = null; // UserGroupCode xParams[0] = "0041"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.MANAGE, "CLT.WEB.UI.LMS.MANAGE", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlCourseField, xDt, 0, false); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
/************************************************************ * Function name : btnSearch_Click * Purpose : 기간별 개설과정 조회버튼 * Input : void * Output : void *************************************************************/ #region protected void btnSearch_Click(object sender, EventArgs e) protected void btnSearch_Click(object sender, EventArgs e) { try { if (string.IsNullOrEmpty(this.txtCus_From.Text)) { ScriptHelper.Page_Alert(this.Page, MsgInfo.GetMsg("A003", new string[] { "조회기간" }, new string[] { "Date From" }, Thread.CurrentThread.CurrentCulture)); return; } else if (string.IsNullOrEmpty(this.txtCus_To.Text)) { ScriptHelper.Page_Alert(this.Page, MsgInfo.GetMsg("A003", new string[] { "조회기간" }, new string[] { "Date To" }, Thread.CurrentThread.CurrentCulture)); return; } string[] xParams = new string[2]; xParams[0] = this.txtCus_From.Text; xParams[1] = this.txtCus_To.Text; this.ddlCus_Date.ClearSelection(); DataTable xDt = new DataTable(); xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.APPLICATION.vp_m_sms_md", "GetCourseDate", LMS_SYSTEM.APPLICATION, "CLT.WEB.UI.LMS.APPLICATION", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlCus_NM, xDt, "course_nm", "course_id"); //this.ddlCus_NM.Items.FindByValue("11030001").Selected = true; } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : btnSelect_OnClick * Purpose : 교육기간 조회 버튼 이벤트 * * Input : void * Output : void *************************************************************/ #region btnSelect_OnClick(object seder, EventArgs e) protected void btnSelect_OnClick(object seder, EventArgs e) { try { string[] xParams = new string[3]; xParams[0] = HiddenCourseID.Value; xParams[1] = txtPeriodFrom.Text; xParams[2] = txtPeriodTo.Text; DataTable xDt = new DataTable(); xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetOpenCourseDate", LMS_SYSTEM.MANAGE, "CLT.WEB.UI.LMS.MANAGE", (object)xParams); WebControlHelper.SetDropDownList(this.ddlCus_Date, xDt, "course_date", "open_course_id"); this.txtCus_ID.Text = HiddenCourseID.Value; this.txtCus_NM.Text = HiddenCourseNM.Value; } catch (Exception ex) { base.NotifyError(ex); } }
private void BindDDLTypeC() { try { // 평가대상 string[] xParams = new string[2]; xParams[0] = "Y"; xParams[1] = ddlVslType.SelectedValue; DataTable xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetVCommonVslTypeC", LMS_SYSTEM.CAPABILITY, "CLT.WEB.UI.LMS.APPR", (object)xParams); WebControlHelper.SetDropDownList(this.ddlVslTypeC, xDt, "TYPE_C_DESC", "TYPE_C_CD"); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
protected void grdUserList_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { DataRowView DRV = (DataRowView)e.Item.DataItem; HtmlInputCheckBox chkPassFlg = ((HtmlInputCheckBox)e.Item.FindControl("chkPassFlg")); HtmlInputCheckBox chkOrderFlg = ((HtmlInputCheckBox)e.Item.FindControl("chkOrderFlg")); chkPassFlg.Checked = Convert.ToString(DRV["PASS_FLG"]) == "000001"; chkOrderFlg.Checked = Convert.ToString(DRV["ORDER_FLG"]) == "Y"; DropDownList ddlPassFlg = ((DropDownList)e.Item.FindControl("ddlPassFlg")); WebControlHelper.SetDropDownList(ddlPassFlg, iDtPassFlg, WebControlHelper.ComboType.NullAble); ddlPassFlg.SelectedValue = Convert.ToString(DRV["PASS_FLG"]); DropDownList ddlNonPassCD = ((DropDownList)e.Item.FindControl("ddlNonPassCD")); WebControlHelper.SetDropDownList(ddlNonPassCD, iDtNonPassFlg, WebControlHelper.ComboType.NullAble); ddlNonPassCD.SelectedValue = Convert.ToString(DRV["NON_PASS_CD"]); TextBox txtRemark = ((TextBox)e.Item.FindControl("txtRemark")); if (Convert.ToString(DRV["ORDER_FLG"]) == "Y") { chkOrderFlg.Attributes.Add("disabled", "disabled"); ddlPassFlg.Enabled = false; chkPassFlg.Attributes.Add("disabled", "disabled"); ddlNonPassCD.Enabled = false; txtRemark.Enabled = false; } } catch (Exception ex) { base.NotifyError(ex); } }
private void InitControl() { try { base.pRender(this.Page, new object[, ] { { this.btnRetrieve, "I" } }, Convert.ToString(Request.QueryString["MenuCode"])); string[] xParams = new string[1]; string xSql = string.Empty; DataTable xDt = null; //부서코드 가져오기 xParams = new string[2]; xParams[0] = "B10','B20','B30"; xParams[1] = "Y"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetVHDeptCode", LMS_SYSTEM.MANAGE, "CLT.WEB.UI.LMS.APPR", xParams, " ORDER BY dept_ename1 "); WebControlHelper.SetDropDownList(ddlDeptCode, xDt, "dept_ename1", "dept_code"); if (iAppCD == "appr") { // 직책(직급)코드 Dutystep xParams = new string[3]; xParams[1] = "Y"; xParams[2] = "M"; } else { // 직책(직급)코드 Dutystep xParams = new string[2]; xParams[1] = "Y"; } DataTable xDtDutyStep = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetDutystepCodeInfo", LMS_SYSTEM.MANAGE, "CLT.WEB.UI.LMS.APPR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlDutyStep, xDtDutyStep, "step_name", "duty_step"); this.SetGridClear(this.grdUserList, this.PageNavigator1, this.PageInfo1); //if (!String.IsNullOrEmpty(Convert.ToString(Session["USER_GROUP"])) && Convert.ToString(Session["USER_GROUP"]) != "000009") // BindUserList(); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
/************************************************************ * Function name : BindDropDownList * Purpose : DropDownList 데이터 바인딩을 위한 처리 * Input : void * Output : void *************************************************************/ #region private void BindDropDownList() private void BindDropDownList() { try { string[] xParams = new string[1]; string xSql = string.Empty; DataTable xDt = null; //classification xParams[0] = "0042"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.CURRICULUM, "CLT.WEB.UI.LMS.CURR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlClassification, xDt, WebControlHelper.ComboType.NullAble); // Lang xParams[0] = "0017"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.CURRICULUM, "CLT.WEB.UI.LMS.CURR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlLang, xDt, WebControlHelper.ComboType.NullAble); //SCORE xDt = new DataTable(); //DataTable 객체 생성 xDt.Columns.AddRange(new DataColumn[] { new DataColumn("d_knm"), new DataColumn("d_cd") }); // DataTable Range 설정 for (int i = 5; i <= 10; i += 5) { xDt.Rows.Add(new DataColumn(i.ToString()), new DataColumn(i.ToString())); } WebControlHelper.SetDropDownList(this.ddlScore, xDt, WebControlHelper.ComboType.NullAble); //group xParams[0] = "0003"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.CURRICULUM, "CLT.WEB.UI.LMS.CURR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlGroup, xDt, WebControlHelper.ComboType.NullAble); //field xParams[0] = "0004"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.CURRICULUM, "CLT.WEB.UI.LMS.CURR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlField, xDt, WebControlHelper.ComboType.NullAble); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
/************************************************************ * Function name : BindDropDownList * Purpose : DropDownList 데이터 바인딩을 위한 처리 * Input : void * Output : void *************************************************************/ private void BindDropDownList() { try { string[] xParams = new string[1]; DataTable xDt = null; // Course Group xParams[0] = "0003"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.CURRICULUM, "CLT.WEB.UI.LMS.CURR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlCourseGroup, xDt, WebControlHelper.ComboType.NullAble); // Course Field xParams[0] = "0004"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.CURRICULUM, "CLT.WEB.UI.LMS.CURR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlCourseField, xDt, WebControlHelper.ComboType.NullAble); // TextBook Type xParams[0] = "0049"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.CURRICULUM, "CLT.WEB.UI.LMS.CURR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlTextBookType, xDt, WebControlHelper.ComboType.NullAble); // TextBook Lang xParams[0] = "0017"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.CURRICULUM, "CLT.WEB.UI.LMS.CURR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlTextBookLang, xDt, WebControlHelper.ComboType.NullAble); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
protected void grdItem_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { DataRowView DRV = (DataRowView)e.Item.DataItem; DropDownList ddlStepGu = ((DropDownList)e.Item.FindControl("ddlStepGu")); WebControlHelper.SetDropDownList(ddlStepGu, iDtStepGu, "D_KNM", "D_CD", WebControlHelper.ComboType.NullAble); WebControlHelper.SetSelectText_DropDownList(ddlStepGu, DRV["구분"].ToString()); TextBox txtAppBaseDT = ((TextBox)e.Item.FindControl("txtAppBaseDT")); DropDownList ddlAppDutyStep = ((DropDownList)e.Item.FindControl("ddlAppDutyStep")); if (DRV["구분"].ToString() == "현직") { WebControlHelper.SetDropDownList(ddlAppDutyStep, iDtAppDutyStep1, "D_KNM", "D_CD", WebControlHelper.ComboType.NullAble); } else if (DRV["구분"].ToString() == "상위직") { WebControlHelper.SetDropDownList(ddlAppDutyStep, iDtAppDutyStep2, "D_KNM", "D_CD", WebControlHelper.ComboType.NullAble); } WebControlHelper.SetSelectText_DropDownList(ddlAppDutyStep, DRV["평가대상"].ToString()); //DropDownList ddlAppLang = ((DropDownList)e.Item.FindControl("ddlAppLang")); //WebControlHelper.SetDropDownList(ddlAppLang, iDtAppLang, "D_KNM", "D_CD", WebControlHelper.ComboType.NullAble); //ddlGrade.Attributes.Add("onchange", "javascript:totGrade();"); //WebControlHelper.SetSelectText_DropDownList(ddlAppLang, DRV["언어"].ToString()); DropDownList ddlVslTypeP = ((DropDownList)e.Item.FindControl("ddlVslTypeP")); WebControlHelper.SetDropDownList(ddlVslTypeP, iDtVslTypeP, "TYPE_P_SHORT_DESC", "TYPE_P_CD", WebControlHelper.ComboType.NullAble); WebControlHelper.SetSelectText_DropDownList(ddlVslTypeP, DRV["선종P"].ToString()); DropDownList ddlVslTypeC = ((DropDownList)e.Item.FindControl("ddlVslTypeC")); DataTable xDt = GetDtVslTypeC(Convert.ToString(DRV["선종P"])); WebControlHelper.SetDropDownList(ddlVslTypeC, xDt, "TYPE_C_DESC", "TYPE_C_CD"); WebControlHelper.SetSelectText_DropDownList(ddlVslTypeC, DRV["선종C"].ToString()); TextBox hdnCourseOJT = ((TextBox)e.Item.FindControl("hdnCourseOJT")); TextBox txtCourseOJT = ((TextBox)e.Item.FindControl("txtCourseOJT")); ImageButton btnSearchOJT = ((ImageButton)e.Item.FindControl("btnSearchOJT")); btnSearchOJT.OnClientClick = "javascript:return GoCourseForm('" + hdnCourseOJT.ClientID + "','" + txtCourseOJT.ClientID + "', '000005');"; TextBox hdnCourseLMS = ((TextBox)e.Item.FindControl("hdnCourseLMS")); TextBox txtCourseLMS = ((TextBox)e.Item.FindControl("txtCourseLMS")); ImageButton btnSearchLMS = ((ImageButton)e.Item.FindControl("btnSearchLMS")); btnSearchLMS.OnClientClick = "javascript:return GoCourseForm('" + hdnCourseLMS.ClientID + "','" + txtCourseLMS.ClientID + "', '');"; } catch (Exception ex) { base.NotifyError(ex); } }
protected void ddlVslTypeP_SelectedIndexChanged(object sender, EventArgs e) { try { DropDownList ddlVslTypeP = (DropDownList)sender; C1.Web.C1WebGrid.C1GridItem gi = ((C1.Web.C1WebGrid.C1GridItem)((DropDownList)sender).Parent.Parent); DropDownList ddlVslTypeC = (DropDownList)gi.FindControl("ddlVslTypeC"); WebControlHelper.SetDropDownList(ddlVslTypeC, GetDtVslTypeC(ddlVslTypeP.SelectedItem.Text), "TYPE_C_DESC", "TYPE_C_CD"); } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : Page_Load * Purpose : 페이지 로드될 때 처리 * Input : void * Output : void *************************************************************/ protected void Page_Load(object sender, EventArgs e) { try { if (Session["USER_GROUP"].ToString() == this.GuestUserID) { string xScriptMsg = string.Format("<script>alert('사용권한이 없습니다.');window.location.href='/';</script>", Session["MENU_CODE"]); ScriptHelper.ScriptBlock(this, "issuing_register", xScriptMsg); return; } base.pRender(this.Page, new object[, ] { { this.btnSave, "E" } }, Convert.ToString(Request.QueryString["MenuCode"])); if (Convert.ToString(Session["USER_ID"]) != "" && Convert.ToString(Session["USER_GROUP"]) != this.GuestUserID) { if (!IsPostBack) { this.txtSTART_DATE.Attributes.Add("onkeyup", "ChkDate(this);"); this.txtEND_DATE.Attributes.Add("onkeyup", "ChkDate(this);"); string[] xParams = new string[1]; DataTable xDt = null; //Institution xParams[0] = "0007"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.EDUMANAGEMENT, "CLT.WEB.UI.LMS.EDUM", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlInstitution, xDt, WebControlHelper.ComboType.NullAble); if (!Util.IsNullOrEmptyObject(iSearch)) { if (!String.IsNullOrEmpty(Convert.ToString(Session["USER_GROUP"])) && Convert.ToString(Session["USER_GROUP"]) != "000009") { BindData(); //btnCalendar.Visible = false; } } } } } catch (Exception ex) { base.NotifyError(ex); } }
private void InitControl() { try { base.pRender(this.Page, new object[, ] { { this.btnRetrieve, "I" }, { this.btnExcel, "I" } }); if (Convert.ToString(Session["USER_ID"]) != "" && Convert.ToString(Session["USER_GROUP"]) != this.GuestUserID) { this.txtSTART_DATE.Attributes.Add("onkeyup", "ChkDate(this);"); this.txtEND_DATE.Attributes.Add("onkeyup", "ChkDate(this);"); this.txtSTART_DATE.Text = DateFormat(GetFirstDayofMonth()); this.txtEND_DATE.Text = DateFormat(GetLastDayofMonth()); string[] xParams = new string[1]; string xSql = string.Empty; DataTable xDt = null; //course type xParams = new string[2]; xParams[0] = "0006"; xParams[1] = "Y"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.EDUMANAGEMENT, "CLT.WEB.UI.LMS.EDUM", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlCourseType, xDt); BindGrdList(1, ""); } else { //return; string xScriptMsg = string.Format("<script>alert('사용권한이 없습니다.');window.location.href='/';</script>", Session["MENU_CODE"]); ScriptHelper.ScriptBlock(this, "vp_y_community_notice_list_wpg", xScriptMsg); } } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
protected void Page_Load(object sender, EventArgs e) { try { this.Page.Form.DefaultButton = this.btnRetrieve.UniqueID; base.pRender(this.Page, new object[, ] { { this.btnRetrieve, "I" }, { this.btnExcel, "I" } }); if (Convert.ToString(Session["USER_ID"]) != "" && Convert.ToString(Session["USER_GROUP"]) != this.GuestUserID) { if (!IsPostBack) { this.txtSTART_DATE.Attributes.Add("onkeyup", "ChkDate(this);"); this.txtEND_DATE.Attributes.Add("onkeyup", "ChkDate(this);"); this.txtSTART_DATE.Text = DateFormat(GetFirstDayofMonth()); this.txtEND_DATE.Text = DateFormat(GetLastDayofMonth()); string[] xParams = new string[1]; string xSql = string.Empty; DataTable xDt = null; //분류 xParams[0] = "0006"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.EDUMANAGEMENT, "CLT.WEB.UI.LMS.EDUM", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlCourseType, xDt); this.BindGrid(); } } else { //return; string xScriptMsg = string.Format("<script>alert('사용권한이 없습니다.');window.location.href='/';</script>", Session["MENU_CODE"]); ScriptHelper.ScriptBlock(this, "edu_cmp_y_list", xScriptMsg); } } catch (Exception ex) { base.NotifyError(ex); } }
private void InitControl() { try { base.pRender(this.Page, new object[, ] { { this.btnRetrieve, "I" }, { this.btnExcel, "I" } }); if (Convert.ToString(Session["USER_ID"]) != "" && Convert.ToString(Session["USER_GROUP"]) != this.GuestUserID) { this.txtSTART_DATE.Attributes.Add("onkeyup", "ChkDate(this);"); this.txtEND_DATE.Attributes.Add("onkeyup", "ChkDate(this);"); this.txtSTART_DATE.Text = DateFormat(GetFirstDayofMonth()); this.txtEND_DATE.Text = DateFormat(GetLastDayofMonth()); string[] xParams = new string[1]; string xSql = string.Empty; DataTable xDt = null; //course type xParams = new string[2]; xParams[0] = "0006"; xParams[1] = "Y"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.APPLICATION, "CLT.WEB.UI.LMS.APPLICATION", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlCourseType, xDt); BindGrdList(1, ""); } } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
protected void grdUserList_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { DataRowView DRV = (DataRowView)e.Item.DataItem; HtmlInputCheckBox chkApproval = ((HtmlInputCheckBox)e.Item.FindControl("chkApproval")); HtmlInputCheckBox chkStartFlg = ((HtmlInputCheckBox)e.Item.FindControl("chkStartFlg")); TextBox txtEnterDT = ((TextBox)e.Item.FindControl("txtEnterDT")); DropDownList ddlNonApprovalCD = ((DropDownList)e.Item.FindControl("ddlNonApprovalCD")); WebControlHelper.SetDropDownList(ddlNonApprovalCD, iDtNonApproval, WebControlHelper.ComboType.NullAble); ddlNonApprovalCD.SelectedValue = Convert.ToString(DRV["non_approval_cd"]); DropDownList ddlEmployedState = ((DropDownList)e.Item.FindControl("ddlEmployedState")); WebControlHelper.SetDropDownList(ddlEmployedState, iDtEmployedState, WebControlHelper.ComboType.NullAble); ddlEmployedState.SelectedValue = Convert.ToString(DRV["EMPLOYED_STATE"]); HyperLink hlkUserNMKor = ((HyperLink)e.Item.FindControl("hlkUserNMKor")); hlkUserNMKor.Text = Convert.ToString(DRV["USER_NM_KOR"]); hlkUserNMKor.NavigateUrl = "javascript:openPopWindow('/manage/user_edit.aspx?EDITMODE=EDIT&USER_ID=" + Convert.ToString(DRV["USER_ID"]) + "','user_edit', '1280', '821');"; if (DRV["APPROVAL_FLG"].ToString() == "000001") //승인일경우 { chkApproval.Checked = true; } if (DRV["COURSE_START_FLG"].ToString() == "Y") { chkStartFlg.Checked = true; } //본인취소시 승인불가 //if (Convert.ToString(DRV["APPROVAL_FLG"]) == "000005") //{ // chkApproval.Attributes.Add("disabled", "disabled"); //} } catch (Exception ex) { base.NotifyError(ex); } }
private void GrdItemBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { DataRowView DRV = (DataRowView)e.Item.DataItem; HtmlInputCheckBox chkConfirm = ((HtmlInputCheckBox)e.Item.FindControl("chkConfirm")); chkConfirm.Checked = false; DropDownList ddlNonApproval = ((DropDownList)e.Item.FindControl("ddlNonApproval")); TextBox txtNonApprovalRemark = ((TextBox)e.Item.FindControl("txtNonApprovalRemark")); //if (!Util.IsNullOrEmptyObject(ddlNonApproval) && !Util.IsNullOrEmptyObject(txtNonApprovalRemark)) //{ // ddlNonApproval.Visible = false; // txtNonApprovalRemark.Visible = false; //} if (DRV["confirm"].ToString() == "1") { chkConfirm.Checked = true; } if (!Util.IsNullOrEmptyObject(ddlNonApproval) && !Util.IsNullOrEmptyObject(txtNonApprovalRemark)) { //ddlNonApproval.Visible = true; //txtNonApprovalRemark.Visible = true; WebControlHelper.SetDropDownList(ddlNonApproval, iDtNonApproval, WebControlHelper.ComboType.NullAble); ddlNonApproval.SelectedValue = Convert.ToString(DRV["non_approval_cd"]); txtNonApprovalRemark.Text = Convert.ToString(DRV["NON_APPROVAL_REMARK"]); } } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
/************************************************************ * Function name : BindDropDownList * Purpose : DropDownList 데이터 바인딩을 위한 처리 * Input : void * Output : void *************************************************************/ #region private void BindDropDownList() private void BindDropDownList() { try { string[] xParams = new string[1]; string xSql = string.Empty; DataTable xDt = null; // 구분 xParams[0] = "0052"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.CAPABILITY, "CLT.WEB.UI.LMS.CURR", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlStepGu, xDt, WebControlHelper.ComboType.NullAble); // 언어 //xParams[0] = "0017"; //xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", // "GetCommonCodeInfo", // LMS_SYSTEM.CAPABILITY, // "CLT.WEB.UI.LMS.CURR", (object)xParams); //WebControlHelper.SetDropDownList(this.ddlAppLang, xDt, WebControlHelper.ComboType.NullAble); // 선종 xParams[0] = "Y"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetVCommonVslType", LMS_SYSTEM.CAPABILITY, "CLT.WEB.UI.LMS.CURR", (object)xParams); WebControlHelper.SetDropDownList(this.ddlVslType, xDt, "TYPE_P_SHORT_DESC", "TYPE_P_CD", WebControlHelper.ComboType.NullAble); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
/************************************************************ * Function name : BindDropDownList * Purpose : 공통코드 Data처리 * Input : void * Output : void *************************************************************/ #region BindDropDownList() public void BindDropDownList() { try { string[] xParams = new string[2]; xParams[0] = "0041"; // 사용자 그룹 xParams[1] = "Y"; DataTable xDtUser = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.MANAGE, "CLT.WEB.UI.LMS.MANAGE", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlUserGroup, xDtUser, 0); // 직책(직급)코드 Dutystep xParams[1] = "Y"; DataTable xDtDutyStep = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetDutystepCodeInfo", LMS_SYSTEM.MANAGE, "CLT.WEB.UI.LMS.MANAGE", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlDutyStep, xDtDutyStep, "step_name", "duty_step"); xParams[0] = "0044"; // 상태 xParams[1] = "Y"; DataTable xDtStatus = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.MANAGE, "CLT.WEB.UI.LMS.MANAGE", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlStatus, xDtStatus, 0); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
/************************************************************ * Function name : BindDropDownList * Purpose : DropDownList 데이터 바인딩을 위한 처리 * Input : void * Output : void *************************************************************/ private void BindDropDownList() { try { string[] xParams = new string[1]; string xSql = string.Empty; DataTable xDt = null; // CourseType xParams[0] = "0006"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.MAIN, "CLT.WEB.UI.LMS.MAIN", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlCourseType, xDt); // Lang xParams[0] = "0017"; xDt = SBROKER.GetTable("CLT.WEB.BIZ.LMS.COMMON.vp_l_common_md", "GetCommonCodeInfo", LMS_SYSTEM.MAIN, "CLT.WEB.UI.LMS.MAIN", (object)xParams, Thread.CurrentThread.CurrentCulture); WebControlHelper.SetDropDownList(this.ddlCourseLang, xDt); // Year WebControlHelper.SetYearDropDownList(this.ddlCourseYear); } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
protected void ddlStepGu_SelectedIndexChanged(object sender, EventArgs e) { try { DropDownList ddlStepGu = (DropDownList)sender; C1.Web.C1WebGrid.C1GridItem gi = ((C1.Web.C1WebGrid.C1GridItem)((DropDownList)sender).Parent.Parent); DropDownList ddlAppDutyStep = (DropDownList)gi.FindControl("ddlAppDutyStep"); if (ddlStepGu.SelectedValue == "000001") { WebControlHelper.SetDropDownList(ddlAppDutyStep, iDtAppDutyStep1, "D_KNM", "D_CD", WebControlHelper.ComboType.NullAble); } else if (ddlStepGu.SelectedValue == "000002") { WebControlHelper.SetDropDownList(ddlAppDutyStep, iDtAppDutyStep2, "D_KNM", "D_CD", WebControlHelper.ComboType.NullAble); } } catch (Exception ex) { base.NotifyError(ex); } }