ReasonForUseN.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using System;
  2. using System.Windows.Forms;
  3. namespace CLIP.eForm.Consent.Dfh.UI
  4. {
  5. /// <summary>
  6. /// 동의서목록 > 동의서 삭제 사유등록 팝업창 클래스
  7. /// </summary>
  8. /// <remarks>
  9. /// <p>[설계자]</p>
  10. /// <p> 클립소프트 연구소 홍지철 (jchong@clipsoft.co.kr)</p>
  11. /// <p>[원본 작성자]</p>
  12. /// <p> 클립소프트 기술부 이창훈 (chlee@clipsoft.co.kr)</p>
  13. /// <p>[수정 작성자]</p>
  14. /// <p> 클립소프트 기술부 이인희</p>
  15. /// <p>----------------------------------------------------------------------------------------</p>
  16. /// <p>[HISTORY]</p>
  17. /// <p> 2016-07-11 : 최초작성</p>
  18. /// <p>----------------------------------------------------------------------------------------</p>
  19. /// </remarks>
  20. public partial class ReasonForUseN : Form
  21. {
  22. public ReasonForUseN(bool bDel)
  23. {
  24. InitializeComponent();
  25. if (bDel)
  26. {
  27. this.labelReasonForUseN.Text = string.Format(Properties.Resources.msg_show_consent_record_deleted);
  28. }
  29. else
  30. {
  31. this.labelReasonForUseN.Text = string.Format(Properties.Resources.msg_show_paper_out_consent_record_deleted);
  32. }
  33. }
  34. private void btnOK_Click(object sender, EventArgs e)
  35. {
  36. //if (!string.IsNullOrEmpty(this.textBoxReasonForUseN.Text))
  37. //{
  38. // this.DialogResult = System.Windows.Forms.DialogResult.OK;
  39. //}
  40. }
  41. public string GetReasonForUseN()
  42. {
  43. if (this.comboReason.SelectedItem.ToString() == "(직접입력)")
  44. return this.textBoxReasonForUseN.Text.ToString();
  45. else
  46. return this.comboReason.SelectedItem.ToString();
  47. }
  48. private void ReasonForUseN_Load(object sender, EventArgs e)
  49. {
  50. this.comboReason.SelectedIndex = 0;
  51. }
  52. private void comboReason_SelectedIndexChanged(object sender, EventArgs e)
  53. {
  54. if (this.comboReason.SelectedItem.ToString() == "(직접입력)")
  55. {
  56. this.textBoxReasonForUseN.Enabled = true;
  57. this.textBoxReasonForUseN.TabIndex = 0;
  58. }
  59. else
  60. {
  61. this.textBoxReasonForUseN.Text = "";
  62. this.textBoxReasonForUseN.Enabled = false;
  63. }
  64. }
  65. }
  66. }