w_rp_income_expenses.srw 8.4 KB

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