w_rp_cus_price.srw 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. $PBExportHeader$w_rp_cus_price.srw
  2. forward
  3. global type w_rp_cus_price from w_publ_easyq
  4. end type
  5. type tv_1 from uo_tv_cusarea within w_rp_cus_price
  6. end type
  7. end forward
  8. global type w_rp_cus_price from w_publ_easyq
  9. string title = "客户销售金额汇总表"
  10. tv_1 tv_1
  11. end type
  12. global w_rp_cus_price w_rp_cus_price
  13. type variables
  14. string ls_areaname = ''
  15. end variables
  16. forward prototypes
  17. public function integer wf_dw ()
  18. end prototypes
  19. public function integer wf_dw ();String ls_windowname
  20. ls_windowname = THIS.ClassName ( )
  21. String ls_old_dwname,ls_new_dwname = ''
  22. ls_old_dwname = dw_1.DataObject
  23. ls_new_dwname = f_get_dwprint_dynamic_chname(ls_old_dwname,ls_windowname)
  24. IF ls_new_dwname = '' THEN
  25. ls_new_dwname = ls_old_dwname
  26. END IF
  27. dw_1.DataObject = ls_new_dwname
  28. dw_1.SetTransObject(sqlca)
  29. dw_1.uf_read_profile_layout()
  30. //
  31. f_title_change(dw_1)
  32. RETURN 1
  33. end function
  34. on w_rp_cus_price.create
  35. int iCurrent
  36. call super::create
  37. this.tv_1=create tv_1
  38. iCurrent=UpperBound(this.Control)
  39. this.Control[iCurrent+1]=this.tv_1
  40. end on
  41. on w_rp_cus_price.destroy
  42. call super::destroy
  43. destroy(this.tv_1)
  44. end on
  45. event resize;call super::resize;tv_1.height=dw_1.height
  46. end event
  47. event ue_before_openretrieve;call super::ue_before_openretrieve;//s_hide_col s_col1,s_col2
  48. //
  49. //s_col1.col_1 = 'costamt'
  50. //f_hide_col(490,dw_1,s_col1)
  51. //
  52. //s_col2.col_1 = 'gpamt'
  53. //f_hide_col(843,dw_1,s_col2)
  54. //
  55. end event
  56. type cb_func from w_publ_easyq`cb_func within w_rp_cus_price
  57. end type
  58. type cb_exit from w_publ_easyq`cb_exit within w_rp_cus_price
  59. end type
  60. type cb_2 from w_publ_easyq`cb_2 within w_rp_cus_price
  61. boolean bringtotop = true
  62. end type
  63. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_cus_price
  64. boolean bringtotop = true
  65. end type
  66. type cb_1 from w_publ_easyq`cb_1 within w_rp_cus_price
  67. boolean bringtotop = true
  68. end type
  69. event cb_1::clicked;call super::clicked;//DateTime first_date,end_date
  70. //
  71. //first_date = DateTime(Date(em_1.Text),Time(0))
  72. //end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  73. Int li_option_outrep, li_option_area
  74. IF sys_power_issuper THEN
  75. li_option_outrep = 0
  76. ELSE
  77. li_option_outrep = sys_option_outrep
  78. END IF
  79. IF sys_power_issuper THEN
  80. li_option_area = 0
  81. ELSE
  82. li_option_area = sys_option_cusarea
  83. END IF
  84. dw_1.Retrieve(sys_areaid,li_option_area,ls_areaname, sys_user_outrep, li_option_outrep)
  85. end event
  86. type st_3 from w_publ_easyq`st_3 within w_rp_cus_price
  87. boolean visible = false
  88. integer x = 1426
  89. integer y = 204
  90. end type
  91. type st_4 from w_publ_easyq`st_4 within w_rp_cus_price
  92. boolean visible = false
  93. integer x = 2117
  94. integer y = 204
  95. end type
  96. type em_1 from w_publ_easyq`em_1 within w_rp_cus_price
  97. boolean visible = false
  98. integer x = 1600
  99. integer y = 188
  100. integer taborder = 110
  101. end type
  102. type em_2 from w_publ_easyq`em_2 within w_rp_cus_price
  103. boolean visible = false
  104. integer x = 2217
  105. integer y = 188
  106. integer taborder = 120
  107. end type
  108. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_cus_price
  109. integer x = 1618
  110. integer y = 4
  111. end type
  112. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_cus_price
  113. integer x = 1408
  114. integer y = 4
  115. end type
  116. type dw_1 from w_publ_easyq`dw_1 within w_rp_cus_price
  117. integer x = 800
  118. integer y = 188
  119. integer width = 1938
  120. integer height = 1008
  121. string dataobject = "dw_rp_cus_price"
  122. end type
  123. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_cus_price
  124. end type
  125. type sle_cust from w_publ_easyq`sle_cust within w_rp_cus_price
  126. end type
  127. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_cus_price
  128. end type
  129. type st_cust from w_publ_easyq`st_cust within w_rp_cus_price
  130. end type
  131. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_cus_price
  132. boolean visible = true
  133. integer x = 1408
  134. integer y = 100
  135. end type
  136. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_cus_price
  137. boolean visible = false
  138. integer x = 2011
  139. integer y = 188
  140. end type
  141. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_cus_price
  142. boolean visible = false
  143. integer x = 2638
  144. integer y = 188
  145. end type
  146. type pb_2 from w_publ_easyq`pb_2 within w_rp_cus_price
  147. boolean visible = false
  148. integer x = 2743
  149. integer y = 188
  150. end type
  151. type cb_help from w_publ_easyq`cb_help within w_rp_cus_price
  152. end type
  153. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_cus_price
  154. end type
  155. type gb_1 from w_publ_easyq`gb_1 within w_rp_cus_price
  156. end type
  157. type ln_bar from w_publ_easyq`ln_bar within w_rp_cus_price
  158. end type
  159. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_cus_price
  160. end type
  161. type r_bar from w_publ_easyq`r_bar within w_rp_cus_price
  162. end type
  163. type ln_1 from w_publ_easyq`ln_1 within w_rp_cus_price
  164. end type
  165. type ln_2 from w_publ_easyq`ln_2 within w_rp_cus_price
  166. end type
  167. type ln_3 from w_publ_easyq`ln_3 within w_rp_cus_price
  168. end type
  169. type ln_4 from w_publ_easyq`ln_4 within w_rp_cus_price
  170. end type
  171. type tv_1 from uo_tv_cusarea within w_rp_cus_price
  172. integer y = 188
  173. integer width = 800
  174. integer height = 1008
  175. integer taborder = 60
  176. boolean bringtotop = true
  177. integer textsize = -9
  178. fontcharset fontcharset = gb2312charset!
  179. fontfamily fontfamily = anyfont!
  180. string facename = "宋体"
  181. end type
  182. event selectionchanged;call super::selectionchanged;
  183. ls_areaname = this.uo_cur_info.areaname
  184. ls_areaname = ls_areaname + '%'
  185. cb_1.triggerevent(clicked!)
  186. end event