* Клик на кнопке btFind - "�?скать"
* @param evt
*/
private void btFindActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btFindActionPerformed
try {
ProfcheckupSearchLocal profcheckupSearch = new ProfcheckupSearchLocal(getAuditManager());
profcheckupLocals = new ArrayList<ProfcheckupLocal>();
Selector<ProfcheckupLocal> selector;
Date begin = dchFromDate.getDate();
Date end = dchTillDate.getDate();
switch (search_mode) {
case search_all:
profcheckupLocals = profcheckupSearch.getFullProfcheckupList();
break;
case search_after_date:
selector = profcheckupSearch.getProfcheckupsAfterDate(begin);
for (int i = 0; i < selector.size(); i++) {
profcheckupLocals.add(selector.get(i));
}
break;
case search_before_date:
selector = profcheckupSearch.getProfcheckupsBeforeDate(end);
for (int i = 0; i < selector.size(); i++) {
profcheckupLocals.add(selector.get(i));
}
break;
case search_between_dates:
selector = profcheckupSearch.getProfcheckupsByDate(begin, end);
for (int i = 0; i < selector.size(); i++) {
profcheckupLocals.add(selector.get(i));
}
break;
default: