private void GetPageSetting(int Idx, DataSet ds, string CMD) { if (CMD.Equals("C")) { this.lbtnValidationSave.Text = "<span class='btn btn-default'>확인</span>"; this.lbtnValidationSave.CssClass = "buttons"; this.lbtnCancel.Text = "<span class='btn btn-default'>취소</span>"; this.lbtnCancel.CssClass = "buttons mg_l5"; this.lbtnValidationDelete.Visible = false; if (!admin.MemberId.Equals(null) || !admin.MemberId.Equals("")) { this.txtUserId.Text = admin.MemberId.ToString(); } if (!admin.MemberNm.Equals(null) || !admin.MemberNm.Equals("")) { this.txtWriter.Text = admin.MemberNm.ToString(); } this.ifrmReply.Visible = false; } else if (CMD.Equals("M")) { this.lbtnValidationModify.Text = "<span class='btn btn-primary'>수정</span>"; this.lbtnValidationModify.CssClass = "buttons fl_r"; this.lbtnCancel.Text = "<span class='btn btn-default'>목록</span>"; this.lbtnCancel.CssClass = "buttons fl_l"; this.lbtnValidationDelete.Text = "<span class='btn btn-success'>삭제</span>"; this.lbtnValidationDelete.CssClass = "buttons mg_l5 fl_r"; this.lbtnValidationDelete.OnClientClick = "return fnDelConfirm();"; DataTable dt1 = ds.Tables[0]; DataTable dt2 = ds.Tables[1]; this.ddlBoardCategory.SelectedValue = dt1.Rows[0]["intBoardCategory"].ToString(); Common_NTx_Dac ddlSet = new Common_NTx_Dac(); // 게시판 카테고리 필드 int ddlBoardCategorySeletedValue = IntegerUtil.intValid(this.ddlBoardCategory.SelectedValue, -1); // 게시글 카테고리 필드 DataTable WriteCategorydt = null; WriteCategorydt = ddlSet.TOTALBBS_WRITE_CATEGORY_INFO_SEL(ddlBoardCategorySeletedValue); // 게시글 카테고리 필드 - DropDownList if (WriteCategorydt.Rows.Count == 0) { this.ddlWriteCategory.Items.Clear(); this.ddlWriteCategory.Items.Add(new ListItem("등록된 카테고리가 없습니다.", "")); this.ddlWriteCategory.Enabled = false; } else { this.ddlWriteCategory.Enabled = true; this.ddlWriteCategory.Items.Clear(); DropDownListUtil.SetDropDownListValue(WriteCategorydt, this.ddlWriteCategory, dt1.Rows[0]["intWriteCategory"].ToString(), DropDownListUtil.DropDownFlag.Select); } this.ddlWriteCategory.SelectedValue = dt1.Rows[0]["intWriteCategory"].ToString(); this.txtUserId.Text = dt1.Rows[0]["strUserId"].ToString(); this.txtWriter.Text = dt1.Rows[0]["strWriter"].ToString(); this.txtSubject.Text = dt1.Rows[0]["strSubject"].ToString(); this.txtContent.Text = TextControl.Delete_Tag(dt1.Rows[0]["strContent"].ToString()); this.ltRegiDateValue.Text = dt1.Rows[0]["dateRegDate"].ToString(); this.ltViewCntValue.Text = dt1.Rows[0]["intViewCount"].ToString(); //this.ifrmReply.Src = "/BackOffice/Board/BoardReplyList.aspx?intIdx=" + dt1.Rows[0]["intIdx"]; ifrmReply.Attributes["src"] = "/BackOffice/Board/BoardReplyList?intIdx=" + dt1.Rows[0]["intIdx"]; this.ifrmReply.Visible = true; //첨부파일 세팅 if (dt2.Rows.Count == 0) { this.rptBoard_Attached.DataSource = dt2; this.rptBoard_Attached.DataBind(); } else { AttachedFileCnt = 1; this.rptBoard_Attached.DataSource = dt2; this.rptBoard_Attached.DataBind(); } } this.hdfIdx.Value = Idx.ToString(); this.hdfCMD.Value = CMD; }