w_create_db.srw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. $PBExportHeader$w_create_db.srw
  2. $PBExportComments$数据库连接窗口
  3. forward
  4. global type w_create_db from w_publ_base
  5. end type
  6. type cb_ok from uo_imflatbutton within w_create_db
  7. end type
  8. type cb_ch2 from commandbutton within w_create_db
  9. end type
  10. type sle_filename from singlelineedit within w_create_db
  11. end type
  12. type st_8 from statictext within w_create_db
  13. end type
  14. type sle_sqldb_mdf from singlelineedit within w_create_db
  15. end type
  16. type sle_sqldb_ldf from singlelineedit within w_create_db
  17. end type
  18. type st_91 from statictext within w_create_db
  19. end type
  20. type st_912 from statictext within w_create_db
  21. end type
  22. type cb_sqldb_mdf from commandbutton within w_create_db
  23. end type
  24. type cb_sqldb_ldf from commandbutton within w_create_db
  25. end type
  26. type gb_1 from groupbox within w_create_db
  27. end type
  28. type st_2334 from statictext within w_create_db
  29. end type
  30. type st_345 from statictext within w_create_db
  31. end type
  32. type sle_sqldb_mdf_sor from singlelineedit within w_create_db
  33. end type
  34. type sle_sqldb_ldf_sor from singlelineedit within w_create_db
  35. end type
  36. type cbx_db_h from checkbox within w_create_db
  37. end type
  38. type gb_3 from groupbox within w_create_db
  39. end type
  40. type st_jd from statictext within w_create_db
  41. end type
  42. end forward
  43. global type w_create_db from w_publ_base
  44. integer x = 283
  45. integer y = 12
  46. integer width = 2331
  47. integer height = 1016
  48. string title = "建立外部连接数据库"
  49. boolean minbox = false
  50. windowtype windowtype = response!
  51. cb_ok cb_ok
  52. cb_ch2 cb_ch2
  53. sle_filename sle_filename
  54. st_8 st_8
  55. sle_sqldb_mdf sle_sqldb_mdf
  56. sle_sqldb_ldf sle_sqldb_ldf
  57. st_91 st_91
  58. st_912 st_912
  59. cb_sqldb_mdf cb_sqldb_mdf
  60. cb_sqldb_ldf cb_sqldb_ldf
  61. gb_1 gb_1
  62. st_2334 st_2334
  63. st_345 st_345
  64. sle_sqldb_mdf_sor sle_sqldb_mdf_sor
  65. sle_sqldb_ldf_sor sle_sqldb_ldf_sor
  66. cbx_db_h cbx_db_h
  67. gb_3 gb_3
  68. st_jd st_jd
  69. end type
  70. global w_create_db w_create_db
  71. type prototypes
  72. Subroutine Sleep(ulong dwMilliseconds) LIBRARY "kernel32.dll"
  73. Function long ShellExecuteA (long hwnd, string lpOperation ,String lpFile, String lpParameters, String lpDirectory, Long nShowCmd) Library "shell32.dll" alias for "ShellExecuteA;Ansi"
  74. end prototypes
  75. type variables
  76. String ls_bat_filename = '_ls_cmd_run.bat'
  77. String ls_txt_filename = '_ls_cmd_rslt.txt'
  78. String masterpath
  79. s_outerconnection s_db
  80. end variables
  81. forward prototypes
  82. public function integer wf_autobuiltmdflogname ()
  83. public function integer wf_buildsqldb ()
  84. public function integer wf_findisql ()
  85. end prototypes
  86. public function integer wf_autobuiltmdflogname ();
  87. sle_sqldb_ldf.Text = masterpath+s_db.databasename+'_log.ldf'
  88. sle_sqldb_mdf.Text = masterpath+s_db.databasename+'_data.MDF'
  89. RETURN 1
  90. end function
  91. public function integer wf_buildsqldb ();Integer li_FileNum,rslt = 1
  92. String comm,msg
  93. Long i,j,lu_return
  94. Transaction db_Transaction
  95. db_Transaction = CREATE Transaction
  96. comm = ' create DATABASE '+s_db.databasename+&
  97. " 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+"')"
  98. db_Transaction.DBMS = s_db.DBMS
  99. db_Transaction.Database = 'master'
  100. db_Transaction.LogID = s_db.LogID
  101. db_Transaction.LogPass = s_db.LogPass
  102. db_Transaction.ServerName = s_db.ServerName
  103. IF db_Transaction.Database = '' OR db_Transaction.ServerName = '' THEN
  104. MessageBox("错误","连接数据管理库失败!",stopsign!,OK!)
  105. rslt = 0
  106. goto ext
  107. END IF
  108. CONNECT USING db_Transaction;
  109. IF db_Transaction.SQLCode <> 0 THEN
  110. MessageBox('错误','连接master数据库失败,'+db_Transaction.SQLErrText,stopsign!,OK!)
  111. rslt = 0
  112. goto ext
  113. END IF
  114. db_Transaction.AutoCommit = TRUE
  115. st_jd.Text = '正在新建数据库...'
  116. EXECUTE IMMEDIATE :comm USING db_Transaction;
  117. IF db_Transaction.SQLCode <> 0 THEN
  118. msg = '建立失败,请手动建立及恢复数据库>'+db_Transaction.SQLErrText
  119. ROLLBACK USING db_Transaction;
  120. MessageBox('错误',msg,stopsign!,OK!)
  121. rslt = 0
  122. GOTO ext
  123. ELSE
  124. rslt = 1
  125. COMMIT USING db_Transaction;
  126. END IF
  127. st_jd.Text = '正在恢复数据库...'
  128. comm = 'RESTORE DATABASE '+s_db.databasename+" from DISK= '"+sle_filename.Text+"'"+&
  129. " WITH MOVE '"+sle_sqldb_mdf_sor.Text+"' TO '"+sle_sqldb_mdf.Text+"',"+&
  130. " MOVE '"+sle_sqldb_ldf_sor.Text+"' TO '"+sle_sqldb_ldf.Text+"',"+'REPLACE'
  131. EXECUTE IMMEDIATE :comm USING db_Transaction;
  132. IF db_Transaction.SQLCode <> 0 THEN
  133. msg = '恢复失败,请手动恢复数据库>'+db_Transaction.SQLErrText
  134. ROLLBACK USING db_Transaction;
  135. MessageBox('错误',msg,stopsign!,OK!)
  136. rslt = 0
  137. ELSE
  138. rslt = 1
  139. COMMIT USING db_Transaction;
  140. MessageBox('提示','建立数据库成功',information!,OK!)
  141. END IF
  142. ext:
  143. RETURN rslt
  144. end function
  145. public function integer wf_findisql ();
  146. IF FileExists('c:\mssql7\data\master.mdf') THEN
  147. masterpath = 'c:\mssql7\data\'
  148. GOTO ext
  149. END IF
  150. IF FileExists('c:\Program Files\Microsoft SQL Server\80\data\master.mdf') THEN
  151. masterpath = 'c:\Program Files\Microsoft SQL Server\data\'
  152. GOTO ext
  153. END IF
  154. IF FileExists('c:\Program Files\Microsoft SQL Server\MSSQL\data\master.mdf') THEN
  155. masterpath = "c:\Program Files\Microsoft SQL Server\MSSQL\data\"
  156. GOTO ext
  157. END IF
  158. IF FileExists('d:\mssql7\data\master.mdf') THEN
  159. masterpath = 'd:\mssql7\data\'
  160. GOTO ext
  161. END IF
  162. IF FileExists('d:\Program Files\Microsoft SQL Server\80\data\master.mdf') THEN
  163. masterpath = 'd:\Program Files\Microsoft SQL Server\data\'
  164. GOTO ext
  165. END IF
  166. IF FileExists('d:\Program Files\Microsoft SQL Server\MSSQL\data\master.mdf') THEN
  167. masterpath = 'd:\Program Files\Microsoft SQL Server\MSSQL\data\'
  168. GOTO ext
  169. END IF
  170. IF FileExists('e:\mssql7\data\master.mdf') THEN
  171. masterpath = 'e:\mssql7\data\'
  172. GOTO ext
  173. END IF
  174. IF FileExists('e:\Program Files\Microsoft SQL Server\80\data\master.mdf') THEN
  175. masterpath = 'e:\Program Files\Microsoft SQL Server\data\'
  176. GOTO ext
  177. END IF
  178. IF FileExists('e:\Program Files\Microsoft SQL Server\MSSQL\data\master.mdf') THEN
  179. masterpath = 'e:\Program Files\Microsoft SQL Server\MSSQL\data\'
  180. GOTO ext
  181. END IF
  182. IF FileExists('f:\mssql7\data\master.mdf') THEN
  183. masterpath = 'f:\mssql7\data\'
  184. GOTO ext
  185. END IF
  186. IF FileExists('f:\Program Files\Microsoft SQL Server\80\data\master.mdf') THEN
  187. masterpath = 'f:\Program Files\Microsoft SQL Server\data\'
  188. GOTO ext
  189. END IF
  190. IF FileExists('f:\Program Files\Microsoft SQL Server\MSSQL\data\master.mdf') THEN
  191. masterpath = 'f:\Program Files\Microsoft SQL Server\MSSQL\data\'
  192. GOTO ext
  193. END IF
  194. IF FileExists('g:\mssql7\data\master.mdf') THEN
  195. masterpath = 'g:\mssql7\data\'
  196. GOTO ext
  197. END IF
  198. IF FileExists('g:\Program Files\Microsoft SQL Server\80\data\master.mdf') THEN
  199. masterpath = 'g:\Program Files\Microsoft SQL Server\data\'
  200. GOTO ext
  201. END IF
  202. IF FileExists('g:\Program Files\Microsoft SQL Server\MSSQL\data\master.mdf') THEN
  203. masterpath = 'g:\Program Files\Microsoft SQL Server\MSSQL\data\'
  204. GOTO ext
  205. END IF
  206. IF FileExists('h:\mssql7\data\master.mdf') THEN
  207. masterpath = 'h:\mssql7\data\'
  208. GOTO ext
  209. END IF
  210. IF FileExists('h:\Program Files\Microsoft SQL Server\80\data\master.mdf') THEN
  211. masterpath = 'h:\Program Files\Microsoft SQL Server\data\'
  212. GOTO ext
  213. END IF
  214. IF FileExists('h:\Program Files\Microsoft SQL Server\MSSQL\data\master.mdf') THEN
  215. masterpath = 'h:\Program Files\Microsoft SQL Server\MSSQL\data\'
  216. GOTO ext
  217. END IF
  218. ext:
  219. IF masterpath = '' THEN masterpath = "c:\Program Files\Microsoft SQL Server\MSSQL\data\"
  220. wf_autobuiltmdflogname()
  221. RETURN 0
  222. end function
  223. event open;call super::open;
  224. s_db = Message.PowerObjectParm
  225. sle_sqldb_mdf_sor.Text = s_db.mdf_name
  226. sle_sqldb_ldf_sor.Text = s_db.ldf_name
  227. wf_findisql()
  228. end event
  229. on w_create_db.create
  230. int iCurrent
  231. call super::create
  232. this.cb_ok=create cb_ok
  233. this.cb_ch2=create cb_ch2
  234. this.sle_filename=create sle_filename
  235. this.st_8=create st_8
  236. this.sle_sqldb_mdf=create sle_sqldb_mdf
  237. this.sle_sqldb_ldf=create sle_sqldb_ldf
  238. this.st_91=create st_91
  239. this.st_912=create st_912
  240. this.cb_sqldb_mdf=create cb_sqldb_mdf
  241. this.cb_sqldb_ldf=create cb_sqldb_ldf
  242. this.gb_1=create gb_1
  243. this.st_2334=create st_2334
  244. this.st_345=create st_345
  245. this.sle_sqldb_mdf_sor=create sle_sqldb_mdf_sor
  246. this.sle_sqldb_ldf_sor=create sle_sqldb_ldf_sor
  247. this.cbx_db_h=create cbx_db_h
  248. this.gb_3=create gb_3
  249. this.st_jd=create st_jd
  250. iCurrent=UpperBound(this.Control)
  251. this.Control[iCurrent+1]=this.cb_ok
  252. this.Control[iCurrent+2]=this.cb_ch2
  253. this.Control[iCurrent+3]=this.sle_filename
  254. this.Control[iCurrent+4]=this.st_8
  255. this.Control[iCurrent+5]=this.sle_sqldb_mdf
  256. this.Control[iCurrent+6]=this.sle_sqldb_ldf
  257. this.Control[iCurrent+7]=this.st_91
  258. this.Control[iCurrent+8]=this.st_912
  259. this.Control[iCurrent+9]=this.cb_sqldb_mdf
  260. this.Control[iCurrent+10]=this.cb_sqldb_ldf
  261. this.Control[iCurrent+11]=this.gb_1
  262. this.Control[iCurrent+12]=this.st_2334
  263. this.Control[iCurrent+13]=this.st_345
  264. this.Control[iCurrent+14]=this.sle_sqldb_mdf_sor
  265. this.Control[iCurrent+15]=this.sle_sqldb_ldf_sor
  266. this.Control[iCurrent+16]=this.cbx_db_h
  267. this.Control[iCurrent+17]=this.gb_3
  268. this.Control[iCurrent+18]=this.st_jd
  269. end on
  270. on w_create_db.destroy
  271. call super::destroy
  272. destroy(this.cb_ok)
  273. destroy(this.cb_ch2)
  274. destroy(this.sle_filename)
  275. destroy(this.st_8)
  276. destroy(this.sle_sqldb_mdf)
  277. destroy(this.sle_sqldb_ldf)
  278. destroy(this.st_91)
  279. destroy(this.st_912)
  280. destroy(this.cb_sqldb_mdf)
  281. destroy(this.cb_sqldb_ldf)
  282. destroy(this.gb_1)
  283. destroy(this.st_2334)
  284. destroy(this.st_345)
  285. destroy(this.sle_sqldb_mdf_sor)
  286. destroy(this.sle_sqldb_ldf_sor)
  287. destroy(this.cbx_db_h)
  288. destroy(this.gb_3)
  289. destroy(this.st_jd)
  290. end on
  291. type cb_func from w_publ_base`cb_func within w_create_db
  292. boolean visible = false
  293. integer x = 1568
  294. integer y = 1124
  295. boolean enabled = false
  296. end type
  297. type cb_exit from w_publ_base`cb_exit within w_create_db
  298. integer x = 1312
  299. integer y = 764
  300. integer width = 315
  301. string text = "取消"
  302. end type
  303. type cb_ok from uo_imflatbutton within w_create_db
  304. integer x = 544
  305. integer y = 768
  306. integer width = 315
  307. integer height = 96
  308. integer taborder = 60
  309. string normalpicname = "ok.bmp"
  310. end type
  311. event clicked;call super::clicked;
  312. IF NOT FileExists(sle_filename.Text) THEN
  313. MessageBox("提示","指定恢复数据文件不存在",information!,OK!)
  314. RETURN
  315. END IF
  316. IF Trim(sle_sqldb_mdf.Text) = '' OR Trim(sle_sqldb_ldf.Text) = '' THEN
  317. wf_autobuiltmdflogname()
  318. ELSE
  319. IF Pos(sle_sqldb_mdf.Text,':') = 0 OR Lower(Right(sle_sqldb_mdf.Text,4)) <> '.mdf' THEN
  320. MessageBox('错误','目标数据库文件名称错误!',stopsign!,OK!)
  321. RETURN
  322. END IF
  323. IF Pos(sle_sqldb_ldf.Text,':') = 0 OR Lower(Right(sle_sqldb_ldf.Text,4)) <> '.ldf' THEN
  324. MessageBox('错误','目标日志文件名称错误!',stopsign!,OK!)
  325. RETURN
  326. END IF
  327. END IF
  328. IF Trim(s_db.databasename) = '' THEN
  329. MessageBox('提示','请输入database!',information!,OK!)
  330. RETURN
  331. END IF
  332. IF Trim(s_db.ServerName) = '' THEN
  333. MessageBox('提示','请输入server name!',information!,OK!)
  334. RETURN
  335. END IF
  336. IF wf_buildsqldb() = 0 THEN
  337. MessageBox("错误","生成数据库操作失败!",stopsign!,OK!)
  338. RETURN
  339. END IF
  340. close(parent)
  341. end event
  342. type cb_ch2 from commandbutton within w_create_db
  343. integer x = 2117
  344. integer y = 160
  345. integer width = 114
  346. integer height = 84
  347. integer taborder = 40
  348. integer textsize = -9
  349. integer weight = 400
  350. fontcharset fontcharset = gb2312charset!
  351. fontpitch fontpitch = variable!
  352. string facename = "宋体"
  353. string text = "..."
  354. end type
  355. event clicked;
  356. Integer i
  357. String Pathname,Filename
  358. i = GetFileSaveName("选择备份文件",Pathname,Filename,"Dat","数据文件Dat,*.Dat")
  359. IF i = 1 AND Trim(Pathname) <> '' AND Trim(Filename) <> "" THEN
  360. sle_filename.Text = Pathname
  361. END IF
  362. end event
  363. type sle_filename from singlelineedit within w_create_db
  364. integer x = 457
  365. integer y = 164
  366. integer width = 1655
  367. integer height = 80
  368. integer taborder = 30
  369. integer textsize = -9
  370. integer weight = 400
  371. fontcharset fontcharset = gb2312charset!
  372. fontpitch fontpitch = variable!
  373. string facename = "宋体"
  374. long textcolor = 33554432
  375. borderstyle borderstyle = stylelowered!
  376. end type
  377. type st_8 from statictext within w_create_db
  378. integer x = 87
  379. integer y = 180
  380. integer width = 370
  381. integer height = 76
  382. boolean bringtotop = true
  383. integer textsize = -9
  384. integer weight = 400
  385. fontcharset fontcharset = gb2312charset!
  386. fontpitch fontpitch = variable!
  387. string facename = "宋体"
  388. long textcolor = 33554432
  389. long backcolor = 134217739
  390. boolean enabled = false
  391. string text = "空数据库来自:"
  392. alignment alignment = right!
  393. boolean focusrectangle = false
  394. end type
  395. type sle_sqldb_mdf from singlelineedit within w_create_db
  396. integer x = 457
  397. integer y = 256
  398. integer width = 1655
  399. integer height = 80
  400. integer taborder = 80
  401. integer textsize = -9
  402. integer weight = 400
  403. fontcharset fontcharset = gb2312charset!
  404. fontpitch fontpitch = variable!
  405. string facename = "宋体"
  406. long textcolor = 33554432
  407. borderstyle borderstyle = stylelowered!
  408. end type
  409. type sle_sqldb_ldf from singlelineedit within w_create_db
  410. integer x = 457
  411. integer y = 348
  412. integer width = 1655
  413. integer height = 80
  414. integer taborder = 90
  415. integer textsize = -9
  416. integer weight = 400
  417. fontcharset fontcharset = gb2312charset!
  418. fontpitch fontpitch = variable!
  419. string facename = "宋体"
  420. long textcolor = 33554432
  421. borderstyle borderstyle = stylelowered!
  422. end type
  423. type st_91 from statictext within w_create_db
  424. integer x = 87
  425. integer y = 272
  426. integer width = 370
  427. integer height = 76
  428. boolean bringtotop = true
  429. integer textsize = -9
  430. integer weight = 400
  431. fontcharset fontcharset = gb2312charset!
  432. fontpitch fontpitch = variable!
  433. string facename = "宋体"
  434. long textcolor = 33554432
  435. long backcolor = 134217739
  436. boolean enabled = false
  437. string text = "目标数据文件:"
  438. alignment alignment = right!
  439. boolean focusrectangle = false
  440. end type
  441. type st_912 from statictext within w_create_db
  442. integer x = 87
  443. integer y = 364
  444. integer width = 370
  445. integer height = 76
  446. boolean bringtotop = true
  447. integer textsize = -9
  448. integer weight = 400
  449. fontcharset fontcharset = gb2312charset!
  450. fontpitch fontpitch = variable!
  451. string facename = "宋体"
  452. long textcolor = 33554432
  453. long backcolor = 134217739
  454. boolean enabled = false
  455. string text = "目标日志文件:"
  456. alignment alignment = right!
  457. boolean focusrectangle = false
  458. end type
  459. type cb_sqldb_mdf from commandbutton within w_create_db
  460. integer x = 2117
  461. integer y = 256
  462. integer width = 114
  463. integer height = 84
  464. integer taborder = 60
  465. integer textsize = -9
  466. integer weight = 400
  467. fontcharset fontcharset = gb2312charset!
  468. fontpitch fontpitch = variable!
  469. string facename = "宋体"
  470. string text = "..."
  471. end type
  472. event clicked;Integer i
  473. String Pathname,Filename
  474. i = GetFileSaveName("数据文件及路径",Pathname,Filename,"MDF","MDF,*.MDF")
  475. IF i = 1 AND Trim(Pathname) <> '' AND Trim(Filename) <> "" THEN
  476. IF Right(Lower(Pathname),4) <> '.mdf' THEN
  477. MessageBox('提示','请输入MDF文件!',information!,OK!)
  478. RETURN
  479. END IF
  480. sle_sqldb_mdf.Text = Pathname
  481. END IF
  482. end event
  483. type cb_sqldb_ldf from commandbutton within w_create_db
  484. integer x = 2117
  485. integer y = 348
  486. integer width = 114
  487. integer height = 84
  488. integer taborder = 70
  489. integer textsize = -9
  490. integer weight = 400
  491. fontcharset fontcharset = gb2312charset!
  492. fontpitch fontpitch = variable!
  493. string facename = "宋体"
  494. string text = "..."
  495. end type
  496. event clicked;Integer i
  497. String Pathname,Filename
  498. i = GetFileSaveName("数据日志文件及路径",Pathname,Filename,"ldf","MS SQL Server日志ldf,*.ldf")
  499. IF i = 1 AND Trim(Pathname) <> '' AND Trim(Filename) <> "" THEN
  500. IF Right(Lower(Pathname),4) <> '.ldf' THEN
  501. MessageBox('提示','请输入ldf文件!',information!,OK!)
  502. RETURN
  503. END IF
  504. sle_sqldb_ldf.Text = Pathname
  505. END IF
  506. end event
  507. type gb_1 from groupbox within w_create_db
  508. integer x = 64
  509. integer y = 92
  510. integer width = 2194
  511. integer height = 364
  512. integer taborder = 180
  513. integer textsize = -9
  514. integer weight = 400
  515. fontcharset fontcharset = gb2312charset!
  516. fontpitch fontpitch = variable!
  517. string facename = "宋体"
  518. long textcolor = 33554432
  519. long backcolor = 134217739
  520. string text = "新建数据库"
  521. end type
  522. type st_2334 from statictext within w_create_db
  523. integer x = 101
  524. integer y = 532
  525. integer width = 329
  526. integer height = 76
  527. boolean bringtotop = true
  528. integer textsize = -9
  529. integer weight = 400
  530. fontcharset fontcharset = gb2312charset!
  531. fontpitch fontpitch = variable!
  532. string facename = "宋体"
  533. long textcolor = 33554432
  534. long backcolor = 134217739
  535. boolean enabled = false
  536. string text = "源数据名称:"
  537. alignment alignment = right!
  538. boolean focusrectangle = false
  539. end type
  540. type st_345 from statictext within w_create_db
  541. integer x = 101
  542. integer y = 624
  543. integer width = 329
  544. integer height = 76
  545. boolean bringtotop = true
  546. integer textsize = -9
  547. integer weight = 400
  548. fontcharset fontcharset = gb2312charset!
  549. fontpitch fontpitch = variable!
  550. string facename = "宋体"
  551. long textcolor = 33554432
  552. long backcolor = 134217739
  553. boolean enabled = false
  554. string text = "源日志名称:"
  555. alignment alignment = right!
  556. boolean focusrectangle = false
  557. end type
  558. type sle_sqldb_mdf_sor from singlelineedit within w_create_db
  559. integer x = 457
  560. integer y = 516
  561. integer width = 1655
  562. integer height = 80
  563. integer taborder = 100
  564. integer textsize = -9
  565. integer weight = 400
  566. fontcharset fontcharset = gb2312charset!
  567. fontpitch fontpitch = variable!
  568. string facename = "宋体"
  569. long textcolor = 33554432
  570. boolean enabled = false
  571. borderstyle borderstyle = stylelowered!
  572. end type
  573. type sle_sqldb_ldf_sor from singlelineedit within w_create_db
  574. integer x = 457
  575. integer y = 608
  576. integer width = 1655
  577. integer height = 80
  578. integer taborder = 110
  579. integer textsize = -9
  580. integer weight = 400
  581. fontcharset fontcharset = gb2312charset!
  582. fontpitch fontpitch = variable!
  583. string facename = "宋体"
  584. long textcolor = 33554432
  585. boolean enabled = false
  586. borderstyle borderstyle = stylelowered!
  587. end type
  588. type cbx_db_h from checkbox within w_create_db
  589. integer x = 101
  590. integer y = 460
  591. integer width = 201
  592. integer height = 60
  593. boolean bringtotop = true
  594. integer textsize = -9
  595. integer weight = 400
  596. fontcharset fontcharset = gb2312charset!
  597. fontpitch fontpitch = variable!
  598. string facename = "宋体"
  599. long textcolor = 33554432
  600. long backcolor = 134217739
  601. string text = "高级"
  602. end type
  603. event clicked;sle_sqldb_mdf_sor.Enabled = THIS.Checked
  604. sle_sqldb_ldf_sor.Enabled = THIS.Checked
  605. end event
  606. type gb_3 from groupbox within w_create_db
  607. integer x = 64
  608. integer y = 460
  609. integer width = 2194
  610. integer height = 268
  611. integer taborder = 170
  612. integer textsize = -9
  613. integer weight = 400
  614. fontcharset fontcharset = gb2312charset!
  615. fontpitch fontpitch = variable!
  616. string facename = "宋体"
  617. long textcolor = 33554432
  618. long backcolor = 134217739
  619. end type
  620. type st_jd from statictext within w_create_db
  621. integer x = 64
  622. integer y = 28
  623. integer width = 2194
  624. integer height = 56
  625. boolean bringtotop = true
  626. integer textsize = -9
  627. integer weight = 400
  628. fontcharset fontcharset = gb2312charset!
  629. fontpitch fontpitch = variable!
  630. string facename = "宋体"
  631. long textcolor = 16711680
  632. long backcolor = 134217739
  633. boolean enabled = false
  634. alignment alignment = right!
  635. boolean focusrectangle = false
  636. end type