w_pz_code_edit.srw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  1. $PBExportHeader$w_pz_code_edit.srw
  2. forward
  3. global type w_pz_code_edit from w_publ_base
  4. end type
  5. type dw_status from u_dw_rbtnfilter within w_pz_code_edit
  6. end type
  7. type dw_pcode from u_dw_rbtnfilter within w_pz_code_edit
  8. end type
  9. type dw_woodcode from u_dw_rbtnfilter within w_pz_code_edit
  10. end type
  11. type cb_modstatus from uo_imflatbutton within w_pz_code_edit
  12. end type
  13. type cb_delstatus from uo_imflatbutton within w_pz_code_edit
  14. end type
  15. type cb_retrstatus from uo_imflatbutton within w_pz_code_edit
  16. end type
  17. type cb_addlstatus from uo_imflatbutton within w_pz_code_edit
  18. end type
  19. type cb_modwood from uo_imflatbutton within w_pz_code_edit
  20. end type
  21. type cb_delwood from uo_imflatbutton within w_pz_code_edit
  22. end type
  23. type cb_retrwood from uo_imflatbutton within w_pz_code_edit
  24. end type
  25. type cb_addwood from uo_imflatbutton within w_pz_code_edit
  26. end type
  27. type cb_modpcode from uo_imflatbutton within w_pz_code_edit
  28. end type
  29. type cb_delpcode from uo_imflatbutton within w_pz_code_edit
  30. end type
  31. type cb_retrpcode from uo_imflatbutton within w_pz_code_edit
  32. end type
  33. type cb_addpcode from uo_imflatbutton within w_pz_code_edit
  34. end type
  35. type cb_help from uo_imflatbutton within w_pz_code_edit
  36. end type
  37. type ln_bar from line within w_pz_code_edit
  38. end type
  39. type ln_bar2 from line within w_pz_code_edit
  40. end type
  41. type r_bar from rectangle within w_pz_code_edit
  42. end type
  43. type ln_1 from line within w_pz_code_edit
  44. end type
  45. type ln_2 from line within w_pz_code_edit
  46. end type
  47. type ln_3 from line within w_pz_code_edit
  48. end type
  49. type ln_4 from line within w_pz_code_edit
  50. end type
  51. end forward
  52. global type w_pz_code_edit from w_publ_base
  53. integer width = 3611
  54. integer height = 2380
  55. string title = "配置属性"
  56. event ue_help ( )
  57. dw_status dw_status
  58. dw_pcode dw_pcode
  59. dw_woodcode dw_woodcode
  60. cb_modstatus cb_modstatus
  61. cb_delstatus cb_delstatus
  62. cb_retrstatus cb_retrstatus
  63. cb_addlstatus cb_addlstatus
  64. cb_modwood cb_modwood
  65. cb_delwood cb_delwood
  66. cb_retrwood cb_retrwood
  67. cb_addwood cb_addwood
  68. cb_modpcode cb_modpcode
  69. cb_delpcode cb_delpcode
  70. cb_retrpcode cb_retrpcode
  71. cb_addpcode cb_addpcode
  72. cb_help cb_help
  73. ln_bar ln_bar
  74. ln_bar2 ln_bar2
  75. r_bar r_bar
  76. ln_1 ln_1
  77. ln_2 ln_2
  78. ln_3 ln_3
  79. ln_4 ln_4
  80. end type
  81. global w_pz_code_edit w_pz_code_edit
  82. event ue_help();Int i
  83. i = htmlhelpA(Handle(THIS),sys_help_chm, 0, THIS.Title+".htm")
  84. end event
  85. on w_pz_code_edit.create
  86. int iCurrent
  87. call super::create
  88. this.dw_status=create dw_status
  89. this.dw_pcode=create dw_pcode
  90. this.dw_woodcode=create dw_woodcode
  91. this.cb_modstatus=create cb_modstatus
  92. this.cb_delstatus=create cb_delstatus
  93. this.cb_retrstatus=create cb_retrstatus
  94. this.cb_addlstatus=create cb_addlstatus
  95. this.cb_modwood=create cb_modwood
  96. this.cb_delwood=create cb_delwood
  97. this.cb_retrwood=create cb_retrwood
  98. this.cb_addwood=create cb_addwood
  99. this.cb_modpcode=create cb_modpcode
  100. this.cb_delpcode=create cb_delpcode
  101. this.cb_retrpcode=create cb_retrpcode
  102. this.cb_addpcode=create cb_addpcode
  103. this.cb_help=create cb_help
  104. this.ln_bar=create ln_bar
  105. this.ln_bar2=create ln_bar2
  106. this.r_bar=create r_bar
  107. this.ln_1=create ln_1
  108. this.ln_2=create ln_2
  109. this.ln_3=create ln_3
  110. this.ln_4=create ln_4
  111. iCurrent=UpperBound(this.Control)
  112. this.Control[iCurrent+1]=this.dw_status
  113. this.Control[iCurrent+2]=this.dw_pcode
  114. this.Control[iCurrent+3]=this.dw_woodcode
  115. this.Control[iCurrent+4]=this.cb_modstatus
  116. this.Control[iCurrent+5]=this.cb_delstatus
  117. this.Control[iCurrent+6]=this.cb_retrstatus
  118. this.Control[iCurrent+7]=this.cb_addlstatus
  119. this.Control[iCurrent+8]=this.cb_modwood
  120. this.Control[iCurrent+9]=this.cb_delwood
  121. this.Control[iCurrent+10]=this.cb_retrwood
  122. this.Control[iCurrent+11]=this.cb_addwood
  123. this.Control[iCurrent+12]=this.cb_modpcode
  124. this.Control[iCurrent+13]=this.cb_delpcode
  125. this.Control[iCurrent+14]=this.cb_retrpcode
  126. this.Control[iCurrent+15]=this.cb_addpcode
  127. this.Control[iCurrent+16]=this.cb_help
  128. this.Control[iCurrent+17]=this.ln_bar
  129. this.Control[iCurrent+18]=this.ln_bar2
  130. this.Control[iCurrent+19]=this.r_bar
  131. this.Control[iCurrent+20]=this.ln_1
  132. this.Control[iCurrent+21]=this.ln_2
  133. this.Control[iCurrent+22]=this.ln_3
  134. this.Control[iCurrent+23]=this.ln_4
  135. end on
  136. on w_pz_code_edit.destroy
  137. call super::destroy
  138. destroy(this.dw_status)
  139. destroy(this.dw_pcode)
  140. destroy(this.dw_woodcode)
  141. destroy(this.cb_modstatus)
  142. destroy(this.cb_delstatus)
  143. destroy(this.cb_retrstatus)
  144. destroy(this.cb_addlstatus)
  145. destroy(this.cb_modwood)
  146. destroy(this.cb_delwood)
  147. destroy(this.cb_retrwood)
  148. destroy(this.cb_addwood)
  149. destroy(this.cb_modpcode)
  150. destroy(this.cb_delpcode)
  151. destroy(this.cb_retrpcode)
  152. destroy(this.cb_addpcode)
  153. destroy(this.cb_help)
  154. destroy(this.ln_bar)
  155. destroy(this.ln_bar2)
  156. destroy(this.r_bar)
  157. destroy(this.ln_1)
  158. destroy(this.ln_2)
  159. destroy(this.ln_3)
  160. destroy(this.ln_4)
  161. end on
  162. event open;call super::open;dw_status.SetTransObject(sqlca)
  163. dw_woodcode.SetTransObject(sqlca)
  164. dw_pcode.SetTransObject(sqlca)
  165. cb_retrstatus.TriggerEvent(Clicked!)
  166. cb_retrwood.TriggerEvent(Clicked!)
  167. cb_retrpcode.TriggerEvent(Clicked!)
  168. IF sys_option_change_status = '' THEN
  169. dw_status.Title = '配置'
  170. ELSE
  171. dw_status.Title = sys_option_change_status
  172. END IF
  173. IF sys_option_change_woodcode = '' THEN
  174. dw_woodcode.Title = '配置1'
  175. ELSE
  176. dw_woodcode.Title = sys_option_change_woodcode
  177. END IF
  178. IF sys_option_change_pcode = '' THEN
  179. dw_pcode.Title = '配置2'
  180. ELSE
  181. dw_pcode.Title = sys_option_change_pcode
  182. END IF
  183. end event
  184. event resize;call super::resize;ln_bar.EndX = THIS.Width
  185. ln_bar2.EndX = THIS.Width
  186. r_bar.Width = THIS.Width
  187. end event
  188. event key;call super::key;IF KeyDown(KeyF1!) THEN
  189. THIS.TriggerEvent('ue_help')
  190. end if
  191. end event
  192. type cb_func from w_publ_base`cb_func within w_pz_code_edit
  193. boolean visible = false
  194. end type
  195. type cb_exit from w_publ_base`cb_exit within w_pz_code_edit
  196. integer x = 3410
  197. integer width = 165
  198. integer height = 164
  199. integer picsize = 16
  200. toolbaralignment pic_align = alignattop!
  201. boolean border = false
  202. end type
  203. type dw_status from u_dw_rbtnfilter within w_pz_code_edit
  204. integer y = 184
  205. integer width = 1157
  206. integer height = 2060
  207. integer taborder = 20
  208. boolean bringtotop = true
  209. boolean titlebar = true
  210. string dataobject = "dw_status_edit"
  211. boolean hscrollbar = true
  212. boolean vscrollbar = true
  213. boolean resizable = true
  214. borderstyle borderstyle = stylebox!
  215. end type
  216. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  217. THIS.SelectRow(0,FALSE)
  218. THIS.SelectRow(currentrow,TRUE)
  219. END IF
  220. end event
  221. event constructor;call super::constructor; titleclick_sort_use=true //单击标题排序-功能开关
  222. RBUTTON_FILTER_USE=true //右键查询-功能开关
  223. setcolumn_visible_USE= true //自动保存显示列-功能开关
  224. autosave_setlayout_USE= true //自动保存列位置及宽度-功能开关
  225. end event
  226. type dw_pcode from u_dw_rbtnfilter within w_pz_code_edit
  227. integer x = 2377
  228. integer y = 184
  229. integer width = 1184
  230. integer height = 2060
  231. integer taborder = 30
  232. boolean bringtotop = true
  233. boolean titlebar = true
  234. string dataobject = "dw_pcode_edit"
  235. boolean hscrollbar = true
  236. boolean vscrollbar = true
  237. boolean resizable = true
  238. borderstyle borderstyle = stylebox!
  239. end type
  240. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  241. THIS.SelectRow(0,FALSE)
  242. THIS.SelectRow(currentrow,TRUE)
  243. END IF
  244. end event
  245. event constructor;call super::constructor; titleclick_sort_use=true //单击标题排序-功能开关
  246. RBUTTON_FILTER_USE=true //右键查询-功能开关
  247. setcolumn_visible_USE= true //自动保存显示列-功能开关
  248. autosave_setlayout_USE= true //自动保存列位置及宽度-功能开关
  249. end event
  250. type dw_woodcode from u_dw_rbtnfilter within w_pz_code_edit
  251. integer x = 1175
  252. integer y = 184
  253. integer width = 1184
  254. integer height = 2060
  255. integer taborder = 30
  256. boolean bringtotop = true
  257. boolean titlebar = true
  258. string dataobject = "dw_woodcode_edit"
  259. boolean hscrollbar = true
  260. boolean vscrollbar = true
  261. boolean resizable = true
  262. borderstyle borderstyle = stylebox!
  263. end type
  264. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  265. THIS.SelectRow(0,FALSE)
  266. THIS.SelectRow(currentrow,TRUE)
  267. END IF
  268. end event
  269. event constructor;call super::constructor; titleclick_sort_use=true //单击标题排序-功能开关
  270. RBUTTON_FILTER_USE=true //右键查询-功能开关
  271. setcolumn_visible_USE= true //自动保存显示列-功能开关
  272. autosave_setlayout_USE= true //自动保存列位置及宽度-功能开关
  273. end event
  274. type cb_modstatus from uo_imflatbutton within w_pz_code_edit
  275. integer x = 165
  276. integer width = 165
  277. integer height = 164
  278. integer taborder = 30
  279. boolean bringtotop = true
  280. string text = "修改"
  281. string normalpicname = "open.bmp"
  282. integer picsize = 16
  283. toolbaralignment pic_align = alignattop!
  284. boolean border = false
  285. end type
  286. event clicked;call super::clicked;IF NOT f_power_ind(24) THEN
  287. MessageBox(publ_operator,'你没有使用权限!')
  288. RETURN
  289. END IF
  290. Long ls_id,ll_row
  291. ll_row = dw_status.getrow()
  292. if ll_row <= 0 then
  293. messagebox('提示','请选择类型')
  294. return
  295. end if
  296. ls_id = dw_status.object.colorid[ll_row]
  297. s_edit_index_tran s_inscust
  298. s_inscust.b_long = 0
  299. s_inscust.c_long = ls_id
  300. OpenWithParm(w_pz_code_add_edit,s_inscust)
  301. cb_retrstatus.TriggerEvent(Clicked!)
  302. end event
  303. type cb_delstatus from uo_imflatbutton within w_pz_code_edit
  304. integer x = 329
  305. integer width = 165
  306. integer height = 164
  307. integer taborder = 40
  308. boolean bringtotop = true
  309. string text = "删除"
  310. string normalpicname = "delete.bmp"
  311. integer picsize = 16
  312. toolbaralignment pic_align = alignattop!
  313. boolean border = false
  314. end type
  315. event clicked;call super::clicked;IF NOT f_power_ind(24) THEN
  316. MessageBox(publ_operator,'你没有使用权限!')
  317. RETURN
  318. END IF
  319. String ls_typename
  320. Long ll_typeid,row
  321. row = dw_status.GetRow()
  322. IF NOT row > 0 THEN
  323. MessageBox('错误','请选择当前配置!')
  324. RETURN
  325. END IF
  326. ls_typename = dw_status.Object.status[row]
  327. IF MessageBox ("全部","是否确定要删除'"+ls_typename+"'吗?",Question!,YesNo! ) = 2 THEN RETURN
  328. ll_typeid = dw_status.Object.colorid[row]
  329. DELETE u_color
  330. Where colorid = :ll_typeid;
  331. IF sqlca.SQLCode <> 0 THEN
  332. ROLLBACK;
  333. MessageBox('失败','删除配置操作失败!')
  334. RETURN
  335. END IF
  336. COMMIT;
  337. cb_retrstatus.TriggerEvent(Clicked!)
  338. end event
  339. type cb_retrstatus from uo_imflatbutton within w_pz_code_edit
  340. integer x = 494
  341. integer width = 165
  342. integer height = 164
  343. integer taborder = 50
  344. boolean bringtotop = true
  345. string text = "刷新"
  346. string normalpicname = "refresh.bmp"
  347. integer picsize = 16
  348. toolbaralignment pic_align = alignattop!
  349. boolean border = false
  350. end type
  351. event clicked;call super::clicked;dw_status.SetFilter('')
  352. dw_status.Filter()
  353. IF dw_status.Retrieve() > 0 THEN
  354. dw_status.SelectRow(0,FALSE)
  355. dw_status.SetRow(1)
  356. dw_status.SelectRow(1,TRUE)
  357. END IF
  358. end event
  359. type cb_addlstatus from uo_imflatbutton within w_pz_code_edit
  360. integer width = 165
  361. integer height = 164
  362. integer taborder = 10
  363. boolean bringtotop = true
  364. string text = "增加"
  365. string normalpicname = "new.bmp"
  366. integer picsize = 16
  367. toolbaralignment pic_align = alignattop!
  368. boolean border = false
  369. end type
  370. event clicked;call super::clicked;IF NOT f_power_ind(24) THEN
  371. MessageBox(publ_operator,'你没有使用权限!')
  372. RETURN
  373. END IF
  374. s_edit_index_tran s_inscust
  375. s_inscust.b_long = 0
  376. s_inscust.c_long = 0
  377. OpenWithParm(w_pz_code_add_edit,s_inscust)
  378. cb_retrstatus.TriggerEvent(Clicked!)
  379. end event
  380. type cb_modwood from uo_imflatbutton within w_pz_code_edit
  381. integer x = 1349
  382. integer width = 165
  383. integer height = 164
  384. integer taborder = 30
  385. boolean bringtotop = true
  386. string text = "修改"
  387. string normalpicname = "open.bmp"
  388. integer picsize = 16
  389. toolbaralignment pic_align = alignattop!
  390. boolean border = false
  391. end type
  392. event clicked;call super::clicked;IF NOT f_power_ind(1403) THEN
  393. MessageBox(publ_operator,'你没有使用权限!')
  394. RETURN
  395. END IF
  396. Long ls_id,ll_row
  397. ll_row = dw_woodcode.getrow()
  398. if ll_row <= 0 then
  399. messagebox('提示','请选择类型')
  400. return
  401. end if
  402. ls_id = dw_woodcode.object.woodcodeid[ll_row]
  403. s_edit_index_tran s_inscust
  404. s_inscust.b_long = 1
  405. s_inscust.c_long = ls_id
  406. OpenWithParm(w_pz_code_add_edit,s_inscust)
  407. cb_retrwood.TriggerEvent(Clicked!)
  408. end event
  409. type cb_delwood from uo_imflatbutton within w_pz_code_edit
  410. integer x = 1513
  411. integer width = 165
  412. integer height = 164
  413. integer taborder = 40
  414. boolean bringtotop = true
  415. string text = "删除"
  416. string normalpicname = "delete.bmp"
  417. integer picsize = 16
  418. toolbaralignment pic_align = alignattop!
  419. boolean border = false
  420. end type
  421. event clicked;call super::clicked;IF NOT f_power_ind(1403) THEN
  422. MessageBox(publ_operator,'你没有使用权限!')
  423. RETURN
  424. END IF
  425. String ls_typename
  426. Long ll_typeid,row
  427. row = dw_woodcode.GetRow()
  428. IF NOT row > 0 THEN
  429. MessageBox('错误','请选择当前配置!')
  430. RETURN
  431. END IF
  432. ls_typename = dw_woodcode.Object.woodcode[row]
  433. IF MessageBox ("全部","是否确定要删除'"+ls_typename+"'吗?",Question!,YesNo! ) = 2 THEN RETURN
  434. ll_typeid = dw_woodcode.Object.woodcodeid[row]
  435. DELETE u_color_wood
  436. Where woodcodeid = :ll_typeid;
  437. IF sqlca.SQLCode <> 0 THEN
  438. ROLLBACK;
  439. MessageBox('失败','删除配置操作失败!')
  440. RETURN
  441. END IF
  442. COMMIT;
  443. cb_retrwood.TriggerEvent(Clicked!)
  444. end event
  445. type cb_retrwood from uo_imflatbutton within w_pz_code_edit
  446. integer x = 1678
  447. integer width = 165
  448. integer height = 164
  449. integer taborder = 50
  450. boolean bringtotop = true
  451. string text = "刷新"
  452. string normalpicname = "refresh.bmp"
  453. integer picsize = 16
  454. toolbaralignment pic_align = alignattop!
  455. boolean border = false
  456. end type
  457. event clicked;call super::clicked;dw_woodcode.SetFilter('')
  458. dw_woodcode.Filter()
  459. IF dw_woodcode.Retrieve() > 0 THEN
  460. dw_woodcode.SelectRow(0,FALSE)
  461. dw_woodcode.SetRow(1)
  462. dw_woodcode.SelectRow(1,TRUE)
  463. END IF
  464. end event
  465. type cb_addwood from uo_imflatbutton within w_pz_code_edit
  466. integer x = 1184
  467. integer width = 165
  468. integer height = 164
  469. integer taborder = 10
  470. boolean bringtotop = true
  471. string text = "增加"
  472. string normalpicname = "new.bmp"
  473. integer picsize = 16
  474. toolbaralignment pic_align = alignattop!
  475. boolean border = false
  476. end type
  477. event clicked;call super::clicked;IF NOT f_power_ind(1403) THEN
  478. MessageBox(publ_operator,'你没有使用权限!')
  479. RETURN
  480. END IF
  481. s_edit_index_tran s_inscust
  482. s_inscust.b_long = 1
  483. s_inscust.c_long = 0
  484. OpenWithParm(w_pz_code_add_edit,s_inscust)
  485. cb_retrwood.TriggerEvent(Clicked!)
  486. end event
  487. type cb_modpcode from uo_imflatbutton within w_pz_code_edit
  488. integer x = 2555
  489. integer width = 165
  490. integer height = 164
  491. integer taborder = 20
  492. boolean bringtotop = true
  493. string text = "修改"
  494. string normalpicname = "open.bmp"
  495. integer picsize = 16
  496. toolbaralignment pic_align = alignattop!
  497. boolean border = false
  498. end type
  499. event clicked;call super::clicked;IF NOT f_power_ind(1404) THEN
  500. MessageBox(publ_operator,'你没有使用权限!')
  501. RETURN
  502. END IF
  503. Long ls_id,ll_row
  504. ll_row = dw_pcode.GetRow()
  505. IF ll_row <= 0 THEN
  506. MessageBox('提示','请选择类型')
  507. RETURN
  508. END IF
  509. ls_id = dw_pcode.Object.pcodeid[ll_row]
  510. s_edit_index_tran s_inscust
  511. s_inscust.b_long = 2
  512. s_inscust.c_long = ls_id
  513. OpenWithParm(w_pz_code_add_edit,s_inscust)
  514. cb_retrpcode.TriggerEvent(Clicked!)
  515. end event
  516. type cb_delpcode from uo_imflatbutton within w_pz_code_edit
  517. integer x = 2720
  518. integer width = 165
  519. integer height = 164
  520. integer taborder = 40
  521. boolean bringtotop = true
  522. string text = "删除"
  523. string normalpicname = "delete.bmp"
  524. integer picsize = 16
  525. toolbaralignment pic_align = alignattop!
  526. boolean border = false
  527. end type
  528. event clicked;call super::clicked;IF NOT f_power_ind(1404) THEN
  529. MessageBox(publ_operator,'你没有使用权限!')
  530. RETURN
  531. END IF
  532. String ls_typename
  533. Long ll_typeid,row
  534. row = dw_pcode.GetRow()
  535. IF NOT row > 0 THEN
  536. MessageBox('错误','请选择当前配置!')
  537. RETURN
  538. END IF
  539. ls_typename = dw_pcode.Object.pcode[row]
  540. IF MessageBox ("全部","是否确定要删除'"+ls_typename+"'吗?",Question!,YesNo! ) = 2 THEN RETURN
  541. ll_typeid = dw_pcode.Object.pcodeid[row]
  542. DELETE u_color_pcode
  543. Where pcodeid = :ll_typeid;
  544. IF sqlca.SQLCode <> 0 THEN
  545. ROLLBACK;
  546. MessageBox('失败','删除配置操作失败!')
  547. RETURN
  548. END IF
  549. COMMIT;
  550. cb_retrpcode.TriggerEvent(Clicked!)
  551. end event
  552. type cb_retrpcode from uo_imflatbutton within w_pz_code_edit
  553. integer x = 2885
  554. integer width = 165
  555. integer height = 164
  556. integer taborder = 50
  557. boolean bringtotop = true
  558. string text = "刷新"
  559. string normalpicname = "refresh.bmp"
  560. integer picsize = 16
  561. toolbaralignment pic_align = alignattop!
  562. boolean border = false
  563. end type
  564. event clicked;call super::clicked;dw_pcode.SetFilter('')
  565. dw_pcode.Filter()
  566. IF dw_pcode.Retrieve() > 0 THEN
  567. dw_pcode.SelectRow(0,FALSE)
  568. dw_pcode.SetRow(1)
  569. dw_pcode.SelectRow(1,TRUE)
  570. END IF
  571. end event
  572. type cb_addpcode from uo_imflatbutton within w_pz_code_edit
  573. integer x = 2391
  574. integer width = 165
  575. integer height = 164
  576. integer taborder = 60
  577. boolean bringtotop = true
  578. string text = "增加"
  579. string normalpicname = "new.bmp"
  580. integer picsize = 16
  581. toolbaralignment pic_align = alignattop!
  582. boolean border = false
  583. end type
  584. event clicked;call super::clicked;IF NOT f_power_ind(1404) THEN
  585. MessageBox(publ_operator,'你没有使用权限!')
  586. RETURN
  587. END IF
  588. s_edit_index_tran s_inscust
  589. s_inscust.b_long = 2
  590. s_inscust.c_long = 0
  591. OpenWithParm(w_pz_code_add_edit,s_inscust)
  592. cb_retrpcode.TriggerEvent(Clicked!)
  593. end event
  594. type cb_help from uo_imflatbutton within w_pz_code_edit
  595. integer x = 3259
  596. integer width = 151
  597. integer height = 164
  598. integer taborder = 60
  599. boolean bringtotop = true
  600. string text = "帮助"
  601. string normalpicname = "help.bmp"
  602. integer picsize = 16
  603. toolbaralignment pic_align = alignattop!
  604. boolean border = false
  605. end type
  606. event clicked;call super::clicked;PARENT.TriggerEvent('ue_help')
  607. end event
  608. type ln_bar from line within w_pz_code_edit
  609. long linecolor = 268435456
  610. integer linethickness = 4
  611. integer beginy = 172
  612. integer endx = 3323
  613. integer endy = 172
  614. end type
  615. type ln_bar2 from line within w_pz_code_edit
  616. long linecolor = 16777215
  617. integer linethickness = 4
  618. integer beginy = 176
  619. integer endx = 3323
  620. integer endy = 176
  621. end type
  622. type r_bar from rectangle within w_pz_code_edit
  623. long linecolor = 16777215
  624. long fillcolor = 1073741824
  625. integer x = 2555
  626. integer width = 73
  627. integer height = 172
  628. end type
  629. event constructor;this.fillcolor = 14215660
  630. this.linecolor = 14215660
  631. this.x = -1
  632. this.y = -1
  633. this.height = ln_bar2.beginy - 5
  634. end event
  635. type ln_1 from line within w_pz_code_edit
  636. long linecolor = 268435456
  637. integer linethickness = 4
  638. integer beginx = 1157
  639. integer endx = 1157
  640. integer endy = 164
  641. end type
  642. type ln_2 from line within w_pz_code_edit
  643. long linecolor = 16777215
  644. integer linethickness = 4
  645. integer beginx = 1161
  646. integer endx = 1161
  647. integer endy = 164
  648. end type
  649. type ln_3 from line within w_pz_code_edit
  650. long linecolor = 268435456
  651. integer linethickness = 4
  652. integer beginx = 2354
  653. integer beginy = 4
  654. integer endx = 2354
  655. integer endy = 168
  656. end type
  657. type ln_4 from line within w_pz_code_edit
  658. long linecolor = 16777215
  659. integer linethickness = 4
  660. integer beginx = 2359
  661. integer beginy = 4
  662. integer endx = 2359
  663. integer endy = 168
  664. end type