综合AV图片国产区_国产成人精品2021国产欧美日韩_成人三级片在线观看_日韩黄色免费毛片_國產成人綜合視頻_合家欢下册公交车_女明星换脸自慰网站_国产夜趣福利第一视频_中文精品北条麻妃中文_日韩精品无码专区国产A∨

停車場(chǎng)系統(tǒng)源程序之初始化程序

來源:譽(yù)澄智能 2012/7/10 14:24:04??????點(diǎn)擊:

 TmrInit.Enabled := false;
    with qryComm do
    begin

        Close;
        SQL.Clear;
        SQL.Add('SELECT * FROM JY_Opreation_thing');
        Open;
        while not Eof do
        begin
            cmbUserName.Items.Add(trim(FieldByName('操作員姓名').AsString));
            Next;
        end;
    end;
    ClearData;
    cmbUserName.ItemIndex := RIniInt('MONITOR','LastLogon', -1);
    RefreshInPrk;
    comm1.CommName :='COM'+IntToStr(RiniInt('MONITOR','Ledcom1',0)+1);
    comm2.CommName :='COM'+IntToStr(RiniInt('MONITOR','Ledcom2',0)+1);
    comm3.CommName :='COM'+IntToStr(RiniInt('MONITOR','Ledcom3',0)+1);
  try
  comm1.StartComm;
  except
      ShowMessage('打開LED1串口錯(cuò)誤,請(qǐng)檢查是否有其它程序占用端口,或者進(jìn)入后更改端口并重起!');
  end;

  try
  comm2.StartComm;
  except
      ShowMessage('打開LED2串口錯(cuò)誤,請(qǐng)檢查是否有其它程序占用端口,或者進(jìn)入后更改端口并重起!');
  end;

   try
  comm3.StartComm;
  except
      ShowMessage('打開LED3串口錯(cuò)誤,請(qǐng)檢查是否有其它程序占用端口,或者進(jìn)入后更改端口并重起!');
  end;
    EditPsw.SetFocus;