using System; using System.Windows.Forms; namespace CLIP.eForm.Consent.UI { /// /// 동의서목록 > 동의서 삭제 사유등록 팝업창 클래스 /// /// ///

[설계자]

///

클립소프트 연구소 홍지철 (jchong@clipsoft.co.kr)

///

[원본 작성자]

///

클립소프트 기술부 이창훈 (chlee@clipsoft.co.kr)

///

[수정 작성자]

///

클립소프트 기술부 이인희

///

----------------------------------------------------------------------------------------

///

[HISTORY]

///

2016-07-11 : 최초작성

///

----------------------------------------------------------------------------------------

///
public partial class ReasonForUseN : Form { public ReasonForUseN(bool bDel) { InitializeComponent(); // 삭제 종류에 따라 동의서 기록 삭제에 대한 메시지, 동의서 출력물 삭제에 대한 메시지를 보여준다 if (bDel) { this.labelReasonForUseN.Text = string.Format(Properties.Resources.msg_show_consent_record_deleted); } else { this.labelReasonForUseN.Text = string.Format(Properties.Resources.msg_show_paper_out_consent_record_deleted); } } private void btnOK_Click(object sender, EventArgs e) { //if (!string.IsNullOrEmpty(this.textBoxReasonForUseN.Text)) //{ // this.DialogResult = System.Windows.Forms.DialogResult.OK; //} } /// /// 사용자가 선택 혹은 입력한 삭제사유를 반환한다 /// /// public string GetReasonForUseN() { if (this.comboReason.SelectedItem.ToString() == "(직접입력)") return this.textBoxReasonForUseN.Text.ToString(); else return this.comboReason.SelectedItem.ToString(); } /// /// ReasonForUseN 폼 로딩 이벤트 /// comboReason 의 선택된 인덱스를 0 으로 초기화 하여 준다 /// /// The source of the event. /// The instance containing the event data. private void ReasonForUseN_Load(object sender, EventArgs e) { this.comboReason.SelectedIndex = 0; } /// /// comboReason 콤보 컨트롤 아이템 변경 이벤트 /// 사용자가 직접입력을 선택 한 경우 textBoxReasonForUseN 컨트롤을 활성화 아닐경우 비활성화 하여 준다 /// /// The source of the event. /// The instance containing the event data. private void comboReason_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboReason.SelectedItem.ToString() == "(직접입력)") { this.textBoxReasonForUseN.Enabled = true; this.textBoxReasonForUseN.TabIndex = 0; } else { this.textBoxReasonForUseN.Text = ""; this.textBoxReasonForUseN.Enabled = false; } } } }