/// <summary>
 /// The get count.
 /// </summary>
 /// <param name="departmentId">
 /// The department id.
 /// </param>
 /// <param name="startDateTime">
 /// The start date time.
 /// </param>
 /// <param name="endDateTime">
 /// The end date time.
 /// </param>
 /// <param name="hospitalizationBaseCollection">
 /// The hospitalization base collection.
 /// </param>
 /// <returns>
 /// The <see cref="int"/>.
 /// </returns>
 public int GetCount(
     int departmentId,
     DateTime startDateTime,
     DateTime endDateTime,
     IList <HospitalizationBase> hospitalizationBaseCollection)
 {
     return(DaybedVillagerCommonOperationProcessor.GetDaybedVillagerCount(
                departmentId,
                startDateTime,
                endDateTime,
                hospitalizationBaseCollection));
 }
Example #2
0
        /// <summary>
        /// The get count.
        /// </summary>
        /// <param name="departmentId">
        /// The department id.
        /// </param>
        /// <param name="startDateTime">
        /// The start date time.
        /// </param>
        /// <param name="endDateTime">
        /// The end date time.
        /// </param>
        /// <param name="hospitalizationBaseCollection">
        /// The hospitalization base collection.
        /// </param>
        /// <returns>
        /// The <see cref="int"/>.
        /// </returns>
        public int GetCount(
            int departmentId,
            DateTime startDateTime,
            DateTime endDateTime,
            IList <HospitalizationBase> hospitalizationBaseCollection)
        {
            // BeginOfTheMonth (початок місяця)

            /*Если отчет выгружается за 3.04.16
             * начало месяца 1.04.16 8:00:00 - 4.04.16 7:59:00
             */
            var beginOfTheMonth = new DateTime(startDateTime.Year, startDateTime.Month, 1);
            var fromDateTime    = new DateTime(beginOfTheMonth.Year, beginOfTheMonth.Month, beginOfTheMonth.Day, 8, 0, 0);
            var toDateTime      = new DateTime(startDateTime.Year, startDateTime.Month, startDateTime.Day, 7, 59, 0);

            return(DaybedVillagerCommonOperationProcessor.GetDaybedVillagerCount(
                       departmentId,
                       fromDateTime,
                       toDateTime,
                       hospitalizationBaseCollection));
        }