w_set_incept_sqlca.srw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. $PBExportHeader$w_set_incept_sqlca.srw
  2. forward
  3. global type w_set_incept_sqlca from w_publ_base
  4. end type
  5. type sle_logpass from singlelineedit within w_set_incept_sqlca
  6. end type
  7. type sle_logid from singlelineedit within w_set_incept_sqlca
  8. end type
  9. type sle_server from singlelineedit within w_set_incept_sqlca
  10. end type
  11. type sle_database from singlelineedit within w_set_incept_sqlca
  12. end type
  13. type sle_dbpass from singlelineedit within w_set_incept_sqlca
  14. end type
  15. type sle_userid from singlelineedit within w_set_incept_sqlca
  16. end type
  17. type sle_dbparm from singlelineedit within w_set_incept_sqlca
  18. end type
  19. type cb_ok from commandbutton within w_set_incept_sqlca
  20. end type
  21. type sle_dbms from dropdownlistbox within w_set_incept_sqlca
  22. end type
  23. type st_9 from statictext within w_set_incept_sqlca
  24. end type
  25. type st_6 from statictext within w_set_incept_sqlca
  26. end type
  27. type st_5 from statictext within w_set_incept_sqlca
  28. end type
  29. type st_4 from statictext within w_set_incept_sqlca
  30. end type
  31. type st_3 from statictext within w_set_incept_sqlca
  32. end type
  33. type st_2 from statictext within w_set_incept_sqlca
  34. end type
  35. type st_00 from statictext within w_set_incept_sqlca
  36. end type
  37. type st_7 from statictext within w_set_incept_sqlca
  38. end type
  39. type ddplb_cnt from dropdownpicturelistbox within w_set_incept_sqlca
  40. end type
  41. type cb_addcnt from commandbutton within w_set_incept_sqlca
  42. end type
  43. type st_8 from statictext within w_set_incept_sqlca
  44. end type
  45. type cb_delcnt from commandbutton within w_set_incept_sqlca
  46. end type
  47. type sle_cntname from singlelineedit within w_set_incept_sqlca
  48. end type
  49. type st_12 from statictext within w_set_incept_sqlca
  50. end type
  51. type cb_refresh from commandbutton within w_set_incept_sqlca
  52. end type
  53. type gb_1 from groupbox within w_set_incept_sqlca
  54. end type
  55. end forward
  56. global type w_set_incept_sqlca from w_publ_base
  57. integer width = 2290
  58. integer height = 1300
  59. string title = "外部数据库连接设置"
  60. sle_logpass sle_logpass
  61. sle_logid sle_logid
  62. sle_server sle_server
  63. sle_database sle_database
  64. sle_dbpass sle_dbpass
  65. sle_userid sle_userid
  66. sle_dbparm sle_dbparm
  67. cb_ok cb_ok
  68. sle_dbms sle_dbms
  69. st_9 st_9
  70. st_6 st_6
  71. st_5 st_5
  72. st_4 st_4
  73. st_3 st_3
  74. st_2 st_2
  75. st_00 st_00
  76. st_7 st_7
  77. ddplb_cnt ddplb_cnt
  78. cb_addcnt cb_addcnt
  79. st_8 st_8
  80. cb_delcnt cb_delcnt
  81. sle_cntname sle_cntname
  82. st_12 st_12
  83. cb_refresh cb_refresh
  84. gb_1 gb_1
  85. end type
  86. global w_set_incept_sqlca w_set_incept_sqlca
  87. type variables
  88. uo_remote_sqlca uo_rm_sqlca
  89. end variables
  90. forward prototypes
  91. public function integer wf_getcntset (string arg_cntname)
  92. end prototypes
  93. public function integer wf_getcntset (string arg_cntname);sle_dbms.Text = ProfileString (sys_inifilename, arg_cntname, "dbms", "")
  94. sle_database.Text = ProfileString (sys_inifilename, arg_cntname, "database", "")
  95. sle_userid.Text = ProfileString (sys_inifilename, arg_cntname, "userid", "")
  96. sle_dbpass.Text = f_psw_bczh(ProfileString (sys_inifilename, arg_cntname, "dbpass", ""),1,sys_power_key)
  97. sle_logid.Text = ProfileString (sys_inifilename, arg_cntname, "logid", "")
  98. sle_logpass.Text = f_psw_bczh(ProfileString (sys_inifilename, arg_cntname, "LogPassWord", ""),1,sys_power_key)
  99. sle_server.Text = ProfileString (sys_inifilename, arg_cntname, "servername", "")
  100. sle_dbparm.Text = f_psw_bczh(ProfileString (sys_inifilename, arg_cntname, "dbparm", ""),1,sys_power_key)
  101. return 0
  102. end function
  103. on w_set_incept_sqlca.create
  104. int iCurrent
  105. call super::create
  106. this.sle_logpass=create sle_logpass
  107. this.sle_logid=create sle_logid
  108. this.sle_server=create sle_server
  109. this.sle_database=create sle_database
  110. this.sle_dbpass=create sle_dbpass
  111. this.sle_userid=create sle_userid
  112. this.sle_dbparm=create sle_dbparm
  113. this.cb_ok=create cb_ok
  114. this.sle_dbms=create sle_dbms
  115. this.st_9=create st_9
  116. this.st_6=create st_6
  117. this.st_5=create st_5
  118. this.st_4=create st_4
  119. this.st_3=create st_3
  120. this.st_2=create st_2
  121. this.st_00=create st_00
  122. this.st_7=create st_7
  123. this.ddplb_cnt=create ddplb_cnt
  124. this.cb_addcnt=create cb_addcnt
  125. this.st_8=create st_8
  126. this.cb_delcnt=create cb_delcnt
  127. this.sle_cntname=create sle_cntname
  128. this.st_12=create st_12
  129. this.cb_refresh=create cb_refresh
  130. this.gb_1=create gb_1
  131. iCurrent=UpperBound(this.Control)
  132. this.Control[iCurrent+1]=this.sle_logpass
  133. this.Control[iCurrent+2]=this.sle_logid
  134. this.Control[iCurrent+3]=this.sle_server
  135. this.Control[iCurrent+4]=this.sle_database
  136. this.Control[iCurrent+5]=this.sle_dbpass
  137. this.Control[iCurrent+6]=this.sle_userid
  138. this.Control[iCurrent+7]=this.sle_dbparm
  139. this.Control[iCurrent+8]=this.cb_ok
  140. this.Control[iCurrent+9]=this.sle_dbms
  141. this.Control[iCurrent+10]=this.st_9
  142. this.Control[iCurrent+11]=this.st_6
  143. this.Control[iCurrent+12]=this.st_5
  144. this.Control[iCurrent+13]=this.st_4
  145. this.Control[iCurrent+14]=this.st_3
  146. this.Control[iCurrent+15]=this.st_2
  147. this.Control[iCurrent+16]=this.st_00
  148. this.Control[iCurrent+17]=this.st_7
  149. this.Control[iCurrent+18]=this.ddplb_cnt
  150. this.Control[iCurrent+19]=this.cb_addcnt
  151. this.Control[iCurrent+20]=this.st_8
  152. this.Control[iCurrent+21]=this.cb_delcnt
  153. this.Control[iCurrent+22]=this.sle_cntname
  154. this.Control[iCurrent+23]=this.st_12
  155. this.Control[iCurrent+24]=this.cb_refresh
  156. this.Control[iCurrent+25]=this.gb_1
  157. end on
  158. on w_set_incept_sqlca.destroy
  159. call super::destroy
  160. destroy(this.sle_logpass)
  161. destroy(this.sle_logid)
  162. destroy(this.sle_server)
  163. destroy(this.sle_database)
  164. destroy(this.sle_dbpass)
  165. destroy(this.sle_userid)
  166. destroy(this.sle_dbparm)
  167. destroy(this.cb_ok)
  168. destroy(this.sle_dbms)
  169. destroy(this.st_9)
  170. destroy(this.st_6)
  171. destroy(this.st_5)
  172. destroy(this.st_4)
  173. destroy(this.st_3)
  174. destroy(this.st_2)
  175. destroy(this.st_00)
  176. destroy(this.st_7)
  177. destroy(this.ddplb_cnt)
  178. destroy(this.cb_addcnt)
  179. destroy(this.st_8)
  180. destroy(this.cb_delcnt)
  181. destroy(this.sle_cntname)
  182. destroy(this.st_12)
  183. destroy(this.cb_refresh)
  184. destroy(this.gb_1)
  185. end on
  186. event open;call super::open;
  187. cb_refresh.triggerevent(clicked!)
  188. end event
  189. type cb_func from w_publ_base`cb_func within w_set_incept_sqlca
  190. boolean visible = false
  191. integer x = 1920
  192. integer y = 308
  193. boolean enabled = false
  194. end type
  195. type cb_exit from w_publ_base`cb_exit within w_set_incept_sqlca
  196. integer x = 1920
  197. integer y = 132
  198. end type
  199. type sle_logpass from singlelineedit within w_set_incept_sqlca
  200. integer x = 398
  201. integer y = 848
  202. integer width = 1422
  203. integer height = 80
  204. integer taborder = 80
  205. integer textsize = -8
  206. integer weight = 400
  207. fontpitch fontpitch = variable!
  208. fontfamily fontfamily = swiss!
  209. string facename = "MS Sans Serif"
  210. long textcolor = 41943040
  211. boolean autohscroll = false
  212. boolean password = true
  213. borderstyle borderstyle = stylelowered!
  214. end type
  215. type sle_logid from singlelineedit within w_set_incept_sqlca
  216. integer x = 398
  217. integer y = 760
  218. integer width = 1422
  219. integer height = 80
  220. integer taborder = 150
  221. integer textsize = -8
  222. integer weight = 400
  223. fontpitch fontpitch = variable!
  224. fontfamily fontfamily = swiss!
  225. string facename = "MS Sans Serif"
  226. long textcolor = 41943040
  227. boolean autohscroll = false
  228. borderstyle borderstyle = stylelowered!
  229. end type
  230. type sle_server from singlelineedit within w_set_incept_sqlca
  231. integer x = 398
  232. integer y = 672
  233. integer width = 1422
  234. integer height = 80
  235. integer taborder = 140
  236. integer textsize = -8
  237. integer weight = 400
  238. fontpitch fontpitch = variable!
  239. fontfamily fontfamily = swiss!
  240. string facename = "MS Sans Serif"
  241. long textcolor = 41943040
  242. boolean autohscroll = false
  243. borderstyle borderstyle = stylelowered!
  244. end type
  245. type sle_database from singlelineedit within w_set_incept_sqlca
  246. integer x = 398
  247. integer y = 584
  248. integer width = 1422
  249. integer height = 80
  250. integer taborder = 130
  251. integer textsize = -8
  252. integer weight = 400
  253. fontpitch fontpitch = variable!
  254. fontfamily fontfamily = swiss!
  255. string facename = "MS Sans Serif"
  256. long textcolor = 41943040
  257. boolean autohscroll = false
  258. borderstyle borderstyle = stylelowered!
  259. end type
  260. type sle_dbpass from singlelineedit within w_set_incept_sqlca
  261. integer x = 398
  262. integer y = 496
  263. integer width = 1422
  264. integer height = 80
  265. integer taborder = 120
  266. integer textsize = -8
  267. integer weight = 400
  268. fontpitch fontpitch = variable!
  269. fontfamily fontfamily = swiss!
  270. string facename = "MS Sans Serif"
  271. long textcolor = 41943040
  272. boolean enabled = false
  273. boolean autohscroll = false
  274. boolean password = true
  275. borderstyle borderstyle = stylelowered!
  276. end type
  277. type sle_userid from singlelineedit within w_set_incept_sqlca
  278. integer x = 398
  279. integer y = 408
  280. integer width = 1422
  281. integer height = 80
  282. integer taborder = 90
  283. integer textsize = -8
  284. integer weight = 400
  285. fontcharset fontcharset = ansi!
  286. fontpitch fontpitch = variable!
  287. fontfamily fontfamily = swiss!
  288. string facename = "MS Sans Serif"
  289. long textcolor = 41943040
  290. boolean enabled = false
  291. boolean autohscroll = false
  292. borderstyle borderstyle = stylelowered!
  293. end type
  294. type sle_dbparm from singlelineedit within w_set_incept_sqlca
  295. integer x = 398
  296. integer y = 936
  297. integer width = 1422
  298. integer height = 80
  299. integer taborder = 110
  300. integer textsize = -8
  301. integer weight = 400
  302. fontpitch fontpitch = variable!
  303. fontfamily fontfamily = swiss!
  304. string facename = "MS Sans Serif"
  305. long textcolor = 41943040
  306. borderstyle borderstyle = stylelowered!
  307. end type
  308. type cb_ok from commandbutton within w_set_incept_sqlca
  309. integer x = 1499
  310. integer y = 1036
  311. integer width = 315
  312. integer height = 96
  313. integer taborder = 70
  314. integer textsize = -9
  315. integer weight = 400
  316. fontcharset fontcharset = gb2312charset!
  317. fontpitch fontpitch = variable!
  318. string facename = "宋体"
  319. string text = "保存设置"
  320. end type
  321. event clicked;int arg_cnt_no,rslt=1
  322. arg_cnt_no=integer(right(ddplb_cnt.text,2))
  323. string arg_msg
  324. rslt=uo_rm_sqlca.Set_remote_sqlca(arg_cnt_no,sle_cntname.Text,sle_dbms.Text,sle_database.Text,sle_userid.Text,&
  325. sle_dbpass.Text,sle_logid.Text,sle_logpass.Text,sle_server.Text,sle_dbparm.Text,arg_msg)
  326. if rslt=0 then
  327. MESSAGEBOX('错误','设置保存失败!',stopsign!,OK!)
  328. else
  329. MESSAGEBOX('提示','设置保存成功!',information!,OK!)
  330. end if
  331. end event
  332. type sle_dbms from dropdownlistbox within w_set_incept_sqlca
  333. integer x = 398
  334. integer y = 320
  335. integer width = 1422
  336. integer height = 156
  337. integer taborder = 60
  338. boolean bringtotop = true
  339. integer textsize = -8
  340. integer weight = 400
  341. fontcharset fontcharset = ansi!
  342. fontpitch fontpitch = variable!
  343. fontfamily fontfamily = swiss!
  344. string facename = "MS Sans Serif"
  345. long textcolor = 33554432
  346. boolean allowedit = true
  347. boolean sorted = false
  348. boolean vscrollbar = true
  349. string item[] = {"ODBC","MSS Microsoft SQL Server 6.x"}
  350. borderstyle borderstyle = stylelowered!
  351. end type
  352. event modified;sle_dbms.postevent(selectionchanged!)
  353. end event
  354. event selectionchanged;//cbx_addnewdatabase.enabled=ARROWADDNEW<>0 and rb_server.checked and sle_dbms.text='MSS Microsoft SQL Server 6.x'
  355. //if not rb_server.checked then cbx_addnewdatabase.checked=false
  356. //if not cbx_addnewdatabase.checked then cbx_addnewdatabase.triggerevent(clicked!)
  357. //wf_findisql()
  358. end event
  359. type st_9 from statictext within w_set_incept_sqlca
  360. integer x = 96
  361. integer y = 944
  362. integer width = 297
  363. integer height = 60
  364. integer textsize = -9
  365. integer weight = 400
  366. fontcharset fontcharset = gb2312charset!
  367. fontpitch fontpitch = variable!
  368. string facename = "宋体"
  369. long textcolor = 41943040
  370. long backcolor = 74481808
  371. boolean enabled = false
  372. string text = "DBPARM:"
  373. alignment alignment = right!
  374. boolean focusrectangle = false
  375. end type
  376. type st_6 from statictext within w_set_incept_sqlca
  377. integer x = 96
  378. integer y = 852
  379. integer width = 297
  380. integer height = 60
  381. integer textsize = -9
  382. integer weight = 400
  383. fontcharset fontcharset = gb2312charset!
  384. fontpitch fontpitch = variable!
  385. string facename = "宋体"
  386. long textcolor = 41943040
  387. long backcolor = 74481808
  388. boolean enabled = false
  389. string text = "登录口令:"
  390. alignment alignment = right!
  391. boolean focusrectangle = false
  392. end type
  393. type st_5 from statictext within w_set_incept_sqlca
  394. integer x = 96
  395. integer y = 768
  396. integer width = 297
  397. integer height = 60
  398. integer textsize = -9
  399. integer weight = 400
  400. fontcharset fontcharset = gb2312charset!
  401. fontpitch fontpitch = variable!
  402. string facename = "宋体"
  403. long textcolor = 41943040
  404. long backcolor = 74481808
  405. boolean enabled = false
  406. string text = "登录ID:"
  407. alignment alignment = right!
  408. boolean focusrectangle = false
  409. end type
  410. type st_4 from statictext within w_set_incept_sqlca
  411. integer x = 96
  412. integer y = 504
  413. integer width = 297
  414. integer height = 60
  415. integer textsize = -9
  416. integer weight = 400
  417. fontcharset fontcharset = gb2312charset!
  418. fontpitch fontpitch = variable!
  419. string facename = "宋体"
  420. long textcolor = 41943040
  421. long backcolor = 74481808
  422. boolean enabled = false
  423. string text = "口令:"
  424. alignment alignment = right!
  425. boolean focusrectangle = false
  426. end type
  427. type st_3 from statictext within w_set_incept_sqlca
  428. integer x = 96
  429. integer y = 416
  430. integer width = 297
  431. integer height = 60
  432. integer textsize = -9
  433. integer weight = 400
  434. fontcharset fontcharset = gb2312charset!
  435. fontpitch fontpitch = variable!
  436. string facename = "宋体"
  437. long textcolor = 41943040
  438. long backcolor = 74481808
  439. boolean enabled = false
  440. string text = "用户ID:"
  441. alignment alignment = right!
  442. boolean focusrectangle = false
  443. end type
  444. type st_2 from statictext within w_set_incept_sqlca
  445. integer x = 96
  446. integer y = 592
  447. integer width = 297
  448. integer height = 60
  449. integer textsize = -9
  450. integer weight = 400
  451. fontcharset fontcharset = gb2312charset!
  452. fontpitch fontpitch = variable!
  453. string facename = "宋体"
  454. long textcolor = 41943040
  455. long backcolor = 74481808
  456. boolean enabled = false
  457. string text = "数据库:"
  458. alignment alignment = right!
  459. boolean focusrectangle = false
  460. end type
  461. type st_00 from statictext within w_set_incept_sqlca
  462. integer x = 96
  463. integer y = 328
  464. integer width = 297
  465. integer height = 60
  466. integer textsize = -9
  467. integer weight = 400
  468. fontcharset fontcharset = gb2312charset!
  469. fontpitch fontpitch = variable!
  470. string facename = "宋体"
  471. long backcolor = 79741120
  472. boolean enabled = false
  473. string text = "DBMS:"
  474. alignment alignment = right!
  475. boolean focusrectangle = false
  476. end type
  477. type st_7 from statictext within w_set_incept_sqlca
  478. integer x = 96
  479. integer y = 676
  480. integer width = 297
  481. integer height = 60
  482. integer textsize = -9
  483. integer weight = 400
  484. fontcharset fontcharset = gb2312charset!
  485. fontpitch fontpitch = variable!
  486. string facename = "宋体"
  487. long textcolor = 41943040
  488. long backcolor = 74481808
  489. boolean enabled = false
  490. string text = "服务器:"
  491. alignment alignment = right!
  492. boolean focusrectangle = false
  493. end type
  494. type ddplb_cnt from dropdownpicturelistbox within w_set_incept_sqlca
  495. integer x = 242
  496. integer y = 36
  497. integer width = 1595
  498. integer height = 908
  499. integer taborder = 20
  500. boolean bringtotop = true
  501. integer textsize = -9
  502. integer weight = 400
  503. fontcharset fontcharset = gb2312charset!
  504. fontpitch fontpitch = variable!
  505. string facename = "宋体"
  506. long textcolor = 33554432
  507. boolean vscrollbar = true
  508. borderstyle borderstyle = stylelowered!
  509. string picturename[] = {"Update!"}
  510. long picturemaskcolor = 553648127
  511. end type
  512. event selectionchanged;string arg_cntname,arg_dbms,arg_database,arg_userid,arg_dbpass,arg_logid,arg_logpassword,arg_servername,arg_dbparm,arg_msg
  513. int arg_cnt_no
  514. arg_cnt_no=integer(right(this.text,2))
  515. uo_rm_sqlca.Get_remote_sqlca(arg_cnt_no,arg_cntname,arg_dbms,arg_database,arg_userid,arg_dbpass,arg_logid,arg_logpassword,arg_servername,arg_dbparm,arg_msg)
  516. sle_cntname.Text = arg_cntname
  517. sle_dbms.Text = arg_dbms
  518. sle_database.Text = arg_database
  519. sle_userid.Text = arg_userid
  520. sle_dbpass.Text = arg_dbpass
  521. sle_logid.Text = arg_logid
  522. sle_logpass.Text = arg_logpassword
  523. sle_server.Text = arg_servername
  524. sle_dbparm.Text = arg_dbparm
  525. end event
  526. type cb_addcnt from commandbutton within w_set_incept_sqlca
  527. integer x = 91
  528. integer y = 1036
  529. integer width = 311
  530. integer height = 96
  531. integer taborder = 30
  532. boolean bringtotop = true
  533. integer textsize = -9
  534. integer weight = 400
  535. fontcharset fontcharset = gb2312charset!
  536. fontpitch fontpitch = variable!
  537. string facename = "宋体"
  538. string text = "增加连接"
  539. end type
  540. event clicked;uo_rm_sqlca.add_cntno()
  541. cb_refresh.triggerevent(clicked!)
  542. end event
  543. type st_8 from statictext within w_set_incept_sqlca
  544. integer x = 46
  545. integer y = 56
  546. integer width = 178
  547. integer height = 76
  548. boolean bringtotop = true
  549. integer textsize = -9
  550. integer weight = 400
  551. fontcharset fontcharset = gb2312charset!
  552. fontpitch fontpitch = variable!
  553. string facename = "宋体"
  554. long textcolor = 33554432
  555. long backcolor = 67108864
  556. boolean enabled = false
  557. string text = "连接:"
  558. alignment alignment = right!
  559. boolean focusrectangle = false
  560. end type
  561. type cb_delcnt from commandbutton within w_set_incept_sqlca
  562. integer x = 402
  563. integer y = 1036
  564. integer width = 311
  565. integer height = 96
  566. integer taborder = 50
  567. boolean bringtotop = true
  568. integer textsize = -9
  569. integer weight = 400
  570. fontcharset fontcharset = gb2312charset!
  571. fontpitch fontpitch = variable!
  572. string facename = "宋体"
  573. string text = "减少连接"
  574. end type
  575. event clicked;uo_rm_sqlca.del_cntno()
  576. cb_refresh.triggerevent(clicked!)
  577. end event
  578. type sle_cntname from singlelineedit within w_set_incept_sqlca
  579. integer x = 398
  580. integer y = 220
  581. integer width = 1422
  582. integer height = 80
  583. integer taborder = 100
  584. integer textsize = -8
  585. integer weight = 400
  586. fontcharset fontcharset = ansi!
  587. fontpitch fontpitch = variable!
  588. fontfamily fontfamily = swiss!
  589. string facename = "MS Sans Serif"
  590. long textcolor = 41943040
  591. boolean autohscroll = false
  592. borderstyle borderstyle = stylelowered!
  593. end type
  594. type st_12 from statictext within w_set_incept_sqlca
  595. integer x = 96
  596. integer y = 232
  597. integer width = 297
  598. integer height = 60
  599. integer textsize = -9
  600. integer weight = 400
  601. fontcharset fontcharset = gb2312charset!
  602. fontpitch fontpitch = variable!
  603. string facename = "宋体"
  604. long backcolor = 79741120
  605. boolean enabled = false
  606. string text = "连接名称:"
  607. alignment alignment = right!
  608. boolean focusrectangle = false
  609. end type
  610. type cb_refresh from commandbutton within w_set_incept_sqlca
  611. integer x = 1920
  612. integer y = 36
  613. integer width = 311
  614. integer height = 96
  615. integer taborder = 50
  616. integer textsize = -9
  617. integer weight = 400
  618. fontcharset fontcharset = gb2312charset!
  619. fontpitch fontpitch = variable!
  620. string facename = "宋体"
  621. string text = "刷新"
  622. end type
  623. event clicked;
  624. int li
  625. string arg_cntname,arg_dbms,arg_database,arg_userid,arg_dbpass,arg_logid,arg_logpassword,arg_servername,arg_dbparm,arg_msg
  626. ddplb_cnt.reset()
  627. for li=1 to sys_remote_sqlca_p
  628. uo_rm_sqlca.Get_remote_sqlca(li,arg_cntname,arg_dbms,arg_database,arg_userid,arg_dbpass,arg_logid,arg_logpassword,arg_servername,arg_dbparm,arg_msg)
  629. ddplb_cnt.ADDItem(arg_cntname+string(li,'00'),1)
  630. next
  631. sle_cntname.Text = ''
  632. sle_dbms.Text = ''
  633. sle_database.Text = ''
  634. sle_userid.Text = ''
  635. sle_dbpass.Text = ''
  636. sle_logid.Text = ''
  637. sle_logpass.Text = ''
  638. sle_server.Text = ''
  639. sle_dbparm.Text = ''
  640. end event
  641. type gb_1 from groupbox within w_set_incept_sqlca
  642. integer x = 55
  643. integer y = 160
  644. integer width = 1829
  645. integer height = 1016
  646. integer taborder = 40
  647. integer textsize = -9
  648. integer weight = 400
  649. fontcharset fontcharset = gb2312charset!
  650. fontpitch fontpitch = variable!
  651. string facename = "宋体"
  652. long textcolor = 33554432
  653. long backcolor = 67108864
  654. string text = "设置信息:"
  655. end type