w_rp_jg_spt.srw 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. $PBExportHeader$w_rp_jg_spt.srw
  2. forward
  3. global type w_rp_jg_spt from w_publ_easyq
  4. end type
  5. type ddlb_2 from uo_ddlb_storageid within w_rp_jg_spt
  6. end type
  7. type ddlb_3 from dropdownlistbox within w_rp_jg_spt
  8. end type
  9. type ddlb_status from dropdownlistbox within w_rp_jg_spt
  10. end type
  11. end forward
  12. global type w_rp_jg_spt from w_publ_easyq
  13. string title = "外协商加工金额汇总表"
  14. ddlb_2 ddlb_2
  15. ddlb_3 ddlb_3
  16. ddlb_status ddlb_status
  17. end type
  18. global w_rp_jg_spt w_rp_jg_spt
  19. type variables
  20. Long cur_storageid_arr[]
  21. Long cur_flag = -1
  22. Long cur_secflag = -1
  23. end variables
  24. on w_rp_jg_spt.create
  25. int iCurrent
  26. call super::create
  27. this.ddlb_2=create ddlb_2
  28. this.ddlb_3=create ddlb_3
  29. this.ddlb_status=create ddlb_status
  30. iCurrent=UpperBound(this.Control)
  31. this.Control[iCurrent+1]=this.ddlb_2
  32. this.Control[iCurrent+2]=this.ddlb_3
  33. this.Control[iCurrent+3]=this.ddlb_status
  34. end on
  35. on w_rp_jg_spt.destroy
  36. call super::destroy
  37. destroy(this.ddlb_2)
  38. destroy(this.ddlb_3)
  39. destroy(this.ddlb_status)
  40. end on
  41. event open;call super::open;//this.triggerevent('ue_before_open')
  42. //wf_movetocenter()
  43. //
  44. //dw_1.SetTransObject (sqlca)
  45. //
  46. //EM_1.TEXT=string(today(),'yyyy-mm')+'-01'
  47. //EM_2.TEXT=STRING(TODAY(),'YYYY-MM-DD')
  48. //
  49. //dw_1.RBUTTON_FILTER_USE=true //右键查询功能开关
  50. //if_ue_retr=true
  51. //if_ue_filter=true
  52. //if_ue_sort=true
  53. //if_ue_sentdataout=true
  54. //
  55. //IF cbx_loginretr.Checked THEN
  56. // cb_1.TriggerEvent(Clicked!)
  57. //END IF
  58. end event
  59. type cb_func from w_publ_easyq`cb_func within w_rp_jg_spt
  60. end type
  61. type cb_exit from w_publ_easyq`cb_exit within w_rp_jg_spt
  62. end type
  63. type cb_2 from w_publ_easyq`cb_2 within w_rp_jg_spt
  64. integer taborder = 100
  65. boolean bringtotop = true
  66. end type
  67. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_jg_spt
  68. boolean bringtotop = true
  69. end type
  70. type cb_1 from w_publ_easyq`cb_1 within w_rp_jg_spt
  71. boolean bringtotop = true
  72. end type
  73. event cb_1::clicked;call super::clicked;datetime first_date,end_date
  74. first_date=datetime(date(em_1.text),time(0))
  75. end_date=datetime(date(em_2.text),time('23:59:59'))
  76. dw_1.retrieve(first_date,end_date,cur_flag,cur_storageid_arr,cur_secflag,sys_user_spttype)
  77. s_hide_col s_col_mtrlsectype
  78. s_col_mtrlsectype.col_1 = 'u_mtrldef_mtrlsectype'
  79. f_hide_col(1308,dw_1,s_col_mtrlsectype)
  80. s_hide_col s_col_zxmtrlmode
  81. s_col_zxmtrlmode.col_1 = 'u_mtrldef_zxmtrlmode'
  82. f_hide_col(1309,dw_1,s_col_zxmtrlmode)
  83. s_hide_col s_col
  84. IF dw_1.dataobject = 'dw_rp_jg_spt' THEN
  85. s_col.col_1 = 'amt'
  86. f_hide_col(121,dw_1,s_col)
  87. ELSEIF dw_1.dataobject = 'dw_rp_jg_spt_banktype' THEN
  88. s_col.col_1 = 'amt'
  89. f_hide_col(121,dw_1,s_col)
  90. END IF
  91. end event
  92. type st_3 from w_publ_easyq`st_3 within w_rp_jg_spt
  93. integer x = 1147
  94. end type
  95. type st_4 from w_publ_easyq`st_4 within w_rp_jg_spt
  96. integer x = 1865
  97. end type
  98. type em_1 from w_publ_easyq`em_1 within w_rp_jg_spt
  99. integer x = 1349
  100. integer width = 411
  101. integer taborder = 110
  102. end type
  103. type em_2 from w_publ_easyq`em_2 within w_rp_jg_spt
  104. integer x = 1961
  105. integer width = 411
  106. integer taborder = 130
  107. end type
  108. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_jg_spt
  109. integer x = 1573
  110. integer y = 8
  111. end type
  112. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_jg_spt
  113. integer x = 1349
  114. integer y = 8
  115. end type
  116. type dw_1 from w_publ_easyq`dw_1 within w_rp_jg_spt
  117. integer y = 308
  118. integer width = 2752
  119. string dataobject = "dw_rp_jg_spt"
  120. end type
  121. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_jg_spt
  122. end type
  123. type sle_cust from w_publ_easyq`sle_cust within w_rp_jg_spt
  124. end type
  125. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_jg_spt
  126. end type
  127. type st_cust from w_publ_easyq`st_cust within w_rp_jg_spt
  128. end type
  129. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_jg_spt
  130. boolean visible = true
  131. integer x = 1349
  132. end type
  133. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_jg_spt
  134. integer x = 1765
  135. integer y = 188
  136. end type
  137. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_jg_spt
  138. integer x = 2373
  139. integer y = 188
  140. end type
  141. type pb_2 from w_publ_easyq`pb_2 within w_rp_jg_spt
  142. integer x = 2473
  143. integer y = 188
  144. end type
  145. type cb_help from w_publ_easyq`cb_help within w_rp_jg_spt
  146. end type
  147. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_jg_spt
  148. end type
  149. type gb_1 from w_publ_easyq`gb_1 within w_rp_jg_spt
  150. end type
  151. type ln_bar from w_publ_easyq`ln_bar within w_rp_jg_spt
  152. end type
  153. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_jg_spt
  154. end type
  155. type r_bar from w_publ_easyq`r_bar within w_rp_jg_spt
  156. end type
  157. type ln_1 from w_publ_easyq`ln_1 within w_rp_jg_spt
  158. end type
  159. type ln_2 from w_publ_easyq`ln_2 within w_rp_jg_spt
  160. end type
  161. type ln_3 from w_publ_easyq`ln_3 within w_rp_jg_spt
  162. end type
  163. type ln_4 from w_publ_easyq`ln_4 within w_rp_jg_spt
  164. end type
  165. type ddlb_2 from uo_ddlb_storageid within w_rp_jg_spt
  166. integer x = 14
  167. integer y = 196
  168. integer width = 681
  169. integer height = 1108
  170. integer taborder = 130
  171. boolean bringtotop = true
  172. end type
  173. event constructor;call super::constructor;cur_storageid_arr = this.uo_storageid_arr
  174. end event
  175. event selectionchanged;call super::selectionchanged;cur_storageid_arr = this.uo_storageid_arr
  176. cb_1.triggerevent(clicked!)
  177. end event
  178. type ddlb_3 from dropdownlistbox within w_rp_jg_spt
  179. integer x = 1938
  180. integer y = 36
  181. integer width = 411
  182. integer height = 300
  183. integer taborder = 80
  184. boolean bringtotop = true
  185. integer textsize = -9
  186. integer weight = 400
  187. fontcharset fontcharset = gb2312charset!
  188. fontpitch fontpitch = variable!
  189. string facename = "宋体"
  190. long textcolor = 33554432
  191. string text = "格式一"
  192. boolean sorted = false
  193. string item[] = {"格式一","格式二"}
  194. borderstyle borderstyle = stylelowered!
  195. end type
  196. event selectionchanged;dw_1.uf_save_profile_layout()
  197. IF this.Text = '格式一' THEN
  198. dw_1.DataObject = 'dw_rp_jg_spt'
  199. ELSE
  200. dw_1.DataObject = 'dw_rp_jg_spt_banktype'
  201. END IF
  202. //dw_1.SetTransObject(sqlca)
  203. wf_replacedw()
  204. //dw_1.ins_INIfile_name = sys_inifilename
  205. //dw_1.ins_opemp = publ_operator
  206. //dw_1.cardw_empid = sys_empid
  207. //dw_1.cur_DataObject = dw_1.DataObject
  208. //
  209. //dw_1.uf_read_profile_layout()
  210. cb_1.TriggerEvent(Clicked!)
  211. end event
  212. type ddlb_status from dropdownlistbox within w_rp_jg_spt
  213. integer x = 713
  214. integer y = 196
  215. integer width = 411
  216. integer height = 556
  217. integer taborder = 50
  218. boolean bringtotop = true
  219. integer textsize = -9
  220. integer weight = 400
  221. fontcharset fontcharset = gb2312charset!
  222. fontpitch fontpitch = variable!
  223. string facename = "宋体"
  224. long textcolor = 33554432
  225. string text = "[全部]"
  226. boolean sorted = false
  227. string item[] = {"[全部]","待仓库审","待财务审","审核完毕"}
  228. borderstyle borderstyle = stylelowered!
  229. end type
  230. event selectionchanged;IF Index = 1 THEN
  231. cur_flag = -1
  232. cur_secflag = -1
  233. ELSEIF Index = 2 THEN
  234. cur_flag = 0
  235. cur_secflag = 0
  236. ELSEIF Index = 3 THEN
  237. cur_flag = 1
  238. cur_secflag = 0
  239. ELSEIF Index = 4 THEN
  240. cur_flag = 1
  241. cur_secflag = 1
  242. END IF
  243. cb_1.TriggerEvent(clicked!)
  244. end event