99
ShowMessage('У вас нет прав!');
end;
procedure TMainForm.N22Click(Sender: TObject);
begin
If DataModule1.UsersListWrite.Value=true then
If DataModule1.CardList.RecordCount>0 then
If DataModule1.ProfList.RecordCount>0 then
Begin
ProfProForm.Tag:=3;
ProfProForm.Caption:='Редактирование "Профессиональная переподготовка"';
ProfProForm.ShowModal;
End
Else
ShowMessage('Нет записей "Профессиональная переподготовка"!')
Else
ShowMessage('Нет записей пользователей!')
else
ShowMessage('У вас нет прав!');
end;
procedure TMainForm.N23Click(Sender: TObject);
begin
If DataModule1.UsersListWrite.Value=true then
If DataModule1.CardList.RecordCount>0 then
If DataModule1.AwardsList.RecordCount>0 then
Begin
AwardsProForm.Tag:=3;
AwardsProForm.Caption:='Редактирование "Поощрения и награды"';
AwardsProForm.ShowModal;
End
Else
ShowMessage('Нет записей "Поощрения и награды"!')
Else
ShowMessage('Нет записей пользователей!')
else
ShowMessage('У вас нет прав!');
end;
procedure TMainForm.N24Click(Sender: TObject);
begin
If DataModule1.UsersListWrite.Value=true then
If DataModule1.CardList.RecordCount>0 then
If DataModule1.OutputList.RecordCount>0 then
Begin