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.
41 lines
920 B
C++
41 lines
920 B
C++
#include "StdAfx.h"
|
|
#include "WorkCmdTimingProgress.h"
|
|
#include "LogMgr.h"
|
|
#include "WorkCmdInvoker.h"
|
|
#include "TimingProgressMgr.h"
|
|
|
|
|
|
CWorkCmdTimingProgress::CWorkCmdTimingProgress()
|
|
{
|
|
m_ProgressTime = -1;//进度条的时间
|
|
}
|
|
CWorkCmdTimingProgress::~CWorkCmdTimingProgress(void)
|
|
{
|
|
}
|
|
bool CWorkCmdTimingProgress::Excute()
|
|
{
|
|
//设置进度条显示内容
|
|
if(m_ProgressShowInfo != "")
|
|
gTimingProgressMgr.SetShowInfo(m_ProgressShowInfo);
|
|
//停止进度条
|
|
if(m_ProgressTime==0)
|
|
{
|
|
gTimingProgressMgr.StopExecute();
|
|
}
|
|
//启动进度条
|
|
if(m_ProgressTime>0)
|
|
{
|
|
gTimingProgressMgr.SetTimingProgressTime(m_ProgressTime);
|
|
gTimingProgressMgr.StartTimingProgress();
|
|
}
|
|
return true;
|
|
}
|
|
void CWorkCmdTimingProgress::WirteLog()
|
|
{
|
|
|
|
}
|
|
CString CWorkCmdTimingProgress::GetWorkCmdInfoStr()
|
|
{
|
|
CString InfoStr("TimingProgress");
|
|
return InfoStr;
|
|
} |