Esempio n. 1
0
void TrendReportFrame::loadString()
{ 
	//Resource
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode,"IDS_Start_Time1",strStartTimeLabel);
			FindNodeValue(ResNode,"IDS_Start_Time1",strStartTimeDes);
			FindNodeValue(ResNode,"IDS_End_Time2",strEndTimeLabel);
			FindNodeValue(ResNode,"IDS_End_Time2",strEndTimeDes);
			FindNodeValue(ResNode,"IDS_Query",strQueryBtn);
			FindNodeValue(ResNode,"IDS_Trend_Report",strTrendTitle);
			FindNodeValue(ResNode,"IDS_The_Week",strWeek);
			FindNodeValue(ResNode,"IDS_The_Day",strDay);
			FindNodeValue(ResNode,"IDS_Refresh_GUI",strRefresh);
		}
		CloseResource(objRes);
	}
/*
	strStartTimeLabel = "开始时间:";
	strStartTimeDes = "开始时间";
	strEndTimeLabel = "结束时间:";
	strEndTimeDes = "结束时间";
	strQueryBtn = "查  询";
	strTrendTitle = "趋势报告";
	*/
}
Esempio n. 2
0
CFlexTable::CFlexTable(WContainerWidget * parent, const std::string strTitle)
:WTable(parent)
{
	//Resource
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode,"IDS_All_Select",m_FormShowText.szTipSelAll);
			FindNodeValue(ResNode,"IDS_None_Select",m_FormShowText.szTipNotSelAll);
			FindNodeValue(ResNode,"IDS_Invert_Select",m_FormShowText.szTipInvSel);
			FindNodeValue(ResNode,"IDS_Delete",m_FormShowText.szTipDel);
		}
		CloseResource(objRes);
	}

	m_pOpenimg = new WImage("../Images/open.gif", (WContainerWidget *)this->elementAt( 0, 0)); 
	m_pCloseimg = new WImage("../Images/close.gif", (WContainerWidget *)this->elementAt( 0, 0));
	m_pOpenimg->decorationStyle().setCursor(WCssDecorationStyle::Pointer);
	m_pCloseimg->decorationStyle().setCursor(WCssDecorationStyle::Pointer);

	m_pOpenimg->hide();
	WObject::connect(m_pOpenimg,SIGNAL(clicked()),this,SLOT(ShowTable()));
	WObject::connect(m_pCloseimg,SIGNAL(clicked()),this,SLOT(HideTable()));	
	new WText(strTitle, (WContainerWidget*)this->elementAt(0,0));

	this->setStyleClass("t2");
	this->elementAt(0,0)->setStyleClass("t2title");

	m_pContentTable = new WTable((WContainerWidget*)this->elementAt(1,0)) ;	
	m_pContentTable->setStyleClass("t3");
}
Esempio n. 3
0
//////////////////////////////////////////////////////////////////////////////////
// start receive widget element at
CSVMainForm::CSVMainForm(WContainerWidget * parent):
WTable(parent)
{
	//Resource
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode,"IDS_Report_Edit",strEditReport);
			FindNodeValue(ResNode,"IDS_Report_Add",strAddReport);
		}
		CloseResource(objRes);
	}



	setStyleClass("t6");

    m_pfrSmsSend = NULL;
    m_pfrAddPhone = NULL;

	
	//elementAt(1, 0)->setContentAlignment(AlignCenter);
	elementAt(1, 0)->setVerticalAlignment(AlignTop);
    m_pmainStack = new WStackedWidget(elementAt(1, 0));
    m_pmainStack->setPadding(WLength(0));
    //m_pmainStack->addWidget(m_pfrSmsSet = new CSVTopnReportSet());

	m_pfrSmsSet = new CSVTopnReportSet();
	
	//m_pmainStack->addWidget(m_pfrSmsSet);
	//OutputDebugString("------CSVMainForm0---------\n");
	//m_pmainStack->addWidget(m_pfrSmsSet = new CSVTopnReportSet());
	//OutputDebugString("------CSVMainForm1---------\n");
   
	if (!m_pfrAddPhone)
    {
        m_pmainStack->addWidget(m_pfrAddPhone = new CSVAddTopnReport());
        WObject::connect(m_pfrAddPhone, SIGNAL(BackTo(std::string)), this, SLOT(ShowSetForm(std::string)));
        WObject::connect(m_pfrAddPhone, SIGNAL(SaveTopnReport(SAVE_REPORT_LIST)), 
            this, SLOT(Save_Phone(SAVE_REPORT_LIST)));
        WObject::connect(m_pfrAddPhone, SIGNAL(ExChangeAddEvent()), this, SLOT(ExChangeRefresh()));
    }

	WObject::connect(m_pfrSmsSet, SIGNAL(AddNewPhone()), this, SLOT(ShowAddForm()));  
    WObject::connect(m_pfrSmsSet, SIGNAL(EditPhone(SAVE_REPORT_LIST)), this, 
        SLOT(Edit_Phone(SAVE_REPORT_LIST)));
	WObject::connect(m_pfrSmsSet, SIGNAL(ExChangeEvent()), this, SLOT(ExChangeRefresh()));  


	m_pmainStack->addWidget(m_pfrSmsSet);

    showSmsSet();
}
Esempio n. 4
0
//////////////////////////////////////////////////////////////////////////////////
// start
CMainTable::CMainTable(WContainerWidget * parent, const std::string strTitle)
:WTable(parent)
{
	bShowHelp = false;

	this->setStyleClass("t1");
	pTitle = new WText(strTitle, (WContainerWidget*)this->elementAt(0,0));

	this->elementAt(0,0)->setStyleClass("t1title");

	//Resource
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode,"IDS_Translate",strTranslate);
			FindNodeValue(ResNode,"IDS_Translate_Tip",strTranslateTip);
			FindNodeValue(ResNode,"IDS_Refresh",strRefresh);
			FindNodeValue(ResNode,"IDS_Refresh_Tip",strRefreshTip);
			FindNodeValue(ResNode,"IDS_Help",strHelp);
			FindNodeValue(ResNode,"IDS_Return",strReturn);
		}
		CloseResource(objRes);
	}

	pTranslateBtn = new WPushButton(strTranslate, (WContainerWidget *)this->elementAt(1, 0));
    pTranslateBtn->setToolTip(strTranslateTip);
	pTranslateBtn->hide();

	new WText("    ", (WContainerWidget *)this->elementAt(1, 0));

	pExChangeBtn = new WPushButton(strRefresh, (WContainerWidget *)this->elementAt(1, 0));
	pExChangeBtn->setToolTip(strRefreshTip);
	pExChangeBtn->hide();

	new WText("    ", (WContainerWidget *)this->elementAt(1, 0));
	
	m_pHelpimg = new WImage("../Images/help.gif", (WContainerWidget *)this->elementAt(1, 0));
	this->elementAt(1, 0)->setContentAlignment(AlignRight);
	m_pHelpimg ->setStyleClass("helpimg");
    m_pHelpimg ->setToolTip(strHelp);

	strBack = strReturn;
	pBackBtn = new WPushButton(strBack, (WContainerWidget *)this->elementAt(1, 0));
	this->elementAt(1, 0)->setContentAlignment(AlignRight);
	pBackBtn->setStyleClass("bg_button");
    pBackBtn->setToolTip(strBack);
	pBackBtn->hide();

	WObject::connect(m_pHelpimg,SIGNAL(clicked()),this,SLOT(ShowOrHideHelp()));

}
Esempio n. 5
0
void SVResString::loadStrings()
{
    m_objRes = LoadResource(m_szResLanguage, m_szResAddr);
    if(m_objRes != INVALID_VALUE)
    {
        MAPNODE resNode = GetResourceNode(m_objRes);
        if(resNode != INVALID_VALUE)
        {
            loadTreeviewStrings(resNode);              // 加载树显示资源字符串
        }
    }
}
Esempio n. 6
0
//CSVPlanSet
CSVPlanSet::CSVPlanSet(WContainerWidget * parent):
WContainerWidget(parent)
{
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode,"IDS_Plan",szTitle);
			FindNodeValue(ResNode,"IDS_State",m_FormShowText.szColStatus);
			FindNodeValue(ResNode,"IDS_Name",m_FormShowText.szColName);
			FindNodeValue(ResNode,"IDS_Type",m_FormShowText.szColType);
			FindNodeValue(ResNode,"IDS_Edit",m_FormShowText.szColMod);
			FindNodeValue(ResNode,"IDS_Time_Area",m_FormShowText.szColPlanTypeRel);
			FindNodeValue(ResNode,"IDS_Delete_Task_Affirm",m_FormShowText.szValDel);
			FindNodeValue(ResNode,"IDS_Time_Area_Task_Add",m_FormShowText.szAddRelPlanBut);
			FindNodeValue(ResNode,"IDS_Time_Task_Add",m_FormShowText.szAddAbPlanBut);
			FindNodeValue(ResNode,"IDS_Time_Area_Task_Plan",m_FormShowText.szTitle1);
			FindNodeValue(ResNode,"IDS_Type_Text",m_FormShowText.szTaskType);
			FindNodeValue(ResNode,"IDS_Time_Task_Plan",m_FormShowText.szTitle2);
			FindNodeValue(ResNode,"IDS_All_Select",m_FormShowText.szTipSelAll);
			FindNodeValue(ResNode,"IDS_None_Select",m_FormShowText.szTipNotSelAll);
			FindNodeValue(ResNode,"IDS_Invert_Select",m_FormShowText.szTipInvSel);
			FindNodeValue(ResNode,"IDS_Add",m_FormShowText.szTipAddNew);
			FindNodeValue(ResNode,"IDS_Delete",m_FormShowText.szTipDel);
			FindNodeValue(ResNode,"IDS_Plan_Sep_Null",strSepPlanNull);
			FindNodeValue(ResNode,"IDS_Plan_Abs_Null",strAbsPlanNull);
			FindNodeValue(ResNode,"IDS_ConfirmCancel",m_FormShowText.szButNum);
			FindNodeValue(ResNode,"IDS_Affirm",m_FormShowText.szButMatch);
			FindNodeValue(ResNode,"IDS_EditIntervalPlan",strEditIntervalPlan);
			FindNodeValue(ResNode,"IDS_EditAbPlan",strEditAbPlan);
			FindNodeValue(ResNode,"IDS_Refresh_GUI",strRefresh);
			FindNodeValue(ResNode,"IDS_Del_Con",strDelCon);
			FindNodeValue(ResNode,"IDS_Del_Plan",strDelInPlan);
			FindNodeValue(ResNode,"IDS_Del_Ab_Plan",strDelAbPlan);
		}
		CloseResource(objRes);
	}

	hBegin= true;

	
	//IDS_Plan_Sep_Null = "[----------时间段任务计划列表为空----------]";
	//IDS_Plan_Abs_Null = "[----------绝对时间任务计划列表为空----------]";

	PlanSetForm();
}
Esempio n. 7
0
void CSVWholeview::loadStrings()
{
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode, "IDS_Refresh_Time", m_szRefreshTime);
			FindNodeValue(ResNode, "IDS_WHOLE_TREE_VIEW", m_szTitle);
            FindNodeValue(ResNode, "IDS_SE_HAS_NO_CHILD", m_szNoChild);
 			FindNodeValue(ResNode,"IDS_Refresh_GUI",strRefresh);
       }
        CloseResource(objRes);
    }
}
Esempio n. 8
0
void SVResString::ResetResoureType(string &szResLanguage, string &szAddr)
{
    m_szResLanguage = szResLanguage;
    m_szResAddr     = szAddr;
    if(m_objRes != INVALID_VALUE)
        CloseResource(m_objRes);

    m_objRes = LoadResource(m_szResLanguage, m_szResAddr);
    if(m_objRes != INVALID_VALUE)
    {
        MAPNODE resNode = GetResourceNode(m_objRes);
        if(resNode != INVALID_VALUE)
        {
            for(resItem it = m_lsResource.begin(); it != m_lsResource.end(); it++)
                FindNodeValue(resNode, it->first, it->second);
        }
    }
}
Esempio n. 9
0
void SVDeviceTest::loadString()
{
	//Resource
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode,"IDS_Device_Test",			m_szTitle);
			FindNodeValue(ResNode,"IDS_Close_Space",			m_szClose);
			FindNodeValue(ResNode,"IDS_Close_Window",			m_szCloseTip);
			FindNodeValue(ResNode,"IDS_Device_Test_Result",		m_szResult);
			FindNodeValue(ResNode,"IDS_Testing_Please_Wait",	m_szWaiting);
			FindNodeValue(ResNode,"IDS_Open_Interface_Failed",	m_szFuncErr);
			FindNodeValue(ResNode,"IDS_Open_Dll_Failed",		m_szDllErr);
			FindNodeValue(ResNode,"IDS_Test_Success",			m_szTestSucc);
			FindNodeValue(ResNode,"IDS_Test_Failed",			m_szTestFail);
			FindNodeValue(ResNode,"IDS_Test_Time_Out",			m_szTimeout);
			FindNodeValue(ResNode,"IDS_Request_String_Is_Null",	m_szQueryEmpty);
			FindNodeValue(ResNode,"IDS_Translate",strTranslate);
			FindNodeValue(ResNode,"IDS_Translate_Tip",strTranslateTip);
			FindNodeValue(ResNode,"IDS_Refresh",strRefresh);
			FindNodeValue(ResNode,"IDS_Refresh_Tip",strRefreshTip);

		}
		CloseResource(objRes);
	}
