lazhen
2024-08-29 174d2790d88fa5aaaa728eb0bc7e98d9ec79c1a8
默认添加空eventtype
已修改6个文件
已添加2个文件
38 ■■■■ 文件已修改
Calendars/BL/Type_LibCal_CalendarRegistry/Method_InitializeEventCategories.qbl 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Calendars/BL/Type_LibCal_CommonCalendar/StaticMethod_Create.qbl 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/InfoMessages.qbl 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_LibCal_CalendarRegistry/Method_InitializeEventTypes.qbl 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_LibCal_CalendarRegistry/Method_OnCreate.qbl 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_LibCal_EventEvent/StaticMethod_DEFAULT_TYPE.qbl 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgEvent/Component_pnlEventType.def 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Component_PanelEvent.def 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Calendars/BL/Type_LibCal_CalendarRegistry/Method_InitializeEventCategories.qbl
@@ -10,5 +10,4 @@
    // Create additional EventCategories.
    LibCal_EventCategory::InitializeEventCategories( this );
  *]
  InterfaceProperties { Accessibility: 'Module' }
}
Calendars/BL/Type_LibCal_CommonCalendar/StaticMethod_Create.qbl
@@ -5,5 +5,4 @@
) as LibCal_CommonCalendar
{
  TextBody: 'return owner_i.CommonCalendar( relnew );'
  InterfaceProperties { Accessibility: 'Module' }
}
_Main/BL/InfoMessages.qbl
@@ -234,6 +234,10 @@
  {
    DefaultText: 'This date is not within the planned cycle!'
  }
  InfoMessage MP_LibCal_Event_ValidDateInterval
  {
    DefaultText: 'The start date is more than one day away from the end date!'
  }
  InfoMessage MP_LibCal_Event_ValidDatePeriod
  {
    DefaultText: 'The start date must be less than the end date!'
_Main/BL/Type_LibCal_CalendarRegistry/Method_InitializeEventTypes.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,14 @@
Quintiq file version 2.0
#parent: #root
Method InitializeEventTypes
{
  TextBody:
  [*
    // Always create a general EventCategory.
    //LibCal_EventCategory::Create( this, LibCal_EventType::DEFAULT_TYPE() );
    this.EventType( relnew,ID := "blank", Name := LibCal_EventType::DEFAULT_TYPE() );
    // Create additional EventCategories.
    //LibCal_EventCategory::InitializeEventCategories( this );
  *]
}
_Main/BL/Type_LibCal_CalendarRegistry/Method_OnCreate.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,14 @@
Quintiq file version 2.0
#parent: #root
Method OnCreate #extension
{
  TextBody:
  [*
    this.SetTimeZoneID();
    this.InitializeEventCategories();
    this.InitializeEventTypes();
    // Create the CommonCalendar.
    LibCal_CommonCalendar::Create( this );
  *]
}
_Main/BL/Type_LibCal_EventEvent/StaticMethod_DEFAULT_TYPE.qbl
@@ -3,5 +3,5 @@
StaticMethod DEFAULT_TYPE () const declarative remote as String
{
  Description: 'Can be extended to define the name of the general EventCategory, which will always be created.'
  TextBody: 'return "端午节";'
  TextBody: 'return "   ";'
}
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgEvent/Component_pnlEventType.def
@@ -48,7 +48,6 @@
      ]
      Properties:
      [
        AllowEmpty: true
        Description: 'dhEvent.Data.EventType'
        DisplayField: 'Name'
        NumberOfColumns: 15
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Component_PanelEvent.def
@@ -54,7 +54,6 @@
      ]
      Properties:
      [
        AllowEmpty: true
        DisplayField: 'Name'
        Label: '事件类型'
        NumberOfColumns: 15