lazhen
2024-05-24 deb1a6b4839488316a4eb4dcf48215bea24bbfa8
批量维护产能占用事件前端ok方法
已修改3个文件
已添加1个文件
53 ■■■■■ 文件已修改
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Component_PanelContent.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_CreateEvent#778.def 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_OnOK.def 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/_ROOT_Component_LibCal_dlgMultipleEvent.def 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Component_PanelContent.def
@@ -11,6 +11,6 @@
  Properties:
  [
    Orientation: 'horizontal'
    Taborder: 2
    Taborder: 3
  ]
}
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_CreateEvent#778.def
@@ -44,13 +44,13 @@
                                        ParticipationID := [String]Key::NextPersistentKey(),
                                        StartDate       := start_i.Date( timezone ),
                                        EndDate         := end_i  .Date( timezone ) );
    info( '----------------------', isnull( sLeadPart ) );
    //info( '----------------------', isnull( sLeadPart ) );
    // Set the Participation and the related controls
    // (only the DataHolders, the Date-controls are set later on, after the recurrence has been initialized)
    dhStartDate.Data( sLeadPart.StartDate() );
    //dhEndDate.Data(   sLeadPart.EndDate()   );
    dhLeadingParticipation.Data( &sLeadPart );
    info( '-----------------------', isnull( dhLeadingParticipation.Data() ) );
    //info( '-----------------------', isnull( dhLeadingParticipation.Data() ) );
    
    // Initialize the capacity here, when done in the OnCreate() edtCapacity is not disabled correctly.
    this.InitializeCapacity();
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_OnOK.def
对比新文件
@@ -0,0 +1,35 @@
Quintiq file version 2.0
#parent: #root
Method OnOK (
  structured[LibCal_Calendar] subscribers_i
) id:Method_LibCal_dlgMultipleEvent_OnOK
{
  #keys: '[415136.0.647733138]'
  Body:
  [*
    // If applicable, inform the user that the recurrence cannot always be applied exactly as defined.
    //if( btnMonthly.IsPressed() and
    //    ckbMonthlyDay.Checked() )
    //{
    //  day := [Number]edtMonthlyDay.Text();
    //  if( day > 28 )
    //  {
    //    WebMessageBox::Warning( Translations::Pattern_Monthly_LessDays( day ), "OK", true );
    //  }
    //}
    // subscribers_i contains the calendars that are checked in the list with subscribers.
    subscribers := subscribers_i.Copy();
    dhSubscribers.Data( &subscribers );
    // If the dialog was opened from dlgSubscription, update the data in that dialog.
    if( not isnull( dhdlgSubscription.Data() ) )
    {
      this.CallbackSubscriptionDialog();
    }
    // Effectuate the changes and close the form.
    Form.CreateUpdateEventAndParticipation();
    Form.Close();
  *]
}
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/_ROOT_Component_LibCal_dlgMultipleEvent.def
@@ -28,9 +28,21 @@
      ]
    }
    #child: PanelContent
    Component dhdlgSubscription id:dhdlgSubscription_640
    {
      #keys: '[415136.0.647733217]'
      BaseType: 'WebDataHolder'
      Databinding: 'LibCal_dlgSubscription'
      Properties:
      [
        Description: 'Is set when the dialog is opened from dlgSubscription.'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    MinimumRows: 100
    Title: 'Multiple event'
    Tooltip: 'Multiple event'
  ]