public FinanceCalendar GetFinanceCalendar(Int32 year, Int32 month, int interval)//通过当前会计月进行加减得到过去或未来的会计月 { DetachedCriteria criteria = DetachedCriteria.For <FinanceCalendar>(); criteria.AddOrder(Order.Asc("FinanceYear")); criteria.AddOrder(Order.Asc("FinanceMonth")); IList <FinanceCalendar> financeCalendarList = this.criteriaMgr.FindAll <FinanceCalendar>(criteria); FinanceCalendar fc = this.GetFinanceCalendar(year, month); int seq = 0; if (fc != null) { seq = financeCalendarList.IndexOf(this.GetFinanceCalendar(year, month)); } if (seq + interval >= 0 && seq + interval < financeCalendarList.Count) { return(financeCalendarList[seq + interval]); } else { return(null); } }
public virtual void DeleteFinanceCalendar(FinanceCalendar entity) { entityDao.DeleteFinanceCalendar(entity); }
public virtual void UpdateFinanceCalendar(FinanceCalendar entity) { entityDao.UpdateFinanceCalendar(entity); }
public virtual void CreateFinanceCalendar(FinanceCalendar entity) { entityDao.CreateFinanceCalendar(entity); }
public virtual void DeleteFinanceCalendar(FinanceCalendar entity) { Delete(entity); }
public virtual void UpdateFinanceCalendar(FinanceCalendar entity) { Update(entity); }
public virtual void CreateFinanceCalendar(FinanceCalendar entity) { Create(entity); }
public virtual void DeleteFinanceCalendar(FinanceCalendar entity) { Delete(entity); }
public virtual void CreateFinanceCalendar(FinanceCalendar entity) { Create(entity); }
public virtual void UpdateFinanceCalendar(FinanceCalendar entity) { Update(entity); }
public virtual void UpdateFinanceCalendar(FinanceCalendar entity) { entityDao.UpdateFinanceCalendar(entity); }
public virtual void DeleteFinanceCalendar(FinanceCalendar entity) { entityDao.DeleteFinanceCalendar(entity); }
public virtual void CreateFinanceCalendar(FinanceCalendar entity) { entityDao.CreateFinanceCalendar(entity); }