86
86
dmData.InsertProfiles(cmbValue,False);
87
87
cmbValue.ItemIndex := 0;
88
88
cmbValue.ReadOnly := True
91
cmbValue.Items.Add('E');
92
cmbValue.Items.Add('N');
93
cmbValue.ItemIndex := 0;
94
cmbValue.ReadOnly := True
93
103
procedure TfrmGroupEdit.FormShow(Sender: TObject);
95
105
dmUtils.LoadFontSettings(self)
385
395
sql := 'qslr_date='+QuotedStr(cmbValue.Text)
398
if cmbValue.Text = 'Y' then
399
sql := 'eqsl_qsl_sent='+QuotedStr(cmbValue.Text)+',eqsl_qslsdate='+
400
QuotedStr(dmUtils.MyDateToStr(now))
402
sql := 'eqsl_qsl_sent=null,eqsl_qslsdate=null';
405
if (cmbValue.Text <> '') and (not dmUtils.IsDateOK(cmbValue.Text)) then
407
Application.MessageBox('Please enter correct date!','Error ...', mb_OK+mb_IconError);
411
if cmbValue.Text = '' then
412
sql := 'eqsl_qsl_sent=null,eqsl_qslsdate=null'
414
sql := 'eqsl_qsl_sent='+QuotedStr('Y')+',eqsl_qslsdate='+
415
QuotedStr(cmbValue.Text)
418
if cmbValue.Text = 'E' then
419
sql := 'eqsl_qsl_rcvd='+QuotedStr(cmbValue.Text)+',eqsl_qslrdate='+
420
QuotedStr(dmUtils.MyDateToStr(now))
422
sql := 'eqsl_qsl_rcvd=null,eqsl_qslrdate=null'
425
if (cmbValue.Text <> '') and (not dmUtils.IsDateOK(cmbValue.Text)) then
427
Application.MessageBox('Please enter correct date!','Error ...', mb_OK+mb_IconError);
431
if cmbValue.Text = '' then
432
sql := 'eqsl_qsl_rcvd=null,eqsl_qslrdate=null'
434
sql := 'eqsl_qsl_rcvd='+QuotedStr('E')+',eqsl_qslrdate='+
435
QuotedStr(cmbValue.Text)
388
443
if sql = '' then exit;