批量不可用事件新增时间日期不在计划周期内的需要提示“该日期不在计划周期内!”
| | |
| | | { |
| | | DefaultText: 'This date is not within the planned cycle!' |
| | | } |
| | | InfoMessage MP_LibCal_Event_ValidDatePeriod |
| | | { |
| | | DefaultText: 'The start date must be less than the end date!' |
| | | } |
| | | InfoMessage MP_Routing_IllegalDateRange |
| | | { |
| | | DefaultText: 'The start date cannot be longer than the end date.' |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod ValidDate ( |
| | | output String feedback_o, |
| | | MacroPlan owner, |
| | | DateTime startdate, |
| | | DateTime endtime |
| | | ) declarative remote as Boolean |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Jul-26-2024 (created) |
| | | feedback_o := ''; |
| | | if( startdate > endtime ){ |
| | | feedback_o := Translations::MP_LibCal_Event_ValidDatePeriod(); |
| | | } |
| | | |
| | | if( not exists( owner, Period_MP, period, not period.IsHistorical() |
| | | and period.TimeUnit() = Translations::MP_GlobalParameters_Day() |
| | | and period.StartDate() = startdate.Date() |
| | | and ( period.EndDate() = endtime.Date() or period.StartDate() = endtime.Date() ) ) ){ |
| | | feedback_o := Translations::MP_LibCal_Event_ValidDate(); |
| | | } |
| | | return feedback_o = ''; |
| | | *] |
| | | } |
| | |
| | | CanBindMultiple: false |
| | | DefinitionID: 'Responsedef_WebButton_OnClick' |
| | | GroupServerCalls: true |
| | | Precondition: |
| | | [* |
| | | return LibCal_Event::ValidDate( feedback, MacroPlan, dhStartDate.Data() + durStartTimeOfDay.Duration(), dhEndDate.Data() + durEndTimeOfDay.Duration() ); |
| | | *] |
| | | QuillAction |
| | | { |
| | | Body: |