123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- // Time5.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ylgl.h"
- #include "Time5.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // Time5 dialog
- Time5::Time5(CWnd* pParent /*=NULL*/)
- : CDialog(Time5::IDD, pParent)
- {
- //{{AFX_DATA_INIT(Time5)
- m_time5 = _T("");
- //}}AFX_DATA_INIT
- }
- void Time5::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(Time5)
- DDX_Control(pDX, IDC_EDIT1, m_ctrldate);
- DDX_Text(pDX, IDC_EDIT1, m_time5);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(Time5, CDialog)
- //{{AFX_MSG_MAP(Time5)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // Time5 message handlers
- void Time5::OnOK()
- {
- // TODO: Add extra validation here
- {
- UpdateData();
- if (!CheckDateOK(m_time5))return;
- CString sql;
- sql = "update dindan set time5='" + m_time5 + "' where id='" + m_id + "'";
- g_sendhead.bsql = 1;
- g_pMainWnd->ProcessChatMessageRequest2(sql);
- if (g_bSendOK == 0)return;
- AfxMessageBox("±£´æ³É¹¦!", MB_ICONINFORMATION);
- }
- CDialog::OnOK();
- }
- BOOL Time5::OnInitDialog()
- {
- CDialog::OnInitDialog();
- // TODO: Add extra initialization here
- g_sendhead.bsql = 0;
- CString filter = "id='" + m_id + "'";
- g_sendhead.code[0] = 11;
- g_sendhead.tabcount = 1;
- g_pMainWnd->ProcessChatMessageRequest2(filter);
- if (g_bSendOK == 0)
- return 1;
- DataToArray(&g_List1array);
- m_time5 = g_List1array.ElementAt(0).ElementAt(22);
- UpdateData(false);
- CenterWindow();
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
|