w_set_sqlca.srw 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294
  1. $PBExportHeader$w_set_sqlca.srw
  2. $PBExportComments$数据库连接窗口
  3. forward
  4. global type w_set_sqlca from w_publ_base
  5. end type
  6. type cb_ok from uo_imflatbutton within w_set_sqlca
  7. end type
  8. type sle_logpass from singlelineedit within w_set_sqlca
  9. end type
  10. type sle_logid from singlelineedit within w_set_sqlca
  11. end type
  12. type sle_server from singlelineedit within w_set_sqlca
  13. end type
  14. type sle_database from singlelineedit within w_set_sqlca
  15. end type
  16. type sle_dbpass from singlelineedit within w_set_sqlca
  17. end type
  18. type sle_userid from singlelineedit within w_set_sqlca
  19. end type
  20. type sle_dbparm from singlelineedit within w_set_sqlca
  21. end type
  22. type st_9 from statictext within w_set_sqlca
  23. end type
  24. type st_6 from statictext within w_set_sqlca
  25. end type
  26. type st_5 from statictext within w_set_sqlca
  27. end type
  28. type st_4 from statictext within w_set_sqlca
  29. end type
  30. type st_3 from statictext within w_set_sqlca
  31. end type
  32. type st_2 from statictext within w_set_sqlca
  33. end type
  34. type st_00 from statictext within w_set_sqlca
  35. end type
  36. type st_7 from statictext within w_set_sqlca
  37. end type
  38. type cb_ch2 from commandbutton within w_set_sqlca
  39. end type
  40. type sle_filename from singlelineedit within w_set_sqlca
  41. end type
  42. type cbx_addnewdatabase from checkbox within w_set_sqlca
  43. end type
  44. type rb_server from radiobutton within w_set_sqlca
  45. end type
  46. type rb_2 from radiobutton within w_set_sqlca
  47. end type
  48. type sle_dbms from dropdownlistbox within w_set_sqlca
  49. end type
  50. type st_8 from statictext within w_set_sqlca
  51. end type
  52. type sle_sqldb_mdf from singlelineedit within w_set_sqlca
  53. end type
  54. type sle_sqldb_ldf from singlelineedit within w_set_sqlca
  55. end type
  56. type st_91 from statictext within w_set_sqlca
  57. end type
  58. type st_912 from statictext within w_set_sqlca
  59. end type
  60. type cb_sqldb_mdf from commandbutton within w_set_sqlca
  61. end type
  62. type cb_sqldb_ldf from commandbutton within w_set_sqlca
  63. end type
  64. type gb_1 from groupbox within w_set_sqlca
  65. end type
  66. type st_193 from statictext within w_set_sqlca
  67. end type
  68. type st_2334 from statictext within w_set_sqlca
  69. end type
  70. type st_345 from statictext within w_set_sqlca
  71. end type
  72. type sle_sqldb_mdf_sor from singlelineedit within w_set_sqlca
  73. end type
  74. type sle_sqldb_ldf_sor from singlelineedit within w_set_sqlca
  75. end type
  76. type cbx_db_h from checkbox within w_set_sqlca
  77. end type
  78. type gb_3 from groupbox within w_set_sqlca
  79. end type
  80. type st_jd from statictext within w_set_sqlca
  81. end type
  82. end forward
  83. global type w_set_sqlca from w_publ_base
  84. integer x = 283
  85. integer y = 12
  86. integer width = 2331
  87. integer height = 1396
  88. string title = "数据库连接设置"
  89. cb_ok cb_ok
  90. sle_logpass sle_logpass
  91. sle_logid sle_logid
  92. sle_server sle_server
  93. sle_database sle_database
  94. sle_dbpass sle_dbpass
  95. sle_userid sle_userid
  96. sle_dbparm sle_dbparm
  97. st_9 st_9
  98. st_6 st_6
  99. st_5 st_5
  100. st_4 st_4
  101. st_3 st_3
  102. st_2 st_2
  103. st_00 st_00
  104. st_7 st_7
  105. cb_ch2 cb_ch2
  106. sle_filename sle_filename
  107. cbx_addnewdatabase cbx_addnewdatabase
  108. rb_server rb_server
  109. rb_2 rb_2
  110. sle_dbms sle_dbms
  111. st_8 st_8
  112. sle_sqldb_mdf sle_sqldb_mdf
  113. sle_sqldb_ldf sle_sqldb_ldf
  114. st_91 st_91
  115. st_912 st_912
  116. cb_sqldb_mdf cb_sqldb_mdf
  117. cb_sqldb_ldf cb_sqldb_ldf
  118. gb_1 gb_1
  119. st_193 st_193
  120. st_2334 st_2334
  121. st_345 st_345
  122. sle_sqldb_mdf_sor sle_sqldb_mdf_sor
  123. sle_sqldb_ldf_sor sle_sqldb_ldf_sor
  124. cbx_db_h cbx_db_h
  125. gb_3 gb_3
  126. st_jd st_jd
  127. end type
  128. global w_set_sqlca w_set_sqlca
  129. type prototypes
  130. Subroutine Sleep(ulong dwMilliseconds) LIBRARY "kernel32.dll"
  131. Function long ShellExecuteA (long hwnd, string lpOperation ,String lpFile, String lpParameters, String lpDirectory, Long nShowCmd) Library "shell32.dll" alias for "ShellExecuteA;Ansi"
  132. end prototypes
  133. type variables
  134. INT ARROWADDNEW
  135. string ls_bat_filename='_ls_cmd_run.bat'
  136. string ls_txt_filename='_ls_cmd_rslt.txt'
  137. string masterpath
  138. end variables
  139. forward prototypes
  140. public function integer wf_autobuiltmdflogname ()
  141. public function integer wf_buildsqldb ()
  142. public function integer wf_findisql ()
  143. end prototypes
  144. public function integer wf_autobuiltmdflogname ();//wf_autobuiltmdflogname
  145. sle_sqldb_ldf.text=masterpath+sle_database.text+'_log.ldf'
  146. sle_sqldb_mdf.text=masterpath+sle_database.text+'_data.MDF'
  147. return 1
  148. end function
  149. public function integer wf_buildsqldb ();//wf_buildsqldb
  150. integer li_FileNum,rslt=1
  151. string comm,msg
  152. long i,j,lu_return
  153. comm=' create DATABASE '+sle_database.Text+&
  154. " on(name='"+sle_sqldb_mdf_sor.text+"',FILENAME= '"+sle_sqldb_mdf.text+"') log on (name='"+sle_sqldb_ldf_sor.text+"',FILENAME= '"+sle_sqldb_ldf.text+"')"
  155. //sqlca.DBMS = ProfileString (sys_inifilename, "database", "dbms", "")
  156. sqlca.database = 'master'
  157. //sqlca.userid = ProfileString (sys_inifilename, "database", "userid", "")
  158. //sqlca.dbpass = f_psw_bczh(ProfileString (sys_inifilename, "database", "dbpass", ""),1,sys_power_key)
  159. sqlca.logid = sle_logid.Text
  160. sqlca.logpass = sle_logpass.Text
  161. sqlca.servername = sle_server.Text
  162. //sqlca.dbparm = f_psw_bczh(ProfileString (sys_inifilename, "database", "dbparm", ""),1,sys_power_key)
  163. if sqlca.database='' or sqlca.servername='' then
  164. Messagebox("系统提示","连接数据管理库失败!")
  165. return 0
  166. end if
  167. connect using sqlca;
  168. sqlca.autocommit=true
  169. st_jd.text='正在新建数据库...'
  170. Execute immediate :comm using sqlca;
  171. if sqlca.sqlcode<>0 then
  172. msg='建立失败,请手动建立及恢复数据库>'+sqlca.sqlerrtext
  173. rollback;
  174. messagebox('系统提示',msg)
  175. rslt=0
  176. goto ext
  177. else
  178. rslt=1
  179. commit;
  180. end if
  181. st_jd.text='正在恢复数据库...'
  182. comm= 'RESTORE DATABASE '+sle_database.Text+" from DISK= '"+sle_filename.text+"'"+&
  183. " WITH MOVE '"+sle_sqldb_mdf_sor.text+"' TO '"+sle_sqldb_mdf.text+"',"+&
  184. " MOVE '"+sle_sqldb_ldf_sor.text+"' TO '"+sle_sqldb_ldf.text+"',"+'REPLACE'
  185. Execute immediate :comm using sqlca;
  186. if sqlca.sqlcode<>0 then
  187. msg='恢复失败,请手动恢复数据库>'+sqlca.sqlerrtext
  188. rollback;
  189. messagebox('系统提示',msg)
  190. rslt=0
  191. else
  192. rslt=1
  193. commit;
  194. end if
  195. ext:
  196. return rslt
  197. end function
  198. public function integer wf_findisql ();//wf_findisql
  199. IF FILEEXISTs('c:\mssql7\data\master.mdf') then
  200. masterpath='c:\mssql7\data\'
  201. goto ext
  202. end if
  203. IF FILEEXISTs('c:\Program Files\Microsoft SQL Server\80\data\master.mdf') then
  204. masterpath='c:\Program Files\Microsoft SQL Server\data\'
  205. goto ext
  206. end if
  207. IF fileexists('c:\Program Files\Microsoft SQL Server\MSSQL\data\master.mdf') then
  208. masterpath="c:\Program Files\Microsoft SQL Server\MSSQL\data\"
  209. goto ext
  210. end if
  211. IF FILEEXISTs('d:\mssql7\data\master.mdf') then
  212. masterpath='d:\mssql7\data\'
  213. goto ext
  214. end if
  215. IF FILEEXISTs('d:\Program Files\Microsoft SQL Server\80\data\master.mdf') then
  216. masterpath='d:\Program Files\Microsoft SQL Server\data\'
  217. goto ext
  218. end if
  219. IF FILEEXISTs('d:\Program Files\Microsoft SQL Server\MSSQL\data\master.mdf') then
  220. masterpath='d:\Program Files\Microsoft SQL Server\MSSQL\data\'
  221. goto ext
  222. end if
  223. IF FILEEXISTs('e:\mssql7\data\master.mdf') then
  224. masterpath='e:\mssql7\data\'
  225. goto ext
  226. end if
  227. IF FILEEXISTs('e:\Program Files\Microsoft SQL Server\80\data\master.mdf') then
  228. masterpath='e:\Program Files\Microsoft SQL Server\data\'
  229. goto ext
  230. end if
  231. IF FILEEXISTs('e:\Program Files\Microsoft SQL Server\MSSQL\data\master.mdf') then
  232. masterpath='e:\Program Files\Microsoft SQL Server\MSSQL\data\'
  233. goto ext
  234. end if
  235. IF FILEEXISTs('f:\mssql7\data\master.mdf') then
  236. masterpath='f:\mssql7\data\'
  237. goto ext
  238. end if
  239. IF FILEEXISTs('f:\Program Files\Microsoft SQL Server\80\data\master.mdf') then
  240. masterpath='f:\Program Files\Microsoft SQL Server\data\'
  241. goto ext
  242. end if
  243. IF FILEEXISTs('f:\Program Files\Microsoft SQL Server\MSSQL\data\master.mdf') then
  244. masterpath='f:\Program Files\Microsoft SQL Server\MSSQL\data\'
  245. goto ext
  246. end if
  247. IF FILEEXISTs('g:\mssql7\data\master.mdf') then
  248. masterpath='g:\mssql7\data\'
  249. goto ext
  250. end if
  251. IF FILEEXISTs('g:\Program Files\Microsoft SQL Server\80\data\master.mdf') then
  252. masterpath='g:\Program Files\Microsoft SQL Server\data\'
  253. goto ext
  254. end if
  255. IF FILEEXISTs('g:\Program Files\Microsoft SQL Server\MSSQL\data\master.mdf') then
  256. masterpath='g:\Program Files\Microsoft SQL Server\MSSQL\data\'
  257. goto ext
  258. end if
  259. IF FILEEXISTs('h:\mssql7\data\master.mdf') then
  260. masterpath='h:\mssql7\data\'
  261. goto ext
  262. end if
  263. IF FILEEXISTs('h:\Program Files\Microsoft SQL Server\80\data\master.mdf') then
  264. masterpath='h:\Program Files\Microsoft SQL Server\data\'
  265. goto ext
  266. end if
  267. IF FILEEXISTs('h:\Program Files\Microsoft SQL Server\MSSQL\data\master.mdf') then
  268. masterpath='h:\Program Files\Microsoft SQL Server\MSSQL\data\'
  269. goto ext
  270. end if
  271. ext:
  272. if masterpath='' then masterpath="c:\Program Files\Microsoft SQL Server\MSSQL\data\"
  273. wf_autobuiltmdflogname()
  274. return 0
  275. end function
  276. event open;call super::open;// Open script for W_SET_SQLCA
  277. ARROWADDNEW=Message.DoubleParm
  278. IF ARROWADDNEW= 0 THEN
  279. cbx_addnewdatabase.ENABLED=FALSE
  280. END IF
  281. sle_dbms.Text = sqlca.DBMS
  282. sle_database.Text = sqlca.database
  283. sle_userid.Text = sqlca.userid
  284. sle_dbpass.Text = sqlca.dbpass
  285. sle_logid.Text = sqlca.logid
  286. sle_logpass.Text = sqlca.logpass
  287. sle_server.Text = sqlca.servername
  288. sle_dbparm.Text = sqlca.dbparm
  289. sle_sqldb_mdf_sor.Text=ProfileString (sys_inifilename, "database", "sqldb_mdf_sor", '')
  290. sle_sqldb_ldf_sor.Text=ProfileString (sys_inifilename, "database", "sqldb_ldf_sor",'' )
  291. //messagebox('',ProfileString(sys_inifilename,'SERVER','SERVER',''))
  292. if trim(ProfileString(sys_inifilename,'SERVER','SERVER',''))='' then
  293. rb_2.checked=true
  294. else
  295. rb_server.checked=true
  296. end if
  297. rb_server.postevent(clicked!)
  298. cbx_addnewdatabase.triggerevent(clicked!)
  299. wf_findisql()
  300. end event
  301. on w_set_sqlca.create
  302. int iCurrent
  303. call super::create
  304. this.cb_ok=create cb_ok
  305. this.sle_logpass=create sle_logpass
  306. this.sle_logid=create sle_logid
  307. this.sle_server=create sle_server
  308. this.sle_database=create sle_database
  309. this.sle_dbpass=create sle_dbpass
  310. this.sle_userid=create sle_userid
  311. this.sle_dbparm=create sle_dbparm
  312. this.st_9=create st_9
  313. this.st_6=create st_6
  314. this.st_5=create st_5
  315. this.st_4=create st_4
  316. this.st_3=create st_3
  317. this.st_2=create st_2
  318. this.st_00=create st_00
  319. this.st_7=create st_7
  320. this.cb_ch2=create cb_ch2
  321. this.sle_filename=create sle_filename
  322. this.cbx_addnewdatabase=create cbx_addnewdatabase
  323. this.rb_server=create rb_server
  324. this.rb_2=create rb_2
  325. this.sle_dbms=create sle_dbms
  326. this.st_8=create st_8
  327. this.sle_sqldb_mdf=create sle_sqldb_mdf
  328. this.sle_sqldb_ldf=create sle_sqldb_ldf
  329. this.st_91=create st_91
  330. this.st_912=create st_912
  331. this.cb_sqldb_mdf=create cb_sqldb_mdf
  332. this.cb_sqldb_ldf=create cb_sqldb_ldf
  333. this.gb_1=create gb_1
  334. this.st_193=create st_193
  335. this.st_2334=create st_2334
  336. this.st_345=create st_345
  337. this.sle_sqldb_mdf_sor=create sle_sqldb_mdf_sor
  338. this.sle_sqldb_ldf_sor=create sle_sqldb_ldf_sor
  339. this.cbx_db_h=create cbx_db_h
  340. this.gb_3=create gb_3
  341. this.st_jd=create st_jd
  342. iCurrent=UpperBound(this.Control)
  343. this.Control[iCurrent+1]=this.cb_ok
  344. this.Control[iCurrent+2]=this.sle_logpass
  345. this.Control[iCurrent+3]=this.sle_logid
  346. this.Control[iCurrent+4]=this.sle_server
  347. this.Control[iCurrent+5]=this.sle_database
  348. this.Control[iCurrent+6]=this.sle_dbpass
  349. this.Control[iCurrent+7]=this.sle_userid
  350. this.Control[iCurrent+8]=this.sle_dbparm
  351. this.Control[iCurrent+9]=this.st_9
  352. this.Control[iCurrent+10]=this.st_6
  353. this.Control[iCurrent+11]=this.st_5
  354. this.Control[iCurrent+12]=this.st_4
  355. this.Control[iCurrent+13]=this.st_3
  356. this.Control[iCurrent+14]=this.st_2
  357. this.Control[iCurrent+15]=this.st_00
  358. this.Control[iCurrent+16]=this.st_7
  359. this.Control[iCurrent+17]=this.cb_ch2
  360. this.Control[iCurrent+18]=this.sle_filename
  361. this.Control[iCurrent+19]=this.cbx_addnewdatabase
  362. this.Control[iCurrent+20]=this.rb_server
  363. this.Control[iCurrent+21]=this.rb_2
  364. this.Control[iCurrent+22]=this.sle_dbms
  365. this.Control[iCurrent+23]=this.st_8
  366. this.Control[iCurrent+24]=this.sle_sqldb_mdf
  367. this.Control[iCurrent+25]=this.sle_sqldb_ldf
  368. this.Control[iCurrent+26]=this.st_91
  369. this.Control[iCurrent+27]=this.st_912
  370. this.Control[iCurrent+28]=this.cb_sqldb_mdf
  371. this.Control[iCurrent+29]=this.cb_sqldb_ldf
  372. this.Control[iCurrent+30]=this.gb_1
  373. this.Control[iCurrent+31]=this.st_193
  374. this.Control[iCurrent+32]=this.st_2334
  375. this.Control[iCurrent+33]=this.st_345
  376. this.Control[iCurrent+34]=this.sle_sqldb_mdf_sor
  377. this.Control[iCurrent+35]=this.sle_sqldb_ldf_sor
  378. this.Control[iCurrent+36]=this.cbx_db_h
  379. this.Control[iCurrent+37]=this.gb_3
  380. this.Control[iCurrent+38]=this.st_jd
  381. end on
  382. on w_set_sqlca.destroy
  383. call super::destroy
  384. destroy(this.cb_ok)
  385. destroy(this.sle_logpass)
  386. destroy(this.sle_logid)
  387. destroy(this.sle_server)
  388. destroy(this.sle_database)
  389. destroy(this.sle_dbpass)
  390. destroy(this.sle_userid)
  391. destroy(this.sle_dbparm)
  392. destroy(this.st_9)
  393. destroy(this.st_6)
  394. destroy(this.st_5)
  395. destroy(this.st_4)
  396. destroy(this.st_3)
  397. destroy(this.st_2)
  398. destroy(this.st_00)
  399. destroy(this.st_7)
  400. destroy(this.cb_ch2)
  401. destroy(this.sle_filename)
  402. destroy(this.cbx_addnewdatabase)
  403. destroy(this.rb_server)
  404. destroy(this.rb_2)
  405. destroy(this.sle_dbms)
  406. destroy(this.st_8)
  407. destroy(this.sle_sqldb_mdf)
  408. destroy(this.sle_sqldb_ldf)
  409. destroy(this.st_91)
  410. destroy(this.st_912)
  411. destroy(this.cb_sqldb_mdf)
  412. destroy(this.cb_sqldb_ldf)
  413. destroy(this.gb_1)
  414. destroy(this.st_193)
  415. destroy(this.st_2334)
  416. destroy(this.st_345)
  417. destroy(this.sle_sqldb_mdf_sor)
  418. destroy(this.sle_sqldb_ldf_sor)
  419. destroy(this.cbx_db_h)
  420. destroy(this.gb_3)
  421. destroy(this.st_jd)
  422. end on
  423. type cb_func from w_publ_base`cb_func within w_set_sqlca
  424. boolean visible = false
  425. integer x = 1934
  426. integer y = 644
  427. boolean enabled = false
  428. end type
  429. type cb_exit from w_publ_base`cb_exit within w_set_sqlca
  430. integer x = 1938
  431. integer y = 168
  432. integer width = 315
  433. string text = "取消"
  434. end type
  435. type cb_ok from uo_imflatbutton within w_set_sqlca
  436. integer x = 1938
  437. integer y = 48
  438. integer width = 315
  439. integer height = 96
  440. integer taborder = 60
  441. end type
  442. event clicked;call super::clicked;IF rb_server.Checked THEN
  443. SetProfileString(sys_inifilename,'SERVER','SERVER','服务器模式')
  444. ELSE
  445. SetProfileString(sys_inifilename,'SERVER','SERVER',' ')
  446. END IF
  447. String ls_str
  448. ls_str = ProfileString(sys_inifilename,'SERVER','SERVER','')
  449. IF cbx_addnewdatabase.Checked THEN
  450. IF NOT FileExists(sle_filename.Text) THEN
  451. MessageBox("操作错误","指定恢复数据文件不存在",stopsign!)
  452. RETURN
  453. END IF
  454. // if messagebox("警告!","如果数据库已经存在,此操作可能将使当前数据库被覆盖,是否进行操作?",exclamation!,OKCancel!,2)=2 then
  455. // RETURN
  456. // end if
  457. IF Trim(sle_sqldb_mdf.Text) = '' OR Trim(sle_sqldb_ldf.Text) = '' THEN
  458. wf_autobuiltmdflogname()
  459. ELSE
  460. IF Pos(sle_sqldb_mdf.Text,':') = 0 OR Lower(Right(sle_sqldb_mdf.Text,4)) <> '.mdf' THEN
  461. MessageBox('','目标数据库文件名称错误!')
  462. RETURN
  463. END IF
  464. IF Pos(sle_sqldb_ldf.Text,':') = 0 OR Lower(Right(sle_sqldb_ldf.Text,4)) <> '.ldf' THEN
  465. MessageBox('','目标日志文件名称错误!')
  466. RETURN
  467. END IF
  468. END IF
  469. END IF
  470. IF Trim(sle_database.Text) = '' THEN
  471. MessageBox('系统提示','请输入database!')
  472. RETURN
  473. END IF
  474. IF Trim(sle_server.Text) = '' THEN
  475. MessageBox('系统提示','请输入server name!')
  476. RETURN
  477. END IF
  478. SetProfileString (sys_inifilename, "database", "dbms", sle_dbms.Text)
  479. SetProfileString (sys_inifilename, "database", "database", sle_database.Text)
  480. SetProfileString (sys_inifilename, "database", "userid", sle_userid.Text)
  481. SetProfileString (sys_inifilename, "database", "dbpass", f_psw_bczh(sle_dbpass.Text,0,sys_power_key))
  482. SetProfileString (sys_inifilename, "database", "logid", sle_logid.Text)
  483. SetProfileString (sys_inifilename, "database", "LogPassWord", f_psw_bczh(sle_logpass.Text,0,sys_power_key))
  484. SetProfileString (sys_inifilename, "database", "servername", sle_server.Text)
  485. SetProfileString (sys_inifilename, "database", "dbparm", f_psw_bczh(sle_dbparm.Text,0,sys_power_key))
  486. IF cbx_addnewdatabase.Checked THEN
  487. IF cbx_db_h.Checked THEN
  488. SetProfileString (sys_inifilename, "database", "sqldb_mdf_sor", sle_sqldb_mdf_sor.Text)
  489. SetProfileString (sys_inifilename, "database", "sqldb_ldf_sor", sle_sqldb_ldf_sor.Text)
  490. END IF
  491. IF wf_buildsqldb() = 0 THEN
  492. MessageBox("系统提示","生成数据库操作失败!")
  493. RETURN
  494. END IF
  495. END IF
  496. MessageBox('','设置保存完成!系统必须重起!')
  497. CloseWithReturn (PARENT,1)
  498. Restart()
  499. end event
  500. type sle_logpass from singlelineedit within w_set_sqlca
  501. integer x = 443
  502. integer y = 288
  503. integer width = 1422
  504. integer height = 80
  505. integer taborder = 140
  506. integer textsize = -8
  507. integer weight = 400
  508. fontpitch fontpitch = variable!
  509. fontfamily fontfamily = swiss!
  510. string facename = "MS Sans Serif"
  511. long textcolor = 41943040
  512. boolean autohscroll = false
  513. boolean password = true
  514. borderstyle borderstyle = stylelowered!
  515. end type
  516. type sle_logid from singlelineedit within w_set_sqlca
  517. integer x = 443
  518. integer y = 200
  519. integer width = 1422
  520. integer height = 80
  521. integer taborder = 130
  522. integer textsize = -8
  523. integer weight = 400
  524. fontpitch fontpitch = variable!
  525. fontfamily fontfamily = swiss!
  526. string facename = "MS Sans Serif"
  527. long textcolor = 41943040
  528. boolean autohscroll = false
  529. borderstyle borderstyle = stylelowered!
  530. end type
  531. type sle_server from singlelineedit within w_set_sqlca
  532. integer x = 443
  533. integer y = 112
  534. integer width = 1422
  535. integer height = 80
  536. integer taborder = 120
  537. integer textsize = -8
  538. integer weight = 400
  539. fontpitch fontpitch = variable!
  540. fontfamily fontfamily = swiss!
  541. string facename = "MS Sans Serif"
  542. long textcolor = 41943040
  543. boolean autohscroll = false
  544. borderstyle borderstyle = stylelowered!
  545. end type
  546. type sle_database from singlelineedit within w_set_sqlca
  547. integer x = 443
  548. integer y = 24
  549. integer width = 1422
  550. integer height = 80
  551. integer taborder = 50
  552. integer textsize = -8
  553. integer weight = 400
  554. fontpitch fontpitch = variable!
  555. fontfamily fontfamily = swiss!
  556. string facename = "MS Sans Serif"
  557. long textcolor = 41943040
  558. boolean autohscroll = false
  559. borderstyle borderstyle = stylelowered!
  560. end type
  561. event modified;wf_autobuiltmdflogname()
  562. end event
  563. type sle_dbpass from singlelineedit within w_set_sqlca
  564. boolean visible = false
  565. integer x = 443
  566. integer y = 204
  567. integer width = 1422
  568. integer height = 80
  569. integer taborder = 20
  570. integer textsize = -8
  571. integer weight = 400
  572. fontpitch fontpitch = variable!
  573. fontfamily fontfamily = swiss!
  574. string facename = "MS Sans Serif"
  575. long textcolor = 41943040
  576. boolean enabled = false
  577. boolean autohscroll = false
  578. boolean password = true
  579. borderstyle borderstyle = stylelowered!
  580. end type
  581. type sle_userid from singlelineedit within w_set_sqlca
  582. boolean visible = false
  583. integer x = 443
  584. integer y = 116
  585. integer width = 1422
  586. integer height = 80
  587. integer taborder = 10
  588. integer textsize = -8
  589. integer weight = 400
  590. fontcharset fontcharset = ansi!
  591. fontpitch fontpitch = variable!
  592. fontfamily fontfamily = swiss!
  593. string facename = "MS Sans Serif"
  594. long textcolor = 41943040
  595. boolean enabled = false
  596. boolean autohscroll = false
  597. borderstyle borderstyle = stylelowered!
  598. end type
  599. type sle_dbparm from singlelineedit within w_set_sqlca
  600. boolean visible = false
  601. integer x = 443
  602. integer y = 644
  603. integer width = 1422
  604. integer height = 80
  605. integer taborder = 150
  606. integer textsize = -8
  607. integer weight = 400
  608. fontpitch fontpitch = variable!
  609. fontfamily fontfamily = swiss!
  610. string facename = "MS Sans Serif"
  611. long textcolor = 41943040
  612. borderstyle borderstyle = stylelowered!
  613. end type
  614. type st_9 from statictext within w_set_sqlca
  615. boolean visible = false
  616. integer x = 192
  617. integer y = 656
  618. integer width = 233
  619. integer height = 60
  620. integer textsize = -8
  621. integer weight = 400
  622. fontpitch fontpitch = variable!
  623. fontfamily fontfamily = swiss!
  624. string facename = "MS Sans Serif"
  625. long textcolor = 41943040
  626. long backcolor = 74481808
  627. boolean enabled = false
  628. string text = "DBPARM:"
  629. alignment alignment = right!
  630. boolean focusrectangle = false
  631. end type
  632. type st_6 from statictext within w_set_sqlca
  633. integer x = 18
  634. integer y = 296
  635. integer width = 407
  636. integer height = 60
  637. integer textsize = -8
  638. integer weight = 400
  639. fontpitch fontpitch = variable!
  640. fontfamily fontfamily = swiss!
  641. string facename = "MS Sans Serif"
  642. long textcolor = 41943040
  643. long backcolor = 134217739
  644. boolean enabled = false
  645. string text = "登录 口令:"
  646. alignment alignment = right!
  647. boolean focusrectangle = false
  648. end type
  649. type st_5 from statictext within w_set_sqlca
  650. integer x = 155
  651. integer y = 212
  652. integer width = 270
  653. integer height = 60
  654. integer textsize = -8
  655. integer weight = 400
  656. fontpitch fontpitch = variable!
  657. fontfamily fontfamily = swiss!
  658. string facename = "MS Sans Serif"
  659. long textcolor = 41943040
  660. long backcolor = 134217739
  661. boolean enabled = false
  662. string text = "登录 ID:"
  663. alignment alignment = right!
  664. boolean focusrectangle = false
  665. end type
  666. type st_4 from statictext within w_set_sqlca
  667. boolean visible = false
  668. integer x = 151
  669. integer y = 216
  670. integer width = 274
  671. integer height = 60
  672. integer textsize = -8
  673. integer weight = 400
  674. fontpitch fontpitch = variable!
  675. fontfamily fontfamily = swiss!
  676. string facename = "MS Sans Serif"
  677. long textcolor = 41943040
  678. long backcolor = 134217739
  679. boolean enabled = false
  680. string text = "口令:"
  681. alignment alignment = right!
  682. boolean focusrectangle = false
  683. end type
  684. type st_3 from statictext within w_set_sqlca
  685. boolean visible = false
  686. integer x = 187
  687. integer y = 128
  688. integer width = 238
  689. integer height = 60
  690. integer textsize = -8
  691. integer weight = 400
  692. fontpitch fontpitch = variable!
  693. fontfamily fontfamily = swiss!
  694. string facename = "MS Sans Serif"
  695. long textcolor = 41943040
  696. long backcolor = 134217739
  697. boolean enabled = false
  698. string text = "用户ID:"
  699. alignment alignment = right!
  700. boolean focusrectangle = false
  701. end type
  702. type st_2 from statictext within w_set_sqlca
  703. integer x = 128
  704. integer y = 36
  705. integer width = 297
  706. integer height = 60
  707. integer textsize = -8
  708. integer weight = 400
  709. fontpitch fontpitch = variable!
  710. fontfamily fontfamily = swiss!
  711. string facename = "MS Sans Serif"
  712. long textcolor = 41943040
  713. long backcolor = 134217739
  714. boolean enabled = false
  715. string text = "数据库:"
  716. alignment alignment = right!
  717. boolean focusrectangle = false
  718. end type
  719. type st_00 from statictext within w_set_sqlca
  720. boolean visible = false
  721. integer x = 82
  722. integer y = 40
  723. integer width = 343
  724. integer height = 60
  725. integer textsize = -8
  726. integer weight = 400
  727. fontpitch fontpitch = variable!
  728. fontfamily fontfamily = swiss!
  729. string facename = "MS Sans Serif"
  730. long backcolor = 134217739
  731. boolean enabled = false
  732. string text = "DBMS:"
  733. alignment alignment = right!
  734. boolean focusrectangle = false
  735. end type
  736. type st_7 from statictext within w_set_sqlca
  737. integer x = 64
  738. integer y = 120
  739. integer width = 361
  740. integer height = 60
  741. integer textsize = -8
  742. integer weight = 400
  743. fontpitch fontpitch = variable!
  744. fontfamily fontfamily = swiss!
  745. string facename = "MS Sans Serif"
  746. long textcolor = 41943040
  747. long backcolor = 134217739
  748. boolean enabled = false
  749. string text = "服务器:"
  750. alignment alignment = right!
  751. boolean focusrectangle = false
  752. end type
  753. type cb_ch2 from commandbutton within w_set_sqlca
  754. integer x = 2112
  755. integer y = 716
  756. integer width = 114
  757. integer height = 84
  758. integer taborder = 40
  759. integer textsize = -9
  760. integer weight = 400
  761. fontcharset fontcharset = gb2312charset!
  762. fontpitch fontpitch = variable!
  763. string facename = "宋体"
  764. boolean enabled = false
  765. string text = "..."
  766. end type
  767. event clicked;
  768. integer i
  769. string pathname,filename
  770. i=getfilesavename("选择备份文件",pathname,filename,"Dat","数据文件Dat,*.Dat")
  771. IF i=1 AND TRIM(pathname)<>'' AND TRIM(FILENAME)<>"" THEN
  772. sle_filename.text=pathname
  773. END IF
  774. end event
  775. type sle_filename from singlelineedit within w_set_sqlca
  776. integer x = 457
  777. integer y = 720
  778. integer width = 1655
  779. integer height = 80
  780. integer taborder = 30
  781. integer textsize = -9
  782. integer weight = 400
  783. fontcharset fontcharset = gb2312charset!
  784. fontpitch fontpitch = variable!
  785. string facename = "宋体"
  786. long textcolor = 33554432
  787. boolean enabled = false
  788. borderstyle borderstyle = stylelowered!
  789. end type
  790. type cbx_addnewdatabase from checkbox within w_set_sqlca
  791. integer x = 1353
  792. integer y = 488
  793. integer width = 503
  794. integer height = 76
  795. integer taborder = 160
  796. integer textsize = -9
  797. integer weight = 400
  798. fontcharset fontcharset = gb2312charset!
  799. fontpitch fontpitch = variable!
  800. string facename = "宋体"
  801. long textcolor = 255
  802. long backcolor = 134217739
  803. string text = "自动新建数据库"
  804. end type
  805. event clicked;IF THIS.CHECKED THEN
  806. sle_userid.TEXT='SA'
  807. sle_dbpass.Text=''
  808. parent.height=1430
  809. sle_filename.ENABLED=TRUE
  810. cb_ch2.ENABLED=TRUE
  811. sle_sqldb_mdf.ENABLED=TRUE
  812. cb_sqldb_mdf.ENABLED=TRUE
  813. sle_sqldb_ldf.ENABLED=TRUE
  814. cb_sqldb_ldf.ENABLED=TRUE
  815. cbx_db_h.ENABLED=true
  816. ELSE
  817. parent.height=700
  818. sle_filename.ENABLED=FALSE
  819. cb_ch2.ENABLED=FALSE
  820. sle_sqldb_mdf.ENABLED=false
  821. cb_sqldb_mdf.ENABLED=false
  822. sle_sqldb_ldf.ENABLED=false
  823. cb_sqldb_ldf.ENABLED=false
  824. cbx_db_h.ENABLED=false
  825. END IF
  826. cbx_db_h.postevent(clicked!)
  827. end event
  828. type rb_server from radiobutton within w_set_sqlca
  829. integer x = 443
  830. integer y = 492
  831. integer width = 357
  832. integer height = 76
  833. boolean bringtotop = true
  834. integer textsize = -9
  835. integer weight = 400
  836. fontcharset fontcharset = gb2312charset!
  837. fontpitch fontpitch = variable!
  838. string facename = "宋体"
  839. long textcolor = 33554432
  840. long backcolor = 134217739
  841. string text = "服务器模式"
  842. end type
  843. event clicked;
  844. sle_dbms.triggerevent(selectionchanged!)
  845. end event
  846. type rb_2 from radiobutton within w_set_sqlca
  847. integer x = 837
  848. integer y = 492
  849. integer width = 357
  850. integer height = 76
  851. boolean bringtotop = true
  852. integer textsize = -9
  853. integer weight = 400
  854. fontcharset fontcharset = gb2312charset!
  855. fontpitch fontpitch = variable!
  856. string facename = "宋体"
  857. long textcolor = 33554432
  858. long backcolor = 134217739
  859. string text = "客户机模式"
  860. end type
  861. event clicked;
  862. sle_dbms.postevent(selectionchanged!)
  863. end event
  864. type sle_dbms from dropdownlistbox within w_set_sqlca
  865. boolean visible = false
  866. integer x = 443
  867. integer y = 28
  868. integer width = 1422
  869. integer height = 156
  870. integer taborder = 210
  871. boolean bringtotop = true
  872. integer textsize = -8
  873. integer weight = 400
  874. fontcharset fontcharset = ansi!
  875. fontpitch fontpitch = variable!
  876. fontfamily fontfamily = swiss!
  877. string facename = "MS Sans Serif"
  878. long textcolor = 33554432
  879. boolean allowedit = true
  880. boolean sorted = false
  881. boolean vscrollbar = true
  882. string item[] = {"ODBC","MSS Microsoft SQL Server 6.x"}
  883. borderstyle borderstyle = stylelowered!
  884. end type
  885. event selectionchanged;cbx_addnewdatabase.enabled=ARROWADDNEW<>0 and rb_server.checked and sle_dbms.text='MSS Microsoft SQL Server 6.x'
  886. if not rb_server.checked then cbx_addnewdatabase.checked=false
  887. if not cbx_addnewdatabase.checked then cbx_addnewdatabase.triggerevent(clicked!)
  888. wf_findisql()
  889. end event
  890. event modified;sle_dbms.postevent(selectionchanged!)
  891. end event
  892. type st_8 from statictext within w_set_sqlca
  893. integer x = 87
  894. integer y = 736
  895. integer width = 370
  896. integer height = 76
  897. boolean bringtotop = true
  898. integer textsize = -9
  899. integer weight = 400
  900. fontcharset fontcharset = gb2312charset!
  901. fontpitch fontpitch = variable!
  902. string facename = "宋体"
  903. long textcolor = 33554432
  904. long backcolor = 134217739
  905. boolean enabled = false
  906. string text = "空数据库来自:"
  907. alignment alignment = right!
  908. boolean focusrectangle = false
  909. end type
  910. type sle_sqldb_mdf from singlelineedit within w_set_sqlca
  911. integer x = 457
  912. integer y = 812
  913. integer width = 1655
  914. integer height = 80
  915. integer taborder = 80
  916. integer textsize = -9
  917. integer weight = 400
  918. fontcharset fontcharset = gb2312charset!
  919. fontpitch fontpitch = variable!
  920. string facename = "宋体"
  921. long textcolor = 33554432
  922. boolean enabled = false
  923. borderstyle borderstyle = stylelowered!
  924. end type
  925. type sle_sqldb_ldf from singlelineedit within w_set_sqlca
  926. integer x = 457
  927. integer y = 904
  928. integer width = 1655
  929. integer height = 80
  930. integer taborder = 90
  931. integer textsize = -9
  932. integer weight = 400
  933. fontcharset fontcharset = gb2312charset!
  934. fontpitch fontpitch = variable!
  935. string facename = "宋体"
  936. long textcolor = 33554432
  937. boolean enabled = false
  938. borderstyle borderstyle = stylelowered!
  939. end type
  940. type st_91 from statictext within w_set_sqlca
  941. integer x = 87
  942. integer y = 828
  943. integer width = 370
  944. integer height = 76
  945. boolean bringtotop = true
  946. integer textsize = -9
  947. integer weight = 400
  948. fontcharset fontcharset = gb2312charset!
  949. fontpitch fontpitch = variable!
  950. string facename = "宋体"
  951. long textcolor = 33554432
  952. long backcolor = 134217739
  953. boolean enabled = false
  954. string text = "目标数据文件:"
  955. alignment alignment = right!
  956. boolean focusrectangle = false
  957. end type
  958. type st_912 from statictext within w_set_sqlca
  959. integer x = 87
  960. integer y = 920
  961. integer width = 370
  962. integer height = 76
  963. boolean bringtotop = true
  964. integer textsize = -9
  965. integer weight = 400
  966. fontcharset fontcharset = gb2312charset!
  967. fontpitch fontpitch = variable!
  968. string facename = "宋体"
  969. long textcolor = 33554432
  970. long backcolor = 134217739
  971. boolean enabled = false
  972. string text = "目标日志文件:"
  973. alignment alignment = right!
  974. boolean focusrectangle = false
  975. end type
  976. type cb_sqldb_mdf from commandbutton within w_set_sqlca
  977. integer x = 2112
  978. integer y = 812
  979. integer width = 114
  980. integer height = 84
  981. integer taborder = 60
  982. integer textsize = -9
  983. integer weight = 400
  984. fontcharset fontcharset = gb2312charset!
  985. fontpitch fontpitch = variable!
  986. string facename = "宋体"
  987. boolean enabled = false
  988. string text = "..."
  989. end type
  990. event clicked;integer i
  991. string pathname,filename
  992. i=getfilesavename("数据文件及路径",pathname,filename,"MDF","MDF,*.MDF")
  993. IF i=1 AND TRIM(pathname)<>'' AND TRIM(FILENAME)<>"" THEN
  994. IF RIGHT(LOWER(pathname),4)<>'.mdf' THEN
  995. MESSAGEBOX('','请输入MDF文件!')
  996. return
  997. END IF
  998. sle_sqldb_mdf.text=pathname
  999. END IF
  1000. end event
  1001. type cb_sqldb_ldf from commandbutton within w_set_sqlca
  1002. integer x = 2112
  1003. integer y = 904
  1004. integer width = 114
  1005. integer height = 84
  1006. integer taborder = 70
  1007. integer textsize = -9
  1008. integer weight = 400
  1009. fontcharset fontcharset = gb2312charset!
  1010. fontpitch fontpitch = variable!
  1011. string facename = "宋体"
  1012. boolean enabled = false
  1013. string text = "..."
  1014. end type
  1015. event clicked;integer i
  1016. string pathname,filename
  1017. i=getfilesavename("数据日志文件及路径",pathname,filename,"ldf","MS SQL Server日志ldf,*.ldf")
  1018. IF i=1 AND TRIM(pathname)<>'' AND TRIM(FILENAME)<>"" THEN
  1019. IF RIGHT(LOWER(pathname),4)<>'.ldf' THEN
  1020. MESSAGEBOX('','请输入ldf文件!')
  1021. return
  1022. END IF
  1023. sle_sqldb_ldf.text=pathname
  1024. END IF
  1025. end event
  1026. type gb_1 from groupbox within w_set_sqlca
  1027. integer x = 64
  1028. integer y = 648
  1029. integer width = 2194
  1030. integer height = 364
  1031. integer taborder = 180
  1032. integer textsize = -9
  1033. integer weight = 400
  1034. fontcharset fontcharset = gb2312charset!
  1035. fontpitch fontpitch = variable!
  1036. string facename = "宋体"
  1037. long textcolor = 33554432
  1038. long backcolor = 134217739
  1039. string text = "自动新建数据库"
  1040. end type
  1041. type st_193 from statictext within w_set_sqlca
  1042. integer x = 142
  1043. integer y = 504
  1044. integer width = 293
  1045. integer height = 60
  1046. integer textsize = -9
  1047. integer weight = 400
  1048. fontcharset fontcharset = gb2312charset!
  1049. fontpitch fontpitch = variable!
  1050. string facename = "宋体"
  1051. long textcolor = 41943040
  1052. long backcolor = 134217739
  1053. boolean enabled = false
  1054. string text = "工作模式:"
  1055. alignment alignment = right!
  1056. boolean focusrectangle = false
  1057. end type
  1058. type st_2334 from statictext within w_set_sqlca
  1059. integer x = 101
  1060. integer y = 1088
  1061. integer width = 329
  1062. integer height = 76
  1063. boolean bringtotop = true
  1064. integer textsize = -9
  1065. integer weight = 400
  1066. fontcharset fontcharset = gb2312charset!
  1067. fontpitch fontpitch = variable!
  1068. string facename = "宋体"
  1069. long textcolor = 33554432
  1070. long backcolor = 134217739
  1071. boolean enabled = false
  1072. string text = "源数据名称:"
  1073. alignment alignment = right!
  1074. boolean focusrectangle = false
  1075. end type
  1076. type st_345 from statictext within w_set_sqlca
  1077. integer x = 101
  1078. integer y = 1180
  1079. integer width = 329
  1080. integer height = 76
  1081. boolean bringtotop = true
  1082. integer textsize = -9
  1083. integer weight = 400
  1084. fontcharset fontcharset = gb2312charset!
  1085. fontpitch fontpitch = variable!
  1086. string facename = "宋体"
  1087. long textcolor = 33554432
  1088. long backcolor = 134217739
  1089. boolean enabled = false
  1090. string text = "源日志名称:"
  1091. alignment alignment = right!
  1092. boolean focusrectangle = false
  1093. end type
  1094. type sle_sqldb_mdf_sor from singlelineedit within w_set_sqlca
  1095. integer x = 457
  1096. integer y = 1072
  1097. integer width = 1655
  1098. integer height = 80
  1099. integer taborder = 100
  1100. integer textsize = -9
  1101. integer weight = 400
  1102. fontcharset fontcharset = gb2312charset!
  1103. fontpitch fontpitch = variable!
  1104. string facename = "宋体"
  1105. long textcolor = 33554432
  1106. boolean enabled = false
  1107. borderstyle borderstyle = stylelowered!
  1108. end type
  1109. type sle_sqldb_ldf_sor from singlelineedit within w_set_sqlca
  1110. integer x = 457
  1111. integer y = 1164
  1112. integer width = 1655
  1113. integer height = 80
  1114. integer taborder = 110
  1115. integer textsize = -9
  1116. integer weight = 400
  1117. fontcharset fontcharset = gb2312charset!
  1118. fontpitch fontpitch = variable!
  1119. string facename = "宋体"
  1120. long textcolor = 33554432
  1121. boolean enabled = false
  1122. borderstyle borderstyle = stylelowered!
  1123. end type
  1124. type cbx_db_h from checkbox within w_set_sqlca
  1125. integer x = 101
  1126. integer y = 1016
  1127. integer width = 201
  1128. integer height = 60
  1129. boolean bringtotop = true
  1130. integer textsize = -9
  1131. integer weight = 400
  1132. fontcharset fontcharset = gb2312charset!
  1133. fontpitch fontpitch = variable!
  1134. string facename = "宋体"
  1135. long textcolor = 33554432
  1136. long backcolor = 134217739
  1137. string text = "高级"
  1138. end type
  1139. event clicked;sle_sqldb_mdf_sor.enabled=this.checked
  1140. sle_sqldb_ldf_sor.enabled=this.checked
  1141. end event
  1142. type gb_3 from groupbox within w_set_sqlca
  1143. integer x = 64
  1144. integer y = 1016
  1145. integer width = 2194
  1146. integer height = 268
  1147. integer taborder = 170
  1148. integer textsize = -9
  1149. integer weight = 400
  1150. fontcharset fontcharset = gb2312charset!
  1151. fontpitch fontpitch = variable!
  1152. string facename = "宋体"
  1153. long textcolor = 33554432
  1154. long backcolor = 134217739
  1155. end type
  1156. type st_jd from statictext within w_set_sqlca
  1157. integer x = 50
  1158. integer y = 416
  1159. integer width = 2226
  1160. integer height = 56
  1161. boolean bringtotop = true
  1162. integer textsize = -9
  1163. integer weight = 400
  1164. fontcharset fontcharset = gb2312charset!
  1165. fontpitch fontpitch = variable!
  1166. string facename = "宋体"
  1167. long textcolor = 16711680
  1168. long backcolor = 134217739
  1169. boolean enabled = false
  1170. alignment alignment = right!
  1171. boolean focusrectangle = false
  1172. end type