📄 dsacd_ivrview.h
字号:
// dsACD_IVRView.h : interface of the CDsACD_IVRView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_DSACD_IVRVIEW_H__42FDA167_DDF9_4F92_8DD3_E63A2B0A6D93__INCLUDED_)
#define AFX_DSACD_IVRVIEW_H__42FDA167_DDF9_4F92_8DD3_E63A2B0A6D93__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "dsACDObject.h"
#include "TreeDropTarget.h"
/////////////////////////////////////////////////////////////////////////////
class CDsACD_IVRView : public CTreeView
{
protected: // create from serialization only
CDsACD_IVRView();
DECLARE_DYNCREATE(CDsACD_IVRView)
public:
CDsACD_IVRDoc* GetDocument();
// 添加一条数据操作语句
HTREEITEM AddGeneralOperate(int i) ;
// 添加一条条件控制语句
HTREEITEM AddFlowCondition(HTREEITEM hParent, HTREEITEM hInsertAfter);
// 添加一条多路分支语句
HTREEITEM AddFlowSwitch(HTREEITEM hParent, HTREEITEM hInsertAfter);
// 拖拉操作中的添加
HTREEITEM AddItem(HTREEITEM hParent, CString csItemName,
HTREEITEM hInsAfter, int iSelImage , int iNonSelImage,
long lParam);
// 以下是文件读写方面的操作
CString CreateTempFileName();
void SaveModified();
BOOL SaveTree(CString csFileName);
BOOL OpenTree(CString csFileName);
HTREEITEM InsertItemFromFile(CString buf, int nID, HTREEITEM hItem);
// 辅助函数,用于保存文件时获取下一个要保存的项,采用深度优先遍历
HTREEITEM GetNextWriteItem(HTREEITEM hItem, int &flag);
// 辅助函数,用于展开流程和读取界面上的标号位置时获取下一个要展开的项,采用深度优先遍历
HTREEITEM GetNextItem(HTREEITEM hItem);
// 读取界面上所有的变量名
void ReadVariable(CString &csNameString);
// 读取界面上所有的数据库连接名
void ReadDBConn(CString &csDBString);
//读取界面上所有的标号位置
void ReadSignPos(CString &csSignString);
//重置所有变量的值
void Reset();
public:
CTreeCtrl* m_TreeCtrl;
HTREEITEM m_hChild;
CTreeDropTarget m_CTreeDropTarget;
BOOL m_bModified;
CString m_csCurFileName;
protected:
CImageList m_ImageList;
private:
HTREEITEM m_hParent1;
HTREEITEM m_hParent2;
HTREEITEM m_hParent3;
CString m_csOpenFileName;
// CString m_csTitle;
// BOOL m_bModified;
// DWORD m_dwItemCount; //树中的总项数
CStdioFile m_IOFile;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDsACD_IVRView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CDsACD_IVRView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
public:
//{{AFX_MSG(CDsACD_IVRView)
afx_msg void OnDefVariable();
afx_msg void OnDefDatasort();
afx_msg void OnDefDBconnection();
afx_msg void OnOpeCharconvert();
afx_msg void OnOpeDatatime();
afx_msg void OnOpeDboperate();
afx_msg void OnOpeFieldoperate();
afx_msg void OnOpeQuerycommand();
afx_msg void OnOpeQueryparameter();
afx_msg void OnOpeVaroperate();
afx_msg void OnFlowSwitch();
afx_msg void OnFlowSign();
afx_msg void OnFlowRestart();
afx_msg void OnFlowMatch();
afx_msg void OnFlowJump();
afx_msg void OnFlowFunction();
afx_msg void OnFlowEnd();
afx_msg void OnFlowCondition();
afx_msg void OnFlowCirculate();
afx_msg void OnACDAssigntoACDgroup();
afx_msg void OnACDAssigntoAgent();
afx_msg void OnACDFindEmptyAgent();
afx_msg void OnACDFindRecentAgent();
afx_msg void OnACDGetCalledInfo();
afx_msg void OnACDGetCallerID();
afx_msg void OnACDGetCallerInfo();
afx_msg void OnACDQueueCall();
afx_msg void OnACDSetPriority();
afx_msg void OnIVRCall();
afx_msg void OnIVRPlay();
afx_msg void OnIVRReceiveCode();
afx_msg void OnIVRRecord();
afx_msg void OnIVRResponse();
afx_msg void OnIVRRing();
afx_msg void OnIVRSendCode();
afx_msg void OnIVRSuspend();
afx_msg void OnBegindrag(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnPopDelete();
afx_msg void OnPopProperty();
afx_msg void OnPopExtendAll();
afx_msg void OnPopCloseAll();
afx_msg void OnPopExtendCurrent();
afx_msg void OnPopCloseCurrent();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnFileSave();
afx_msg void OnFileSaveAs();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnFileClose();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in dsACD_IVRView.cpp
inline CDsACD_IVRDoc* CDsACD_IVRView::GetDocument()
{ return (CDsACD_IVRDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DSACD_IVRVIEW_H__42FDA167_DDF9_4F92_8DD3_E63A2B0A6D93__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -