Codeunit 5130128 M365 Calc. Job Structure Dates

Codeunit 5130128 M365 Calc. Job Structure Dates

Methods

CommitPlanningDates

procedure CommitPlanningDates(forJobStructHeader: Record "M365 Job Structure Header")

Parameters / Return Value

  • forJobStructHeader Record "M365 Job Structure Header"

CalcItemLine

procedure CalcItemLine(var actualJobStructLine: Record "M365 Job Structure Line"; direction: Option Forward,Backward)

Parameters / Return Value

  • actualJobStructLine Record "M365 Job Structure Line"

  • direction Option

    Forward (0) , Backward (1)


UpdateItemEndingDate

procedure UpdateItemEndingDate(var actualJobStructLine: Record "M365 Job Structure Line")

Parameters / Return Value

  • actualJobStructLine Record "M365 Job Structure Line"

CalcWorkMachineCenterLine

procedure CalcWorkMachineCenterLine(var jobStructLine: Record "M365 Job Structure Line")

Parameters / Return Value

  • jobStructLine Record "M365 Job Structure Line"

CalcGroupLine

procedure CalcGroupLine(jobStructLine: Record "M365 Job Structure Line"; forwardBackwardSelection: Integer)

Parameters / Return Value

  • jobStructLine Record "M365 Job Structure Line"

  • forwardBackwardSelection Integer


SetSchedulingDirection

procedure SetSchedulingDirection(SchedDirection: Integer)

This procedure allows you to indicate the scheduling direction for dates calculation without dialog box. 1 = Forward 2 = Backward

Parameters / Return Value

  • SchedDirection Integer

    The integer value to set as direction. If the value is 0, the direction is not set and the dialog box will open.


Events

OnBeforCreateLoadBack

local procedure OnBeforCreateLoadBack(var jobStructLine: Record "M365 Job Structure Line")

Parameters / Return Value

  • jobStructLine Record "M365 Job Structure Line"

OnAfterCalculatePlannedDate

local procedure OnAfterCalculatePlannedDate(var actualJobStructLine: Record "M365 Job Structure Line"; refOrderType: Integer; direction: Option Forward,Backward)

Parameters / Return Value

  • actualJobStructLine Record "M365 Job Structure Line"

  • refOrderType Integer

  • direction Option

    Forward (0) , Backward (1)



EOS Labs -