w_rp_spt_price_updown.srw 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. $PBExportHeader$w_rp_spt_price_updown.srw
  2. forward
  3. global type w_rp_spt_price_updown from w_publ_easyq
  4. end type
  5. type cbx_1 from checkbox within w_rp_spt_price_updown
  6. end type
  7. type tv_1 from uo_tv_mtrltype within w_rp_spt_price_updown
  8. end type
  9. end forward
  10. global type w_rp_spt_price_updown from w_publ_easyq
  11. string title = "物料采购价格浮动表"
  12. cbx_1 cbx_1
  13. tv_1 tv_1
  14. end type
  15. global w_rp_spt_price_updown w_rp_spt_price_updown
  16. type variables
  17. String ls_handtype = ''
  18. string ls_mtrltype = ''
  19. int cur_flag = 1 //0全显示; 1有sec的显示
  20. end variables
  21. on w_rp_spt_price_updown.create
  22. int iCurrent
  23. call super::create
  24. this.cbx_1=create cbx_1
  25. this.tv_1=create tv_1
  26. iCurrent=UpperBound(this.Control)
  27. this.Control[iCurrent+1]=this.cbx_1
  28. this.Control[iCurrent+2]=this.tv_1
  29. end on
  30. on w_rp_spt_price_updown.destroy
  31. call super::destroy
  32. destroy(this.cbx_1)
  33. destroy(this.tv_1)
  34. end on
  35. event resize;call super::resize;tv_1.height = this.height - tv_1.y - 150
  36. end event
  37. type cb_func from w_publ_easyq`cb_func within w_rp_spt_price_updown
  38. end type
  39. type cb_exit from w_publ_easyq`cb_exit within w_rp_spt_price_updown
  40. end type
  41. type cb_2 from w_publ_easyq`cb_2 within w_rp_spt_price_updown
  42. end type
  43. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_spt_price_updown
  44. end type
  45. type cb_1 from w_publ_easyq`cb_1 within w_rp_spt_price_updown
  46. end type
  47. event cb_1::clicked;call super::clicked;//dw_1.SetRedraw(FALSE)
  48. dw_1.Retrieve(ls_handtype,sys_user_spttype , cur_flag )
  49. //dw_1.AcceptText()
  50. //Long ls_i,ls_j,li_mtrlid,li_sptid
  51. //String ls_mtrlcode,ls_sptname
  52. //String ls_lastdate
  53. //Decimal ls_lastprice,ls_nowprice
  54. //String ls_filterstr
  55. //
  56. //datastore ds_tmp
  57. //
  58. //ds_tmp = CREATE datastore
  59. //ds_tmp.DataObject = 'ds_sptprice_updown'
  60. //ds_tmp.SetTransObject(sqlca)
  61. //
  62. //
  63. //Open(w_sys_wait_jdt) //初始化进度条
  64. //w_sys_wait_jdt.Show()
  65. //w_sys_wait_jdt.wf_accepttol(dw_1.RowCount())
  66. //
  67. //FOR ls_i = 1 TO dw_1.RowCount()
  68. // ls_lastdate = ''
  69. // ls_lastprice = 0.00
  70. //
  71. // li_mtrlid = dw_1.Object.u_spt_price_mtrlid[ls_i]
  72. // li_sptid = dw_1.Object.u_spt_price_sptid[ls_i]
  73. // ls_mtrlcode = dw_1.Object.u_mtrldef_mtrlcode[ls_i]
  74. // ls_sptname = dw_1.Object.u_spt_name[ls_i]
  75. // ls_nowprice = dw_1.Object.u_spt_price_price[ls_i]
  76. //
  77. // w_sys_wait_jdt.st_msg.Text = "查询:"+ls_mtrlcode+'/'+ls_sptname
  78. //
  79. // IF ds_tmp.Retrieve(li_mtrlid,li_sptid) > 1 THEN
  80. // FOR ls_j = 2 TO ds_tmp.RowCount()
  81. // IF ls_nowprice <> ds_tmp.Object.price[ls_j] THEN
  82. // ls_lastdate = String(ds_tmp.Object.outdate[ls_j],'yyyy-mm-dd')
  83. // ls_lastprice = ds_tmp.Object.price[ls_j]
  84. // END IF
  85. // NEXT
  86. // END IF
  87. //
  88. //
  89. // dw_1.Object.date_2[ls_i] = ls_lastdate
  90. // dw_1.Object.u_spt_price_lastprice[ls_i] = ls_lastprice
  91. //
  92. // w_sys_wait_jdt.wf_inc(ls_i) //进度
  93. //NEXT
  94. //DESTROY ds_tmp
  95. //Close(w_sys_wait_jdt)
  96. //
  97. //
  98. //
  99. //
  100. //dw_1.SetRedraw(TRUE)
  101. //
  102. end event
  103. type st_3 from w_publ_easyq`st_3 within w_rp_spt_price_updown
  104. boolean visible = false
  105. integer x = 23
  106. integer y = 364
  107. end type
  108. type st_4 from w_publ_easyq`st_4 within w_rp_spt_price_updown
  109. boolean visible = false
  110. integer x = 608
  111. integer y = 364
  112. end type
  113. type em_1 from w_publ_easyq`em_1 within w_rp_spt_price_updown
  114. boolean visible = false
  115. integer x = 224
  116. integer y = 348
  117. end type
  118. type em_2 from w_publ_easyq`em_2 within w_rp_spt_price_updown
  119. boolean visible = false
  120. integer x = 713
  121. integer y = 348
  122. end type
  123. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_spt_price_updown
  124. integer x = 1531
  125. integer y = 8
  126. end type
  127. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_spt_price_updown
  128. integer x = 1321
  129. integer y = 12
  130. end type
  131. type dw_1 from w_publ_easyq`dw_1 within w_rp_spt_price_updown
  132. integer x = 823
  133. integer y = 312
  134. integer width = 2661
  135. string dataobject = "dw_rp_spt_price_updown"
  136. end type
  137. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_spt_price_updown
  138. end type
  139. type sle_cust from w_publ_easyq`sle_cust within w_rp_spt_price_updown
  140. end type
  141. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_spt_price_updown
  142. end type
  143. type st_cust from w_publ_easyq`st_cust within w_rp_spt_price_updown
  144. end type
  145. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_spt_price_updown
  146. boolean visible = true
  147. integer x = 1321
  148. end type
  149. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_spt_price_updown
  150. boolean visible = false
  151. integer x = 1125
  152. end type
  153. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_spt_price_updown
  154. boolean visible = false
  155. end type
  156. type pb_2 from w_publ_easyq`pb_2 within w_rp_spt_price_updown
  157. boolean visible = false
  158. end type
  159. type cb_help from w_publ_easyq`cb_help within w_rp_spt_price_updown
  160. end type
  161. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_spt_price_updown
  162. end type
  163. type gb_1 from w_publ_easyq`gb_1 within w_rp_spt_price_updown
  164. end type
  165. type ln_bar from w_publ_easyq`ln_bar within w_rp_spt_price_updown
  166. end type
  167. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_spt_price_updown
  168. end type
  169. type r_bar from w_publ_easyq`r_bar within w_rp_spt_price_updown
  170. end type
  171. type ln_1 from w_publ_easyq`ln_1 within w_rp_spt_price_updown
  172. end type
  173. type ln_2 from w_publ_easyq`ln_2 within w_rp_spt_price_updown
  174. end type
  175. type ln_3 from w_publ_easyq`ln_3 within w_rp_spt_price_updown
  176. boolean visible = false
  177. end type
  178. type ln_4 from w_publ_easyq`ln_4 within w_rp_spt_price_updown
  179. boolean visible = false
  180. end type
  181. type cbx_1 from checkbox within w_rp_spt_price_updown
  182. integer x = 891
  183. integer y = 208
  184. integer width = 521
  185. integer height = 60
  186. boolean bringtotop = true
  187. integer textsize = -9
  188. integer weight = 400
  189. fontcharset fontcharset = gb2312charset!
  190. fontpitch fontpitch = variable!
  191. string facename = "宋体"
  192. long textcolor = 33554432
  193. long backcolor = 134217739
  194. string text = "只显示有变价物料"
  195. boolean checked = true
  196. end type
  197. event clicked;IF cbx_1.Checked THEN
  198. cur_flag = 1
  199. ELSE
  200. cur_flag = 0
  201. END IF
  202. cb_1.TriggerEvent(Clicked!)
  203. end event
  204. type tv_1 from uo_tv_mtrltype within w_rp_spt_price_updown
  205. integer x = 9
  206. integer y = 312
  207. integer width = 800
  208. integer height = 1204
  209. integer taborder = 90
  210. boolean bringtotop = true
  211. integer textsize = -9
  212. fontcharset fontcharset = gb2312charset!
  213. fontfamily fontfamily = anyfont!
  214. string facename = "宋体"
  215. end type
  216. event selectionchanged;call super::selectionchanged;
  217. ls_handtype = THIS.uo_cur_info.handtype
  218. IF ls_handtype <> '' THEN
  219. ls_mtrltype = ls_handtype+'%'
  220. ELSE
  221. ls_mtrltype = ""
  222. END IF
  223. ls_handtype = ls_handtype + '%'
  224. cb_1.TriggerEvent(Clicked!)
  225. end event