Пример #1
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);
        }
Пример #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;
            decimal   decResult = spHoliday.HolliDayChecking(date);

            try
            {
                this.txtCompanyCurrentdate.Text = date.ToString("dd MMM yyyy");
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "A8" + ex.Message;
            }
            return(decResult);
        }
Пример #3
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;
 }