예제 #1
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)
 {
     return(TransferToOtherDepartmentCommonOperationProcessor.GetTransferCount(
                departmentId,
                startDateTime,
                endDateTime,
                hospitalizationBaseCollection));
 }
예제 #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)
        {
            // Past day (минула доба)
            var pastDay      = startDateTime.AddDays(-1);
            var fromDateTime = new DateTime(pastDay.Year, pastDay.Month, pastDay.Day, 8, 0, 0);
            var toDateTime   = new DateTime(startDateTime.Year, startDateTime.Month, startDateTime.Day, 7, 59, 0);

            return(TransferToOtherDepartmentCommonOperationProcessor.GetTransferCount(
                       departmentId,
                       fromDateTime,
                       toDateTime,
                       hospitalizationBaseCollection));
        }
예제 #3
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 TransferToOtherDepartmentCommonOperationProcessor.GetTransferCount(
                departmentId, 
                fromDateTime, 
                toDateTime, 
                hospitalizationBaseCollection);
        }