57 lines
1.1 KiB
C++
57 lines
1.1 KiB
C++
// DLG_C_HT_Out.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "smsmanager.h"
|
|
#include "DLG_C_HT_Out.h"
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// DLG_C_HT_Out dialog
|
|
|
|
|
|
DLG_C_HT_Out::DLG_C_HT_Out(CWnd* pParent /*=NULL*/)
|
|
: CDialog(DLG_C_HT_Out::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(DLG_C_HT_Out)
|
|
m_strBZ = _T("");
|
|
//}}AFX_DATA_INIT
|
|
}
|
|
|
|
|
|
void DLG_C_HT_Out::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(DLG_C_HT_Out)
|
|
DDX_Text(pDX, IDC_C_HT_OUT_BZ, m_strBZ);
|
|
DDV_MaxChars(pDX, m_strBZ, 250);
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(DLG_C_HT_Out, CDialog)
|
|
//{{AFX_MSG_MAP(DLG_C_HT_Out)
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// DLG_C_HT_Out message handlers
|
|
|
|
void DLG_C_HT_Out::OnOK()
|
|
{
|
|
if ( !UpdateData(true) )
|
|
return ;
|
|
if ( m_strBZ.GetLength()<=4 )
|
|
{
|
|
MessageBox( _T("请输入合同作废原因!") , _T("错误") , MB_ICONWARNING );
|
|
GetDlgItem(IDC_C_HT_OUT_BZ);
|
|
return ;
|
|
}
|
|
CDialog::OnOK();
|
|
}
|