void CMainForm::showAddform() { if(m_pAddPlan == NULL) { m_pMainStack->addWidget(m_pAddPlan = new CSVAddPlan()); WObject::connect(m_pAddPlan, SIGNAL(Successful(ADD_PLAN_OK)), this, SLOT(SaveNewPlanList(ADD_PLAN_OK))); WObject::connect(m_pAddPlan, SIGNAL(SCancel()), this, SLOT(CancelAdd())); } m_pAddPlan->clearContent(); showAddPlan(); }
void CSVAddPlan::Cancel() { string strUserID = GetWebUserID(); HitLog LogItem; LogItem.sUserName = strUserID; LogItem.sHitPro = "Plan Set"; LogItem.sHitFunc = "Cancel"; LogItem.sDesc = szCancelAdd; DWORD dcalBegin=GetTickCount(); InsertHitRecord(LogItem.sUserName, LogItem.sHitPro, LogItem.sHitFunc, LogItem.sDesc, 0, 0); emit SCancel(); DWORD dcalEnd1=GetTickCount(); InsertHitRecord(LogItem.sUserName, LogItem.sHitPro, LogItem.sHitFunc, LogItem.sDesc, 1, dcalEnd1 - dcalBegin); }