w_mftree_billfunc.srw 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. $PBExportHeader$w_mftree_billfunc.srw
  2. forward
  3. global type w_mftree_billfunc from w_publ_base
  4. end type
  5. type cb_1 from uo_imflatbutton within w_mftree_billfunc
  6. end type
  7. type cbx_1 from checkbox within w_mftree_billfunc
  8. end type
  9. type cbx_2 from checkbox within w_mftree_billfunc
  10. end type
  11. type cbx_3 from checkbox within w_mftree_billfunc
  12. end type
  13. type cbx_4 from checkbox within w_mftree_billfunc
  14. end type
  15. type cbx_5 from checkbox within w_mftree_billfunc
  16. end type
  17. type cbx_6 from checkbox within w_mftree_billfunc
  18. end type
  19. type cbx_7 from checkbox within w_mftree_billfunc
  20. end type
  21. type cbx_8 from checkbox within w_mftree_billfunc
  22. end type
  23. type cbx_9 from checkbox within w_mftree_billfunc
  24. end type
  25. type cbx_10 from checkbox within w_mftree_billfunc
  26. end type
  27. type mle_1 from multilineedit within w_mftree_billfunc
  28. end type
  29. type cbx_12 from checkbox within w_mftree_billfunc
  30. end type
  31. end forward
  32. global type w_mftree_billfunc from w_publ_base
  33. integer width = 1783
  34. integer height = 1192
  35. string title = "单据权限树结点"
  36. boolean minbox = false
  37. windowtype windowtype = response!
  38. long backcolor = 134217750
  39. cb_1 cb_1
  40. cbx_1 cbx_1
  41. cbx_2 cbx_2
  42. cbx_3 cbx_3
  43. cbx_4 cbx_4
  44. cbx_5 cbx_5
  45. cbx_6 cbx_6
  46. cbx_7 cbx_7
  47. cbx_8 cbx_8
  48. cbx_9 cbx_9
  49. cbx_10 cbx_10
  50. mle_1 mle_1
  51. cbx_12 cbx_12
  52. end type
  53. global w_mftree_billfunc w_mftree_billfunc
  54. type variables
  55. string is_billfuncstr
  56. end variables
  57. on w_mftree_billfunc.create
  58. int iCurrent
  59. call super::create
  60. this.cb_1=create cb_1
  61. this.cbx_1=create cbx_1
  62. this.cbx_2=create cbx_2
  63. this.cbx_3=create cbx_3
  64. this.cbx_4=create cbx_4
  65. this.cbx_5=create cbx_5
  66. this.cbx_6=create cbx_6
  67. this.cbx_7=create cbx_7
  68. this.cbx_8=create cbx_8
  69. this.cbx_9=create cbx_9
  70. this.cbx_10=create cbx_10
  71. this.mle_1=create mle_1
  72. this.cbx_12=create cbx_12
  73. iCurrent=UpperBound(this.Control)
  74. this.Control[iCurrent+1]=this.cb_1
  75. this.Control[iCurrent+2]=this.cbx_1
  76. this.Control[iCurrent+3]=this.cbx_2
  77. this.Control[iCurrent+4]=this.cbx_3
  78. this.Control[iCurrent+5]=this.cbx_4
  79. this.Control[iCurrent+6]=this.cbx_5
  80. this.Control[iCurrent+7]=this.cbx_6
  81. this.Control[iCurrent+8]=this.cbx_7
  82. this.Control[iCurrent+9]=this.cbx_8
  83. this.Control[iCurrent+10]=this.cbx_9
  84. this.Control[iCurrent+11]=this.cbx_10
  85. this.Control[iCurrent+12]=this.mle_1
  86. this.Control[iCurrent+13]=this.cbx_12
  87. end on
  88. on w_mftree_billfunc.destroy
  89. call super::destroy
  90. destroy(this.cb_1)
  91. destroy(this.cbx_1)
  92. destroy(this.cbx_2)
  93. destroy(this.cbx_3)
  94. destroy(this.cbx_4)
  95. destroy(this.cbx_5)
  96. destroy(this.cbx_6)
  97. destroy(this.cbx_7)
  98. destroy(this.cbx_8)
  99. destroy(this.cbx_9)
  100. destroy(this.cbx_10)
  101. destroy(this.mle_1)
  102. destroy(this.cbx_12)
  103. end on
  104. event close;call super::close;closewithreturn(this,is_billfuncstr)
  105. end event
  106. type cb_func from w_publ_base`cb_func within w_mftree_billfunc
  107. boolean visible = false
  108. end type
  109. type cb_exit from w_publ_base`cb_exit within w_mftree_billfunc
  110. integer x = 1042
  111. integer y = 984
  112. end type
  113. type cb_1 from uo_imflatbutton within w_mftree_billfunc
  114. integer x = 425
  115. integer y = 984
  116. integer taborder = 20
  117. boolean bringtotop = true
  118. end type
  119. event clicked;call super::clicked;String sl
  120. is_billfuncstr = ""
  121. IF cbx_1.Checked THEN
  122. is_billfuncstr += "1"
  123. ELSE
  124. is_billfuncstr += "0"
  125. END IF
  126. IF cbx_2.Checked THEN
  127. is_billfuncstr += "1"
  128. ELSE
  129. is_billfuncstr += "0"
  130. END IF
  131. IF cbx_3.Checked THEN
  132. is_billfuncstr += "1"
  133. ELSE
  134. is_billfuncstr += "0"
  135. END IF
  136. IF cbx_4.Checked THEN
  137. is_billfuncstr += "1"
  138. ELSE
  139. is_billfuncstr += "0"
  140. END IF
  141. IF cbx_5.Checked THEN
  142. is_billfuncstr += "1"
  143. ELSE
  144. is_billfuncstr += "0"
  145. END IF
  146. IF cbx_6.Checked THEN
  147. is_billfuncstr += "1"
  148. ELSE
  149. is_billfuncstr += "0"
  150. END IF
  151. IF cbx_7.Checked THEN
  152. is_billfuncstr += "1"
  153. ELSE
  154. is_billfuncstr += "0"
  155. END IF
  156. IF cbx_8.Checked THEN
  157. is_billfuncstr += "1"
  158. ELSE
  159. is_billfuncstr += "0"
  160. END IF
  161. IF cbx_9.Checked THEN
  162. is_billfuncstr += "1"
  163. ELSE
  164. is_billfuncstr += "0"
  165. END IF
  166. IF cbx_10.Checked THEN
  167. is_billfuncstr += "1"
  168. ELSE
  169. is_billfuncstr += "0"
  170. END IF
  171. IF mle_1.Text <> "" THEN
  172. is_billfuncstr += Trim(mle_1.Text)
  173. END IF
  174. Close(Parent)
  175. end event
  176. type cbx_1 from checkbox within w_mftree_billfunc
  177. integer x = 123
  178. integer y = 116
  179. integer width = 402
  180. integer height = 60
  181. boolean bringtotop = true
  182. integer textsize = -9
  183. integer weight = 400
  184. fontcharset fontcharset = gb2312charset!
  185. fontpitch fontpitch = variable!
  186. string facename = "宋体"
  187. long textcolor = 33554432
  188. long backcolor = 67108864
  189. string text = "新建"
  190. boolean checked = true
  191. end type
  192. type cbx_2 from checkbox within w_mftree_billfunc
  193. integer x = 123
  194. integer y = 208
  195. integer width = 402
  196. integer height = 60
  197. boolean bringtotop = true
  198. integer textsize = -9
  199. integer weight = 400
  200. fontcharset fontcharset = gb2312charset!
  201. fontpitch fontpitch = variable!
  202. string facename = "宋体"
  203. long textcolor = 33554432
  204. long backcolor = 67108864
  205. string text = "删除"
  206. boolean checked = true
  207. end type
  208. type cbx_3 from checkbox within w_mftree_billfunc
  209. integer x = 123
  210. integer y = 300
  211. integer width = 402
  212. integer height = 60
  213. boolean bringtotop = true
  214. integer textsize = -9
  215. integer weight = 400
  216. fontcharset fontcharset = gb2312charset!
  217. fontpitch fontpitch = variable!
  218. string facename = "宋体"
  219. long textcolor = 33554432
  220. long backcolor = 67108864
  221. string text = "确认"
  222. boolean checked = true
  223. end type
  224. type cbx_4 from checkbox within w_mftree_billfunc
  225. integer x = 123
  226. integer y = 392
  227. integer width = 402
  228. integer height = 60
  229. boolean bringtotop = true
  230. integer textsize = -9
  231. integer weight = 400
  232. fontcharset fontcharset = gb2312charset!
  233. fontpitch fontpitch = variable!
  234. string facename = "宋体"
  235. long textcolor = 33554432
  236. long backcolor = 67108864
  237. string text = "反确认"
  238. boolean checked = true
  239. end type
  240. type cbx_5 from checkbox within w_mftree_billfunc
  241. integer x = 677
  242. integer y = 116
  243. integer width = 402
  244. integer height = 60
  245. boolean bringtotop = true
  246. integer textsize = -9
  247. integer weight = 400
  248. fontcharset fontcharset = gb2312charset!
  249. fontpitch fontpitch = variable!
  250. string facename = "宋体"
  251. long textcolor = 33554432
  252. long backcolor = 67108864
  253. string text = "审核"
  254. boolean checked = true
  255. end type
  256. type cbx_6 from checkbox within w_mftree_billfunc
  257. integer x = 677
  258. integer y = 208
  259. integer width = 402
  260. integer height = 60
  261. boolean bringtotop = true
  262. integer textsize = -9
  263. integer weight = 400
  264. fontcharset fontcharset = gb2312charset!
  265. fontpitch fontpitch = variable!
  266. string facename = "宋体"
  267. long textcolor = 33554432
  268. long backcolor = 67108864
  269. string text = "撤审"
  270. boolean checked = true
  271. end type
  272. type cbx_7 from checkbox within w_mftree_billfunc
  273. integer x = 677
  274. integer y = 300
  275. integer width = 402
  276. integer height = 60
  277. boolean bringtotop = true
  278. integer textsize = -9
  279. integer weight = 400
  280. fontcharset fontcharset = gb2312charset!
  281. fontpitch fontpitch = variable!
  282. string facename = "宋体"
  283. long textcolor = 33554432
  284. long backcolor = 67108864
  285. string text = "终审"
  286. boolean checked = true
  287. end type
  288. type cbx_8 from checkbox within w_mftree_billfunc
  289. integer x = 677
  290. integer y = 392
  291. integer width = 402
  292. integer height = 60
  293. boolean bringtotop = true
  294. integer textsize = -9
  295. integer weight = 400
  296. fontcharset fontcharset = gb2312charset!
  297. fontpitch fontpitch = variable!
  298. string facename = "宋体"
  299. long textcolor = 33554432
  300. long backcolor = 67108864
  301. string text = "终撤"
  302. boolean checked = true
  303. end type
  304. type cbx_9 from checkbox within w_mftree_billfunc
  305. integer x = 1230
  306. integer y = 116
  307. integer width = 402
  308. integer height = 60
  309. boolean bringtotop = true
  310. integer textsize = -9
  311. integer weight = 400
  312. fontcharset fontcharset = gb2312charset!
  313. fontpitch fontpitch = variable!
  314. string facename = "宋体"
  315. long textcolor = 33554432
  316. long backcolor = 67108864
  317. string text = "添加备注"
  318. boolean checked = true
  319. end type
  320. type cbx_10 from checkbox within w_mftree_billfunc
  321. integer x = 1230
  322. integer y = 208
  323. integer width = 402
  324. integer height = 60
  325. boolean bringtotop = true
  326. integer textsize = -9
  327. integer weight = 400
  328. fontcharset fontcharset = gb2312charset!
  329. fontpitch fontpitch = variable!
  330. string facename = "宋体"
  331. long textcolor = 33554432
  332. long backcolor = 67108864
  333. string text = "打印"
  334. boolean checked = true
  335. end type
  336. type mle_1 from multilineedit within w_mftree_billfunc
  337. integer y = 476
  338. integer width = 1746
  339. integer height = 484
  340. integer taborder = 30
  341. boolean bringtotop = true
  342. integer textsize = -9
  343. integer weight = 400
  344. fontcharset fontcharset = gb2312charset!
  345. fontpitch fontpitch = variable!
  346. string facename = "宋体"
  347. long textcolor = 33554432
  348. boolean hscrollbar = true
  349. boolean vscrollbar = true
  350. boolean autohscroll = true
  351. boolean autovscroll = true
  352. borderstyle borderstyle = stylelowered!
  353. end type
  354. type cbx_12 from checkbox within w_mftree_billfunc
  355. integer x = 123
  356. integer y = 28
  357. integer width = 402
  358. integer height = 60
  359. boolean bringtotop = true
  360. integer textsize = -9
  361. integer weight = 400
  362. fontcharset fontcharset = gb2312charset!
  363. fontpitch fontpitch = variable!
  364. string facename = "宋体"
  365. long textcolor = 33554432
  366. long backcolor = 67108864
  367. string text = "反选"
  368. boolean checked = true
  369. end type
  370. event clicked;cbx_1.Checked = not cbx_1.Checked
  371. cbx_2.Checked = not cbx_2.Checked
  372. cbx_3.Checked = not cbx_3.Checked
  373. cbx_4.Checked = not cbx_4.Checked
  374. cbx_5.Checked = not cbx_5.Checked
  375. cbx_6.Checked = not cbx_6.Checked
  376. cbx_7.Checked = not cbx_7.Checked
  377. cbx_8.Checked = not cbx_8.Checked
  378. cbx_9.Checked = not cbx_9.Checked
  379. cbx_10.Checked = not cbx_10.Checked
  380. end event