/*
	// 以下除了 "关闭窗口" ,其余在 resource 中均没有
    m_szTitle    = "设备测试";						 // IDS_Device_Test
    m_szClose    = "  关闭  ";   // IDS_Close_Space(已有的)
    m_szCloseTip = "关闭窗口";						// IDS_Close_Window (已有的)
    m_szResult   = "设备测试结果 ";				// IDS_Device_Test_Result
    m_szWaiting  = "设备测试中,请等候...";		 // IDS_Testing_Please_Wait
    m_szFuncErr  = "打开接口函数失败...";		// IDS_Open_Interface_Failed
    m_szDllErr   = "打开动态链接库失败...";		// IDS_Open_Dll_Failed
    m_szTestSucc = "测试完成...";				// IDS_Test_Success
    m_szTestFail = "测试失败...";				 // IDS_Test_Failed
    m_szTimeout  = "测试超时...";				// IDS_Test_Time_Out
    m_szQueryEmpty = "请求字符串为空...";		 // IDS_Request_String_Is_Null
	*/
}
Esempio n. 10
0
const string SVResString::getStringFromRes(const char *pcszResID)
{
    string szValue("");
    if(m_objRes != INVALID_VALUE)
    {
        MAPNODE resNode = GetResourceNode(m_objRes);
        if(resNode != INVALID_VALUE)
        {
            if(FindNodeValue(resNode, pcszResID, szValue))
                m_lsResource[pcszResID] = szValue;
            else
            {
                m_lsResource[pcszResID] = pcszResID;
                szValue = pcszResID;
            }
        }
    }
    return szValue;
}
Esempio n. 11
0
BOOL ScheduleThread::Init()
{
	SetThreadName("Main dispatch thread");
	/*	if(m_hThread==NULL)
	throw MSException("Error : Create schedule thread failed");
	*/

	OBJECT robj=::LoadResource("default",g_ServerHost);
	if(robj!=INVALID_VALUE)
	{
		MAPNODE map=GetResourceNode(robj);
		if(map!=INVALID_VALUE)
		{
			string svalue="";
			if(FindNodeValue(map,"IDS_MonitorDisabled",svalue))
				s_str_disable=svalue;
			svalue="";
			if(FindNodeValue(map,"IDS_GroupDependMonitor",svalue))
				s_str_gddisable=svalue;
			svalue="";
			if(FindNodeValue(map,"IDS_DisableMonitorSchedule",svalue))
				s_str_taskplandisable=svalue;
			svalue="";
			if(FindNodeValue(map,"IDS_TempDisableMonitorTime",svalue))
				s_str_tempdisable=svalue;
		}

		::CloseResource(robj);

	}


	m_pThreadContrl=new ThreadContrl(m_pSchMain);
	if(!m_pThreadContrl->Init())
		throw MSException("Error : initialize threads contrl failed");
	if(!m_pThreadContrl->Start())
		throw MSException("Error : Start threads contrl failed");
	InitMonitorTime();



	return TRUE;
}
Esempio n. 12
0
string GetResourceValue(const string rkey)
{
	string rvalue="";
	//OBJECT obj=LoadResource("default", "localhost");  
	OBJECT obj=LoadResource("default", GetSEIP());  
	if( obj==INVALID_VALUE )
		return rvalue;

	MAPNODE ma=GetResourceNode(obj);
	if( ma==INVALID_VALUE )
	{
		CloseResource(obj);
		return rvalue;
	}

	FindNodeValue(ma,rkey,rvalue);
	CloseResource(obj);
	return rvalue;
}
Esempio n. 13
0
void wmain1(int argc, char *argv[])
{
	string title;
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
			FindNodeValue(ResNode,"IDS_SelfSmsSerialPortTest",title);
		CloseResource(objRes);
	}
