w_rp_zcfzb_create.srw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. $PBExportHeader$w_rp_zcfzb_create.srw
  2. forward
  3. global type w_rp_zcfzb_create from w_publ_base
  4. end type
  5. type em_year from editmask within w_rp_zcfzb_create
  6. end type
  7. type gb_1 from groupbox within w_rp_zcfzb_create
  8. end type
  9. type rb_1 from radiobutton within w_rp_zcfzb_create
  10. end type
  11. type rb_2 from radiobutton within w_rp_zcfzb_create
  12. end type
  13. type rb_3 from radiobutton within w_rp_zcfzb_create
  14. end type
  15. type rb_4 from radiobutton within w_rp_zcfzb_create
  16. end type
  17. type rb_5 from radiobutton within w_rp_zcfzb_create
  18. end type
  19. type rb_6 from radiobutton within w_rp_zcfzb_create
  20. end type
  21. type rb_7 from radiobutton within w_rp_zcfzb_create
  22. end type
  23. type rb_8 from radiobutton within w_rp_zcfzb_create
  24. end type
  25. type rb_9 from radiobutton within w_rp_zcfzb_create
  26. end type
  27. type rb_10 from radiobutton within w_rp_zcfzb_create
  28. end type
  29. type rb_11 from radiobutton within w_rp_zcfzb_create
  30. end type
  31. type rb_12 from radiobutton within w_rp_zcfzb_create
  32. end type
  33. type cb_1 from commandbutton within w_rp_zcfzb_create
  34. end type
  35. type st_1 from statictext within w_rp_zcfzb_create
  36. end type
  37. end forward
  38. global type w_rp_zcfzb_create from w_publ_base
  39. integer width = 1655
  40. integer height = 1184
  41. string title = "生成报表"
  42. boolean minbox = false
  43. windowtype windowtype = response!
  44. long backcolor = 80269524
  45. em_year em_year
  46. gb_1 gb_1
  47. rb_1 rb_1
  48. rb_2 rb_2
  49. rb_3 rb_3
  50. rb_4 rb_4
  51. rb_5 rb_5
  52. rb_6 rb_6
  53. rb_7 rb_7
  54. rb_8 rb_8
  55. rb_9 rb_9
  56. rb_10 rb_10
  57. rb_11 rb_11
  58. rb_12 rb_12
  59. cb_1 cb_1
  60. st_1 st_1
  61. end type
  62. global w_rp_zcfzb_create w_rp_zcfzb_create
  63. type variables
  64. s_edit_index_tran s_rst
  65. end variables
  66. on w_rp_zcfzb_create.create
  67. int iCurrent
  68. call super::create
  69. this.em_year=create em_year
  70. this.gb_1=create gb_1
  71. this.rb_1=create rb_1
  72. this.rb_2=create rb_2
  73. this.rb_3=create rb_3
  74. this.rb_4=create rb_4
  75. this.rb_5=create rb_5
  76. this.rb_6=create rb_6
  77. this.rb_7=create rb_7
  78. this.rb_8=create rb_8
  79. this.rb_9=create rb_9
  80. this.rb_10=create rb_10
  81. this.rb_11=create rb_11
  82. this.rb_12=create rb_12
  83. this.cb_1=create cb_1
  84. this.st_1=create st_1
  85. iCurrent=UpperBound(this.Control)
  86. this.Control[iCurrent+1]=this.em_year
  87. this.Control[iCurrent+2]=this.gb_1
  88. this.Control[iCurrent+3]=this.rb_1
  89. this.Control[iCurrent+4]=this.rb_2
  90. this.Control[iCurrent+5]=this.rb_3
  91. this.Control[iCurrent+6]=this.rb_4
  92. this.Control[iCurrent+7]=this.rb_5
  93. this.Control[iCurrent+8]=this.rb_6
  94. this.Control[iCurrent+9]=this.rb_7
  95. this.Control[iCurrent+10]=this.rb_8
  96. this.Control[iCurrent+11]=this.rb_9
  97. this.Control[iCurrent+12]=this.rb_10
  98. this.Control[iCurrent+13]=this.rb_11
  99. this.Control[iCurrent+14]=this.rb_12
  100. this.Control[iCurrent+15]=this.cb_1
  101. this.Control[iCurrent+16]=this.st_1
  102. end on
  103. on w_rp_zcfzb_create.destroy
  104. call super::destroy
  105. destroy(this.em_year)
  106. destroy(this.gb_1)
  107. destroy(this.rb_1)
  108. destroy(this.rb_2)
  109. destroy(this.rb_3)
  110. destroy(this.rb_4)
  111. destroy(this.rb_5)
  112. destroy(this.rb_6)
  113. destroy(this.rb_7)
  114. destroy(this.rb_8)
  115. destroy(this.rb_9)
  116. destroy(this.rb_10)
  117. destroy(this.rb_11)
  118. destroy(this.rb_12)
  119. destroy(this.cb_1)
  120. destroy(this.st_1)
  121. end on
  122. event open;call super::open;s_rst.b_long = 0
  123. CHOOSE CASE Long(Right(String(sys_curyearmon),2))
  124. CASE 1
  125. rb_1.Checked = True
  126. rb_2.Checked = False
  127. rb_3.Checked = False
  128. rb_4.Checked = False
  129. rb_5.Checked = False
  130. rb_6.Checked = False
  131. rb_7.Checked = False
  132. rb_8.Checked = False
  133. rb_9.Checked = False
  134. rb_10.Checked = False
  135. rb_11.Checked = False
  136. rb_12.Checked = False
  137. CASE 2
  138. rb_1.Checked = False
  139. rb_2.Checked = True
  140. rb_3.Checked = False
  141. rb_4.Checked = False
  142. rb_5.Checked = False
  143. rb_6.Checked = False
  144. rb_7.Checked = False
  145. rb_8.Checked = False
  146. rb_9.Checked = False
  147. rb_10.Checked = False
  148. rb_11.Checked = False
  149. rb_12.Checked = False
  150. CASE 3
  151. rb_1.Checked = False
  152. rb_2.Checked = False
  153. rb_3.Checked = True
  154. rb_4.Checked = False
  155. rb_5.Checked = False
  156. rb_6.Checked = False
  157. rb_7.Checked = False
  158. rb_8.Checked = False
  159. rb_9.Checked = False
  160. rb_10.Checked = False
  161. rb_11.Checked = False
  162. rb_12.Checked = False
  163. CASE 4
  164. rb_1.Checked = False
  165. rb_2.Checked = False
  166. rb_3.Checked = False
  167. rb_4.Checked = True
  168. rb_5.Checked = False
  169. rb_6.Checked = False
  170. rb_7.Checked = False
  171. rb_8.Checked = False
  172. rb_9.Checked = False
  173. rb_10.Checked = False
  174. rb_11.Checked = False
  175. rb_12.Checked = False
  176. CASE 5
  177. rb_1.Checked = False
  178. rb_2.Checked = False
  179. rb_3.Checked = False
  180. rb_4.Checked = False
  181. rb_5.Checked = True
  182. rb_6.Checked = False
  183. rb_7.Checked = False
  184. rb_8.Checked = False
  185. rb_9.Checked = False
  186. rb_10.Checked = False
  187. rb_11.Checked = False
  188. rb_12.Checked = False
  189. CASE 6
  190. rb_1.Checked = False
  191. rb_2.Checked = False
  192. rb_3.Checked = False
  193. rb_4.Checked = False
  194. rb_5.Checked = False
  195. rb_6.Checked = True
  196. rb_7.Checked = False
  197. rb_8.Checked = False
  198. rb_9.Checked = False
  199. rb_10.Checked = False
  200. rb_11.Checked = False
  201. rb_12.Checked = False
  202. CASE 7
  203. rb_1.Checked = False
  204. rb_2.Checked = False
  205. rb_3.Checked = False
  206. rb_4.Checked = False
  207. rb_5.Checked = False
  208. rb_6.Checked = False
  209. rb_7.Checked = True
  210. rb_8.Checked = False
  211. rb_9.Checked = False
  212. rb_10.Checked = False
  213. rb_11.Checked = False
  214. rb_12.Checked = False
  215. CASE 8
  216. rb_1.Checked = False
  217. rb_2.Checked = False
  218. rb_3.Checked = False
  219. rb_4.Checked = False
  220. rb_5.Checked = False
  221. rb_6.Checked = False
  222. rb_7.Checked = False
  223. rb_8.Checked = True
  224. rb_9.Checked = False
  225. rb_10.Checked = False
  226. rb_11.Checked = False
  227. rb_12.Checked = False
  228. CASE 9
  229. rb_1.Checked = False
  230. rb_2.Checked = False
  231. rb_3.Checked = False
  232. rb_4.Checked = False
  233. rb_5.Checked = False
  234. rb_6.Checked = False
  235. rb_7.Checked = False
  236. rb_8.Checked = False
  237. rb_9.Checked = True
  238. rb_10.Checked = False
  239. rb_11.Checked = False
  240. rb_12.Checked = False
  241. CASE 10
  242. rb_1.Checked = False
  243. rb_2.Checked = False
  244. rb_3.Checked = False
  245. rb_4.Checked = False
  246. rb_5.Checked = False
  247. rb_6.Checked = False
  248. rb_7.Checked = False
  249. rb_8.Checked = False
  250. rb_9.Checked = False
  251. rb_10.Checked = True
  252. rb_11.Checked = False
  253. rb_12.Checked = False
  254. CASE 11
  255. rb_1.Checked = False
  256. rb_2.Checked = False
  257. rb_3.Checked = False
  258. rb_4.Checked = False
  259. rb_5.Checked = False
  260. rb_6.Checked = False
  261. rb_7.Checked = False
  262. rb_8.Checked = False
  263. rb_9.Checked = False
  264. rb_10.Checked = False
  265. rb_11.Checked = True
  266. rb_12.Checked = False
  267. CASE 12
  268. rb_1.Checked = False
  269. rb_2.Checked = False
  270. rb_3.Checked = False
  271. rb_4.Checked = False
  272. rb_5.Checked = False
  273. rb_6.Checked = False
  274. rb_7.Checked = False
  275. rb_8.Checked = False
  276. rb_9.Checked = False
  277. rb_10.Checked = False
  278. rb_11.Checked = False
  279. rb_12.Checked = True
  280. CASE ELSE
  281. rb_1.Checked = False
  282. rb_2.Checked = False
  283. rb_3.Checked = False
  284. rb_4.Checked = False
  285. rb_5.Checked = False
  286. rb_6.Checked = False
  287. rb_7.Checked = False
  288. rb_8.Checked = False
  289. rb_9.Checked = False
  290. rb_10.Checked = False
  291. rb_11.Checked = False
  292. rb_12.Checked = False
  293. END CHOOSE
  294. end event
  295. event close;call super::close;CloseWithReturn(This,s_rst)
  296. end event
  297. type cb_func from w_publ_base`cb_func within w_rp_zcfzb_create
  298. boolean visible = false
  299. integer x = 983
  300. integer y = 104
  301. integer width = 311
  302. integer height = 96
  303. boolean enabled = false
  304. string text = "功能"
  305. string normalpicname = ""
  306. integer picsize = 0
  307. toolbaralignment pic_align = alignatleft!
  308. boolean border = true
  309. end type
  310. type cb_exit from w_publ_base`cb_exit within w_rp_zcfzb_create
  311. integer x = 859
  312. integer y = 920
  313. integer width = 247
  314. string text = "取消"
  315. end type
  316. type em_year from editmask within w_rp_zcfzb_create
  317. integer x = 265
  318. integer y = 52
  319. integer width = 325
  320. integer height = 88
  321. integer taborder = 20
  322. boolean bringtotop = true
  323. integer textsize = -9
  324. integer weight = 400
  325. fontcharset fontcharset = gb2312charset!
  326. fontpitch fontpitch = variable!
  327. string facename = "宋体"
  328. long textcolor = 33554432
  329. string text = "0000"
  330. alignment alignment = center!
  331. borderstyle borderstyle = stylelowered!
  332. string mask = "####"
  333. boolean spin = true
  334. string minmax = "1900~~"
  335. end type
  336. event constructor;this.text=left(string(sys_curyearmon),4)
  337. end event
  338. type gb_1 from groupbox within w_rp_zcfzb_create
  339. integer x = 96
  340. integer y = 232
  341. integer width = 1440
  342. integer height = 624
  343. integer taborder = 30
  344. integer textsize = -9
  345. integer weight = 400
  346. fontcharset fontcharset = gb2312charset!
  347. fontpitch fontpitch = variable!
  348. string facename = "宋体"
  349. long textcolor = 33554432
  350. long backcolor = 67108864
  351. string text = "报表类型"
  352. end type
  353. type rb_1 from radiobutton within w_rp_zcfzb_create
  354. integer x = 187
  355. integer y = 384
  356. integer width = 247
  357. integer height = 76
  358. boolean bringtotop = true
  359. integer textsize = -9
  360. integer weight = 400
  361. fontcharset fontcharset = gb2312charset!
  362. fontpitch fontpitch = variable!
  363. string facename = "宋体"
  364. long textcolor = 33554432
  365. long backcolor = 67108864
  366. string text = "一月"
  367. end type
  368. type rb_2 from radiobutton within w_rp_zcfzb_create
  369. integer x = 654
  370. integer y = 384
  371. integer width = 247
  372. integer height = 76
  373. boolean bringtotop = true
  374. integer textsize = -9
  375. integer weight = 400
  376. fontcharset fontcharset = gb2312charset!
  377. fontpitch fontpitch = variable!
  378. string facename = "宋体"
  379. long textcolor = 33554432
  380. long backcolor = 67108864
  381. string text = "二月"
  382. end type
  383. type rb_3 from radiobutton within w_rp_zcfzb_create
  384. integer x = 1120
  385. integer y = 384
  386. integer width = 247
  387. integer height = 76
  388. boolean bringtotop = true
  389. integer textsize = -9
  390. integer weight = 400
  391. fontcharset fontcharset = gb2312charset!
  392. fontpitch fontpitch = variable!
  393. string facename = "宋体"
  394. long textcolor = 33554432
  395. long backcolor = 67108864
  396. string text = "三月"
  397. end type
  398. type rb_4 from radiobutton within w_rp_zcfzb_create
  399. integer x = 187
  400. integer y = 496
  401. integer width = 247
  402. integer height = 76
  403. boolean bringtotop = true
  404. integer textsize = -9
  405. integer weight = 400
  406. fontcharset fontcharset = gb2312charset!
  407. fontpitch fontpitch = variable!
  408. string facename = "宋体"
  409. long textcolor = 33554432
  410. long backcolor = 67108864
  411. string text = "四月"
  412. end type
  413. type rb_5 from radiobutton within w_rp_zcfzb_create
  414. integer x = 654
  415. integer y = 496
  416. integer width = 247
  417. integer height = 76
  418. boolean bringtotop = true
  419. integer textsize = -9
  420. integer weight = 400
  421. fontcharset fontcharset = gb2312charset!
  422. fontpitch fontpitch = variable!
  423. string facename = "宋体"
  424. long textcolor = 33554432
  425. long backcolor = 67108864
  426. string text = "五月"
  427. end type
  428. type rb_6 from radiobutton within w_rp_zcfzb_create
  429. integer x = 1120
  430. integer y = 496
  431. integer width = 247
  432. integer height = 76
  433. boolean bringtotop = true
  434. integer textsize = -9
  435. integer weight = 400
  436. fontcharset fontcharset = gb2312charset!
  437. fontpitch fontpitch = variable!
  438. string facename = "宋体"
  439. long textcolor = 33554432
  440. long backcolor = 67108864
  441. string text = "六月"
  442. end type
  443. type rb_7 from radiobutton within w_rp_zcfzb_create
  444. integer x = 187
  445. integer y = 608
  446. integer width = 247
  447. integer height = 76
  448. boolean bringtotop = true
  449. integer textsize = -9
  450. integer weight = 400
  451. fontcharset fontcharset = gb2312charset!
  452. fontpitch fontpitch = variable!
  453. string facename = "宋体"
  454. long textcolor = 33554432
  455. long backcolor = 67108864
  456. string text = "七月"
  457. end type
  458. type rb_8 from radiobutton within w_rp_zcfzb_create
  459. integer x = 654
  460. integer y = 608
  461. integer width = 247
  462. integer height = 76
  463. boolean bringtotop = true
  464. integer textsize = -9
  465. integer weight = 400
  466. fontcharset fontcharset = gb2312charset!
  467. fontpitch fontpitch = variable!
  468. string facename = "宋体"
  469. long textcolor = 33554432
  470. long backcolor = 67108864
  471. string text = "八月"
  472. end type
  473. type rb_9 from radiobutton within w_rp_zcfzb_create
  474. integer x = 1120
  475. integer y = 608
  476. integer width = 247
  477. integer height = 76
  478. boolean bringtotop = true
  479. integer textsize = -9
  480. integer weight = 400
  481. fontcharset fontcharset = gb2312charset!
  482. fontpitch fontpitch = variable!
  483. string facename = "宋体"
  484. long textcolor = 33554432
  485. long backcolor = 67108864
  486. string text = "九月"
  487. end type
  488. type rb_10 from radiobutton within w_rp_zcfzb_create
  489. integer x = 187
  490. integer y = 720
  491. integer width = 247
  492. integer height = 76
  493. boolean bringtotop = true
  494. integer textsize = -9
  495. integer weight = 400
  496. fontcharset fontcharset = gb2312charset!
  497. fontpitch fontpitch = variable!
  498. string facename = "宋体"
  499. long textcolor = 33554432
  500. long backcolor = 67108864
  501. string text = "十月"
  502. end type
  503. type rb_11 from radiobutton within w_rp_zcfzb_create
  504. integer x = 654
  505. integer y = 720
  506. integer width = 247
  507. integer height = 76
  508. boolean bringtotop = true
  509. integer textsize = -9
  510. integer weight = 400
  511. fontcharset fontcharset = gb2312charset!
  512. fontpitch fontpitch = variable!
  513. string facename = "宋体"
  514. long textcolor = 33554432
  515. long backcolor = 67108864
  516. string text = "十一月"
  517. end type
  518. type rb_12 from radiobutton within w_rp_zcfzb_create
  519. integer x = 1120
  520. integer y = 720
  521. integer width = 247
  522. integer height = 76
  523. boolean bringtotop = true
  524. integer textsize = -9
  525. integer weight = 400
  526. fontcharset fontcharset = gb2312charset!
  527. fontpitch fontpitch = variable!
  528. string facename = "宋体"
  529. long textcolor = 33554432
  530. long backcolor = 67108864
  531. string text = "十二月"
  532. end type
  533. type cb_1 from commandbutton within w_rp_zcfzb_create
  534. integer x = 466
  535. integer y = 920
  536. integer width = 247
  537. integer height = 96
  538. integer taborder = 40
  539. boolean bringtotop = true
  540. integer textsize = -9
  541. integer weight = 400
  542. fontcharset fontcharset = gb2312charset!
  543. fontpitch fontpitch = variable!
  544. string facename = "宋体"
  545. string text = "确定"
  546. end type
  547. event clicked;Long ls_yearmon
  548. ls_yearmon = Long(em_year.Text)
  549. IF rb_1.Checked THEN
  550. ls_yearmon = ls_yearmon * 100 + 1
  551. ELSEIF rb_2.Checked THEN
  552. ls_yearmon = ls_yearmon * 100 + 2
  553. ELSEIF rb_3.Checked THEN
  554. ls_yearmon = ls_yearmon * 100 + 3
  555. ELSEIF rb_4.Checked THEN
  556. ls_yearmon = ls_yearmon * 100 + 4
  557. ELSEIF rb_5.Checked THEN
  558. ls_yearmon = ls_yearmon * 100 + 5
  559. ELSEIF rb_6.Checked THEN
  560. ls_yearmon = ls_yearmon * 100 + 6
  561. ELSEIF rb_7.Checked THEN
  562. ls_yearmon = ls_yearmon * 100 + 7
  563. ELSEIF rb_8.Checked THEN
  564. ls_yearmon = ls_yearmon * 100 + 8
  565. ELSEIF rb_9.Checked THEN
  566. ls_yearmon = ls_yearmon * 100 + 9
  567. ELSEIF rb_10.Checked THEN
  568. ls_yearmon = ls_yearmon * 100 + 10
  569. ELSEIF rb_11.Checked THEN
  570. ls_yearmon = ls_yearmon * 100 + 11
  571. ELSEIF rb_12.Checked THEN
  572. ls_yearmon = ls_yearmon * 100 + 12
  573. END IF
  574. s_rst.b_long = ls_yearmon
  575. Close(Parent)
  576. end event
  577. type st_1 from statictext within w_rp_zcfzb_create
  578. integer x = 96
  579. integer y = 72
  580. integer width = 169
  581. integer height = 48
  582. boolean bringtotop = true
  583. integer textsize = -9
  584. integer weight = 400
  585. fontcharset fontcharset = gb2312charset!
  586. fontpitch fontpitch = variable!
  587. string facename = "宋体"
  588. long textcolor = 33554432
  589. long backcolor = 67108864
  590. string text = "年份:"
  591. boolean focusrectangle = false
  592. end type