123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- // ClientRequirement.cpp : implementation file
- //
- #include "stdafx.h"
- #include "LYFZIPManage.h"
- #include "ClientRequirement.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CClientRequirement dialog
- CClientRequirement::CClientRequirement(CWnd* pParent /*=NULL*/)
- : CDialog(CClientRequirement::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CClientRequirement)
- m_bz2 = _T("");
- //}}AFX_DATA_INIT
- m_bSave=0;
- }
- void CClientRequirement::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CClientRequirement)
- DDX_Text(pDX, IDC_EDIT1, m_bz2);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CClientRequirement, CDialog)
- //{{AFX_MSG_MAP(CClientRequirement)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CClientRequirement message handlers
- void CClientRequirement::OnOK()
- {
- // TODO: Add extra validation here
- if(m_bSave)
- {
- UpdateData();
- CString sql;
- sql= "update dindan set bz2='"+m_bz2+"' where id='"+m_id+"'";
- sql+=DINDAN_REF;
- g_sendhead.bsql=1;
- g_pMainWnd->ProcessChatMessageRequest2(sql);
- if(g_bSendOK==0)return;
- AfxMessageBox("±£´æ³É¹¦!", MB_ICONINFORMATION);
- }
-
- CDialog::OnOK();
- }
- BOOL CClientRequirement::OnInitDialog()
- {
- CDialog::OnInitDialog();
- if(m_bSave==0)
- {
- SetDlgItemText(IDOK, "È·¶¨");return true;
- }
-
- // TODO: Add extra initialization here
- GetDlgItem(IDC_EDIT1)->SetFocus();
- return false; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
|