//	title = "自定义短信接口测试";
    WApplication app(argc, argv);
	app.setTitle(title.c_str());
  //WApplication app(argc, argv);
  //app.setTitle("短信串口测试");
  app.setBodyAttribute("class='winbg' ");
  CSVSelfDefineSendSMS sendmail(app.root());
  sendmail.appSelf = &app;

  app.exec();
}
Esempio n. 14
0
//////////////////////////////////////////////////////////////////////////////////
// start
CSVAddPlan::CSVAddPlan(WContainerWidget * parent):
WContainerWidget(parent)
{
	//Resource
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			//添加Resource
			FindNodeValue(ResNode,"IDS_Plan",szTitle);
			FindNodeValue(ResNode,"IDS_Time_Area_Task_Add",m_FormShowText.szAddReTitle);
			FindNodeValue(ResNode,"IDS_Name_Edit_Error",m_FormShowText.szErrorMsg);
			FindNodeValue(ResNode,"IDS_Task_Plan_Name",m_FormShowText.szRunName);
			FindNodeValue(ResNode,"IDS_Task_Plan_Name_Help",m_FormShowText.szRunNameHelp);
			FindNodeValue(ResNode,"IDS_Description",m_FormShowText.szDescript);
			FindNodeValue(ResNode,"IDS_Save",m_FormShowText.szSaveBut);
			FindNodeValue(ResNode,"IDS_Cancel",m_FormShowText.szCancelBut);
			FindNodeValue(ResNode,"IDS_Task_Plan_Name_Same",m_FormShowText.szErrorMsg1);
			FindNodeValue(ResNode,"IDS_General_Check",m_FormShowText.szBasicAdd);
			FindNodeValue(ResNode,"IDS_Advance_Option",m_FormShowText.szAdvanceAdd);
			FindNodeValue(ResNode,"IDS_Week_Help",m_FormShowText.strWeekHelp);
			FindNodeValue(ResNode,"IDS_Add_Title",strTypeAdd);
			FindNodeValue(ResNode,"IDS_Edit",strTypeEdit);
			FindNodeValue(ResNode,"IDS_Time_Area_Task_Plan",strTimeTaskPlan);
			FindNodeValue(ResNode,"IDS_Enable",strAllown);
			FindNodeValue(ResNode,"IDS_Help",strHelp);
			FindNodeValue(ResNode,"IDS_CancelAddInPlan",szCancelAdd);
			FindNodeValue(ResNode,"IDS_SaveAddInPlan",szSaveAddInPlan);
		}
		CloseResource(objRes);
	}

	IsShow = true;
	chgstr = "";
    m_nIndex = -1;
    showMainForm();
}
Esempio n. 15
0
//////////////////////////////////////////////////////////////////////////////////
// start
CFlexTable::CFlexTable()
{	
	//Resource
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode,"IDS_All_Select",m_FormShowText.szTipSelAll);
			FindNodeValue(ResNode,"IDS_None_Select",m_FormShowText.szTipNotSelAll);
			FindNodeValue(ResNode,"IDS_Invert_Select",m_FormShowText.szTipInvSel);
			FindNodeValue(ResNode,"IDS_Delete",m_FormShowText.szTipDel);
		}
		CloseResource(objRes);
	}

	m_pGroupOperate = NULL;
	pSelAll = NULL;
	pSelNone = NULL;
	pSelinvert = NULL;
	pDel = NULL;
	pAdd = NULL;
}
Esempio n. 16
0
//////////////////////////////////////////////////////////////////////////////////
// start
CMainForm::CMainForm(WContainerWidget * parent):WTable(parent)
//CMainForm::CMainForm(WContainerWidget * parent):WContainerWidget(parent)
{
	//setStyleClass("bg_Border");
	//Resource
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode,"IDS_Plan",szTitle);
			FindNodeValue(ResNode,"IDS_Translate",strTranslate);
			FindNodeValue(ResNode,"IDS_Translate_Tip",strTranslateTip);
			FindNodeValue(ResNode,"IDS_Refresh",strRefresh);
			FindNodeValue(ResNode,"IDS_Refresh_Tip",strRefreshTip);
		}
		CloseResource(objRes);
	}


	setStyleClass("t1");

	new WText("", (WContainerWidget*)elementAt(0,0));
	elementAt(0,0)->setStyleClass("t1title");

	elementAt(1, 0) -> setContentAlignment(AlignTop | AlignRight);

	pTranslateBtn = new WPushButton(strTranslate, (WContainerWidget *)elementAt(1, 0));
    pTranslateBtn->setToolTip(strTranslateTip);
	pTranslateBtn->hide();

	new WText("    ", (WContainerWidget *)elementAt(1, 0));

	pExChangeBtn = new WPushButton(strRefresh, (WContainerWidget *)elementAt(1,0));
	pExChangeBtn->setToolTip(strRefreshTip);
	pExChangeBtn->hide();

	new WText("    ", (WContainerWidget *)elementAt(1, 0));

	//·­Òë
	int bTrans = GetIniFileInt("translate", "translate", 0, "general.ini");
	if(bTrans == 1)
	{
		pTranslateBtn->show();
		WObject::connect(pTranslateBtn, SIGNAL(clicked()), this, SLOT(Translate()));	

		pExChangeBtn->show();
		WObject::connect(pExChangeBtn, SIGNAL(clicked()), this, SLOT(ExChange()));	
	}
	else
	{
		pTranslateBtn->hide();
		pExChangeBtn->hide();
	}

	m_pAddPlan = NULL;
	m_pAddAbsolutePlan = NULL;
    m_pMainStack = new WStackedWidget(elementAt(1, 0));
    m_pMainStack->setPadding(WLength(0));
	m_pPlanSet = new CSVPlanSet();
	m_pMainStack->addWidget(m_pPlanSet);
    

    WObject::connect(m_pPlanSet, SIGNAL(AddNewPlan()), this, SLOT(showAddform()));
    WObject::connect(m_pPlanSet, SIGNAL(EditPlanList(ADD_PLAN_OK)), this, SLOT(EditNewPlanList(ADD_PLAN_OK)));     

	WObject::connect(m_pPlanSet, SIGNAL(AddNewPlan1()), this, SLOT(showAddform1()));
    WObject::connect(m_pPlanSet, SIGNAL(EditPlanList1(ADD_PLAN_OK)), this, SLOT(EditNewPlanList1(ADD_PLAN_OK)));     

	showPlanSet();


