CheckEditDlg.cpp
资源名称:final.rar [点击查看]
上传用户:fangwenmm
上传日期:2014-06-18
资源大小:6955k
文件大小:1k
源码类别:
企业管理
开发平台:
Visual C++
- // CheckEditDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "Stock.h"
- #include "CheckEditDlg.h"
- #include "ProInStore.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CCheckEditDlg dialog
- CCheckEditDlg::CCheckEditDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CCheckEditDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CCheckEditDlg)
- m_MakeDate = _T("");
- m_NewNum = 0;
- m_OldNum = _T("");
- m_Pname = _T("");
- m_Price = _T("");
- m_Sname = _T("");
- //}}AFX_DATA_INIT
- }
- void CCheckEditDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CCheckEditDlg)
- DDX_Text(pDX, IDC_MAKEDATE_STATIC, m_MakeDate);
- DDX_Text(pDX, IDC_NEWNUM_EDIT, m_NewNum);
- DDX_Text(pDX, IDC_OLDNUM_STATIC, m_OldNum);
- DDX_Text(pDX, IDC_PNAME_STATIC, m_Pname);
- DDX_Text(pDX, IDC_PRICE_STATIC, m_Price);
- DDX_Text(pDX, IDC_SNAME_STATIC, m_Sname);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CCheckEditDlg, CDialog)
- //{{AFX_MSG_MAP(CCheckEditDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CCheckEditDlg message handlers
- void CCheckEditDlg::OnOK()
- {
- // TODO: Add extra validation here
- UpdateData(TRUE); //将用户输入数据读取到成员变量中
- //更新库存数量
- CProInStore obj;
- obj.SetPnum(m_NewNum);
- obj.sql_updatePnum(cSpId);
- CDialog::OnOK();
- }