package custom.energypro.vinnica.analysis;
import java.sql.Connection;
import net.sf.jasperreports.engine.JRDefaultScriptlet;
import net.sf.jasperreports.engine.JRScriptletException;
import system.LangLogic;
import system.PeriodLogic;
public class AnalizSpozhScriptlet extends JRDefaultScriptlet {
public String getMonthYearUA(int periodCode) throws JRScriptletException {
PeriodLogic pl = new PeriodLogic(
(Connection) getParameterValue("REPORT_CONNECTION"));
pl.loadPeriodByCode(periodCode);
return LangLogic.getMonthYearUA(pl.getStartDate());
}
}