/*
//	new WText("<SCRIPT language='JavaScript' src='/basic.js'></SCRIPT>", this);
	new WText("<SCRIPT language='JavaScript' src='/Script.js'></SCRIPT>", this);

	new WText("<div id='view_panel' class='panel_view'>", this);

	
	pMainTable = new WSVMainTable(this, szTitle, false);
	
////	szTitle = "ÈÎÎñ¼Æ»®";
//	setStyleClass("t1");
//
//	new WText(szTitle, (WContainerWidget*)elementAt(0,0));
//	elementAt(0,0)->setStyleClass("t1title");
//
//	elementAt(1, 0) -> setContentAlignment(AlignTop | AlignRight);

	pTranslateBtn = new WPushButton(strTranslate, (WContainerWidget *)pMainTable->elementAt(0, 0));
    pTranslateBtn->setToolTip(strTranslateTip);
	pTranslateBtn->hide();

	new WText("&nbsp;&nbsp;&nbsp;&nbsp;", (WContainerWidget *)pMainTable->elementAt(0, 0));

	pExChangeBtn = new WPushButton(strRefresh, (WContainerWidget *)pMainTable->elementAt(0,0));
	pExChangeBtn->setToolTip(strRefreshTip);
	pExChangeBtn->hide();

	new WText("&nbsp;&nbsp;&nbsp;&nbsp;", (WContainerWidget *)pMainTable->elementAt(0, 0));

	//·­Òë
	int bTrans = GetIniFileInt("translate", "translate", 0, "general.ini");
	//bTrans = 1;
	if(bTrans == 1)
	{
		pTranslateBtn->show();
		WObject::connect(pTranslateBtn, SIGNAL(clicked()), this, SLOT(Translate()));	

		pExChangeBtn->show();
		WObject::connect(pExChangeBtn, SIGNAL(clicked()), this, SLOT(ExChange()));	
	}
	else
	{
		pTranslateBtn->hide();
		pExChangeBtn->hide();
	}
	
	m_pAddPlan = NULL;
	m_pAddAbsolutePlan = NULL;
    //m_pMainStack = new WStackedWidget(elementAt(1, 0));
	m_pMainStack = new WStackedWidget((WContainerWidget *)pMainTable->elementAt(1,0));
    m_pMainStack->setPadding(WLength(0));
	m_pPlanSet = new CSVPlanSet(pMainTable);
	m_pMainStack->addWidget(m_pPlanSet);
    

    WObject::connect(m_pPlanSet, SIGNAL(AddNewPlan()), this, SLOT(showAddform()));
    WObject::connect(m_pPlanSet, SIGNAL(EditPlanList(ADD_PLAN_OK)), this, SLOT(EditNewPlanList(ADD_PLAN_OK)));     

	WObject::connect(m_pPlanSet, SIGNAL(AddNewPlan1()), this, SLOT(showAddform1()));
    WObject::connect(m_pPlanSet, SIGNAL(EditPlanList1(ADD_PLAN_OK)), this, SLOT(EditNewPlanList1(ADD_PLAN_OK)));     

	showPlanSet();

	new WText("</div>",this);
*/
}
Esempio n. 17
0
CTuopList::CTuopList(WContainerWidget *parent ):
WContainerWidget(parent)
{
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
		#ifdef	 Tuopu
			FindNodeValue(ResNode,"IDS_Tuopu",strMainTitle);
			FindNodeValue(ResNode,"IDS_Tuopu_List",strTitle);
			FindNodeValue(ResNode,"IDS_Tuopu1",strNameUse);
			FindNodeValue(ResNode,"IDS_Delete_Tuop_Affirm",strDel);
			FindNodeValue(ResNode,"IDS_Tuop_List_Null",strNullList);
			FindNodeValue(ResNode,"IDS_Tuopu1",strTuopTip);
		#else
			FindNodeValue(ResNode,"IDS_Maintain",strMainTitle);//Ecc展示视图
			FindNodeValue(ResNode,"IDS_Maintain_List",strTitle);//Ecc展示视图列表
			FindNodeValue(ResNode,"IDS_Maintain1",strNameUse);//展示图
			FindNodeValue(ResNode,"IDS_Delete_Maintain_Affirm",strDel);//确认删除选中展示视图吗?
			FindNodeValue(ResNode,"IDS_Maintain_List_Null",strNullList);//Ecc展示视图列表为空
			FindNodeValue(ResNode,"IDS_Maintian1",strTuopTip);//Ecc展示视图
		#endif

			FindNodeValue(ResNode,"IDS_Name",strLoginLabel);
			FindNodeValue(ResNode,"IDS_Edit",strNameEdit);			
			FindNodeValue(ResNode,"IDS_Edit",strEditTip);			
			FindNodeValue(ResNode,"IDS_Delete",strDeleteType);
			FindNodeValue(ResNode,"IDS_ConfirmCancel",szButNum);
			FindNodeValue(ResNode,"IDS_Affirm",szButMatch);

			FindNodeValue(ResNode,"IDS_Delete_Tuop_Affirm",strDel);
			FindNodeValue(ResNode,"IDS_Edit",strEditTip);
			FindNodeValue(ResNode,"IDS_Delete",strDeleteType);
			FindNodeValue(ResNode,"IDS_ConfirmCancel",szButNum);
			FindNodeValue(ResNode,"IDS_Affirm",szButMatch);
			FindNodeValue(ResNode,"IDS_All_Select",strAllSel);
			FindNodeValue(ResNode,"IDS_None_Select",strAllNotSel);
			FindNodeValue(ResNode,"IDS_Invert_Select",strFanSel);
			FindNodeValue(ResNode,"IDS_Delete",strDelete);
			FindNodeValue(ResNode,"IDS_Sort",szSort);
			FindNodeValue(ResNode,"IDS_TuopDown",szTuopDown);
			FindNodeValue(ResNode,"IDS_SortNum",szSortNum);
			FindNodeValue(ResNode,"IDS_Refresh_GUI",strRefresh);
			FindNodeValue(ResNode,"IDS_Del_Con",strDelCon);
			FindNodeValue(ResNode,"IDS_Save_Sort",strSaveSort);
			FindNodeValue(ResNode,"IDS_ReturnSave",strReturnSave);

			//IDS_Sort = 排序
			FindNodeValue(ResNode,"IDS_Sort",strSort);
			//IDS_TUOPU_SORT_LIST = 拓扑排序列表
			FindNodeValue(ResNode,"IDS_TUOPU_SORT_LIST",strTuoPuSortList);
			//IDS_Name = 名称
			FindNodeValue(ResNode,"IDS_Name",strName);
			//IDS_SEQUENCE_NO = 序号
			FindNodeValue(ResNode,"IDS_SEQUENCE_NO",strSequenceNo);
			//IDS_Affirm = 确定
			FindNodeValue(ResNode,"IDS_Affirm",strAffirm);

		}
		CloseResource(objRes);
	}
	bFirst =true;
	ShowMainTable();
}
Esempio n. 18
0
CShowLog::CShowLog(WContainerWidget *parent):
WContainerWidget(parent)
{
	refreshCount=0;

	string strTemp1,strTemp2;
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode,"IDS_LogShow",strMainTitle);
			FindNodeValue(ResNode,"IDS_ReadLogError",strTemp1);
			FindNodeValue(ResNode,"IDS_MonitorLogContext",strTemp2);
		}
		CloseResource(objRes);
	}
	
	
	char buf_tmp[4096]={0};
    int nSize =4095;


	GetEnvironmentVariable( "QUERY_STRING", buf_tmp,nSize);
	//char * tmpquery;
	//tmpquery = getenv( "QUERY_STRING");
	//if(tmpquery)
	//	strcpy(buf_tmp,tmpquery);
	if(buf_tmp != NULL)
	{
		std::string buf1 = buf_tmp;
		int pos = buf1.find("=", 0);
		querystr = buf1.substr(pos+1, buf1.size() - pos - 1);
	}
	
	strPath = "";
	strPath += GetSiteViewRootPath();
	strPath += "\\data\\Temp\\";
	strPath += querystr;
	strPath += ".txt";

	string   strTemp; 
	string   strOutput;

	try
	{
		ifstream  Input(strPath.c_str(), ios::out); 
			//获取日志行数
			nTotleLine = 0;
			nCurLine = 0;
			nPageLine = 100;

		if(Input.is_open())
		{
		
			while(!Input.eof())   
			{   
				nTotleLine++;
				getline(Input, strTemp , '\n');
				//puts(strTemp.c_str());
			}

			Input.close(); 
		}
		
		//获取日志最新100行数数据
		nStartLine = nTotleLine - nPageLine;

		//Input.open(strPath.c_str(), ios::out, 0);

		ifstream  Input1(strPath.c_str(), ios::out); 
		if(Input1.is_open())
		{
			while(!Input1.eof())   
			{   
				if(nTotleLine <= nPageLine)
				{
					getline(Input1, strTemp , '\n');
					strOutput += strTemp;
					strOutput += "\n";
				}
				else
				{
					if(nCurLine >=  nStartLine)
					{
						getline(Input1, strTemp , '\n');
						strOutput += strTemp;
						strOutput += "\n";
					}
					else
						getline(Input1, strTemp , '\n');
					
					nCurLine++;
				}
			}

			Input1.close(); 
		}

	}
	catch(...)
	{
		strOutput = strTemp1;
	}

	WTable * pContainTable = new WTable(this);
	
	//日志标题
	string strLogTitle = GetDeviceTitle(querystr);
	strLogTitle += ":";
	strLogTitle += GetMonitorPropValue(querystr, "sv_name");
	strLogTitle += strTemp2;


	pContainTable ->setStyleClass("t5");
	//pContainTable->setStyleClass("StatsTable");
	WText * pReportTitle = new WText(strLogTitle, (WContainerWidget*)pContainTable->elementAt(0, 0));
	pContainTable->elementAt(0, 0)->setContentAlignment(AlignTop | AlignCenter);
	WFont font1;
	font1.setSize(WFont::Large, WLength(60, WLength::Pixel));
	pReportTitle ->decorationStyle().setFont(font1);


	//日志内容
	WTextArea * pStateTextArea = new WTextArea(strOutput, (WContainerWidget*)pContainTable->elementAt(1, 0));
	//pContainTable->elementAt(1, 0)->setStyleClass("t5");
	pContainTable->elementAt(1, 0)->resize(WLength(100,WLength::Percentage), WLength(100,WLength::Percentage));
	pStateTextArea->setRows(nPageLine);
	pStateTextArea->setColumns(60);
	pStateTextArea ->setStyleClass("testingresult2");
	//pStateTextArea->resize(WLength(100,WLength::Percentage), WLength(100,WLength::Percentage));
	pStateTextArea->resize(WLength(100,WLength::Percentage), WLength(100,WLength::Percentage));

	strcpy(pStateTextArea->contextmenu_ , "readonly=\"readonly\"");

	//strPageTitle = "";
	//new WText("日志内容:", pMainTable->elementAt(4, 0));
	//new WText(strOutput, pMainTable->elementAt(2,0));

	//版权信息
	WText * bottomTitle = new WText("Copyright SiteView", pContainTable->elementAt(2, 0));
	bottomTitle ->decorationStyle().setFont(font1);
	pContainTable->elementAt(2, 0)->setContentAlignment(AlignTop | AlignCenter);
	bottomTitle->decorationStyle().setForegroundColor(Wt::blue);
}
Esempio n. 19
0
//////////////////////////////////////////////////////////////////////////////////
// start
CAnswerTable::CAnswerTable(WContainerWidget * parent, const std::string strTitle)
:WTable(parent)
{
	bShowHelp = false;
	//Resource
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode,"IDS_Save",strSave);
			FindNodeValue(ResNode,"IDS_Save_And_Add",strSaveAndAdd);
			FindNodeValue(ResNode,"IDS_Cancel",strCancel);
			FindNodeValue(ResNode,"IDS_Translate",strTranslate);
			FindNodeValue(ResNode,"IDS_Translate_Tip",strTranslateTip);
			FindNodeValue(ResNode,"IDS_Refresh",strRefresh);
			FindNodeValue(ResNode,"IDS_Refresh_Tip",strRefreshTip);
			FindNodeValue(ResNode,"IDS_Help",strHelp);
		}
		CloseResource(objRes);
	}
