w_rp_amerce_mx.srw 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. $PBExportHeader$w_rp_amerce_mx.srw
  2. forward
  3. global type w_rp_amerce_mx from w_publ_easyq
  4. end type
  5. type ddlb_flag from dropdownlistbox within w_rp_amerce_mx
  6. end type
  7. end forward
  8. global type w_rp_amerce_mx from w_publ_easyq
  9. string title = "罚款单明细统计表"
  10. ddlb_flag ddlb_flag
  11. end type
  12. global w_rp_amerce_mx w_rp_amerce_mx
  13. type variables
  14. Long cur_flag = -1 //-1:全部,0未审,1已审核
  15. end variables
  16. on w_rp_amerce_mx.create
  17. int iCurrent
  18. call super::create
  19. this.ddlb_flag=create ddlb_flag
  20. iCurrent=UpperBound(this.Control)
  21. this.Control[iCurrent+1]=this.ddlb_flag
  22. end on
  23. on w_rp_amerce_mx.destroy
  24. call super::destroy
  25. destroy(this.ddlb_flag)
  26. end on
  27. event open;call super::open;EM_1.TEXT=string(today(),'yyyy-mm')+'-01'
  28. EM_2.TEXT=STRING(TODAY(),'YYYY-MM-DD')
  29. //s_hide_col s_col
  30. //s_col.col_1 = 'u_outwaremx_costamt'
  31. //s_col.col_2 = 'gfamt'
  32. //f_hide_col(490,dw_1,s_col)
  33. IF cbx_loginretr.Checked THEN
  34. cb_1.TriggerEvent(Clicked!)
  35. END IF
  36. end event
  37. event ue_before_open;call super::ue_before_open;if_ue_retr=true
  38. if_ue_filter=true
  39. if_ue_sort=true
  40. if_ue_sentdataout=true
  41. end event
  42. type cb_func from w_publ_easyq`cb_func within w_rp_amerce_mx
  43. end type
  44. type cb_exit from w_publ_easyq`cb_exit within w_rp_amerce_mx
  45. end type
  46. type cb_2 from w_publ_easyq`cb_2 within w_rp_amerce_mx
  47. integer taborder = 120
  48. boolean bringtotop = true
  49. end type
  50. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_amerce_mx
  51. boolean bringtotop = true
  52. end type
  53. type cb_1 from w_publ_easyq`cb_1 within w_rp_amerce_mx
  54. boolean bringtotop = true
  55. end type
  56. event cb_1::clicked;DateTime first_date,end_date
  57. first_date = DateTime(Date(em_1.Text),Time(0))
  58. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  59. IF first_date < sys_showsaledata_mindt THEN first_date = sys_showsaledata_mindt
  60. dw_1.Retrieve(first_date,end_date,cur_flag,sys_user_spttype )
  61. end event
  62. type st_3 from w_publ_easyq`st_3 within w_rp_amerce_mx
  63. end type
  64. type st_4 from w_publ_easyq`st_4 within w_rp_amerce_mx
  65. end type
  66. type em_1 from w_publ_easyq`em_1 within w_rp_amerce_mx
  67. integer x = 224
  68. integer taborder = 130
  69. end type
  70. type em_2 from w_publ_easyq`em_2 within w_rp_amerce_mx
  71. integer taborder = 140
  72. end type
  73. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_amerce_mx
  74. integer y = 12
  75. end type
  76. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_amerce_mx
  77. integer x = 1321
  78. integer y = 8
  79. end type
  80. type dw_1 from w_publ_easyq`dw_1 within w_rp_amerce_mx
  81. integer y = 312
  82. integer width = 2743
  83. integer height = 928
  84. string dataobject = "dw_rp_amerce_mx"
  85. end type
  86. event dw_1::doubleclicked;call super::doubleclicked;//IF row > 0 THEN
  87. // String ls_code
  88. // Long ll_scid
  89. // int li_thflag
  90. //
  91. // ll_scid = THIS.Object.u_outware_scid[row]
  92. // ls_code = THIS.Object.u_outware_outwarecode[row]
  93. // li_thflag = THIS.Object.thflag[row]
  94. //
  95. // if li_thflag = 1 then
  96. // f_open_win('w_outware_sale_th',ll_scid,ls_code)
  97. // else
  98. // f_open_win('w_outware_sale',ll_scid,ls_code)
  99. // end if
  100. //END IF
  101. end event
  102. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_amerce_mx
  103. end type
  104. type sle_cust from w_publ_easyq`sle_cust within w_rp_amerce_mx
  105. end type
  106. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_amerce_mx
  107. end type
  108. type st_cust from w_publ_easyq`st_cust within w_rp_amerce_mx
  109. end type
  110. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_amerce_mx
  111. boolean visible = true
  112. integer x = 1321
  113. end type
  114. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_amerce_mx
  115. end type
  116. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_amerce_mx
  117. end type
  118. type pb_2 from w_publ_easyq`pb_2 within w_rp_amerce_mx
  119. end type
  120. type cb_help from w_publ_easyq`cb_help within w_rp_amerce_mx
  121. end type
  122. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_amerce_mx
  123. end type
  124. type gb_1 from w_publ_easyq`gb_1 within w_rp_amerce_mx
  125. end type
  126. type ln_bar from w_publ_easyq`ln_bar within w_rp_amerce_mx
  127. end type
  128. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_amerce_mx
  129. end type
  130. type r_bar from w_publ_easyq`r_bar within w_rp_amerce_mx
  131. end type
  132. type ln_1 from w_publ_easyq`ln_1 within w_rp_amerce_mx
  133. end type
  134. type ln_2 from w_publ_easyq`ln_2 within w_rp_amerce_mx
  135. end type
  136. type ln_3 from w_publ_easyq`ln_3 within w_rp_amerce_mx
  137. end type
  138. type ln_4 from w_publ_easyq`ln_4 within w_rp_amerce_mx
  139. end type
  140. type ddlb_flag from dropdownlistbox within w_rp_amerce_mx
  141. integer x = 1495
  142. integer y = 200
  143. integer width = 379
  144. integer height = 484
  145. integer taborder = 90
  146. boolean bringtotop = true
  147. integer textsize = -9
  148. integer weight = 400
  149. fontcharset fontcharset = gb2312charset!
  150. fontpitch fontpitch = variable!
  151. string facename = "宋体"
  152. long textcolor = 33554432
  153. string text = "[全部]"
  154. boolean sorted = false
  155. boolean vscrollbar = true
  156. string item[] = {"[全部]","待审核","已审核"}
  157. borderstyle borderstyle = stylelowered!
  158. end type
  159. event selectionchanged;if index=1 then
  160. cur_flag=-1
  161. elseif index=2 then
  162. cur_flag= 0
  163. elseif index=3 then
  164. cur_flag= 1
  165. end if
  166. cb_1.triggerevent(clicked!)
  167. end event