w_rp_workprice_change.srw 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. $PBExportHeader$w_rp_workprice_change.srw
  2. forward
  3. global type w_rp_workprice_change from w_publ_easyq
  4. end type
  5. type ddlb_flag from dropdownlistbox within w_rp_workprice_change
  6. end type
  7. type st_1 from statictext within w_rp_workprice_change
  8. end type
  9. end forward
  10. global type w_rp_workprice_change from w_publ_easyq
  11. string title = "工价表变更单明细表"
  12. ddlb_flag ddlb_flag
  13. st_1 st_1
  14. end type
  15. global w_rp_workprice_change w_rp_workprice_change
  16. type variables
  17. Long cur_flag = -1 //
  18. end variables
  19. on w_rp_workprice_change.create
  20. int iCurrent
  21. call super::create
  22. this.ddlb_flag=create ddlb_flag
  23. this.st_1=create st_1
  24. iCurrent=UpperBound(this.Control)
  25. this.Control[iCurrent+1]=this.ddlb_flag
  26. this.Control[iCurrent+2]=this.st_1
  27. end on
  28. on w_rp_workprice_change.destroy
  29. call super::destroy
  30. destroy(this.ddlb_flag)
  31. destroy(this.st_1)
  32. end on
  33. event open;call super::open;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_workprice_change
  43. end type
  44. type cb_exit from w_publ_easyq`cb_exit within w_rp_workprice_change
  45. end type
  46. type cb_2 from w_publ_easyq`cb_2 within w_rp_workprice_change
  47. integer taborder = 120
  48. boolean bringtotop = true
  49. end type
  50. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_workprice_change
  51. boolean bringtotop = true
  52. end type
  53. type cb_1 from w_publ_easyq`cb_1 within w_rp_workprice_change
  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. String ls_cust_str, ls_mtrl_str
  60. IF Pos(sle_mtrl.Text,"%") <> 0 THEN
  61. ls_mtrl_str = trim(sle_mtrl.Text)
  62. ELSE
  63. ls_mtrl_str = "%"+trim(sle_mtrl.Text)+"%"
  64. END IF
  65. dw_1.Retrieve(cur_flag,first_date,end_date,ls_mtrl_str)
  66. end event
  67. type st_3 from w_publ_easyq`st_3 within w_rp_workprice_change
  68. integer x = 571
  69. integer y = 204
  70. end type
  71. type st_4 from w_publ_easyq`st_4 within w_rp_workprice_change
  72. integer x = 1303
  73. integer y = 204
  74. end type
  75. type em_1 from w_publ_easyq`em_1 within w_rp_workprice_change
  76. integer x = 791
  77. integer y = 188
  78. integer taborder = 130
  79. end type
  80. type em_2 from w_publ_easyq`em_2 within w_rp_workprice_change
  81. integer x = 1408
  82. integer y = 188
  83. integer taborder = 140
  84. end type
  85. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_workprice_change
  86. integer x = 1531
  87. integer y = 12
  88. integer width = 334
  89. end type
  90. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_workprice_change
  91. integer y = 12
  92. end type
  93. type dw_1 from w_publ_easyq`dw_1 within w_rp_workprice_change
  94. integer y = 404
  95. integer width = 2743
  96. integer height = 928
  97. string dataobject = "dw_rp_workprice_change"
  98. end type
  99. event dw_1::doubleclicked;call super::doubleclicked;IF row > 0 THEN
  100. String ls_code
  101. ls_code = THIS.Object.u_workprice_change_billcode[row]
  102. f_open_win(0,ls_code)
  103. END IF
  104. end event
  105. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_workprice_change
  106. boolean visible = true
  107. integer x = 489
  108. integer y = 304
  109. end type
  110. type sle_cust from w_publ_easyq`sle_cust within w_rp_workprice_change
  111. end type
  112. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_workprice_change
  113. boolean visible = true
  114. integer x = 27
  115. integer y = 316
  116. end type
  117. type st_cust from w_publ_easyq`st_cust within w_rp_workprice_change
  118. end type
  119. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_workprice_change
  120. boolean visible = true
  121. end type
  122. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_workprice_change
  123. integer x = 1202
  124. integer y = 188
  125. end type
  126. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_workprice_change
  127. integer x = 1829
  128. integer y = 188
  129. end type
  130. type pb_2 from w_publ_easyq`pb_2 within w_rp_workprice_change
  131. integer x = 1938
  132. integer y = 188
  133. end type
  134. type cb_help from w_publ_easyq`cb_help within w_rp_workprice_change
  135. end type
  136. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_workprice_change
  137. end type
  138. type gb_1 from w_publ_easyq`gb_1 within w_rp_workprice_change
  139. integer x = 1317
  140. integer y = 460
  141. integer width = 87
  142. integer height = 252
  143. end type
  144. type ln_bar from w_publ_easyq`ln_bar within w_rp_workprice_change
  145. end type
  146. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_workprice_change
  147. end type
  148. type r_bar from w_publ_easyq`r_bar within w_rp_workprice_change
  149. end type
  150. type ln_1 from w_publ_easyq`ln_1 within w_rp_workprice_change
  151. end type
  152. type ln_2 from w_publ_easyq`ln_2 within w_rp_workprice_change
  153. end type
  154. type ln_3 from w_publ_easyq`ln_3 within w_rp_workprice_change
  155. integer beginy = 396
  156. integer endy = 396
  157. end type
  158. type ln_4 from w_publ_easyq`ln_4 within w_rp_workprice_change
  159. integer beginy = 400
  160. integer endy = 400
  161. end type
  162. type ddlb_flag from dropdownlistbox within w_rp_workprice_change
  163. integer x = 174
  164. integer y = 192
  165. integer width = 379
  166. integer height = 484
  167. integer taborder = 90
  168. boolean bringtotop = true
  169. integer textsize = -9
  170. integer weight = 400
  171. fontcharset fontcharset = gb2312charset!
  172. fontpitch fontpitch = variable!
  173. string facename = "宋体"
  174. long textcolor = 33554432
  175. string text = "[全部]"
  176. boolean sorted = false
  177. boolean vscrollbar = true
  178. string item[] = {"[全部]","待审核","已审核"}
  179. borderstyle borderstyle = stylelowered!
  180. end type
  181. event selectionchanged;IF Index = 1 THEN
  182. cur_flag = -1
  183. ELSEIF Index = 2 THEN
  184. cur_flag = 0
  185. ELSEIF Index = 3 THEN
  186. cur_flag = 1
  187. END IF
  188. cb_1.TriggerEvent(Clicked!)
  189. end event
  190. type st_1 from statictext within w_rp_workprice_change
  191. integer x = 18
  192. integer y = 204
  193. integer width = 155
  194. integer height = 48
  195. boolean bringtotop = true
  196. integer textsize = -9
  197. integer weight = 400
  198. fontcharset fontcharset = gb2312charset!
  199. fontpitch fontpitch = variable!
  200. string facename = "宋体"
  201. long textcolor = 33554432
  202. long backcolor = 134217739
  203. string text = "状态:"
  204. alignment alignment = right!
  205. boolean focusrectangle = false
  206. end type