w_pageretr_ch.srw 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. $PBExportHeader$w_pageretr_ch.srw
  2. $PBExportComments$分页选择窗口
  3. forward
  4. global type w_pageretr_ch from w_publ_pageretr
  5. end type
  6. type cb_choice from uo_imflatbutton within w_pageretr_ch
  7. end type
  8. type cb_refresh from uo_imflatbutton within w_pageretr_ch
  9. end type
  10. type ln_bar from line within w_pageretr_ch
  11. end type
  12. type ln_bar2 from line within w_pageretr_ch
  13. end type
  14. type r_bar from rectangle within w_pageretr_ch
  15. end type
  16. type ln_1 from line within w_pageretr_ch
  17. end type
  18. type ln_2 from line within w_pageretr_ch
  19. end type
  20. end forward
  21. global type w_pageretr_ch from w_publ_pageretr
  22. integer width = 2999
  23. integer height = 1916
  24. string title = "翻页选择"
  25. boolean minbox = false
  26. windowtype windowtype = response!
  27. cb_choice cb_choice
  28. cb_refresh cb_refresh
  29. ln_bar ln_bar
  30. ln_bar2 ln_bar2
  31. r_bar r_bar
  32. ln_1 ln_1
  33. ln_2 ln_2
  34. end type
  35. global w_pageretr_ch w_pageretr_ch
  36. on w_pageretr_ch.create
  37. int iCurrent
  38. call super::create
  39. this.cb_choice=create cb_choice
  40. this.cb_refresh=create cb_refresh
  41. this.ln_bar=create ln_bar
  42. this.ln_bar2=create ln_bar2
  43. this.r_bar=create r_bar
  44. this.ln_1=create ln_1
  45. this.ln_2=create ln_2
  46. iCurrent=UpperBound(this.Control)
  47. this.Control[iCurrent+1]=this.cb_choice
  48. this.Control[iCurrent+2]=this.cb_refresh
  49. this.Control[iCurrent+3]=this.ln_bar
  50. this.Control[iCurrent+4]=this.ln_bar2
  51. this.Control[iCurrent+5]=this.r_bar
  52. this.Control[iCurrent+6]=this.ln_1
  53. this.Control[iCurrent+7]=this.ln_2
  54. end on
  55. on w_pageretr_ch.destroy
  56. call super::destroy
  57. destroy(this.cb_choice)
  58. destroy(this.cb_refresh)
  59. destroy(this.ln_bar)
  60. destroy(this.ln_bar2)
  61. destroy(this.r_bar)
  62. destroy(this.ln_1)
  63. destroy(this.ln_2)
  64. end on
  65. event user_key;call super::user_key; IF KeyDown(KeyD!) and KeyDown(KeyControl!) THEN
  66. if cb_choice.enabled then cb_choice.TRIGGEREVENT(CLICKED!)
  67. ELSEIF KeyDown(KeyEnter!) and (KeyDown(KeyControl!) or retrieve_all) THEN
  68. if cb_choice.enabled then cb_choice.TRIGGEREVENT(CLICKED!)
  69. END IF
  70. end event
  71. event key;this.TRIGGEREVENT('user_key')
  72. end event
  73. event close;//CLOSEWITHRETURN(THIS,<INS_RT_STRU>)
  74. //<INS_RT_STRU> 窗体级子定义结构变量,用于返回
  75. end event
  76. event ue_sort;call super::ue_sort;OPENwithparm(w_sortrow,DW_pageretr)
  77. STRING LS_EXPR
  78. LS_EXPR=Message.StringParm
  79. IF ISNULL(LS_EXPR) THEN LS_EXPR=' '
  80. if len(LS_EXPR)>2 and trim(LS_EXPR)='' then return
  81. DW_pageretr.setsort(LS_EXPR)
  82. DW_pageretr.SetRedraw (false)
  83. DW_pageretr.sort()
  84. DW_pageretr.SetRedraw (true)
  85. end event
  86. event open;call super::open;if_ue_sort=true
  87. end event
  88. event resize;call super::resize;ln_bar.endx = this.width
  89. ln_bar2.endx = this.width
  90. ln_1.endx = this.width
  91. ln_2.endx = this.width
  92. r_bar.width = this.width
  93. end event
  94. type cb_func from w_publ_pageretr`cb_func within w_pageretr_ch
  95. integer x = 151
  96. integer y = 0
  97. integer width = 151
  98. integer height = 164
  99. integer taborder = 110
  100. string normalpicname = "setting.bmp"
  101. integer picsize = 16
  102. toolbaralignment pic_align = alignattop!
  103. boolean border = false
  104. end type
  105. type cb_exit from w_publ_pageretr`cb_exit within w_pageretr_ch
  106. integer x = 453
  107. integer y = 0
  108. integer width = 151
  109. integer height = 164
  110. string text = "取消"
  111. integer picsize = 16
  112. toolbaralignment pic_align = alignattop!
  113. boolean border = false
  114. end type
  115. type sle_usual_query from w_publ_pageretr`sle_usual_query within w_pageretr_ch
  116. integer y = 180
  117. boolean bringtotop = true
  118. end type
  119. type cb_retrieveall from w_publ_pageretr`cb_retrieveall within w_pageretr_ch
  120. integer x = 905
  121. integer width = 151
  122. integer height = 164
  123. boolean bringtotop = true
  124. string normalpicname = "p1.ico"
  125. integer picsize = 16
  126. toolbaralignment pic_align = alignattop!
  127. boolean border = false
  128. end type
  129. type em_pagerowno from w_publ_pageretr`em_pagerowno within w_pageretr_ch
  130. integer x = 603
  131. integer y = 36
  132. integer width = 302
  133. integer height = 96
  134. boolean bringtotop = true
  135. end type
  136. type dw_pageretr from w_publ_pageretr`dw_pageretr within w_pageretr_ch
  137. integer y = 288
  138. integer width = 2935
  139. integer height = 1508
  140. boolean bringtotop = true
  141. boolean titlebar = false
  142. boolean resizable = false
  143. boolean border = true
  144. borderstyle borderstyle = stylelowered!
  145. end type
  146. event dw_pageretr::doubleclicked;call super::doubleclicked;//IF mode=1 AND NOT dw_edit_mode THEN
  147. cb_choice.TRIGGEREVENT(CLICKED!)
  148. //END IF
  149. end event
  150. event dw_pageretr::retrieveend;call super::retrieveend;IF RowCount > 0 THEN
  151. dw_pageretr.SelectRow(0,FALSE)
  152. dw_pageretr.SetRow(1)
  153. dw_pageretr.SelectRow(1,TRUE)
  154. END IF
  155. end event
  156. type st_1 from w_publ_pageretr`st_1 within w_pageretr_ch
  157. integer y = 200
  158. string text = "编码含"
  159. end type
  160. type cb_nextpage from w_publ_pageretr`cb_nextpage within w_pageretr_ch
  161. integer x = 1056
  162. integer width = 78
  163. integer height = 164
  164. string normalpicname = "p4.ico"
  165. integer picsize = 16
  166. toolbaralignment pic_align = alignattop!
  167. boolean border = false
  168. end type
  169. type cb_choice from uo_imflatbutton within w_pageretr_ch
  170. integer x = 302
  171. integer width = 151
  172. integer height = 164
  173. integer taborder = 110
  174. boolean bringtotop = true
  175. string text = "选定"
  176. string normalpicname = "ok.bmp"
  177. integer picsize = 16
  178. toolbaralignment pic_align = alignattop!
  179. boolean border = false
  180. end type
  181. event clicked;call super::clicked;////LONG LS_ROW
  182. ////LS_ROW=dw_pageretr.getrow()
  183. ////if LS_ROW<=0 then
  184. //// messagebox('系统提示','请先选择目标行!',StopSign!)
  185. //// return
  186. ////end if
  187. //
  188. ////INS_RT_STRU.scustid=dw_INDEX.OBJECT.custid[LS_ROW]
  189. ////...
  190. ////CLOSE(PARENT)
  191. end event
  192. type cb_refresh from uo_imflatbutton within w_pageretr_ch
  193. integer width = 151
  194. integer height = 164
  195. integer taborder = 10
  196. boolean bringtotop = true
  197. string text = "刷新"
  198. string normalpicname = "refresh.bmp"
  199. integer picsize = 16
  200. toolbaralignment pic_align = alignattop!
  201. boolean border = false
  202. end type
  203. event clicked;call super::clicked;PARENT.TRIGGEREVENT("ue_usual_query_RETR")
  204. end event
  205. type ln_bar from line within w_pageretr_ch
  206. long linecolor = 268435456
  207. integer linethickness = 4
  208. integer beginy = 168
  209. integer endx = 2007
  210. integer endy = 168
  211. end type
  212. type ln_bar2 from line within w_pageretr_ch
  213. long linecolor = 16777215
  214. integer linethickness = 4
  215. integer beginy = 172
  216. integer endx = 2039
  217. integer endy = 172
  218. end type
  219. type r_bar from rectangle within w_pageretr_ch
  220. long linecolor = 16777215
  221. integer linethickness = 4
  222. long fillcolor = 1073741824
  223. integer x = 2139
  224. integer width = 146
  225. integer height = 68
  226. end type
  227. event constructor;this.fillcolor = 14215660
  228. this.linecolor = 14215660
  229. this.x = -1
  230. this.y = -1
  231. this.height = ln_bar.beginy - 5
  232. end event
  233. type ln_1 from line within w_pageretr_ch
  234. long linecolor = 268435456
  235. integer linethickness = 4
  236. integer beginy = 280
  237. integer endx = 2016
  238. integer endy = 280
  239. end type
  240. type ln_2 from line within w_pageretr_ch
  241. long linecolor = 16777215
  242. integer linethickness = 4
  243. integer beginy = 284
  244. integer endx = 2048
  245. integer endy = 284
  246. end type