예제 #1
0
        private decimal HolidaySettings(string date)
        {
            HolidaySP spHoliday = new HolidaySP();
            DateTime  cur_date  = Convert.ToDateTime(date);
            decimal   decResult = spHoliday.HolliDayChecking(cur_date);

            return(decResult);
        }
예제 #2
0
        /// <summary>
        /// Function to check the selected date is holiday or not
        /// </summary>
        /// <returns></returns>
        public decimal HolidaySettings()
        {
            HolidaySP spHoliday = new HolidaySP();
            DateTime  date      = this.dtpCompanyCurrentDate.Value;

            this.txtCompanyCurrentdate.Text = date.ToString("dd MMM yyyy");
            decimal decResult = spHoliday.HolliDayChecking(date);

            return(decResult);
        }
예제 #3
0
        /// <summary>
        /// Function to check Holidays based on parameter and return value
        /// </summary>
        /// <param name="date"></param>
        /// <returns></returns>
        public decimal HolliDayChecking(DateTime date)
        {
            decimal decResult = 0;

            try
            {
                decResult = SPHoliday.HolliDayChecking(date);
            }
            catch (Exception ex)
            {
                MessageBox.Show("HSBll10:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(decResult);
        }