/// <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); }
/// <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); }
/// <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; }