You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitlib.pub/MITLIB/mcctrdll/LOTMSGRS.h

69 lines
2.2 KiB
C++

// Start =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// General information section.
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// $Author:yongkiang$ User who last changed the file
// $Date:1/2/2013 12:17:39 PM$ Date and time of last check in
// $Revision:1.0$ Visual SourceSafe version number
// $Workfile:: LOTMSGRS.H $ Filename
// End =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#if !defined __LOTMSGRS_H__
#define __LOTMSGRS_H__
#include <afxdao.h> // MFC DAO database classes
#include "MyIntArray.h"
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// LotMsgRS.h : header file
// Lot Message
#ifdef BUILD_MCCTRDLL
#define MCCTRDLLCLASS __declspec(dllexport)
#else
#define MCCTRDLLCLASS __declspec(dllimport)
#endif
/////////////////////////////////////////////////////////////////////////////
// CLotMsgRS DAO recordset
class MCCTRDLLCLASS CLotMsgRS : public CDaoRecordset
{
public:
void DeleteRecord(CString csLotNumber, double dStartDateTime);
explicit CLotMsgRS(CDaoDatabase* pDatabase = NULL);
DECLARE_DYNAMIC(CLotMsgRS)
// Field/Param Data
// {{AFX_FIELD(CLotMsgRS, CDaoRecordset)
CString m_LotNumber;
long m_MessageID;
COleDateTime m_Date_Time;
COleDateTime m_End_Date_Time;
COleDateTime m_Lot_Start_Date_Time;
// }}AFX_FIELD
// Overrides
// ClassWizard generated virtual function overrides
// {{AFX_VIRTUAL(CLotMsgRS)
public:
virtual CString GetDefaultDBName(); // Default database name
virtual CString GetDefaultSQL(); // Default SQL for Recordset
virtual void DoFieldExchange(CDaoFieldExchange* pFX); // RFX support
// }}AFX_VIRTUAL
// Close Recordset and close database
virtual void Close();
// Store End Time
void StoreEndTime(CMyIntArray ciaMsgId, CString csLotNumber, double dLotStartDateTime,
COleDateTime odtEndDateTime, double dStartDateTime = -1.0);
// Implementation
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
};
#endif // !defined __LOTMSGRS_H__