w_rp_mustpaymx_other.srw 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. $PBExportHeader$w_rp_mustpaymx_other.srw
  2. forward
  3. global type w_rp_mustpaymx_other from w_publ_easyq
  4. end type
  5. type ddlb_status from dropdownlistbox within w_rp_mustpaymx_other
  6. end type
  7. type st_1 from statictext within w_rp_mustpaymx_other
  8. end type
  9. type st_2 from statictext within w_rp_mustpaymx_other
  10. end type
  11. type ddlb_scid from uo_ddlb_scid within w_rp_mustpaymx_other
  12. end type
  13. end forward
  14. global type w_rp_mustpaymx_other from w_publ_easyq
  15. string title = "其他应付单明细表"
  16. event user_key ( )
  17. event ue_f8 ( )
  18. ddlb_status ddlb_status
  19. st_1 st_1
  20. st_2 st_2
  21. ddlb_scid ddlb_scid
  22. end type
  23. global w_rp_mustpaymx_other w_rp_mustpaymx_other
  24. type variables
  25. Int cur_flag = -1
  26. long cur_scid = -1
  27. end variables
  28. on w_rp_mustpaymx_other.create
  29. int iCurrent
  30. call super::create
  31. this.ddlb_status=create ddlb_status
  32. this.st_1=create st_1
  33. this.st_2=create st_2
  34. this.ddlb_scid=create ddlb_scid
  35. iCurrent=UpperBound(this.Control)
  36. this.Control[iCurrent+1]=this.ddlb_status
  37. this.Control[iCurrent+2]=this.st_1
  38. this.Control[iCurrent+3]=this.st_2
  39. this.Control[iCurrent+4]=this.ddlb_scid
  40. end on
  41. on w_rp_mustpaymx_other.destroy
  42. call super::destroy
  43. destroy(this.ddlb_status)
  44. destroy(this.st_1)
  45. destroy(this.st_2)
  46. destroy(this.ddlb_scid)
  47. end on
  48. event open;call super::open;EM_1.Text = String(Today(),'yyyy-mm')+'-01'
  49. EM_2.Text = String(Today(),'YYYY-MM-DD')
  50. IF cbx_loginretr.Checked THEN
  51. cb_1.TriggerEvent(Clicked!)
  52. END IF
  53. end event
  54. event ue_before_open;call super::ue_before_open;if_ue_retr = TRUE
  55. if_ue_filter = TRUE
  56. if_ue_sort = TRUE
  57. if_ue_sentdataout = TRUE
  58. end event
  59. type cb_func from w_publ_easyq`cb_func within w_rp_mustpaymx_other
  60. end type
  61. type cb_exit from w_publ_easyq`cb_exit within w_rp_mustpaymx_other
  62. end type
  63. type cb_2 from w_publ_easyq`cb_2 within w_rp_mustpaymx_other
  64. integer taborder = 120
  65. boolean bringtotop = true
  66. end type
  67. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_mustpaymx_other
  68. boolean bringtotop = true
  69. end type
  70. type cb_1 from w_publ_easyq`cb_1 within w_rp_mustpaymx_other
  71. boolean bringtotop = true
  72. end type
  73. event cb_1::clicked;call super::clicked;DateTime firstdate,enddate
  74. firstdate = DateTime(Date(em_1.Text),Time(0))
  75. enddate = DateTime(Date(em_2.Text),Time('23:59:59'))
  76. dw_1.Retrieve(cur_flag,firstdate,enddate, cur_scid)
  77. end event
  78. type st_3 from w_publ_easyq`st_3 within w_rp_mustpaymx_other
  79. integer x = 23
  80. integer y = 204
  81. end type
  82. type st_4 from w_publ_easyq`st_4 within w_rp_mustpaymx_other
  83. integer x = 731
  84. integer y = 204
  85. end type
  86. type em_1 from w_publ_easyq`em_1 within w_rp_mustpaymx_other
  87. integer x = 224
  88. integer y = 188
  89. integer taborder = 140
  90. end type
  91. type em_2 from w_publ_easyq`em_2 within w_rp_mustpaymx_other
  92. integer y = 188
  93. integer taborder = 150
  94. end type
  95. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_mustpaymx_other
  96. integer x = 1531
  97. end type
  98. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_mustpaymx_other
  99. end type
  100. type dw_1 from w_publ_easyq`dw_1 within w_rp_mustpaymx_other
  101. event dw_key pbm_dwnkey
  102. integer y = 300
  103. integer width = 2953
  104. integer height = 1068
  105. string dataobject = "dw_rp_mustpaymx_other"
  106. end type
  107. event dw_1::rowfocuschanged;if currentrow<=0 then return
  108. this.selectrow(0,false)
  109. this.scrolltorow(currentrow)
  110. this.selectrow(currentrow,true)
  111. end event
  112. event dw_1::doubleclicked;call super::doubleclicked;//IF if_mdf_title THEN
  113. // IF Lower(Left(dwo.Type,4)) = 'text' THEN
  114. // s_inputbox S_SREU
  115. // String LS_STR,column_name
  116. // S_SREU.Title = '目前标题为: '+dwo.Text+' 。请输入新标题: '
  117. // S_SREU.OLD_TEXT = dwo.Text
  118. // column_name = dwo.Name
  119. //
  120. // OpenWithParm(w_inputbox,S_SREU)
  121. // LS_STR = Message.StringParm
  122. // IF Trim(LS_STR) <> '' And dwo.Text <> LS_STR THEN
  123. // This.Modify(column_name+'.text="'+LS_STR+'"')
  124. // END IF
  125. //
  126. // elseIF Lower(Left(dwo.Type,4)) = 'comp' THEN
  127. // string col
  128. // col = dwo.Name
  129. // messagebox('', col)
  130. // END IF
  131. //END IF
  132. end event
  133. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_mustpaymx_other
  134. end type
  135. type sle_cust from w_publ_easyq`sle_cust within w_rp_mustpaymx_other
  136. end type
  137. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_mustpaymx_other
  138. end type
  139. type st_cust from w_publ_easyq`st_cust within w_rp_mustpaymx_other
  140. end type
  141. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_mustpaymx_other
  142. boolean visible = true
  143. end type
  144. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_mustpaymx_other
  145. end type
  146. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_mustpaymx_other
  147. end type
  148. type pb_2 from w_publ_easyq`pb_2 within w_rp_mustpaymx_other
  149. end type
  150. type cb_help from w_publ_easyq`cb_help within w_rp_mustpaymx_other
  151. end type
  152. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_mustpaymx_other
  153. end type
  154. type gb_1 from w_publ_easyq`gb_1 within w_rp_mustpaymx_other
  155. integer x = 526
  156. integer y = 552
  157. integer width = 370
  158. end type
  159. type ln_bar from w_publ_easyq`ln_bar within w_rp_mustpaymx_other
  160. end type
  161. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_mustpaymx_other
  162. end type
  163. type r_bar from w_publ_easyq`r_bar within w_rp_mustpaymx_other
  164. end type
  165. type ln_1 from w_publ_easyq`ln_1 within w_rp_mustpaymx_other
  166. end type
  167. type ln_2 from w_publ_easyq`ln_2 within w_rp_mustpaymx_other
  168. end type
  169. type ln_3 from w_publ_easyq`ln_3 within w_rp_mustpaymx_other
  170. boolean visible = false
  171. end type
  172. type ln_4 from w_publ_easyq`ln_4 within w_rp_mustpaymx_other
  173. boolean visible = false
  174. end type
  175. type ddlb_status from dropdownlistbox within w_rp_mustpaymx_other
  176. integer x = 1632
  177. integer y = 196
  178. integer width = 325
  179. integer height = 296
  180. integer taborder = 160
  181. boolean bringtotop = true
  182. integer textsize = -9
  183. integer weight = 400
  184. fontcharset fontcharset = gb2312charset!
  185. fontpitch fontpitch = variable!
  186. string facename = "宋体"
  187. long textcolor = 33554432
  188. string text = "[全部]"
  189. boolean sorted = false
  190. string item[] = {"[全部]","待审核","已审核"}
  191. borderstyle borderstyle = stylelowered!
  192. end type
  193. event selectionchanged;IF Index = 1 THEN
  194. cur_flag = -1
  195. ELSEIF Index = 2 THEN
  196. cur_flag = 0
  197. ELSEIF Index = 3 THEN
  198. cur_flag = 1
  199. END IF
  200. cb_1.TriggerEvent(clicked!)
  201. end event
  202. type st_1 from statictext within w_rp_mustpaymx_other
  203. integer x = 1495
  204. integer y = 208
  205. integer width = 137
  206. integer height = 48
  207. boolean bringtotop = true
  208. integer textsize = -9
  209. integer weight = 400
  210. fontcharset fontcharset = gb2312charset!
  211. fontpitch fontpitch = variable!
  212. string facename = "宋体"
  213. long textcolor = 33554432
  214. long backcolor = 134217739
  215. string text = "状态"
  216. boolean focusrectangle = false
  217. end type
  218. type st_2 from statictext within w_rp_mustpaymx_other
  219. integer x = 2016
  220. integer y = 208
  221. integer width = 165
  222. integer height = 48
  223. boolean bringtotop = true
  224. integer textsize = -9
  225. integer weight = 400
  226. fontcharset fontcharset = gb2312charset!
  227. fontpitch fontpitch = variable!
  228. string facename = "宋体"
  229. long textcolor = 33554432
  230. long backcolor = 134217739
  231. string text = "分部"
  232. alignment alignment = right!
  233. boolean focusrectangle = false
  234. end type
  235. type ddlb_scid from uo_ddlb_scid within w_rp_mustpaymx_other
  236. integer x = 2199
  237. integer y = 196
  238. integer width = 549
  239. integer height = 1120
  240. integer taborder = 30
  241. boolean bringtotop = true
  242. end type
  243. event constructor;call super::constructor;cur_scid = This.uo_scid
  244. end event
  245. event selectionchanged;call super::selectionchanged;cur_scid = This.uo_scid
  246. cb_1.TriggerEvent(clicked!)
  247. end event