w_rp_rapmoney_sum.srw 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. $PBExportHeader$w_rp_rapmoney_sum.srw
  2. forward
  3. global type w_rp_rapmoney_sum from w_publ_easyq
  4. end type
  5. type cbx_1 from checkbox within w_rp_rapmoney_sum
  6. end type
  7. end forward
  8. global type w_rp_rapmoney_sum from w_publ_easyq
  9. integer x = 270
  10. integer y = 136
  11. integer width = 3577
  12. integer height = 2192
  13. string title = "出纳帐汇总表"
  14. cbx_1 cbx_1
  15. end type
  16. global w_rp_rapmoney_sum w_rp_rapmoney_sum
  17. type variables
  18. String ins_accountname = ''
  19. long ll_use = 0
  20. end variables
  21. on w_rp_rapmoney_sum.create
  22. int iCurrent
  23. call super::create
  24. this.cbx_1=create cbx_1
  25. iCurrent=UpperBound(this.Control)
  26. this.Control[iCurrent+1]=this.cbx_1
  27. end on
  28. on w_rp_rapmoney_sum.destroy
  29. call super::destroy
  30. destroy(this.cbx_1)
  31. end on
  32. event open;call super::open;//菜单打开
  33. if_ue_retr=true
  34. if_ue_filter=true
  35. if_ue_sort=true
  36. if_ue_sentdataout=true
  37. if cbx_1.checked then
  38. ll_use = 0
  39. else
  40. ll_use = 1
  41. end if
  42. IF cbx_loginretr.Checked THEN
  43. cb_1.TriggerEvent(Clicked!)
  44. END IF
  45. end event
  46. type cb_func from w_publ_easyq`cb_func within w_rp_rapmoney_sum
  47. end type
  48. type cb_exit from w_publ_easyq`cb_exit within w_rp_rapmoney_sum
  49. integer x = 1156
  50. end type
  51. type cb_2 from w_publ_easyq`cb_2 within w_rp_rapmoney_sum
  52. integer width = 194
  53. string text = "打印&P"
  54. end type
  55. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_rapmoney_sum
  56. end type
  57. type cb_1 from w_publ_easyq`cb_1 within w_rp_rapmoney_sum
  58. end type
  59. event cb_1::clicked;call super::clicked;DateTime firstdate,enddate
  60. firstdate = DateTime(Date(em_1.Text),Time(0))
  61. enddate = DateTime(Date(em_2.Text),Time('23:59:59'))
  62. UPDATE u_parm_pay
  63. Set firstdate = :firstdate,
  64. enddate = :enddate Where id = 3;
  65. IF sqlca.SQLCode = 0 THEN
  66. IF sqlca.SQLNRows = 0 THEN
  67. INSERT INTO u_parm_pay (firstdate,enddate,id) Values (:firstdate,:enddate,3);
  68. IF sqlca.SQLCode <> 0 THEN
  69. ROLLBACK;
  70. MessageBox('错误','数据库操作失败!I',stopsign!,ok!)
  71. RETURN
  72. END IF
  73. END IF
  74. ELSE
  75. ROLLBACK;
  76. MessageBox('错误','数据库操作失败!U',stopsign!,ok!)
  77. RETURN
  78. END IF
  79. COMMIT;
  80. dw_1.Retrieve(firstdate,enddate,ll_use)
  81. end event
  82. type st_3 from w_publ_easyq`st_3 within w_rp_rapmoney_sum
  83. integer y = 218
  84. end type
  85. type st_4 from w_publ_easyq`st_4 within w_rp_rapmoney_sum
  86. integer x = 731
  87. integer y = 218
  88. end type
  89. type em_1 from w_publ_easyq`em_1 within w_rp_rapmoney_sum
  90. integer y = 202
  91. end type
  92. type em_2 from w_publ_easyq`em_2 within w_rp_rapmoney_sum
  93. integer x = 837
  94. integer y = 202
  95. end type
  96. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_rapmoney_sum
  97. integer x = 1609
  98. integer y = 13
  99. end type
  100. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_rapmoney_sum
  101. integer x = 1390
  102. integer y = 13
  103. end type
  104. event cbx_yl::clicked;call super::clicked;if this.checked then
  105. dw_1.selectrow(0,false)
  106. end if
  107. end event
  108. type dw_1 from w_publ_easyq`dw_1 within w_rp_rapmoney_sum
  109. integer y = 314
  110. integer height = 1024
  111. string dataobject = "dw_rp_rap_sum"
  112. end type
  113. event dw_1::rowfocuschanged;call super::rowfocuschanged;IF currentrow <=0 THEN RETURN
  114. this.selectrow(0,false)
  115. this.selectrow(currentrow,true)
  116. end event
  117. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_rapmoney_sum
  118. end type
  119. type sle_cust from w_publ_easyq`sle_cust within w_rp_rapmoney_sum
  120. end type
  121. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_rapmoney_sum
  122. end type
  123. type st_cust from w_publ_easyq`st_cust within w_rp_rapmoney_sum
  124. end type
  125. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_rapmoney_sum
  126. boolean visible = true
  127. integer x = 1390
  128. integer y = 96
  129. end type
  130. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_rapmoney_sum
  131. end type
  132. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_rapmoney_sum
  133. end type
  134. type pb_2 from w_publ_easyq`pb_2 within w_rp_rapmoney_sum
  135. end type
  136. type cb_help from w_publ_easyq`cb_help within w_rp_rapmoney_sum
  137. integer x = 1006
  138. end type
  139. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_rapmoney_sum
  140. end type
  141. type gb_1 from w_publ_easyq`gb_1 within w_rp_rapmoney_sum
  142. end type
  143. type ln_bar from w_publ_easyq`ln_bar within w_rp_rapmoney_sum
  144. end type
  145. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_rapmoney_sum
  146. end type
  147. type r_bar from w_publ_easyq`r_bar within w_rp_rapmoney_sum
  148. end type
  149. type ln_1 from w_publ_easyq`ln_1 within w_rp_rapmoney_sum
  150. end type
  151. type ln_2 from w_publ_easyq`ln_2 within w_rp_rapmoney_sum
  152. end type
  153. type ln_3 from w_publ_easyq`ln_3 within w_rp_rapmoney_sum
  154. end type
  155. type ln_4 from w_publ_easyq`ln_4 within w_rp_rapmoney_sum
  156. end type
  157. type cbx_1 from checkbox within w_rp_rapmoney_sum
  158. integer x = 1532
  159. integer y = 221
  160. integer width = 527
  161. integer height = 61
  162. boolean bringtotop = true
  163. integer textsize = -9
  164. integer weight = 400
  165. fontcharset fontcharset = gb2312charset!
  166. fontpitch fontpitch = variable!
  167. string facename = "宋体"
  168. long textcolor = 33554432
  169. long backcolor = 134217739
  170. string text = "显示无效出纳账号"
  171. end type
  172. event clicked;if this.checked then
  173. ll_use = 0
  174. else
  175. ll_use = 1
  176. end if
  177. cb_1.TriggerEvent(Clicked!)
  178. end event