|
@@ -32,6 +32,7 @@ type
|
|
FChangeKeyGrid: TVisualGrid;
|
|
FChangeKeyGrid: TVisualGrid;
|
|
public
|
|
public
|
|
procedure OnPresent; override;
|
|
procedure OnPresent; override;
|
|
|
|
+ function Validate(out message: ansistring): boolean; override;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
@@ -106,6 +107,20 @@ begin
|
|
lblSgnAcc.Caption := TAccountComp.AccountNumberToAccountTxtNumber(Model.Signer.SignerAccount.account);
|
|
lblSgnAcc.Caption := TAccountComp.AccountNumberToAccountTxtNumber(Model.Signer.SignerAccount.account);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function TWIZChangeKey_Confirmation.Validate(out message: ansistring): boolean;
|
|
|
|
+begin
|
|
|
|
+ Result := True;
|
|
|
|
+ if Length(Model.Account.SelectedAccounts) > 1 then
|
|
|
|
+ begin
|
|
|
|
+ if not (Model.Fee.SingleOperationFee > 0) then
|
|
|
|
+ begin
|
|
|
|
+ message := 'insufficient fee for total operation.';
|
|
|
|
+ Result := False;
|
|
|
|
+ Exit;
|
|
|
|
+ end;
|
|
|
|
+ end;
|
|
|
|
+end;
|
|
|
|
+
|
|
{ TAccountChangeKeyDataSource }
|
|
{ TAccountChangeKeyDataSource }
|
|
|
|
|
|
function TAccountChangeKeyDataSource.GetColumns: TDataColumns;
|
|
function TAccountChangeKeyDataSource.GetColumns: TDataColumns;
|