/*
	strSave = "保存";
	strSaveAndAdd = "保存并继续添加";
	strCancel = "取消";
*/
	this->setStyleClass("t5");
	this->setCellPadding(0);
	this->setCellSpaceing(0);

	//标题行
	new WText(strTitle, (WContainerWidget*)this->elementAt(0,0));
	this->elementAt(0,0)->setStyleClass("t1title");

	//第二行
	this->elementAt(1,0)->setStyleClass("t5");	
	
	//第二行内部表格
	m_pContentTable = new WTable(this->elementAt(1,0));	
	m_pContentTable->setCellPadding(0);
	m_pContentTable->setCellSpaceing(0);
	m_pContentTable->setStyleClass("t5");

	//第二行滚动视图-管理内部表格
	WScrollArea * pScrollArea = new WScrollArea(this->elementAt(1,0));
	pScrollArea->setStyleClass("t5");	
	pScrollArea->setWidget(m_pContentTable);

	//内部表格第一行右边放帮助按钮
	m_pContentTable->elementAt(0, 0)->setContentAlignment(AlignRight);
	
	pTranslateBtn = new WPushButton(strTranslate, (WContainerWidget *)m_pContentTable->elementAt(0, 0));
    pTranslateBtn->setToolTip(strTranslateTip);
	pTranslateBtn->hide();

	new WText("&nbsp;&nbsp;&nbsp;&nbsp;", (WContainerWidget *)m_pContentTable->elementAt(0, 0));

	pExChangeBtn = new WPushButton(strRefresh, (WContainerWidget *)m_pContentTable->elementAt(0, 0));
	pExChangeBtn->setToolTip(strRefreshTip);
	pExChangeBtn->hide();

	new WText("&nbsp;&nbsp;&nbsp;&nbsp;", (WContainerWidget *)m_pContentTable->elementAt(0, 0));

	m_pHelpimg = new WImage("../Images/help.gif", (WContainerWidget *)m_pContentTable->elementAt(0, 0));	
	m_pHelpimg ->setStyleClass("helpimg");
    m_pHelpimg ->setToolTip(strHelp);
	WObject::connect(m_pHelpimg,SIGNAL(clicked()),this,SLOT(ShowOrHideHelp()));	
	
	//内部表格第二行放其他东西....

	//第三行-按钮栏
	this->elementAt(2,0)->setContentAlignment(AlignCenter);
	pSaveAndAdd = new WPushButton(strSaveAndAdd, this->elementAt(2,0));
	new WText("&nbsp;&nbsp;&nbsp;",this->elementAt(2,0));
	pSaveAndAdd->hide();
	pSave = new WPushButton(strSave, this->elementAt(2,0));	
	new WText("&nbsp;&nbsp;&nbsp;",this->elementAt(2,0));
	pCancel = new WPushButton(strCancel, this->elementAt(2,0));	
}
Esempio n. 20
0
void CSVAddPlan::showMainForm()
{
	
	string szMon,szThurs,szWed,szTues,szFri,szSat,szSun,szDisable,szEnable,szfrom,szTo,szAddRelPlanBut;
	//Resource
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode,"IDS_Time_Area_Task_Add",szAddRelPlanBut);

			FindNodeValue(ResNode,"IDS_Disable",szDisable);
			FindNodeValue(ResNode,"IDS_Enable",szEnable);
			FindNodeValue(ResNode,"IDS_Monday",szMon);
			FindNodeValue(ResNode,"IDS_Tuesday",szThurs);
			FindNodeValue(ResNode,"IDS_Wednesday",szWed);
			FindNodeValue(ResNode,"IDS_Thursday",szTues);
			FindNodeValue(ResNode,"IDS_Friday",szFri);
			FindNodeValue(ResNode,"IDS_Saturday",szSat);
			FindNodeValue(ResNode,"IDS_Sunday",szSun);
			FindNodeValue(ResNode,"IDS_From",szfrom);
			FindNodeValue(ResNode,"IDS_To",szTo);
		}
		CloseResource(objRes);
	}

	
	new WText("<SCRIPT language='JavaScript' src='/basic.js'></SCRIPT>", this);
	new WText("<div id='view_panel' class='panel_view'>", this);


