Completed "New Controller" Wizard.

This commit is contained in:
Daniele Teti 2024-04-14 11:49:45 +02:00
parent 8a7533f252
commit bbea870489

View File

@ -82,7 +82,7 @@ var
implementation
uses
DMVC.Expert.CodeGen.Templates;
DMVC.Expert.CodeGen.Templates, DMVC.Expert.Commons;
{$R *.dfm}
@ -119,6 +119,15 @@ end;
function TfrmDMVCNewUnit.GetConfigModel: TJSONObject;
begin
fModel.S[TConfigKey.program_name] := 'TBA';
fModel.S[TConfigKey.controller_unit_name] := 'TBA';
fModel.S[TConfigKey.controller_classname] := GetControllerClassName;
fModel.B[TConfigKey.controller_index_methods_generate] := chkCreateIndexMethod.Checked;
fModel.B[TConfigKey.controller_action_filters_generate] := chkCreateActionFiltersMethods.Checked;
fModel.B[TConfigKey.controller_crud_methods_generate] := chkCreateCRUDMethods.Checked;
fModel.B[TConfigKey.entity_generate] := fModel.B[TConfigKey.controller_crud_methods_generate];
fModel.S[TConfigKey.entity_classname] := 'TPerson';
Result := fModel;
end;