FDGZTJDLG.CPP
资源名称:gongzi.rar [点击查看]
上传用户:ghostdhl
上传日期:2018-06-14
资源大小:9728k
文件大小:2k
源码类别:
数据库编程
开发平台:
Visual C++
- // Fdgztjdlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "GZGLXT.h"
- #include "Fdgztjdlg.h"
- #include "Ygfdgzxmb.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CFdgztjdlg dialog
- CFdgztjdlg::CFdgztjdlg(CWnd* pParent /*=NULL*/)
- : CDialog(CFdgztjdlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CFdgztjdlg)
- m_zfbz = 0;
- m_shbz = 0;
- m_bxf = 0;
- m_grsds = 0;
- //}}AFX_DATA_INIT
- m_hIcon = AfxGetApp()->LoadIcon(IDI_GZTJICON);
- }
- void CFdgztjdlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CFdgztjdlg)
- DDX_Control(pDX, IDC_DATACOMBO1, m_dc);
- DDX_Text(pDX, IDC_EDIT3, m_zfbz);
- DDX_Text(pDX, IDC_EDIT4, m_shbz);
- DDX_Text(pDX, IDC_EDIT5, m_bxf);
- DDX_Text(pDX, IDC_EDIT6, m_grsds);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CFdgztjdlg, CDialog)
- //{{AFX_MSG_MAP(CFdgztjdlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CFdgztjdlg message handlers
- void CFdgztjdlg::OnOK()
- {
- // TODO: Add extra validation here
- UpdateData(true);
- CString str;
- str=m_dc.GetText();
- CYgfdgzxmb xmb;
- xmb.SetBXf(m_bxf);
- xmb.SetGRsds(m_grsds);
- xmb.SetSHbz(m_shbz);
- xmb.SetZFbz(m_zfbz);
- xmb.sql_update(str);
- CDialog::OnOK();
- }
- BOOL CFdgztjdlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- // TODO: Add extra initialization here
- SetIcon(m_hIcon, TRUE);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- BOOL CFdgztjdlg::PreTranslateMessage(MSG* pMsg)
- {
- // TODO: Add your specialized code here and/or call the base class
- if(pMsg->message==WM_KEYDOWN && pMsg->wParam==13)
- pMsg->wParam=9;
- return CDialog::PreTranslateMessage(pMsg);
- }