Дипломная работа: Автоматизация учёта кредитных операций ломбарда ООО "Золотой век"

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам
131
Exit
end;
ifDataInfo.qListOperations.FieldByName('TypeId').isNull then
begin
MessageDlg('Укажитетипоперации!',mtError,[mbOk],0);
Exit
end;
ifDataInfo.qListOperations.FieldByName('Suma').isNull then
begin
MessageDlg('Укажитесуммуоперации!',mtError,[mbOk],0);
Exit
end;
DataInfo.qListOperations.FieldByName('ValueId').AsInteger:=DataInfo.qListV
aluations.FieldByName('Id').AsInteger;
DataInfo.qListOperations.Post;
DataInfo.qListValuations.Close;
DataInfo.qListValuations.Open;
frmOperation.Close;
end;
end.
unitTypeOperation;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, dxSkinsCore, dxSkinsDefaultPainters, cxStyles, cxGraphics,
cxEdit, cxDBLookupComboBox, cxCheckBox, Menus,
cxLookAndFeelPainters,
StdCtrls, cxButtons, cxVGrid, cxDBVGrid, cxControls, cxInplaceContainer,
132
cxLookAndFeels, cxDropDownEdit, cxCurrencyEdit;
type
TfrmTypeOperation = class(TForm)
vgTypeOperation: TcxDBVerticalGrid;
btnYes: TcxButton;
btnNo: TcxButton;
vgTypeOperationTypeName: TcxDBEditorRow;
procedureFormShow(Sender: TObject);
procedurebtnNoClick(Sender: TObject);
procedurebtnYesClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmTypeOperation: TfrmTypeOperation;
implementation
usesDataBase;
{$R *.dfm}
procedureTfrmTypeOperation.FormShow(Sender: TObject);
begin
iffrmTypeOperation.Tag=1 then
begin
DataInfo.qListTypeOperation.Insert;
133
end
else
begin
DataInfo.qListTypeOperation.Edit;
end;
end;
procedureTfrmTypeOperation.btnNoClick(Sender: TObject);
begin
DataInfo.qListTypeOperation.Cancel;
frmTypeOperation.Close;
end;
procedureTfrmTypeOperation.btnYesClick(Sender: TObject);
begin
ifDataInfo.qListTypeOperation.FieldByName('TypeName').isNull then
begin
MessageDlg('Укажитетипоперации!',mtError,[mbOk],0);
Exit
end;
DataInfo.qListTypeOperation.Post;
frmTypeOperation.Close;
end;
end.
Источник: https://baza.diplomsite.ru/previewfile/2477