OutputDebugString("----------------strUser----------------\n");
	pMainTable = new WSVMainTable(this, szTitle, true);
	if(pMainTable->pHelpImg)
	{
		connect(pMainTable->pHelpImg, SIGNAL(clicked()),this,SLOT(AddPlanHelp()));
	}
	

	AddRangeTable = new WSVFlexTable((WContainerWidget *)pMainTable->GetContentTable()->elementAt(1,0), Group, m_FormShowText.szAddReTitle);

	if (AddRangeTable->GetContentTable() != NULL)
	{
		AddRangeTable->AppendRows(m_FormShowText.szBasicAdd);

		m_pName = new WLineEdit("", AddRangeTable->AppendRowsContent(0, m_FormShowText.szRunName+"<span class =required>*</span>", m_FormShowText.szRunNameHelp, m_FormShowText.szErrorMsg));
		//m_pName -> setTextSize(50);
		m_pName->resize(WLength(300, WLength::Pixel),WLength(20, WLength::Pixel));
		m_pName->setStyleClass("input_text");
		
		new WText("", AddRangeTable->AppendRowsContent(0, "", "", m_FormShowText.szErrorMsg1));

		m_pTasklist = new CTaskList(NULL, AddRangeTable,m_FormShowText.strWeekHelp);
		/*
		m_pCombo[0] = new WComboBox(RecList->elementAt(0, 1));
		m_pCombo[0]->addItem(szEnable);
		m_pCombo[0]->addItem(szDisable);
		pFrom[0] = new WText(szfrom, RecList->elementAt(0, 2));
		m_pStart[0] = new WLineEdit("00:00", RecList->elementAt(0, 3));
		m_pStart[0]->setStyleClass("input_text");
		pTo[0] = new WText(szTo, RecList->elementAt(0, 4));
		m_pEnd[0] = new WLineEdit("23:59", RecList->elementAt(0, 5));
		m_pEnd[0]->setStyleClass("input_text");

		for (int i=1; i<7; i++)
		{
			WTable *RecList = new WTable(AddRangeTable->AppendRowsContent(0, DayType[i], "", ""));
			RecList->setStyleClass("widthauto");
			m_pCombo[i] = new WComboBox(RecList->elementAt(0, 1));
			m_pCombo[i]->addItem(szEnable);
			m_pCombo[i]->addItem(szDisable);
			pFrom[i] = new WText(szfrom, RecList->elementAt(0, 2));
			m_pStart[i] = new WLineEdit("00:00", RecList->elementAt(0, 3));
			m_pStart[i]->setStyleClass("input_text");
			pTo[i] = new WText(szTo, RecList->elementAt(0, 4));
			m_pEnd[i] = new WLineEdit("23:59", RecList->elementAt(0, 5));
			m_pEnd[i]->setStyleClass("input_text");
		}
		*/
		AddRangeTable->AppendRows(m_FormShowText.szAdvanceAdd);
		textarea = new WTextArea("", AddRangeTable->AppendRowsContent(1, m_FormShowText.szDescript, "", ""));
		textarea->resize(WLength(400, WLength::Pixel),WLength(100, WLength::Pixel));
		textarea->setStyleClass("input_text");

		AddRangeTable->ShowOrHideHelp();
		AddRangeTable->HideAllErrorMsg();
	}

	if (AddRangeTable->GetActionTable() != NULL)
	{
		WTable *pGroupOperate = new WTable(AddRangeTable->GetActionTable()->elementAt(0, 1));
		pGroupOperate->setStyleClass("widthauto");

		WSVButton * pSave = new WSVButton(pGroupOperate->elementAt(0,0),m_FormShowText.szSaveBut,"button_bg_m_black.png",m_FormShowText.szSaveBut,true);
		WObject::connect(pSave, SIGNAL(clicked()), this, SLOT(Save()));
		//pGroupOperate->elementAt(0,0)-> addWidget(pSave);

		WSVButton * pCancel = new WSVButton(pGroupOperate->elementAt(0,1),m_FormShowText.szCancelBut,"button_bg_m.png",m_FormShowText.szCancelBut,false);
		WObject::connect(pCancel, SIGNAL(clicked()), this, SLOT(Cancel()));

		//pGroupOperate->elementAt(0,0)-> addWidget(pCancel);
		//pGroupOperate->elementAt(0,0)->setContentAlignment(AlignCenter);
		
	}

	//new WText("</div>");

	//Jansion.zhou 2006-12-25
 //   WTable * TitleTable = new WTable(this);
	//TitleTable->setStyleClass("t3");
	//m_pErrMsg = new WText("", (WContainerWidget *)TitleTable->elementAt(0,0));
 //   m_pErrMsg->decorationStyle().setForegroundColor(Wt::red);
 //   m_pErrMsg->hide();

	//Jansion.zhou 2006-12-25
	////connect svdb failure WText
	//m_pConnErr = new WText("", (WContainerWidget *)TitleTable->elementAt(0, 0));
	//m_pConnErr->decorationStyle().setForegroundColor(Wt::red);
	//m_pConnErr ->hide();
	



	new WText("</div>", this);

	AddJsParam("uistyle", "viewpan");
	AddJsParam("fullstyle", "true");
	AddJsParam("bGeneral", "false");
	new WText("<SCRIPT language='JavaScript' src='/Script.js'></SCRIPT>", this);
}
Esempio n. 21
0
void CSVReportSet::loadString()
{
	//Resource
	OBJECT objRes=LoadResource("default", "localhost");  
	if( objRes !=INVALID_VALUE )
	{	
		MAPNODE ResNode=GetResourceNode(objRes);
		if( ResNode != INVALID_VALUE )
		{
			FindNodeValue(ResNode,"IDS_Total_Report",m_formText.szMainTitle);
			FindNodeValue(ResNode,"IDS_Report_Config",m_formText.szTitle);
			FindNodeValue(ResNode,"IDS_Save",m_formText.szSave);
			FindNodeValue(ResNode,"IDS_ReportList",m_formText.szTBTitle);
			FindNodeValue(ResNode,"IDS_State",m_formText.szColSelAll);
			FindNodeValue(ResNode,"IDS_Title",m_formText.szColName);
			FindNodeValue(ResNode,"IDS_State",m_formText.szColState);
			FindNodeValue(ResNode,"IDS_Edit",m_formText.szColEdit);
			FindNodeValue(ResNode,"IDS_Time_Period",m_formText.szColPeriod);
			FindNodeValue(ResNode,"IDS_Disable",m_formText.szDisable);
			FindNodeValue(ResNode,"IDS_Enable",m_formText.szEnable);
			FindNodeValue(ResNode,"IDS_All_Select_Other",m_formText.szTipSelAll);
			FindNodeValue(ResNode,"IDS_Report_Add",m_formText.szAddPhoneBut);
			FindNodeValue(ResNode,"IDS_Connect_SVDB_Fail",m_formText.szConnErr);
			FindNodeValue(ResNode,"IDS_All_Select",m_formText.szTipSelAll1);
			FindNodeValue(ResNode,"IDS_None_Select",m_formText.szTipSelNone);
			FindNodeValue(ResNode,"IDS_Invert_Select",m_formText.szTipSelInv);
			FindNodeValue(ResNode,"IDS_Add",m_formText.szTipAddNew);
			FindNodeValue(ResNode,"IDS_Delete",m_formText.szTipDel);
			FindNodeValue(ResNode,"IDS_TopN_Report_Same",m_formText.szSameSection);
			FindNodeValue(ResNode,"IDS_Translate",strTranslate);
			FindNodeValue(ResNode,"IDS_Translate_Tip",strTranslateTip);
			FindNodeValue(ResNode,"IDS_Refresh",strRefresh);
			FindNodeValue(ResNode,"IDS_Refresh_Tip",strRefreshTip);
			FindNodeValue(ResNode,"IDS_DeleteSMSAffirmInfo",m_formText.szDeleteSMSAffirm);
			FindNodeValue(ResNode,"IDS_ConfirmCancel",m_formText.szButNum);
			FindNodeValue(ResNode,"IDS_Affirm",m_formText.szButMatch);
			FindNodeValue(ResNode,"IDS_TotalReportEmpty",szListEmpty);
		}
		CloseResource(objRes);
	}
	//szListEmpty = "[----------统计报告列表为空-----------]";
/*
	m_formText.szMainTitle="统计报告";
    m_formText.szTitle = "报告设置";
    m_formText.szSave = "保存";
    m_formText.szTBTitle = "报告列表";
    m_formText.szColSelAll = "状态";
    m_formText.szColName = "标题";
    m_formText.szColState = "状态";
	m_formText.szColEdit = "编辑";
	m_formText.szColPeriod = "时间周期";
    m_formText.szDisable = "禁止";
    m_formText.szEnable = "允许";
    m_formText.szTipSelAll = "全选或者取消全选";
	m_formText.szAddPhoneBut = "添加报告";
	m_formText.szConnErr = "连接SVDB失败";
	m_formText.szTipSelAll1 = "全选";
	m_formText.szTipSelNone = "全不选";
	m_formText.szTipSelInv = "反选";
	m_formText.szTipAddNew = "添加";
	m_formText.szTipDel = "删除";
	m_formText.szSameSection = "有相同的TOPN报告";*/
}