/// <summary> /// /// </summary> /// <param name="Debut"></param> /// <param name="Fin"></param> /// <returns></returns> public IEnumerable <BilanComptable> GetBilanComptable(BilanComptableModeEnum Mode, DateTime?Debut, DateTime?Fin) { if (!Debut.HasValue) { Debut = DateTime.Now; } if (!Fin.HasValue) { Fin = DateTime.Now; } List <BilanComptable> listBilan; IEnumerable <COMPTA_AccountingEntries> accountLines = comptabilityDal.GetAccountingEntries(); if (Mode == BilanComptableModeEnum.Month) { CreateBilanComptableModeMonth(accountLines, Debut.Value, Fin.Value, out listBilan); return(listBilan); } else if (Mode == BilanComptableModeEnum.Year) { CreateBilanComptableModeYear(accountLines, Debut.Value, Fin.Value, out listBilan); return(listBilan); } return(null); }
/// <summary> /// /// </summary> /// <param name="Debut"></param> /// <param name="Fin"></param> /// <returns></returns> public IEnumerable<BilanComptable> GetBilanComptable( BilanComptableModeEnum Mode, DateTime? Debut, DateTime? Fin ) { if ( !Debut.HasValue ) Debut = DateTime.Now; if ( !Fin.HasValue ) Fin = DateTime.Now; List<BilanComptable> listBilan; IEnumerable<COMPTA_AccountingEntries> accountLines = comptabilityDal.GetAccountingEntries(); if (Mode == BilanComptableModeEnum.Month) { CreateBilanComptableModeMonth(accountLines, Debut.Value, Fin.Value, out listBilan); return listBilan; } else if ( Mode == BilanComptableModeEnum.Year ) { CreateBilanComptableModeYear(accountLines, Debut.Value, Fin.Value, out listBilan); return listBilan; } return null; }