toDate[0] = c0.getLastDate() + "T23:59:59";
toDate[1] = c1.getLastDate() + "T23:59:59";
toDate[2] = c2.getLastDate() + "T23:59:59";
spec.setToDate(toDate);*/
final DocumentDelegater ddl = new DocumentDelegater();
DBTask task = new DBTask<List[]>(getContext()) {
@Override
public List[] doInBackground() throws Exception {
List[] ret = new List[2];
List modules = ddl.getModuleList(spec);
ret[0] = modules;
if (appo) {
List appointments = ddl.getAppoinmentList(spec);
ret[1] = appointments;
}
return ret;
}