protected void grd_ItemCreated(object seder, C1ItemEventArgs e) { 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 = "관리자권한"; } else { e.Item.Cells[0].Text = "Level 1"; e.Item.Cells[1].Text = "Level 2"; e.Item.Cells[2].Text = "Level 3"; e.Item.Cells[3].Text = "Inquiry"; e.Item.Cells[4].Text = "Modify"; e.Item.Cells[5].Text = "Delete"; e.Item.Cells[6].Text = "Admin"; } } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 해더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ #region protected void grd_ItemCreated(object sender, C1ItemEventArgs e) protected void grd_ItemCreated(object sender, 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 = "실패"; } else { e.Item.Cells[0].Text = "Subject"; e.Item.Cells[1].Text = "Sent"; e.Item.Cells[2].Text = "Recipient"; e.Item.Cells[3].Text = "Success"; e.Item.Cells[4].Text = "Failure"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 해더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ #region protected void grd_ItemCreated(object seder, C1ItemEventArgs e) protected void grd_ItemCreated(object seder, C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "순번"; e.Item.Cells[2].Text = "보낸사람"; e.Item.Cells[3].Text = "제목"; e.Item.Cells[4].Text = "발송일시"; } else { e.Item.Cells[0].Text = "No"; e.Item.Cells[2].Text = "From"; e.Item.Cells[3].Text = "Subject"; e.Item.Cells[4].Text = "Sent"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 해더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ #region protected void grd_ItemCreated(object sender, C1ItemEventArgs e) protected void grd_ItemCreated(object sender, C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "open_course_id"; e.Item.Cells[1].Text = ""; e.Item.Cells[2].Text = "No."; e.Item.Cells[3].Text = "OJT 명"; e.Item.Cells[4].Text = "OJT기간"; e.Item.Cells[5].Text = "OJT시간"; e.Item.Cells[6].Text = "선명"; e.Item.Cells[7].Text = "이수상태"; } else { e.Item.Cells[0].Text = "open_course_id"; e.Item.Cells[1].Text = ""; e.Item.Cells[2].Text = "No."; e.Item.Cells[3].Text = "OJT Name"; e.Item.Cells[4].Text = "OJT Period"; e.Item.Cells[5].Text = "OJT Time"; e.Item.Cells[6].Text = "Vessel"; e.Item.Cells[7].Text = "Status"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * * C1WebGrid 해더의 언어설정 적용을 위한 부분 * * Input : void * Output : void *************************************************************/ protected void C1WebGrid1_ItemCreated(object sender, 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 = "저자"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "TextBook Type"; e.Item.Cells[2].Text = "TextBook Name"; e.Item.Cells[3].Text = "Publisher"; e.Item.Cells[4].Text = "Author"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * * C1WebGrid 해더의 언어설정 적용을 위한 부분 * * Input : void * Output : void *************************************************************/ #region protected void grd_ItemCreated(object sender, C1ItemEventArgs e) protected void grd_ItemCreated(object sender, 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 = "등록일자"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Classification"; e.Item.Cells[2].Text = "Subject"; e.Item.Cells[3].Text = "Learinig Time"; e.Item.Cells[4].Text = "Instructor"; e.Item.Cells[5].Text = "Usage"; e.Item.Cells[6].Text = "Reg. Date"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : grd_OnItemDataBound * Purpose : C1WebGrid의 Data Bound 이젠트 * * C1WebGrid Unbound 이벤트 * * Input : void * Output : void *************************************************************/ protected void grd_OnItemDataBound(object sender, C1ItemEventArgs e) { //DataRowView xItem = (DataRowView)e.Item.DataItem; //Label lblSumCnt = null; //if (e.Item.ItemType == C1ListItemType.Item || e.Item.ItemType == C1ListItemType.AlternatingItem) //{ // if (xItem != null) // { // if (string.IsNullOrEmpty(xItem["open_course_id"].ToString())) // OpenCourse ID가 null 이면 일반설문 // { // lblSumCnt = ((Label)e.Item.FindControl("lblSumCnt")); // } // else // { // } // } //} ////lblSumCnt }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 해더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ protected void grd_ItemCreated(object sender, 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 = "결과"; } else { e.Item.Cells[0].Text = "Recipient"; e.Item.Cells[1].Text = "Mobile"; e.Item.Cells[2].Text = "Sent"; e.Item.Cells[3].Text = "Status"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemDataBound * Purpose : 그리드 Databound 이벤트 * * Input : void * Output : void *************************************************************/ #region protected void C1WebGrid1_ItemDataBound(object sender, C1ItemEventArgs e) protected void C1WebGrid1_ItemDataBound(object sender, C1ItemEventArgs e) { try { DataRowView xItem = (DataRowView)e.Item.DataItem; if (e.Item.ItemType == C1ListItemType.Item || e.Item.ItemType == C1ListItemType.AlternatingItem) { Image img = ((Image)e.Item.FindControl("imgItems")); if (xItem["attcount"] == null) { img.ImageUrl = "/asset/Images/blank.gif"; } else if (xItem["attcount"].ToString() == "0") { img.ImageUrl = "/asset/Images/blank.gif"; } else { img.ImageUrl = "/asset/Images/clip.png"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * * C1WebGrid 해더의 언어설정 적용을 위한 부분 * * Input : void * Output : void *************************************************************/ #region protected void grd_ItemCreated(object sender, C1ItemEventArgs e) protected void grd_ItemCreated(object seder, 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 = "작성자"; } else { e.Item.Cells[0].Text = "Survey Period"; e.Item.Cells[1].Text = "Subject"; e.Item.Cells[2].Text = "Author"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : grd_ItemCreated * Purpose : 그리드 언어별 항목명 이벤트 * * Input : void * Output : void *************************************************************/ #region protected void grd_ItemCreated(object sender, C1ItemEventArgs e) protected void grd_ItemCreated(object sender, 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 = "삭제유무"; } else { e.Item.Cells[0].Text = "No"; e.Item.Cells[1].Text = "Subject"; e.Item.Cells[2].Text = "Attach File"; e.Item.Cells[3].Text = "Author"; e.Item.Cells[4].Text = "Date"; e.Item.Cells[5].Text = "Hits"; e.Item.Cells[6].Text = "Delete"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * * C1WebGrid 해더의 언어설정 적용을 위한 부분 * * Input : void * Output : void *************************************************************/ protected void C1WebGrid1_ItemCreated(object sender, 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 = "컨텐츠 파일명"; } else { e.Item.Cells[0].Text = "Class No"; e.Item.Cells[1].Text = "Subject Name"; e.Item.Cells[2].Text = "Contents Name"; e.Item.Cells[3].Text = "Contents File Name"; } } } catch (Exception ex) { base.NotifyError(ex); } }
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); } }
/************************************************************ * Function name : C1WebGrid1_ItemDataBound * Purpose : 그리드 Databound 이벤트 * * Input : void * Output : void *************************************************************/ #region C1WebGrid1_ItemDataBound(object sender, C1ItemEventArgs e) protected void C1WebGrid1_ItemDataBound(object sender, C1ItemEventArgs e) { try { 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); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 해더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ protected void WebGrid1_ItemCreated(object sender, 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 = "언어"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Type"; e.Item.Cells[2].Text = "Course Name"; e.Item.Cells[3].Text = "Study Period"; e.Item.Cells[4].Text = "No. of Time"; e.Item.Cells[5].Text = "Language"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * * C1WebGrid 해더의 언어설정 적용을 위한 부분 * * Input : void * Output : void *************************************************************/ #region protected void grd_ItemCreated(object sender, C1ItemEventArgs e) protected void grd_ItemCreated(object sender, 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 = "등록일자"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Classification"; e.Item.Cells[2].Text = "Course Group"; e.Item.Cells[3].Text = "Course Field"; e.Item.Cells[4].Text = "Question"; e.Item.Cells[5].Text = "Exam Type"; e.Item.Cells[6].Text = "Reg. Date"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : grdList_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 해더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ protected void grd_ItemCreated(object sender, C1ItemEventArgs e) { try { //e.Item.Cells[0].Visible = false; 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 = "Grade"; e.Item.Cells[3].Text = "Grade Name"; e.Item.Cells[4].Text = "Score"; e.Item.Cells[5].Text = "Description"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * * C1WebGrid 해더의 언어설정 적용을 위한 부분 * * Input : void * Output : void *************************************************************/ protected void C1WebGrid1_ItemCreated(object sender, 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 = "Remark"; e.Item.Cells[6].Text = "등록일"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Contents Name"; e.Item.Cells[2].Text = "File Name"; e.Item.Cells[3].Text = "Type"; e.Item.Cells[4].Text = "Language"; e.Item.Cells[5].Text = "Remark"; e.Item.Cells[6].Text = "Reg Date"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 해더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ #region protected void grd_ItemCreated(object sender, C1ItemEventArgs e) protected void grd_ItemCreated(object seder, C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { xHeader = new string[13]; if (this.IsSettingKorean()) { e.Item.Cells[1].Text = "ID"; 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 = "ID"; e.Item.Cells[2].Text = "Name"; e.Item.Cells[3].Text = "Registration"; e.Item.Cells[4].Text = "User Group"; e.Item.Cells[5].Text = "Company"; e.Item.Cells[6].Text = "Dept."; e.Item.Cells[7].Text = "Grade"; e.Item.Cells[8].Text = "Mobile"; e.Item.Cells[9].Text = "E-mail"; e.Item.Cells[10].Text = "Course"; e.Item.Cells[11].Text = "Regist Date "; e.Item.Cells[12].Text = "Status"; } xHeader[0] = e.Item.Cells[1].Text; xHeader[1] = e.Item.Cells[2].Text; xHeader[2] = e.Item.Cells[3].Text; xHeader[3] = e.Item.Cells[4].Text; xHeader[4] = e.Item.Cells[5].Text; xHeader[5] = e.Item.Cells[6].Text; xHeader[6] = e.Item.Cells[7].Text; xHeader[7] = e.Item.Cells[8].Text; xHeader[8] = e.Item.Cells[9].Text; xHeader[9] = e.Item.Cells[10].Text; xHeader[10] = e.Item.Cells[11].Text; xHeader[11] = e.Item.Cells[12].Text; } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : grdList_ItemDataBound * Purpose : C1WebGrid의 DataBound 처리를 위한 이벤트 핸들러 * Input : void * Output : void *************************************************************/ protected void grdList_ItemDataBound(object sender, C1ItemEventArgs e) { try { } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 해더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ #region protected void grd_ItemCreated(object sender, C1ItemEventArgs e) protected void grd_ItemCreated(object sender, C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { if (this.IsSettingKorean()) { e.Item.Cells[0].Text = "user_id"; e.Item.Cells[1].Text = "user_nm_kor"; e.Item.Cells[2].Text = "No."; 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 = "Email"; //e.Item.Cells[11].Text = "Chk"; } else { e.Item.Cells[0].Text = "user_id"; e.Item.Cells[1].Text = "user_nm_kor"; e.Item.Cells[2].Text = "No."; e.Item.Cells[3].Text = "Name"; e.Item.Cells[4].Text = "ENG Name"; e.Item.Cells[5].Text = "Register No."; e.Item.Cells[6].Text = "Rank"; e.Item.Cells[7].Text = "Trainee Classification"; e.Item.Cells[8].Text = "Acquisition Date"; e.Item.Cells[9].Text = "Mobile"; e.Item.Cells[10].Text = "Email"; //e.Item.Cells[11].Text = "Chk"; } } } catch (Exception ex) { base.NotifyError(ex); } }
///************************************************************ //* Function name : chkuse_yn_OnCheckedChanged //* Purpose : Grid 내 사용유무 체크박스 체크 이벤트 //* Input : void //* Output : void //*************************************************************/ //protected void chkuse_yn_OnCheckedChanged(object sender, EventArgs e) //{ // try // { // CheckBox chkTemp = (CheckBox)sender; // ArrayList xalchk = new ArrayList(); // if (ViewState["chkUse"] != null) // xalchk = (ArrayList)ViewState["chkUse"]; // User가 체크한 체크박스가 존재 할 경우 // if (!xalchk.Contains(chkTemp.Text)) // xalchk.Add(chkTemp.Text); // ViewState["chkUse"] = xalchk; // } // catch (Exception ex) // { // base.NotifyError(ex); // } //} /************************************************************ * Function name : C1WebGrid1_ItemDataBound * Purpose : Grid Data Bound 이벤트 * * Input : void * Output : void *************************************************************/ protected void C1WebGrid1_ItemDataBound(object sender, C1ItemEventArgs e) { try { // 체크박스 변수 초기화 bool xchkUse_yn = false; string xSent_flg = "No"; DataRowView xItem = (DataRowView)e.Item.DataItem; if (xItem != null) { if (xItem["use_yn"].ToString().ToUpper() == "Y") // 사용여부 Data가 Y 이면 체크 { xchkUse_yn = true; } else { xchkUse_yn = false; } if (!string.IsNullOrEmpty(xItem["sent_flg"].ToString())) // // 사용여부 Data가 N 이면 체크해제 { if (xItem["sent_flg"].ToString() == "2") { xSent_flg = "Yes"; } else { xSent_flg = "No"; } } } if (e.Item.ItemType == C1ListItemType.Item || e.Item.ItemType == C1ListItemType.AlternatingItem) { //((CheckBox)e.Item.FindControl("chkuse_yn")).Checked = xchkUse_yn; // 사용여부 CheckBox ((HtmlInputCheckBox)e.Item.FindControl("chkuse_yn")).Checked = xchkUse_yn; // 사용여부 CheckBox ((Label)e.Item.FindControl("lblsent_yn")).Text = xSent_flg; // 전송여부 Label } } catch (Exception ex) { base.NotifyError(ex); } }
protected void grdList_ItemDataBound(object sender, C1ItemEventArgs e) { try { DataRowView DRV = (DataRowView)e.Item.DataItem; HyperLink hlkCourseNM = ((HyperLink)e.Item.FindControl("hlkCourseNM")); hlkCourseNM.Text = DRV["COURSE_NM"].ToString(); hlkCourseNM.NavigateUrl = "javascript:;"; hlkCourseNM.Attributes.Add("onclick", "javascript:GoAppForm('" + DRV["KEYS"].ToString() + "^" + Server.UrlEncode(txtUserNMKor.Text) + "'); return false;"); } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * * C1WebGrid 해더의 언어설정 적용을 위한 부분 * * Input : void * Output : void *************************************************************/ #region protected void grd_ItemCreated(object sender, C1ItemEventArgs e) protected void grd_ItemCreated(object seder, C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { xHeader = new string[9]; 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 = "미응답수"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Survey Title"; e.Item.Cells[2].Text = "Items"; e.Item.Cells[3].Text = "Creation Date"; e.Item.Cells[4].Text = "Response Period"; e.Item.Cells[5].Text = "Post Status"; e.Item.Cells[6].Text = "Participant"; e.Item.Cells[7].Text = "Answer"; e.Item.Cells[8].Text = "No Answer"; } xHeader[0] = e.Item.Cells[0].Text; xHeader[1] = e.Item.Cells[1].Text; xHeader[2] = e.Item.Cells[2].Text; xHeader[3] = e.Item.Cells[3].Text; xHeader[4] = e.Item.Cells[4].Text; xHeader[5] = e.Item.Cells[5].Text; xHeader[6] = e.Item.Cells[6].Text; xHeader[7] = e.Item.Cells[7].Text; xHeader[8] = e.Item.Cells[8].Text; } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 해더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ #region protected void grd_ItemCreated(object sender, C1ItemEventArgs e) protected void grd_ItemCreated(object seder, C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { xHeader = new string[9]; 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 = "No"; e.Item.Cells[2].Text = "Company"; e.Item.Cells[3].Text = "CEO"; e.Item.Cells[4].Text = "Company Size"; e.Item.Cells[5].Text = "Person in Charge"; e.Item.Cells[6].Text = "Tel"; e.Item.Cells[7].Text = "Emp.Count"; e.Item.Cells[8].Text = "Date of Enrollment"; e.Item.Cells[9].Text = "Status"; } xHeader[0] = e.Item.Cells[1].Text; xHeader[1] = e.Item.Cells[2].Text; xHeader[2] = e.Item.Cells[3].Text; xHeader[3] = e.Item.Cells[4].Text; xHeader[4] = e.Item.Cells[5].Text; xHeader[5] = e.Item.Cells[6].Text; xHeader[6] = e.Item.Cells[7].Text; xHeader[7] = e.Item.Cells[8].Text; xHeader[8] = e.Item.Cells[9].Text; } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * * C1WebGrid 해더의 언어설정 적용을 위한 부분 * * Input : void * Output : void *************************************************************/ protected void grd_ItemCreated(object sender, C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { xHeader = new string[7]; 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 = "등록"; } else { //e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Code"; e.Item.Cells[2].Text = "Code Name"; e.Item.Cells[3].Text = "Eng Name"; e.Item.Cells[4].Text = "Kor Name"; e.Item.Cells[5].Text = "Status"; e.Item.Cells[6].Text = "Send"; e.Item.Cells[7].Text = "Date of transmission"; e.Item.Cells[8].Text = "Create"; } xHeader[0] = e.Item.Cells[1].Text; xHeader[1] = e.Item.Cells[2].Text; xHeader[2] = e.Item.Cells[3].Text; xHeader[3] = e.Item.Cells[4].Text; xHeader[4] = e.Item.Cells[5].Text; xHeader[5] = e.Item.Cells[6].Text; xHeader[6] = e.Item.Cells[7].Text; } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 해더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ #region protected void grd_ItemCreated(object sender, C1ItemEventArgs e) protected void grd_ItemCreated(object seder, C1ItemEventArgs e) { try { if (e.Item.ItemType == C1ListItemType.Header) { xHeader = new string[10]; 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 = "No"; e.Item.Cells[2].Text = "Lecturer"; e.Item.Cells[3].Text = "Company"; e.Item.Cells[4].Text = "Grade"; e.Item.Cells[5].Text = "Mobile"; e.Item.Cells[6].Text = "E-mail"; e.Item.Cells[7].Text = "Date of Enrollment"; e.Item.Cells[8].Text = "Resume"; e.Item.Cells[9].Text = "Document"; } xHeader[0] = e.Item.Cells[1].Text; xHeader[1] = e.Item.Cells[2].Text; xHeader[2] = e.Item.Cells[3].Text; xHeader[3] = e.Item.Cells[4].Text; xHeader[4] = e.Item.Cells[5].Text; xHeader[5] = e.Item.Cells[6].Text; xHeader[6] = e.Item.Cells[7].Text; xHeader[7] = e.Item.Cells[8].Text; } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * * C1WebGrid 해더의 언어설정 적용을 위한 부분 * * Input : void * Output : void *************************************************************/ #region protected void C1WebGrid1_ItemCreated(object sender, C1ItemEventArgs e) protected void C1WebGrid1_ItemCreated(object sender, 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 = "Remark"; e.Item.Cells[6].Text = "등록일"; e.Item.Cells[7].Text = "임시"; e.Item.Cells[8].Text = "Check"; e.Item.Cells[9].Text = "contents_id"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Contents Name"; e.Item.Cells[2].Text = "File Name"; e.Item.Cells[3].Text = "Type"; e.Item.Cells[4].Text = "Language"; e.Item.Cells[5].Text = "Remark"; e.Item.Cells[6].Text = "Reg Date"; e.Item.Cells[7].Text = "Temp"; e.Item.Cells[8].Text = "Check"; e.Item.Cells[9].Text = "contents_id"; } } } catch (Exception ex) { bool rethrow = ExceptionPolicy.HandleException(ex, "Propagate Policy"); if (rethrow) { throw; } } }
/************************************************************ * Function name : grdList_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 해더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ protected void grdList_ItemCreated(object sender, 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 = "No"; e.Item.Cells[6].Text = "역량명"; e.Item.Cells[7].Text = "역량정의"; e.Item.Cells[8].Text = "SEQ"; 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 = "Date"; e.Item.Cells[2].Text = "Inquiry"; e.Item.Cells[3].Text = "Vessle Type"; e.Item.Cells[4].Text = "Duty Step"; e.Item.Cells[5].Text = "No"; e.Item.Cells[6].Text = "Name of Competency"; e.Item.Cells[7].Text = "Definition of Competency"; e.Item.Cells[8].Text = "SEQ"; e.Item.Cells[9].Text = "Description"; e.Item.Cells[10].Text = "OJT"; e.Item.Cells[11].Text = "LMS"; e.Item.Cells[12].Text = "Others"; } } } catch (Exception ex) { base.NotifyError(ex); } }
/************************************************************ * Function name : C1WebGrid1_ItemCreated * Purpose : C1WebGrid의 Item이 생성될때 호출되는 이벤트 핸들러 * C1WebGrid 헤더의 언어설정 적용을 위한 부분 * Input : void * Output : void *************************************************************/ protected void grd_ItemCreated(object sender, 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 = "임시"; e.Item.Cells[10].Text = "Chk"; e.Item.Cells[11].Text = "textbook_id"; } else { e.Item.Cells[0].Text = "No."; e.Item.Cells[1].Text = "Type"; e.Item.Cells[2].Text = "TextBook Name"; e.Item.Cells[3].Text = "Author"; e.Item.Cells[4].Text = "Publisher"; e.Item.Cells[5].Text = "Language"; e.Item.Cells[6].Text = "Ins User"; e.Item.Cells[7].Text = "Ins Date"; e.Item.Cells[8].Text = "Usage"; e.Item.Cells[9].Text = "Temp"; e.Item.Cells[10].Text = "Chk"; e.Item.Cells[11].Text = "textbook_id"; } } } catch (Exception ex) { base.NotifyError(ex); } }