mirror of
http://gitlab.expertsoft.com.ua/git/expertcad
synced 2026-01-12 00:45:40 +02:00
51 lines
1.1 KiB
ObjectPascal
51 lines
1.1 KiB
ObjectPascal
unit U_CreateRaiseQuery;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, U_LNG, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
Dialogs, U_BaseCommon, cxControls, cxContainer, cxEdit, cxLabel,
|
|
ExtCtrls, RzPanel, cxLookAndFeelPainters, StdCtrls, cxButtons, cxCheckBox,
|
|
siComp, siLngLnk, RzButton, RzRadChk, cxGraphics, cxLookAndFeels, Menus;
|
|
|
|
type
|
|
TF_CreateRaiseQuery = class(TForm)
|
|
RzPanel1: TRzPanel;
|
|
cxLabel1: TcxLabel;
|
|
bOK: TcxButton;
|
|
bCancel: TcxButton;
|
|
lng_Forms: TsiLangLinked;
|
|
cbShowCreateRaiseQuery: TRzCheckBox;
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
function Execute: Boolean;
|
|
end;
|
|
|
|
var
|
|
F_CreateRaiseQuery: TF_CreateRaiseQuery;
|
|
|
|
implementation
|
|
uses USCS_Main, U_CAD, U_Common;
|
|
|
|
{$R *.dfm}
|
|
|
|
{ TF_CreateRaiseQuery }
|
|
|
|
function TF_CreateRaiseQuery.Execute: Boolean;
|
|
begin
|
|
try
|
|
Result := False;
|
|
if ShowModal = mrOK then
|
|
begin
|
|
Result := True;
|
|
ShowCreateRaiseQuery := cbShowCreateRaiseQuery.Checked;
|
|
end;
|
|
except
|
|
on E: Exception do AddExceptionToLogEx('TF_CreateRaiseQuery.Execute', E.Message);
|
|
end;
|
|
end;
|
|
|
|
end.
|