公務車查詢系統源代碼
公務車查詢系統源代碼
主文件main.prg:
set talk off
_screen.caption="公務車查詢系統"
modify windows screen fill file "\001.bmp"
set status off
set sysmenu off
set sysmenu to
set sysformats off
set exclusive on
_screen.width=750
_screen.height=350
do mail.mpr
read events
————————————————————————
車號查詢表單CHCX.form的LOAD代碼:
set exact on
use ch
——————————————————————————
查詢按紐的CHICK代碼:
locate for 車號數字=thisform.text1.value
if found()
wait window"有此車號,請放行" timeout 2
?""
?"? 車輛信息:"
display
continue
display
continue
display
else
messagebox("無此車號"
thisform.release
return
endif
————————————————————————
系統維護登陸界面表單XITONGLOGIN.scx的確定按紐代碼:
i=i+1
if thisform.text1.value="******(為了安全隱藏)"
?thisform.release
?do form xitong
else
if i<3
?messagebox("密碼錯,請重新輸入"
?thisform.text1.value=""
?thisform.text1.setfocus
else
?messagebox("密碼錯,禁止進入系統"
?thisform.release
endif
endif
———————————————————————
站級管理登陸界面表單ZHANJILOGIN.scx的確定按紐代碼:
k=k+1
locate for 用戶名=thisform.text1.value
if found()
locate for 密碼=thisform.text2.value
if found()
? wait window"將進入系統" timeout 2
? thisform.release
? do form zhanji
else
? if k=3
??? messagebox("禁止進入系統"
??? thisform.release
??? return
? endif
? messagebox("密碼錯,請重新輸入密碼!"
? thisform.text2.value=""
? thisform.text2.setfocus
?endif
else
? if k=3
? messagebox("禁止進入系統"
? thisform.release
非常好我支持^.^
(7) 100%
不好我反對
(0) 0%