| | |
| | |
|
| | | private void SecondEvent()
|
| | | {
|
| | | if(!inDateNotify && InDay(TimeUtility.ServerNow))
|
| | | if(!inDateNotify && InPkSeason(TimeUtility.ServerNow))
|
| | | {
|
| | | inDateNotify = true;
|
| | | stepDateNotify = false;
|
| | |
| | | activityStartEvent();
|
| | | }
|
| | | }
|
| | | else if(!stepDateNotify && !InDay(TimeUtility.ServerNow))
|
| | | else if(!stepDateNotify && !InPkSeason(TimeUtility.ServerNow))
|
| | | {
|
| | | inDateNotify = false;
|
| | | stepDateNotify = true;
|
| | |
| | | return true;
|
| | | }
|
| | |
|
| | | public bool InDay(DateTime time)
|
| | | public bool InPkSeason(DateTime time)
|
| | | {
|
| | | OperationDate date = new OperationDate()
|
| | | {
|
| | |
| | |
|
| | | public int IndexOfDays(DateTime time)
|
| | | {
|
| | | if (!InDay(time))
|
| | | if (!InPkSeason(time))
|
| | | {
|
| | | return -1;
|
| | | }
|
| | |
| | | if(isSeason)
|
| | | {
|
| | | if (!seasonInfo.StartDate.Equals(default(OperationDate))
|
| | | && InDay(TimeUtility.ServerNow))
|
| | | && InPkSeason(TimeUtility.ServerNow))
|
| | | {
|
| | | return Language.Get("CrossServer106", ToDisplayTime(seasonInfo.StartDate, seasonInfo.EndDate));
|
| | | }
|