Exemplo n.º 1
0
 /**
  * Get Calendar of Period
  *
  * @return calendar
  */
 public int getC_Calendar_ID() {
   if (m_C_Calendar_ID == 0) {
     MYear year = MYear.get(getCtx(), getC_Year_ID());
     if (year != null) m_C_Calendar_ID = year.getC_Calendar_ID();
     else log.severe("@NotFound@ C_Year_ID=" + getC_Year_ID());
   }
   return m_C_Calendar_ID;
 } //	getC_Calendar_ID
Exemplo n.º 2
0
 /**
  * Parent constructor
  *
  * @param year year
  * @param PeriodNo no
  * @param name name
  * @param startDate start
  * @param endDate end
  */
 public MPeriod(MYear year, int PeriodNo, String name, Timestamp startDate, Timestamp endDate) {
   this(year.getCtx(), 0, year.get_Trx());
   setClientOrg(year);
   setC_Year_ID(year.getC_Year_ID());
   setPeriodNo(PeriodNo);
   setName(name);
   setStartDate(startDate);
   setEndDate(endDate);
 } //	MPeriod