精品人妻伦一区二区三区久久,狼友av永久网站免费极品在线,欧美日韩黄色大片,香港三日本8a三级少妇三级99

停車場管理軟件發(fā)卡授權(quán)程序1

來源:譽(yù)澄智能 2012/6/28 19:19:48??????點(diǎn)擊:

  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)類型,組號,有效期起日期,有效期止日期,時間A,時間A1,時間B,時間B1,時間C,時間C1,時間D,時間D1,卡內(nèi)金額,卡類,車牌號碼,進(jìn)出限制,安全級別,非時段收費(fèi),進(jìn)出周時)');
                    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;