Page 7302 Bins, source in 29
Source29
src/Layers/W1/BaseApp/Warehouse/Structure/Bins.Page.al168 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace Microsoft.Warehouse.Structure;
using System.Globalization;
page 7302 Bins
{
Caption = 'Bins';
DataCaptionExpression = GetCaption();
DelayedInsert = true;
PageType = List;
SourceTable = Bin;
layout
{
area(content)
{
repeater(Control1)
{
ShowCaption = false;
field("Location Code"; Rec."Location Code")
{
ApplicationArea = Location;
Visible = false;
}
field("Code"; Rec.Code)
{
ApplicationArea = Warehouse;
}
field("Zone Code"; Rec."Zone Code")
{
ApplicationArea = Warehouse;
Editable = true;
Visible = false;
}
field(Description; Rec.Description)
{
ApplicationArea = Warehouse;
}
field("Bin Type Code"; Rec."Bin Type Code")
{
ApplicationArea = Warehouse;
Visible = false;
}
field("Warehouse Class Code"; Rec."Warehouse Class Code")
{
ApplicationArea = Warehouse;
Visible = false;
}
field("Block Movement"; Rec."Block Movement")
{
ApplicationArea = Warehouse;
Visible = false;
trigger OnValidate()
begin
if Rec."Block Movement" <> xRec."Block Movement" then
if not Confirm(Text004, false) then
Error('');
end;
}
field("Special Equipment Code"; Rec."Special Equipment Code")
{
ApplicationArea = Warehouse;
Visible = false;
}
field("Bin Ranking"; Rec."Bin Ranking")
{
ApplicationArea = Warehouse;
}
field("Maximum Cubage"; Rec."Maximum Cubage")
{
ApplicationArea = Warehouse;
Visible = false;
}
field("Maximum Weight"; Rec."Maximum Weight")
{
ApplicationArea = Warehouse;
Visible = false;
}
field(Empty; Rec.Empty)
{
ApplicationArea = Warehouse;
}
field("Cross-Dock Bin"; Rec."Cross-Dock Bin")
{
ApplicationArea = Warehouse;
Visible = false;
}
field(Dedicated; Rec.Dedicated)
{
ApplicationArea = Warehouse;
}
}
}
area(factboxes)
{
systempart(Control1900383207; Links)
{
ApplicationArea = RecordLinks;
Visible = false;
}
systempart(Control1905767507; Notes)
{
ApplicationArea = Notes;
Visible = false;
}
}
}
actions
{
area(navigation)
{
group("&Bin")
{
Caption = '&Bin';
Image = Bins;
action("&Contents")
{
ApplicationArea = Warehouse;
Caption = '&Contents';
Image = BinContent;
Scope = Repeater;
RunObject = Page "Bin Content";
RunPageLink = "Location Code" = field("Location Code"),
"Zone Code" = field("Zone Code"),
"Bin Code" = field(Code);
ToolTip = 'View the bin content. A bin can hold several different items. Each item that has been fixed to the bin, placed in the bin, or for which the bin is the default bin appears in this window as a separate line. Some of the fields on the lines contain information about the bin for which you are creating bin content, for example, the bin ranking, and you cannot change these values.';
}
}
}
area(Promoted)
{
actionref("Contents_Promoted"; "&Contents")
{
}
}
}
trigger OnNewRecord(BelowxRec: Boolean)
begin
if Rec.GetFilter("Zone Code") <> '' then
Rec."Zone Code" := Rec.GetFilter("Zone Code");
Rec.SetUpNewLine();
end;
var
#pragma warning disable AA0074
Text004: Label 'Do you want to update the bin contents?';
#pragma warning restore AA0074
local procedure GetCaption(): Text[250]
var
ObjTransl: Record "Object Translation";
FormCaption: Text[250];
SourceTableName: Text[30];
begin
SourceTableName := ObjTransl.TranslateObject(ObjTransl."Object Type"::Table, 14);
FormCaption := StrSubstNo('%1 %2', SourceTableName, Rec."Location Code");
exit(FormCaption);
end;
}