HospitalInfoSet.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // HospitalInfoSet.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "ylgl.h"
  5. #include "HospitalInfoSet.h"
  6. #include "SPLBDlg.h"
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12. /////////////////////////////////////////////////////////////////////////////
  13. // HospitalInfoSet dialog
  14. HospitalInfoSet::HospitalInfoSet(CWnd* pParent /*=NULL*/)
  15. : CDialog(HospitalInfoSet::IDD, pParent)
  16. {
  17. //{{AFX_DATA_INIT(HospitalInfoSet)
  18. // NOTE: the ClassWizard will add member initialization here
  19. //}}AFX_DATA_INIT
  20. }
  21. void HospitalInfoSet::DoDataExchange(CDataExchange* pDX)
  22. {
  23. CDialog::DoDataExchange(pDX);
  24. //{{AFX_DATA_MAP(HospitalInfoSet)
  25. // NOTE: the ClassWizard will add DDX and DDV calls here
  26. //}}AFX_DATA_MAP
  27. }
  28. BEGIN_MESSAGE_MAP(HospitalInfoSet, CDialog)
  29. //{{AFX_MSG_MAP(HospitalInfoSet)
  30. ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
  31. ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
  32. ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
  33. ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
  34. //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36. /////////////////////////////////////////////////////////////////////////////
  37. // HospitalInfoSet message handlers
  38. void HospitalInfoSet::OnButton1()
  39. {
  40. // TODO: Add your control notification handler code here
  41. SPLBDlg dlg;
  42. dlg.m_mode=14;
  43. dlg.DoModal ();
  44. }
  45. void HospitalInfoSet::OnButton2()
  46. {
  47. // TODO: Add your control notification handler code here
  48. SPLBDlg dlg;
  49. dlg.m_mode=15;
  50. dlg.DoModal ();
  51. }
  52. void HospitalInfoSet::OnButton3()
  53. {
  54. // TODO: Add your control notification handler code here
  55. SPLBDlg dlg;
  56. dlg.m_mode=16;
  57. dlg.DoModal ();
  58. }
  59. void HospitalInfoSet::OnButton4()
  60. {
  61. // TODO: Add your control notification handler code here
  62. SPLBDlg dlg;
  63. dlg.m_mode=17;
  64. dlg.DoModal ();
  65. }