2.1. CaseASRSCalcF Class
Purpose
The main form class that performs design calculations for the Case AS/RS. It supports mixed storage of multiple sizes and optimizes storage layout per tier.
Key Properties
This class inherits from System.Windows.Forms.Form and holds UI controls such as DataGridViews, TextBoxes, Labels, and Buttons.
The main variables and controls are as follows:
- RequestedCaseCountDgv: DataGridView - Input and display of case specs and requested quantities.
- StorageDetailsDgv: DataGridView - Detailed display of stored case counts per tier.
- RackHeightDgv: DataGridView - Display of height information per tier.
- Basic Configuration: Columns, Bays_PerColumn, Tiers, Prerequisite Case Count.
- Case Information: Ratios, counts, required bays, and required tiers for Case Nos 1-4.
- Calculation Results: Required Width, Required Length, Required Height, Required Area.
- Image Path: MyJpgPath (Used for drawing display, currently commented out).
Key Methods / Functions
CaseASRSCalc_Load- Form initialization and startup of main processesGetPathToFolderFromWhichProgramWasLaunched- Image path retrievalCaseASRSCalc_InitialSettings- Initialization and default value setting for DataGridViewRackCountCalc- Main logic for case count, tier layout, and bay calculationStorageDetails- Calculates the detailed case storage layout for each tierDgvAggregation- Aggregation processing for DataGridViewLayout_Calc- Calculation of overall warehouse dimensions and areaLayoutRecalcBt_Click- Processing when the recalculation button is clickedDgvFormat- Formatting settings for DataGridView