private TCComponent[] searchScheduleTemplate() {
// TODO Auto-generated method stub
TCComponentContextList tccomponentcontextlist = null;
// TODO Auto-generated method stub
TCComponentQueryType tccomponentquerytype;
try {
tccomponentquerytype = (TCComponentQueryType) session.getTypeComponent("ImanQuery");
TCTextService tctextservice = session.getTextService();
TCComponentQuery tccomponentquery = (TCComponentQuery) tccomponentquerytype.find("Schedules...");
if (tccomponentquery == null) {
tccomponentquery = (TCComponentQuery) tccomponentquerytype.find("时间表...");
}
String as[] = tctextservice.getTextValues(new String[] { "is_template", "is_baseline" });
String as1[] = { "True", "False" };
tccomponentcontextlist = tccomponentquery.getExecuteResultsList(as, as1);
} catch (TCException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return tccomponentcontextlist.toTCComponentArray();
}