w_rp_subject.srw 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. $PBExportHeader$w_rp_subject.srw
  2. forward
  3. global type w_rp_subject from w_publ_easyq
  4. end type
  5. end forward
  6. global type w_rp_subject from w_publ_easyq
  7. string title = "试算平衡表"
  8. long backcolor = 81324524
  9. end type
  10. global w_rp_subject w_rp_subject
  11. on w_rp_subject.create
  12. call super::create
  13. end on
  14. on w_rp_subject.destroy
  15. call super::destroy
  16. end on
  17. event open;THIS.TriggerEvent('ue_before_open')
  18. wf_movetocenter()
  19. dw_1.SetTransObject (sqlca)
  20. dw_1.RBUTTON_FILTER_USE = TRUE //右键查询功能开关
  21. IF Trim(dw_1.DataObject) <> '' THEN
  22. dw_1.Object.DataWindow.Print.MARGIN.Top = Integer(ProfileString(sys_inifilename,dw_1.DataObject, "MARGIN_TOP", "110"))
  23. dw_1.Object.DataWindow.Print.MARGIN.Left = Integer(ProfileString(sys_inifilename,dw_1.DataObject, "MARGIN_LEFT", "96" ))
  24. dw_1.Object.DataWindow.Print.MARGIN.bottom = Integer(ProfileString(sys_inifilename,dw_1.DataObject, "MARGIN_BOTTOM", "110"))
  25. dw_1.Object.DataWindow.Print.MARGIN.Right = Integer(ProfileString(sys_inifilename,dw_1.DataObject, "MARGIN_RIGHT", "96" ))
  26. END IF
  27. datawindowchild childdw_subid
  28. dw_1.GetChild("subid",childdw_subid)
  29. childdw_subid.SetTransObject (sqlca)
  30. childdw_subid.Retrieve(sys_accsetid)
  31. end event
  32. event ue_before_open;call super::ue_before_open;if_ue_filter = TRUE
  33. if_ue_sort = TRUE
  34. if_ue_sentdataout = TRUE
  35. end event
  36. type cb_func from w_publ_easyq`cb_func within w_rp_subject
  37. end type
  38. type cb_exit from w_publ_easyq`cb_exit within w_rp_subject
  39. end type
  40. type cb_2 from w_publ_easyq`cb_2 within w_rp_subject
  41. boolean bringtotop = true
  42. end type
  43. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_subject
  44. boolean bringtotop = true
  45. end type
  46. type cb_1 from w_publ_easyq`cb_1 within w_rp_subject
  47. boolean bringtotop = true
  48. end type
  49. event cb_1::clicked;call super::clicked;long ls_grade_len
  50. ls_grade_len=f_rst_grade_len(long(em_2.text))
  51. dw_1.retrieve(ls_grade_len,sys_accsetid)
  52. end event
  53. type st_3 from w_publ_easyq`st_3 within w_rp_subject
  54. integer x = 18
  55. integer y = 220
  56. integer width = 288
  57. string text = "科目级别:"
  58. end type
  59. type st_4 from w_publ_easyq`st_4 within w_rp_subject
  60. boolean visible = false
  61. integer x = 101
  62. integer y = 676
  63. integer width = 288
  64. string text = "会计期间:"
  65. end type
  66. type em_1 from w_publ_easyq`em_1 within w_rp_subject
  67. boolean visible = false
  68. integer x = 306
  69. integer y = 656
  70. integer width = 219
  71. integer height = 92
  72. string mask = "yyyy"
  73. end type
  74. event em_1::constructor;this.text=string(year(today()))
  75. end event
  76. type em_2 from w_publ_easyq`em_2 within w_rp_subject
  77. integer x = 325
  78. integer y = 200
  79. integer width = 215
  80. integer height = 92
  81. string text = "1"
  82. alignment alignment = right!
  83. maskdatatype maskdatatype = decimalmask!
  84. string mask = "#"
  85. end type
  86. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_subject
  87. integer x = 1166
  88. end type
  89. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_subject
  90. integer x = 955
  91. end type
  92. type dw_1 from w_publ_easyq`dw_1 within w_rp_subject
  93. integer width = 2382
  94. string dataobject = "dw_pr_subject"
  95. end type
  96. type ln_bar from w_publ_easyq`ln_bar within w_rp_subject
  97. end type
  98. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_subject
  99. end type
  100. type r_bar from w_publ_easyq`r_bar within w_rp_subject
  101. end type
  102. type ln_1 from w_publ_easyq`ln_1 within w_rp_subject
  103. end type
  104. type ln_2 from w_publ_easyq`ln_2 within w_rp_subject
  105. end type