停車場管理軟件發(fā)卡授權(quán)程序1
begin
with qryComm do
begin
Close;
SQL.Clear;
if cbRepop.Checked then
begin
SQL.Add('DELETE JY_Park_Card_Info WHERE 卡號 = ''' + lblPopCont.Caption + '''');
try
ExecSQL;
except
;
end;
end;
qryCard.Close;
qryCard.SQL.Clear;
qryCard.SQL.Add('SELECT * FROM JY_Card_Infomation WHERE 卡號= ''' + lblPopCont.Caption + '''');
qryCard.Open;
qryCard.First;
//ShowMessage(IntToStr(qryCard.RecordCount));
pb.Max := qryCard.RecordCount;
while not qryCard.Eof do
begin
qryComm.Close;
qryComm.SQL.Clear;
qryComm.SQL.Add('INSERT JY_Park_Card_Info (卡號,用戶編號,收費(fèi)類型,組號,有效期起日期,有效期止日期,時(shí)間A,時(shí)間A1,時(shí)間B,時(shí)間B1,時(shí)間C,時(shí)間C1,時(shí)間D,時(shí)間D1,卡內(nèi)金額,卡類,車牌號碼,進(jìn)出限制,安全級別,非時(shí)段收費(fèi),進(jìn)出周時(shí))');
qryComm.SQL.Add('VALUES (''' + qryCard.FieldByName('卡號').AsString + ''','''
+ qryCard.FieldByName('持卡人編號').AsString+ ''','
+ tt1 + ','
+ qryCard.FieldByName('持卡人編號').AsString+ ','''
+ DateToStr(dtppopf.Date) + ''','''
+ DateToStr(dtppopt.Date) + ''','''
+ timeTostr(dtp_Ent_Timeslice1.Time)+ ''','''
+ timeTostr(dtp_Ent_Timeslice2.Time)+ ''','''
+ timeTostr(dtp_Ent_Timeslice3.Time)+ ''','''
+ timeTostr(dtp_Ent_Timeslice4.Time)+ ''','''
+ timeTostr(dtp_Ent_Timeslice5.Time)+ ''','''
+ timeTostr(dtp_Ent_Timeslice6.Time)+ ''','''
+ timeTostr(dtp_Ent_Timeslice7.Time)+ ''','''
+ timeTostr(dtp_Ent_Timeslice8.Time)+ ''','
+ EditAcount.Text + ','''
+ IntToStr(cmbCardType.ItemIndex + 1)+''','''
+ ttsrt +''','''
+ quanxian +''','''+ anquanjibi+''','''+sflxA +''','''+xingqi+''')');
try
qryComm.execsql;
except
ShowMessage('授權(quán)失敗,請確定該卡的授權(quán)信息是否已經(jīng)存在!');
Exit;
end;
dm.WriteLog(qryCard.FieldByName('卡號').AsString,
'停車場','授權(quán)',now, fee, LocalUser.Name);
pb.Position := pb.Position + 1;
qryCard.Next;
end;
end;
end;
end;
tvCardOwnerChange(nil, tvCardOwner.Selected);
RefreshCard;
// ShowMessage('注意:如果采用了主控制器,授權(quán)完畢后,請?jiān)凇蓖\噲龇?wù)器“軟件上對主控制器資料更新!');
pb.Position := 0;
- 上一篇:停車場該不該“外包收費(fèi)”? 2012/6/29
- 下一篇:老停車場系統(tǒng)進(jìn)行改造的設(shè)計(jì) 2012/6/27