/// <summary> /// گزارش کارکرد یک روز پرسنل جاری را بر می گرداند /// </summary> /// <param name="dayDate">تاریخ</param> /// <returns>سطر گزارش کارکرد</returns> public PersonalMonthlyReportRow GetPersonDailyReport(DateTime dayDate) { try { IList <PersonalMonthlyReportRow> DailyRows = new List <PersonalMonthlyReportRow>(); if (IsValidPeson()) { PersianDateTime p = new PersianDateTime(dayDate); DateTime endOfMonth; if (BLanguage.CurrentSystemLanguage == LanguagesName.Parsi) { endOfMonth = PersianDateTime.GetEndOfShamsiMonth(p.Year, p.Month).GregorianDate; } else { endOfMonth = new DateTime(dayDate.Year, dayDate.Month, DateTime.DaysInMonth(dayDate.Year, dayDate.Month)); } BTemp bTemp = new BTemp(); List <decimal> list = new List <decimal>(); list.Add(this.workingPersonId); string operationGUID = bTemp.InsertTempList(list); gtsEngineWS.GTS_ExecuteByPersonIdAndToDate(BUser.CurrentUser.UserName, this.workingPersonId, dayDate.AddDays(1)); PersonalMonthlyReport Result = new PersonalMonthlyReport(this.workingPersonId, endOfMonth, new PersianDateTime(endOfMonth).Month, dayDate, dayDate); Result.LanguageName = sysLanguageResource; DailyRows = Result.PersonalMonthlyReportRows; return(DailyRows.First()); } else { throw new IllegalServiceAccess(String.Format("این سرویس بعللت اعتبارسنجی قابل دسترسی نمیباشد. شناسه کاربری {0} میباشد", this.Username), ExceptionSrc); } } catch (Exception ex) { BaseBusiness <Entity> .LogException(ex, "BPersonMonthlyWorkedTime", "GetPersonDailyReport"); throw ex; } }