Codeunit "Shop Calendar Management"

ID 99000755
Namespace: Microsoft.Manufacturing.Capacity

Properties

Name Value
SingleInstance True

Methods

QtyperTimeUnitofMeasure

procedure QtyperTimeUnitofMeasure(WorkCenterNo: Code[20], UnitOfMeasureCode: Code[10]): Decimal

Parameters

Name Type Description
WorkCenterNo Code[20]
UnitOfMeasureCode Code[10]

Returns

Type Description
Decimal

TimeFactor

procedure TimeFactor(UnitOfMeasureCode: Code[10]): Decimal

Parameters

Name Type Description
UnitOfMeasureCode Code[10]

Returns

Type Description
Decimal

CalculateSchedule

procedure CalculateSchedule(CapacityType: Enum "Capacity Type", No: Code[20], WorkCenterNo: Code[20], StartingDate: Date, EndingDate: Date)

Parameters

Name Type Description
CapacityType Enum Microsoft.Manufacturing.Capacity."Capacity Type"
No Code[20]
WorkCenterNo Code[20]
StartingDate Date
EndingDate Date

ClearInternals

procedure ClearInternals()

CalcTimeDelta

procedure CalcTimeDelta(EndingTime: Time, StartingTime: Time): Integer

Parameters

Name Type Description
EndingTime Time
StartingTime Time

Returns

Type Description
Integer

CalcTimeSubtract

procedure CalcTimeSubtract(Time: Time, Value: Integer): Time

Parameters

Name Type Description
Time Time
Value Integer

Returns

Type Description
Time

GetMaxDate

procedure GetMaxDate(): Date

Returns

Type Description
Date

Events

OnAfterTimeFactor

[IntegrationEvent(False,False)]
local procedure OnAfterTimeFactor(var CapUnitOfMeasure: Record "Capacity Unit of Measure", var Factor: Decimal)

Parameters

Name Type Description
CapUnitOfMeasure Table Microsoft.Manufacturing.Capacity."Capacity Unit of Measure"
Factor Decimal

OnBeforeCalculateSchedule

[IntegrationEvent(False,False)]
local procedure OnBeforeCalculateSchedule(var WorkCenter: Record "Work Center", StartingDate: Date)

Parameters

Name Type Description
WorkCenter Table Microsoft.Manufacturing.WorkCenter."Work Center"
StartingDate Date

OnCalculateScheduleOnBeforeProcessShopCalendar

[IntegrationEvent(False,False)]
local procedure OnCalculateScheduleOnBeforeProcessShopCalendar(var ShopCalendarWorkingDays: Record "Shop Calendar Working Days", PeriodDate: Date, StartingDate: Date, EndingDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
ShopCalendarWorkingDays Table Microsoft.Manufacturing.Capacity."Shop Calendar Working Days"
PeriodDate Date
StartingDate Date
EndingDate Date
IsHandled Boolean

OnCalculateScheduleOnSetShopCalendarFilters

[IntegrationEvent(False,False)]
local procedure OnCalculateScheduleOnSetShopCalendarFilters(var ShopCalendarWorkingDays: Record "Shop Calendar Working Days", PeriodDate: Date)

Parameters

Name Type Description
ShopCalendarWorkingDays Table Microsoft.Manufacturing.Capacity."Shop Calendar Working Days"
PeriodDate Date

OnAfterCalculateSchedule

[IntegrationEvent(False,False)]
local procedure OnAfterCalculateSchedule(CapacityType: Enum "Capacity Type", No: Code[20], WorkCenterNo: Code[20], StartingDate: Date, EndingDate: Date)

Parameters

Name Type Description
CapacityType Enum Microsoft.Manufacturing.Capacity."Capacity Type"
No Code[20]
WorkCenterNo Code[20]
StartingDate Date
EndingDate Date

OnCalculateScheduleOnAfterProcessShopCalendar

[IntegrationEvent(False,False)]
local procedure OnCalculateScheduleOnAfterProcessShopCalendar(CapacityType: Enum "Capacity Type", No: Code[20], WorkCenterNo: Code[20], PeriodDate: Date)

Parameters

Name Type Description
CapacityType Enum Microsoft.Manufacturing.Capacity."Capacity Type"
No Code[20]
WorkCenterNo Code[20]
PeriodDate Date

See also