w_script_edit.srw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. $PBExportHeader$w_script_edit.srw
  2. forward
  3. global type w_script_edit from window
  4. end type
  5. type rb_zy from radiobutton within w_script_edit
  6. end type
  7. type rb_cg from radiobutton within w_script_edit
  8. end type
  9. type cb_8 from commandbutton within w_script_edit
  10. end type
  11. type cb_7 from commandbutton within w_script_edit
  12. end type
  13. type cb_6 from commandbutton within w_script_edit
  14. end type
  15. type cb_5 from commandbutton within w_script_edit
  16. end type
  17. type cb_4 from commandbutton within w_script_edit
  18. end type
  19. type cb_3 from commandbutton within w_script_edit
  20. end type
  21. type cb_2 from commandbutton within w_script_edit
  22. end type
  23. type st_4 from statictext within w_script_edit
  24. end type
  25. type st_3 from statictext within w_script_edit
  26. end type
  27. type st_2 from statictext within w_script_edit
  28. end type
  29. type st_1 from statictext within w_script_edit
  30. end type
  31. type mle_2 from multilineedit within w_script_edit
  32. end type
  33. type cb_1 from commandbutton within w_script_edit
  34. end type
  35. type lb_1 from listbox within w_script_edit
  36. end type
  37. type mle_1 from multilineedit within w_script_edit
  38. end type
  39. type lb_3 from listbox within w_script_edit
  40. end type
  41. type lb_2 from listbox within w_script_edit
  42. end type
  43. type ostr_script from structure within w_script_edit
  44. end type
  45. end forward
  46. type ostr_script from structure
  47. string s_scriptname
  48. string s_source
  49. end type
  50. global type w_script_edit from window
  51. integer width = 3333
  52. integer height = 1524
  53. boolean titlebar = true
  54. string title = "公式修改"
  55. boolean controlmenu = true
  56. windowtype windowtype = response!
  57. long backcolor = 67108864
  58. string icon = "AppIcon!"
  59. boolean center = true
  60. rb_zy rb_zy
  61. rb_cg rb_cg
  62. cb_8 cb_8
  63. cb_7 cb_7
  64. cb_6 cb_6
  65. cb_5 cb_5
  66. cb_4 cb_4
  67. cb_3 cb_3
  68. cb_2 cb_2
  69. st_4 st_4
  70. st_3 st_3
  71. st_2 st_2
  72. st_1 st_1
  73. mle_2 mle_2
  74. cb_1 cb_1
  75. lb_1 lb_1
  76. mle_1 mle_1
  77. lb_3 lb_3
  78. lb_2 lb_2
  79. end type
  80. global w_script_edit w_script_edit
  81. type variables
  82. s_script_edit s_script
  83. long cur_billtype
  84. end variables
  85. forward prototypes
  86. public subroutine of_get_scripts (string as_object, ref ostr_script astr_events[], ref ostr_script astr_functions[])
  87. public function string of_globalreplace (string as_source, string as_old, string as_new)
  88. public function string change_c (string arg_str)
  89. public subroutine wf_additem_zy (long arg_billtype)
  90. end prototypes
  91. public subroutine of_get_scripts (string as_object, ref ostr_script astr_events[], ref ostr_script astr_functions[]);try
  92. ClassDefinition lcd_Object
  93. ScriptDefinition lsd_Scripts[]
  94. TypeDefinition ltd_Returns
  95. Integer li_Events, li_Functions, li_Cnt, li_Limit, li_Cnt2, li_Args
  96. String ls_Returns, ls_ArgList,is_LibraryList1[]
  97. f_split(GetLibraryList (), ',', Ref is_LibraryList1)
  98. lcd_Object = FindClassDefinition(as_Object, is_LibraryList1)
  99. lsd_Scripts = lcd_Object.ScriptList
  100. li_Events = 0
  101. li_Functions = 0
  102. li_Limit = UpperBound(lsd_Scripts)
  103. For li_Cnt = 1 To li_Limit
  104. If (lsd_Scripts[li_Cnt].islocallyscripted) And ((lsd_Scripts[li_Cnt].name <> "create") And (lsd_Scripts[li_Cnt].name <> "destroy")) Then
  105. // Format function or event call
  106. ltd_Returns = lsd_Scripts[li_Cnt].returntype
  107. If IsValid(ltd_Returns) Then
  108. ls_Returns = "returns " + ltd_Returns.name
  109. Else
  110. ls_Returns = ""
  111. End If
  112. li_Args = UpperBound(lsd_Scripts[li_Cnt].argumentlist)
  113. ls_ArgList = " ("
  114. For li_Cnt2 = 1 To li_Args
  115. If li_Cnt2 > 1 Then
  116. ls_ArgList += ", "
  117. End If
  118. ls_ArgList += lsd_Scripts[li_Cnt].argumentlist[li_Cnt2].typeinfo.name + " " + &
  119. lsd_Scripts[li_Cnt].argumentlist[li_Cnt2].name
  120. Next
  121. ls_ArgList += ") "
  122. If lsd_Scripts[li_Cnt].kind = ScriptEvent! Then
  123. li_Events ++
  124. astr_Events[li_Events].s_ScriptName = lsd_Scripts[li_Cnt].name + ls_ArgList + ls_Returns
  125. astr_Events[li_Events].s_Source = lsd_Scripts[li_Cnt].source
  126. Else
  127. li_Functions ++
  128. astr_Functions[li_Functions].s_ScriptName = lsd_Scripts[li_Cnt].name + ls_ArgList + ls_Returns
  129. astr_Functions[li_Functions].s_Source = lsd_Scripts[li_Cnt].source
  130. End If
  131. End If
  132. Next
  133. catch(runtimeerror err)
  134. RETURN
  135. END try
  136. end subroutine
  137. public function string of_globalreplace (string as_source, string as_old, string as_new);long ll_oldlen, ll_newlen, ll_pos
  138. ll_pos = Pos(as_source,as_old)
  139. IF ll_pos > 0 Then
  140. ll_oldlen = Len(as_old)
  141. ll_newlen = Len(as_new)
  142. DO WHILE ll_pos > 0
  143. as_source = Replace(as_source,ll_pos,ll_oldlen,as_new)
  144. ll_pos = Pos(as_source,as_old,ll_pos + ll_newlen)
  145. LOOP
  146. END IF
  147. RETURN as_source
  148. end function
  149. public function string change_c (string arg_str);
  150. string str,str1,rts,z_s
  151. integer c_s,c_e,c_l,num
  152. num=0
  153. str=trim(arg_str)
  154. c_s=pos(str,"(")
  155. c_e=pos(str,")")
  156. c_l=len(str)
  157. str=mid(str,c_s + 1, c_e - c_s - 1 )
  158. str1=str
  159. do while(pos(str,',')<>0)
  160. num=num+1
  161. rts= trim(mid(str,1,pos(str,',') - 1))
  162. z_s=trim(mid(rts,1,pos(rts,' ') - 1))
  163. str1 =of_globalreplace(str1,rts,'#' + z_s + "参数" + string(num) +'#' )
  164. str=trim(right(str,len(str) - pos(str,',')))
  165. loop
  166. z_s=trim(mid(str,1,pos(str,' ') - 1))
  167. str1 =of_globalreplace(str1,str,'#' + z_s + "参数" + string(num + 1) +'#' )
  168. str1= '(' + str1 + ')'
  169. //messagebox("",str1)
  170. return str1
  171. end function
  172. public subroutine wf_additem_zy (long arg_billtype);//
  173. lb_3.Reset()
  174. //messagebox('',string(arg_billtype))
  175. IF arg_billtype = 104 THEN //销售发货单
  176. lb_3.AddItem('outwaresale_业务员')
  177. lb_3.AddItem('outwaresale_业务员备注')
  178. lb_3.AddItem('outwaresale_产品名称_规格_配置_配置1_备注')
  179. lb_3.AddItem('outwaresale_相关号')
  180. lb_3.AddItem('outwaresale_单据编号')
  181. lb_3.AddItem('outwaresale_货运部')
  182. lb_3.AddItem('outwaresale_货运单号')
  183. lb_3.AddItem('outwaresale_包装总件数')
  184. ELSEIF arg_billtype = 102 THEN //销售订单
  185. lb_3.AddItem('saletask_相关号')
  186. lb_3.AddItem('saletask_单据编号')
  187. lb_3.AddItem('saletask_货运部')
  188. lb_3.AddItem('saletask_货运单号')
  189. lb_3.AddItem('saletask_包装总件数')
  190. ELSEIF arg_billtype = 532 THEN //客户收款单
  191. lb_3.AddItem('custamt_相关号')
  192. lb_3.AddItem('custamt_客户名称')
  193. lb_3.AddItem('custamt_客户联系人')
  194. lb_3.AddItem('custamt_摘要')
  195. lb_3.AddItem('custamt_客户编号')
  196. lb_3.AddItem('custamt_到账日期')
  197. lb_3.AddItem('custamt_账号名称')
  198. ELSEIF arg_billtype = 540 THEN //供应商收款单
  199. lb_3.AddItem('sptamt_相关号')
  200. lb_3.AddItem('sptamt_供应商名称')
  201. lb_3.AddItem('sptamt_摘要')
  202. lb_3.AddItem('sptamt_供应商编号')
  203. lb_3.AddItem('sptamt_付账日期')
  204. lb_3.AddItem('sptamt_账号名称')
  205. END IF
  206. end subroutine
  207. on w_script_edit.create
  208. this.rb_zy=create rb_zy
  209. this.rb_cg=create rb_cg
  210. this.cb_8=create cb_8
  211. this.cb_7=create cb_7
  212. this.cb_6=create cb_6
  213. this.cb_5=create cb_5
  214. this.cb_4=create cb_4
  215. this.cb_3=create cb_3
  216. this.cb_2=create cb_2
  217. this.st_4=create st_4
  218. this.st_3=create st_3
  219. this.st_2=create st_2
  220. this.st_1=create st_1
  221. this.mle_2=create mle_2
  222. this.cb_1=create cb_1
  223. this.lb_1=create lb_1
  224. this.mle_1=create mle_1
  225. this.lb_3=create lb_3
  226. this.lb_2=create lb_2
  227. this.Control[]={this.rb_zy,&
  228. this.rb_cg,&
  229. this.cb_8,&
  230. this.cb_7,&
  231. this.cb_6,&
  232. this.cb_5,&
  233. this.cb_4,&
  234. this.cb_3,&
  235. this.cb_2,&
  236. this.st_4,&
  237. this.st_3,&
  238. this.st_2,&
  239. this.st_1,&
  240. this.mle_2,&
  241. this.cb_1,&
  242. this.lb_1,&
  243. this.mle_1,&
  244. this.lb_3,&
  245. this.lb_2}
  246. end on
  247. on w_script_edit.destroy
  248. destroy(this.rb_zy)
  249. destroy(this.rb_cg)
  250. destroy(this.cb_8)
  251. destroy(this.cb_7)
  252. destroy(this.cb_6)
  253. destroy(this.cb_5)
  254. destroy(this.cb_4)
  255. destroy(this.cb_3)
  256. destroy(this.cb_2)
  257. destroy(this.st_4)
  258. destroy(this.st_3)
  259. destroy(this.st_2)
  260. destroy(this.st_1)
  261. destroy(this.mle_2)
  262. destroy(this.cb_1)
  263. destroy(this.lb_1)
  264. destroy(this.mle_1)
  265. destroy(this.lb_3)
  266. destroy(this.lb_2)
  267. end on
  268. event open;String libs[]
  269. String lpo_object
  270. f_split(GetLibraryList (), ',', Ref libs)
  271. Long ll_i, ll_j
  272. String ls_name
  273. String ls_syntax
  274. uo_string_helper uo_helper
  275. datastore ds
  276. ds = Create datastore
  277. ds.DataObject = 'ds_libs_dirs'
  278. FOR ll_i = 1 To UpperBound(libs)
  279. ds.Reset()
  280. ds.ImportString(Text!, LibraryDirectoryEx (libs[ll_i], DirFunction!))
  281. FOR ll_j = 1 To ds.RowCount()
  282. ls_name = ds.Object.Name[ll_j]
  283. IF Lower(Mid(ls_name, 1, 2)) = 'ef' THEN
  284. // MessageBox('', LibraryExport(libs[ll_i], ls_name, ExportFunction! ))
  285. ls_syntax = LibraryExport(libs[ll_i], ls_name, ExportFunction! )
  286. uo_helper.ins_string = ls_syntax
  287. lb_1.AddItem(uo_helper.uf_getfunname(ls_name))
  288. END IF
  289. NEXT
  290. NEXT
  291. ds.Reset()
  292. ds.DataObject = 'ds_buytask_event'
  293. f_split(ds.Describe('DataWindow.Objects'), '~t', Ref libs)
  294. FOR ll_i = 1 To UpperBound(libs)
  295. IF Lower(ds.Describe(libs[ll_i] + '.Type')) = 'column' And Pos(libs[ll_i],'arg_') > 0 THEN
  296. lb_2.AddItem(libs[ll_i])
  297. END IF
  298. NEXT
  299. ///////////////////////// //
  300. s_script = Message.PowerObjectParm
  301. lpo_object = s_script.lpo_object
  302. cur_billtype = s_script.billtype
  303. wf_additem_zy(cur_billtype)
  304. //messagebox('',string(cur_billtype))
  305. // lpo_object =string( message.stringparm)
  306. mle_1.Text = lpo_object
  307. Destroy ds
  308. end event
  309. event close;//closewithreturn(this, "")
  310. end event
  311. type rb_zy from radiobutton within w_script_edit
  312. integer x = 3081
  313. integer y = 564
  314. integer width = 219
  315. integer height = 92
  316. integer textsize = -9
  317. integer weight = 400
  318. fontcharset fontcharset = gb2312charset!
  319. fontpitch fontpitch = variable!
  320. string facename = "宋体"
  321. long textcolor = 33554432
  322. long backcolor = 67108864
  323. string text = "专用"
  324. end type
  325. event clicked;IF rb_zy.Checked THEN
  326. lb_2.Visible = False
  327. lb_3.Visible = True
  328. END IF
  329. end event
  330. type rb_cg from radiobutton within w_script_edit
  331. integer x = 2816
  332. integer y = 564
  333. integer width = 219
  334. integer height = 92
  335. integer textsize = -9
  336. integer weight = 400
  337. fontcharset fontcharset = gb2312charset!
  338. fontpitch fontpitch = variable!
  339. string facename = "宋体"
  340. long textcolor = 33554432
  341. long backcolor = 67108864
  342. string text = "常规"
  343. boolean checked = true
  344. end type
  345. event clicked;IF rb_cg.Checked THEN
  346. lb_2.Visible = True
  347. lb_3.Visible = false
  348. END IF
  349. end event
  350. type cb_8 from commandbutton within w_script_edit
  351. integer x = 238
  352. integer y = 1236
  353. integer width = 142
  354. integer height = 128
  355. integer taborder = 50
  356. integer textsize = -12
  357. integer weight = 400
  358. fontcharset fontcharset = ansi!
  359. fontpitch fontpitch = variable!
  360. fontfamily fontfamily = swiss!
  361. string facename = "Arial"
  362. string text = ")"
  363. end type
  364. event clicked;mle_1.ReplaceText(" ) ")
  365. end event
  366. type cb_7 from commandbutton within w_script_edit
  367. integer x = 27
  368. integer y = 1232
  369. integer width = 142
  370. integer height = 128
  371. integer taborder = 40
  372. integer textsize = -12
  373. integer weight = 400
  374. fontcharset fontcharset = ansi!
  375. fontpitch fontpitch = variable!
  376. fontfamily fontfamily = swiss!
  377. string facename = "Arial"
  378. string text = "("
  379. end type
  380. event clicked;mle_1.ReplaceText(" ( ")
  381. end event
  382. type cb_6 from commandbutton within w_script_edit
  383. integer x = 238
  384. integer y = 972
  385. integer width = 142
  386. integer height = 128
  387. integer taborder = 40
  388. integer textsize = -12
  389. integer weight = 400
  390. fontcharset fontcharset = ansi!
  391. fontpitch fontpitch = variable!
  392. fontfamily fontfamily = swiss!
  393. string facename = "Arial"
  394. string text = "/"
  395. end type
  396. event clicked;mle_1.ReplaceText(" / ")
  397. end event
  398. type cb_5 from commandbutton within w_script_edit
  399. integer x = 27
  400. integer y = 972
  401. integer width = 142
  402. integer height = 128
  403. integer taborder = 50
  404. integer textsize = -12
  405. integer weight = 400
  406. fontcharset fontcharset = ansi!
  407. fontpitch fontpitch = variable!
  408. fontfamily fontfamily = swiss!
  409. string facename = "Arial"
  410. string text = "*"
  411. end type
  412. event clicked;mle_1.ReplaceText(" * ")
  413. end event
  414. type cb_4 from commandbutton within w_script_edit
  415. integer x = 238
  416. integer y = 680
  417. integer width = 142
  418. integer height = 128
  419. integer taborder = 40
  420. integer textsize = -12
  421. integer weight = 400
  422. fontcharset fontcharset = ansi!
  423. fontpitch fontpitch = variable!
  424. fontfamily fontfamily = swiss!
  425. string facename = "Arial"
  426. string text = "-"
  427. end type
  428. event clicked;mle_1.ReplaceText(" - ")
  429. end event
  430. type cb_3 from commandbutton within w_script_edit
  431. integer x = 27
  432. integer y = 676
  433. integer width = 142
  434. integer height = 128
  435. integer taborder = 30
  436. integer textsize = -12
  437. integer weight = 400
  438. fontcharset fontcharset = ansi!
  439. fontpitch fontpitch = variable!
  440. fontfamily fontfamily = swiss!
  441. string facename = "Arial"
  442. string text = "+"
  443. end type
  444. event clicked;mle_1.ReplaceText(" + ")
  445. end event
  446. type cb_2 from commandbutton within w_script_edit
  447. integer x = 2651
  448. integer y = 316
  449. integer width = 457
  450. integer height = 128
  451. integer taborder = 30
  452. integer textsize = -12
  453. integer weight = 400
  454. fontcharset fontcharset = ansi!
  455. fontpitch fontpitch = variable!
  456. fontfamily fontfamily = swiss!
  457. string facename = "Arial"
  458. string text = "Cancel"
  459. end type
  460. event clicked;closewithreturn(parent, "")
  461. end event
  462. type st_4 from statictext within w_script_edit
  463. integer x = 2386
  464. integer y = 576
  465. integer width = 457
  466. integer height = 72
  467. integer textsize = -12
  468. integer weight = 700
  469. fontcharset fontcharset = ansi!
  470. fontpitch fontpitch = variable!
  471. fontfamily fontfamily = swiss!
  472. string facename = "Arial"
  473. long textcolor = 33554432
  474. long backcolor = 67108864
  475. string text = "Argument:"
  476. boolean focusrectangle = false
  477. end type
  478. type st_3 from statictext within w_script_edit
  479. integer x = 411
  480. integer y = 1012
  481. integer width = 457
  482. integer height = 72
  483. integer textsize = -12
  484. integer weight = 700
  485. fontcharset fontcharset = ansi!
  486. fontpitch fontpitch = variable!
  487. fontfamily fontfamily = swiss!
  488. string facename = "Arial"
  489. long textcolor = 33554432
  490. long backcolor = 67108864
  491. string text = "Describe:"
  492. boolean focusrectangle = false
  493. end type
  494. type st_2 from statictext within w_script_edit
  495. integer x = 398
  496. integer y = 592
  497. integer width = 457
  498. integer height = 72
  499. integer textsize = -12
  500. integer weight = 700
  501. fontcharset fontcharset = ansi!
  502. fontpitch fontpitch = variable!
  503. fontfamily fontfamily = swiss!
  504. string facename = "Arial"
  505. long textcolor = 33554432
  506. long backcolor = 67108864
  507. string text = "Function:"
  508. boolean focusrectangle = false
  509. end type
  510. type st_1 from statictext within w_script_edit
  511. integer x = 37
  512. integer y = 16
  513. integer width = 457
  514. integer height = 72
  515. integer textsize = -12
  516. integer weight = 700
  517. fontcharset fontcharset = ansi!
  518. fontpitch fontpitch = variable!
  519. fontfamily fontfamily = swiss!
  520. string facename = "Arial"
  521. long textcolor = 33554432
  522. long backcolor = 67108864
  523. string text = "Expression:"
  524. boolean focusrectangle = false
  525. end type
  526. type mle_2 from multilineedit within w_script_edit
  527. integer x = 398
  528. integer y = 1112
  529. integer width = 1957
  530. integer height = 324
  531. integer taborder = 30
  532. integer textsize = -12
  533. integer weight = 400
  534. fontcharset fontcharset = ansi!
  535. fontpitch fontpitch = variable!
  536. fontfamily fontfamily = swiss!
  537. string facename = "Arial"
  538. long textcolor = 134217751
  539. long backcolor = 134217732
  540. boolean autovscroll = true
  541. boolean displayonly = true
  542. end type
  543. type cb_1 from commandbutton within w_script_edit
  544. integer x = 2651
  545. integer y = 116
  546. integer width = 457
  547. integer height = 128
  548. integer taborder = 20
  549. integer textsize = -12
  550. integer weight = 400
  551. fontcharset fontcharset = ansi!
  552. fontpitch fontpitch = variable!
  553. fontfamily fontfamily = swiss!
  554. string facename = "Arial"
  555. string text = "OK "
  556. end type
  557. event clicked;string ls_new_string ,k_13,k_10
  558. k_13=char(13)
  559. K_10=char(10)
  560. ls_new_string=trim(mle_1.text)
  561. ls_new_string =of_globalreplace(ls_new_string,k_13,' ')
  562. ls_new_string =of_globalreplace(ls_new_string,k_10,' ')
  563. ls_new_string =of_globalreplace(ls_new_string,' ',' ')
  564. closewithreturn(parent,ls_new_string )
  565. end event
  566. type lb_1 from listbox within w_script_edit
  567. integer x = 402
  568. integer y = 668
  569. integer width = 1957
  570. integer height = 324
  571. integer taborder = 20
  572. integer textsize = -12
  573. integer weight = 400
  574. fontcharset fontcharset = ansi!
  575. fontpitch fontpitch = variable!
  576. fontfamily fontfamily = swiss!
  577. string facename = "Arial"
  578. long textcolor = 33554432
  579. boolean vscrollbar = true
  580. borderstyle borderstyle = stylelowered!
  581. end type
  582. event doubleclicked;integer li_Index
  583. li_Index = THIS.SelectedIndex()
  584. mle_1.ReplaceText(" " +Trim(THIS.text(li_Index)) + change_c(mle_2.text))
  585. mle_1.setfocus( )
  586. end event
  587. event selectionchanged;integer li_Index
  588. ostr_script e[],f[]
  589. try
  590. li_Index = THIS.SelectedIndex()
  591. of_get_scripts(Trim(THIS.text(li_Index)),e,f)
  592. mle_2.text=" " + f[UpperBound(f)].s_scriptname
  593. catch(runtimeerror err)
  594. RETURN
  595. END try
  596. end event
  597. type mle_1 from multilineedit within w_script_edit
  598. integer x = 27
  599. integer y = 116
  600. integer width = 2437
  601. integer height = 432
  602. integer taborder = 10
  603. integer textsize = -12
  604. integer weight = 400
  605. fontcharset fontcharset = ansi!
  606. fontpitch fontpitch = variable!
  607. fontfamily fontfamily = swiss!
  608. string facename = "Arial"
  609. long textcolor = 33554432
  610. boolean vscrollbar = true
  611. boolean autovscroll = true
  612. borderstyle borderstyle = stylelowered!
  613. end type
  614. type lb_3 from listbox within w_script_edit
  615. integer x = 2386
  616. integer y = 656
  617. integer width = 923
  618. integer height = 772
  619. integer taborder = 40
  620. integer textsize = -12
  621. integer weight = 400
  622. fontcharset fontcharset = gb2312charset!
  623. fontpitch fontpitch = variable!
  624. string facename = "宋体"
  625. long textcolor = 33554432
  626. boolean hscrollbar = true
  627. boolean vscrollbar = true
  628. boolean sorted = false
  629. borderstyle borderstyle = stylelowered!
  630. end type
  631. event doubleclicked;integer li_Index
  632. li_Index = THIS.SelectedIndex()
  633. mle_1.ReplaceText(" " +Trim(THIS.text(li_Index)) + " ")
  634. mle_1.setfocus( )
  635. end event
  636. event constructor;IF rb_zy.Checked THEN
  637. lb_2.Visible = False
  638. lb_3.Visible = True
  639. END IF
  640. end event
  641. type lb_2 from listbox within w_script_edit
  642. integer x = 2386
  643. integer y = 660
  644. integer width = 923
  645. integer height = 772
  646. integer taborder = 20
  647. integer textsize = -12
  648. integer weight = 400
  649. fontcharset fontcharset = ansi!
  650. fontpitch fontpitch = variable!
  651. fontfamily fontfamily = swiss!
  652. string facename = "Arial"
  653. long textcolor = 33554432
  654. boolean vscrollbar = true
  655. borderstyle borderstyle = stylelowered!
  656. end type
  657. event doubleclicked;integer li_Index
  658. li_Index = THIS.SelectedIndex()
  659. mle_1.ReplaceText(" " +Trim(THIS.text(li_Index)) + " ")
  660. mle_1.setfocus( )
  661. end event
  662. event constructor;IF rb_cg.Checked THEN
  663. lb_2.Visible = True
  664. lb_3.Visible = false
  665. END IF
  666. end event