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); } }
protected void grdList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "현재 부서"; e.Item.Cells[2].Text = "직급"; e.Item.Cells[3].Text = "사번"; e.Item.Cells[4].Text = "성명"; e.Item.Cells[5].Text = "최종선박하선일"; e.Item.Cells[6].Text = "교육신청일시"; e.Item.Cells[7].Text = "이전이수일"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Currently<br/>the Department"; e.Item.Cells[2].Text = "Grade"; e.Item.Cells[3].Text = "ID"; e.Item.Cells[4].Text = "Name"; e.Item.Cells[5].Text = "Date of<br/>Disembarkation"; e.Item.Cells[6].Text = "Date of<br/>Application"; e.Item.Cells[7].Text = "Date of<br/>Completion"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[1].Text = "No."; e.Item.Cells[2].Text = "교육유형"; e.Item.Cells[3].Text = "과정명"; e.Item.Cells[4].Text = "교육기간"; e.Item.Cells[5].Text = "교육총원"; e.Item.Cells[6].Text = "수료총원"; e.Item.Cells[7].Text = "미이수"; } else { e.Item.Cells[1].Text = "No."; e.Item.Cells[2].Text = "Course Type"; e.Item.Cells[3].Text = "Couse Name"; e.Item.Cells[4].Text = "Period"; e.Item.Cells[5].Text = "Attendance"; e.Item.Cells[6].Text = "Completion"; e.Item.Cells[7].Text = "InCompletion"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[1].Text = "No."; e.Item.Cells[2].Text = "과정명"; e.Item.Cells[3].Text = "교육기관"; e.Item.Cells[4].Text = "교육시작일"; e.Item.Cells[5].Text = "교육종료일"; } else { e.Item.Cells[1].Text = "No."; e.Item.Cells[2].Text = "Course Name"; e.Item.Cells[3].Text = "Learning Institution"; e.Item.Cells[4].Text = "Date of Start"; e.Item.Cells[5].Text = "Date of End"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdApprItem_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "역량명"; e.Item.Cells[2].Text = "역량정의"; e.Item.Cells[3].Text = "Seq"; e.Item.Cells[4].Text = "행위사례"; e.Item.Cells[5].Text = "평가"; e.Item.Cells[6].Text = "비고"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Name of Competency"; e.Item.Cells[2].Text = "Definition of Competency"; e.Item.Cells[3].Text = "Seq"; e.Item.Cells[4].Text = "Description"; e.Item.Cells[5].Text = "Grade"; e.Item.Cells[6].Text = "Remark"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdCode_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "등급"; e.Item.Cells[1].Text = "평가내용"; e.Item.Cells[2].Text = "영문<br/>평가내용"; e.Item.Cells[3].Text = "점수"; e.Item.Cells[4].Text = "설명"; e.Item.Cells[5].Text = "영문 설명"; } else { e.Item.Cells[0].Text = "Grade"; e.Item.Cells[1].Text = "Level"; e.Item.Cells[2].Text = "Level Eng"; e.Item.Cells[3].Text = "Point"; e.Item.Cells[4].Text = "Criterion"; e.Item.Cells[5].Text = "Criterion Eng"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdUserList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "사번"; e.Item.Cells[1].Text = "성명"; e.Item.Cells[2].Text = "부서"; e.Item.Cells[3].Text = "직급"; e.Item.Cells[4].Text = "직책"; e.Item.Cells[5].Text = "주민번호"; } else { e.Item.Cells[0].Text = "ID"; e.Item.Cells[1].Text = "Name"; e.Item.Cells[2].Text = "Dept"; e.Item.Cells[3].Text = "Grade"; e.Item.Cells[4].Text = "Position"; e.Item.Cells[5].Text = "Personal No"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grd_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { DataRowView DRV = (DataRowView)e.Item.DataItem; Button brnPrint = ((Button)e.Item.FindControl("btnPrint")); //이수여부 /* * if (Convert.ToString(DRV["pass_flg_cd"].ToString()) == "000001") * { * //한진해운 운항훈련원인 경우만 수료증 발급가능, 한글/영문체크 포함, 교육단체명 변경 시 수정필요 * if (DRV["EDUCATIONAL_ORG"].ToString() == "한진해운 운항훈련원" || DRV["EDUCATIONAL_ORG"].ToString() == "Hanjin Crew Training Center") || brnPrint.Visible = true; || else || brnPrint.Visible = false; ||} ||else ||{ || brnPrint.Visible = false; ||} */ } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "과정명"; e.Item.Cells[2].Text = "차수"; e.Item.Cells[3].Text = "교육기간"; e.Item.Cells[4].Text = "일수"; e.Item.Cells[5].Text = "확정인원"; e.Item.Cells[6].Text = "유효기간(년)"; e.Item.Cells[7].Text = "대상"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Course Name"; e.Item.Cells[2].Text = "SEQ"; e.Item.Cells[3].Text = "Period"; e.Item.Cells[4].Text = "Days"; e.Item.Cells[5].Text = "Confirm"; e.Item.Cells[6].Text = "Expired(year)"; e.Item.Cells[7].Text = "Target"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { //Label lbl_no = ((Label)e.Item.FindControl("lbl_no")); //if (!Util.IsNullOrEmptyObject(lbl_no)) //{ // lbl_no.Text = ListNo.ToString(); // ListNo = ListNo - 1; //} }
protected void grdList_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { } catch (Exception ex) { base.NotifyError(ex); } }
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 grdList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "사번"; e.Item.Cells[1].Text = "성명"; e.Item.Cells[2].Text = "회사명"; e.Item.Cells[3].Text = "부서명"; e.Item.Cells[4].Text = "직급"; e.Item.Cells[5].Text = "진도"; e.Item.Cells[6].Text = "기말"; e.Item.Cells[7].Text = "과제"; e.Item.Cells[8].Text = "총점"; e.Item.Cells[9].Text = "교육<br/>시작일"; e.Item.Cells[10].Text = "교육<br/>종료일"; e.Item.Cells[11].Text = "이수<br/>구분"; //e.Item.Cells[12].Text = "이수"; //e.Item.Cells[13].Text = "발령"; e.Item.Cells[14].Text = "미이수<br/>사유"; e.Item.Cells[15].Text = "Remark"; } else { e.Item.Cells[0].Text = "ID"; e.Item.Cells[1].Text = "Name"; e.Item.Cells[2].Text = "Company"; e.Item.Cells[3].Text = "Department"; e.Item.Cells[4].Text = "Grade"; e.Item.Cells[5].Text = "Progress"; e.Item.Cells[6].Text = "Final Test"; e.Item.Cells[7].Text = "Report"; e.Item.Cells[8].Text = "Total<br/>Score"; e.Item.Cells[9].Text = "Date of<br/>Start"; e.Item.Cells[10].Text = "Date of<br/>End"; e.Item.Cells[11].Text = "Classification"; //e.Item.Cells[12].Text = "Completion"; //e.Item.Cells[13].Text = "Appointment"; e.Item.Cells[14].Text = "Comments"; e.Item.Cells[15].Text = "Remark"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "신청일자"; e.Item.Cells[1].Text = "시간"; e.Item.Cells[2].Text = "사번"; e.Item.Cells[3].Text = "성명"; e.Item.Cells[4].Text = "회사명"; e.Item.Cells[5].Text = "주민등록번호"; e.Item.Cells[6].Text = "부서명"; e.Item.Cells[7].Text = "직급"; e.Item.Cells[8].Text = "상태"; //e.Item.Cells[9].Text = "승인<br/>처리"; e.Item.Cells[10].Text = "훈련생 구분"; e.Item.Cells[11].Text = "고용보험<br/>취득일자"; e.Item.Cells[12].Text = "교육<br/>불가사유"; e.Item.Cells[13].Text = "비고"; e.Item.Cells[14].Text = "승인일자"; //e.Item.Cells[15].Text = "교육<br/>입과"; } else { e.Item.Cells[0].Text = "Date of<br/>Application"; e.Item.Cells[1].Text = "Time"; e.Item.Cells[2].Text = "ID"; e.Item.Cells[3].Text = "Name"; e.Item.Cells[4].Text = "Company"; e.Item.Cells[5].Text = "Registration"; e.Item.Cells[6].Text = "Department"; e.Item.Cells[7].Text = "Grade"; e.Item.Cells[8].Text = "Status"; //e.Item.Cells[9].Text = "Approval"; e.Item.Cells[10].Text = "Classification"; e.Item.Cells[11].Text = "Hire Date"; e.Item.Cells[12].Text = "Absent"; e.Item.Cells[13].Text = "Remark"; e.Item.Cells[14].Text = "Date of<br/>Approval"; //e.Item.Cells[15].Text = "Attendance"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { DataRowView DRV = (DataRowView)e.Item.DataItem; HyperLink hlkUserId = ((HyperLink)e.Item.FindControl("hlkCourseNM")); hlkUserId.NavigateUrl = "javascript:;"; hlkUserId.Attributes.Add("onclick", "javascript:GoAppForm('" + DRV["KEYS"].ToString() + "'); return false;"); } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdUserList_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { DataRowView DRV = (DataRowView)e.Item.DataItem; Image img_pic_file = ((Image)e.Item.FindControl("img_pic_file")); FileUpload fileUplaod = ((FileUpload)e.Item.FindControl("fileUplaod")); img_pic_file.Visible = false; //if (!Util.IsNullOrEmptyObject(DRV["PIC_FILE"])) // img_pic_file.Visible = true; } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 해더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ protected void grd2_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { DataRowView DRV = (DataRowView)e.Item.DataItem; Button brnPrint = ((Button)e.Item.FindControl("btnPrint2")); //E-LEARNING 과정만 나타나도록 함 //if (Convert.ToString(DRV["COURSE_TYPE_KEY"].ToString()) == "000003") // brnPrint.Visible = true; //else // brnPrint.Visible = false; } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "번호"; e.Item.Cells[1].Text = "과정유형"; e.Item.Cells[2].Text = "교육유형"; e.Item.Cells[3].Text = "회사명"; e.Item.Cells[4].Text = "과정명"; e.Item.Cells[5].Text = "차수"; e.Item.Cells[6].Text = "증서번호"; e.Item.Cells[7].Text = "성명"; e.Item.Cells[8].Text = "영문명"; e.Item.Cells[9].Text = "생년월일"; e.Item.Cells[10].Text = "교육기간"; e.Item.Cells[11].Text = "발급일자"; e.Item.Cells[12].Text = "발급사유"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Course Type"; e.Item.Cells[2].Text = "Course Type"; e.Item.Cells[3].Text = "Company"; e.Item.Cells[4].Text = "Couse Name"; e.Item.Cells[5].Text = "Seq"; e.Item.Cells[6].Text = "Certificate no."; e.Item.Cells[7].Text = "Name"; e.Item.Cells[8].Text = "Eng.Name"; e.Item.Cells[9].Text = "Birthday"; e.Item.Cells[10].Text = "Edu.Period"; e.Item.Cells[11].Text = "Issue date"; e.Item.Cells[12].Text = "Reason"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[1].Text = "No."; e.Item.Cells[2].Text = "평가일자"; e.Item.Cells[3].Text = "부서"; e.Item.Cells[4].Text = "승선일자"; //e.Item.Cells[5].Text = "하선일자"; e.Item.Cells[5].Text = "사번"; e.Item.Cells[6].Text = "성명"; e.Item.Cells[7].Text = "직책"; e.Item.Cells[8].Text = "총점수"; e.Item.Cells[9].Text = "C,D항목수"; e.Item.Cells[10].Text = "평가자 성명"; e.Item.Cells[11].Text = "평자가 직급"; e.Item.Cells[12].Text = "완료 여부"; } else { e.Item.Cells[1].Text = "No."; e.Item.Cells[2].Text = "Date"; e.Item.Cells[3].Text = "Dept"; e.Item.Cells[4].Text = "Date of Embarkation"; //e.Item.Cells[5].Text = "Date of Disembarkation"; e.Item.Cells[5].Text = "ID"; e.Item.Cells[6].Text = "Name"; e.Item.Cells[7].Text = "Grade"; e.Item.Cells[8].Text = "Total Point"; e.Item.Cells[9].Text = "Number of C,D"; e.Item.Cells[10].Text = "Evaluator Name"; e.Item.Cells[11].Text = "Evaluator Grade"; e.Item.Cells[12].Text = "Complete"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdItem_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[1].Text = "구분"; e.Item.Cells[2].Text = "평가대상"; e.Item.Cells[3].Text = "선종"; e.Item.Cells[4].Text = "No"; e.Item.Cells[5].Text = "역량명"; e.Item.Cells[6].Text = "역량정의"; e.Item.Cells[7].Text = "SEQ"; e.Item.Cells[8].Text = "행위사례"; e.Item.Cells[9].Text = "기준일자"; e.Item.Cells[10].Text = "OJT"; e.Item.Cells[11].Text = "LMS"; e.Item.Cells[12].Text = "Others"; } else { e.Item.Cells[1].Text = "Classification"; e.Item.Cells[2].Text = "Evalution"; e.Item.Cells[3].Text = "Vessle Type"; e.Item.Cells[4].Text = "No"; e.Item.Cells[5].Text = "Name of Competency"; e.Item.Cells[6].Text = "Definition of Competency"; e.Item.Cells[7].Text = "SEQ"; e.Item.Cells[8].Text = "Description"; e.Item.Cells[9].Text = "Date"; e.Item.Cells[10].Text = "OJT"; e.Item.Cells[11].Text = "LMS"; e.Item.Cells[12].Text = "Others"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[1].Text = "No."; e.Item.Cells[2].Text = "교육유형"; e.Item.Cells[3].Text = "과정명"; e.Item.Cells[4].Text = "차수"; e.Item.Cells[5].Text = "교육기간"; e.Item.Cells[6].Text = "정원"; e.Item.Cells[7].Text = "신청"; e.Item.Cells[8].Text = "접수"; e.Item.Cells[9].Text = "승인"; e.Item.Cells[10].Text = "미승인"; e.Item.Cells[11].Text = "교육입과"; e.Item.Cells[12].Text = "실시신고"; } else { e.Item.Cells[1].Text = "No."; e.Item.Cells[2].Text = "Course Type"; e.Item.Cells[3].Text = "Course Name"; e.Item.Cells[4].Text = "SEQ"; e.Item.Cells[5].Text = "Period"; e.Item.Cells[6].Text = "Total"; e.Item.Cells[7].Text = "Apply"; e.Item.Cells[8].Text = "Receipt"; e.Item.Cells[9].Text = "Approval"; e.Item.Cells[10].Text = "Reject"; e.Item.Cells[11].Text = "Attendance"; e.Item.Cells[12].Text = "Report"; } } } 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; } } }
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); } }
protected void grdList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "회사"; e.Item.Cells[2].Text = "직급"; e.Item.Cells[3].Text = "성명"; e.Item.Cells[4].Text = "과정명"; e.Item.Cells[5].Text = "차수"; e.Item.Cells[6].Text = "교육기간"; e.Item.Cells[7].Text = "유효기간"; e.Item.Cells[8].Text = "수료증"; e.Item.Cells[9].Text = "교육기관"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Company"; e.Item.Cells[2].Text = "Grade"; e.Item.Cells[3].Text = "Name"; e.Item.Cells[4].Text = "Course Name"; e.Item.Cells[5].Text = "Seq"; e.Item.Cells[6].Text = "Study Period"; e.Item.Cells[7].Text = "Expired Date"; e.Item.Cells[8].Text = "Certification"; e.Item.Cells[9].Text = "Learning Institutions"; } } //교육기관 코드 컬럼은 Print버튼 활성화를 위한 표기로 Visible False 처리 e.Item.Cells[9].Visible = false; } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "사번"; e.Item.Cells[2].Text = "직급"; e.Item.Cells[3].Text = "성명"; e.Item.Cells[4].Text = "과정명"; e.Item.Cells[5].Text = "교육기간"; e.Item.Cells[6].Text = "교육불가사유"; e.Item.Cells[7].Text = "불가사유"; e.Item.Cells[8].Text = "미이수사유"; e.Item.Cells[9].Text = "비고"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "ID"; e.Item.Cells[2].Text = "Grade"; e.Item.Cells[3].Text = "Name"; e.Item.Cells[4].Text = "Course Name"; e.Item.Cells[5].Text = "Period"; e.Item.Cells[6].Text = "Absent"; e.Item.Cells[7].Text = "Remark"; e.Item.Cells[8].Text = "Comments"; e.Item.Cells[9].Text = "Remark"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { DataRowView DRV = (DataRowView)e.Item.DataItem; HyperLink hlkUserId = ((HyperLink)e.Item.FindControl("hlkUserId")); hlkUserId.NavigateUrl = "javascript:void(0);"; //Inquiry^VessleType^ShipCode^Rank^app_keys^user_id^user_nm_kor^app_dt if (ddlInquiry.SelectedValue == "000001") { hlkUserId.Attributes.Add("onclick", "javascript:GoAppForm('" + DRV["step_gu"].ToString() + "^" + DRV["vsl_type"].ToString() + "^" + DRV["vsl_cd"].ToString() + "^" + DRV["user_duty_work"].ToString() + "^" + DRV["app_keys"].ToString() + "^" + DRV["user_id"].ToString() + "^" + DRV["user_nm_kor"].ToString() + "^" + DRV["app_dt"].ToString() + "^" + DRV["app_nm"].ToString() + "^" + DRV["app_duty_step"].ToString() + "^" + DRV["app_user_id"].ToString() + "^" + DRV["TYPE_C_CD"].ToString() + "'); return false;"); } else if (ddlInquiry.SelectedValue == "000002") { hlkUserId.Attributes.Add("onclick", "javascript:GoAppForm('" + DRV["step_gu"].ToString() + "^" + DRV["vsl_type"].ToString() + "^" + DRV["vsl_cd"].ToString() + "^" + DRV["user_duty_step"].ToString() + "^" + DRV["app_keys"].ToString() + "^" + DRV["user_id"].ToString() + "^" + DRV["user_nm_kor"].ToString() + "^" + DRV["app_dt"].ToString() + "^" + DRV["app_nm"].ToString() + "^" + DRV["app_duty_step"].ToString() + "^" + DRV["app_user_id"].ToString() + "^" + DRV["TYPE_C_CD"].ToString() + "'); return false;"); } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemCreated(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[1].Text = "회사명"; e.Item.Cells[2].Text = "과정명"; e.Item.Cells[3].Text = "증서번호"; e.Item.Cells[4].Text = "직책"; e.Item.Cells[5].Text = "성명"; e.Item.Cells[6].Text = "주민등록번호"; e.Item.Cells[7].Text = "사진"; e.Item.Cells[8].Text = "정보수정"; e.Item.Cells[9].Text = "발급사유"; } else { e.Item.Cells[1].Text = "Company"; e.Item.Cells[2].Text = "Course"; e.Item.Cells[3].Text = "Cert.No"; e.Item.Cells[4].Text = "Grade"; e.Item.Cells[5].Text = "Name"; e.Item.Cells[6].Text = "Registration"; e.Item.Cells[7].Text = "Photo"; e.Item.Cells[8].Text = "Modification"; e.Item.Cells[9].Text = "Reason"; } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { //DataRowView DRV = (DataRowView)e.Item.DataItem; //HyperLink hlkUserId = ((HyperLink)e.Item.FindControl("hlkCourseNM")); //hlkUserId.NavigateUrl = "javascript:;"; //hlkUserId.Attributes.Add("onclick", "javascript:GoAppForm('" + DRV["KEYS"].ToString() + "', '" + Convert.ToString(DRV["PAGE_HV"]) + "'); return false;"); DataRowView xItem = (DataRowView)e.Item.DataItem; if (e.Item.ItemType == C1ListItemType.Item || e.Item.ItemType == C1ListItemType.AlternatingItem) { Label lblType = ((Label)e.Item.FindControl("lblCourseType")); if (xItem["course_type"] != null) { string[] xType = xItem["course_type"].ToString().Split('|'); foreach (string xCourseType in xType) { if (string.IsNullOrEmpty(lblType.Text)) { lblType.Text += GetCourseType(xCourseType); } else { lblType.Text = lblType.Text + "<BR>" + GetCourseType(xCourseType); } } } } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { //Label lbl_no = ((Label)e.Item.FindControl("lbl_no")); //if (!Util.IsNullOrEmptyObject(lbl_no)) //{ // lbl_no.Text = ListNo.ToString(); // ListNo = ListNo - 1; //} DataRowView DRV = (DataRowView)e.Item.DataItem; Button brnPrint = ((Button)e.Item.FindControl("btnPrint")); //이수여부 if (Convert.ToString(DRV["pass_flg"].ToString()) == "000001") { //한진해운 운항훈련원인 경우만 수료증 발급가능, 한글/영문체크 포함, 교육단체명 변경 시 수정필요 //2020.03 지마린서비스일 경우, 출력 if (DRV["EDUCATIONAL_ORG"].ToString() == "000007" || DRV["EDUCATIONAL_ORG"].ToString() == "000035") { brnPrint.Visible = true; } else { brnPrint.Visible = false; } } else { brnPrint.Visible = false; } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdApprItem_ItemDataBound(object sender, C1.Web.C1WebGrid.C1ItemEventArgs e) { try { DataRowView DRV = (DataRowView)e.Item.DataItem; string grad = Convert.ToString(DRV["grade"]); DropDownList ddlGrade = ((DropDownList)e.Item.FindControl("ddl_grade")); WebControlHelper.SetDropDownList(ddlGrade, iDt, "grade", "score", WebControlHelper.ComboType.NullAble); ddlGrade.Attributes.Add("onchange", "javascript:totGrade();"); WebControlHelper.SetSelectText_DropDownList(ddlGrade, grad); if (iIsAppComplete) { ddlGrade.Enabled = !iIsAppComplete; } else { ddlGrade.Enabled = !(!string.IsNullOrEmpty(Convert.ToString(DRV["grade"])) && Convert.ToString(DRV["grade"]) != "C" && Convert.ToString(DRV["grade"]) != "D"); } if (iIsView) { ddlGrade.Enabled = false; } iTotScore += GetScore(Convert.ToString(DRV["grade"])); txtTotScore.Text = iTotScore.ToString(); } catch (Exception ex) { base.NotifyError(ex); } }