w_publ_input_expr_posi.srw 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. $PBExportHeader$w_publ_input_expr_posi.srw
  2. forward
  3. global type w_publ_input_expr_posi from w_publ_base
  4. end type
  5. type cb_add from uo_imflatbutton within w_publ_input_expr_posi
  6. end type
  7. type cb_repl from uo_imflatbutton within w_publ_input_expr_posi
  8. end type
  9. type sle_nr from u_sleedit within w_publ_input_expr_posi
  10. end type
  11. type cbx_else from checkbox within w_publ_input_expr_posi
  12. end type
  13. type cbx_dist from checkbox within w_publ_input_expr_posi
  14. end type
  15. type cb_setposition from uo_imflatbutton within w_publ_input_expr_posi
  16. end type
  17. end forward
  18. global type w_publ_input_expr_posi from w_publ_base
  19. integer x = 407
  20. integer y = 224
  21. integer width = 1979
  22. integer height = 364
  23. string title = "请填入补充内容"
  24. boolean controlmenu = false
  25. boolean minbox = false
  26. windowtype windowtype = response!
  27. cb_add cb_add
  28. cb_repl cb_repl
  29. sle_nr sle_nr
  30. cbx_else cbx_else
  31. cbx_dist cbx_dist
  32. cb_setposition cb_setposition
  33. end type
  34. global w_publ_input_expr_posi w_publ_input_expr_posi
  35. type variables
  36. string cur_filter_expr
  37. //当前FILTER表达式
  38. string cur_filter_expr_INCHA
  39. //当前FILTER表达式中文表示
  40. s_esq_tran ls_esq_tran
  41. //返回结构
  42. INT SHORTHEIGHT=360,LONGHEIGHT=1000
  43. end variables
  44. on w_publ_input_expr_posi.create
  45. int iCurrent
  46. call super::create
  47. this.cb_add=create cb_add
  48. this.cb_repl=create cb_repl
  49. this.sle_nr=create sle_nr
  50. this.cbx_else=create cbx_else
  51. this.cbx_dist=create cbx_dist
  52. this.cb_setposition=create cb_setposition
  53. iCurrent=UpperBound(this.Control)
  54. this.Control[iCurrent+1]=this.cb_add
  55. this.Control[iCurrent+2]=this.cb_repl
  56. this.Control[iCurrent+3]=this.sle_nr
  57. this.Control[iCurrent+4]=this.cbx_else
  58. this.Control[iCurrent+5]=this.cbx_dist
  59. this.Control[iCurrent+6]=this.cb_setposition
  60. end on
  61. on w_publ_input_expr_posi.destroy
  62. call super::destroy
  63. destroy(this.cb_add)
  64. destroy(this.cb_repl)
  65. destroy(this.sle_nr)
  66. destroy(this.cbx_else)
  67. destroy(this.cbx_dist)
  68. destroy(this.cb_setposition)
  69. end on
  70. event open;call super::open;ls_esq_tran=Message.PowerObjectParm
  71. this.title='筛选项目: '+ls_esq_tran.title +' 包含'
  72. sle_nr.text=ls_esq_tran.cur_data
  73. cur_filter_expr=ls_esq_tran.cur_filter_expr
  74. cur_filter_expr_INCHA=ls_esq_tran.cur_filter_expr_INCHA
  75. THIS.HEIGHT=SHORTHEIGHT
  76. environment exerun_env
  77. GetEnvironment(exerun_env )
  78. this.x=ls_esq_tran.x - 200
  79. this.y=ls_esq_tran.y - 130
  80. if this.x<0 then this.x=0
  81. if this.y<0 then this.y=0
  82. if this.x > PixelsToUnits(exerun_env.screenwidth, XPixelsToUnits!) - this.Width then this.x = PixelsToUnits(exerun_env.screenwidth, XPixelsToUnits!) - this.Width
  83. if this.y > PixelsToUnits(exerun_env.screenheight, yPixelsToUnits!) - this.HeighT then this.y = PixelsToUnits(exerun_env.screenheight, yPixelsToUnits!) - this.HeighT
  84. ls_esq_tran.return_flag=0
  85. if trim(sle_nr.text)<>'' then
  86. cb_add.enabled=true
  87. sle_nr.SelectText(1,len(sle_nr.text))
  88. end if
  89. end event
  90. event close;CloseWithReturn(THIS,ls_esq_tran)
  91. end event
  92. event rbuttondown;call super::rbuttondown;cb_exit.TriggerEvent(clicked!)
  93. end event
  94. type cb_func from w_publ_base`cb_func within w_publ_input_expr_posi
  95. boolean visible = false
  96. integer x = 1614
  97. integer y = 128
  98. integer taborder = 40
  99. boolean enabled = false
  100. end type
  101. type cb_exit from w_publ_base`cb_exit within w_publ_input_expr_posi
  102. integer x = 997
  103. integer y = 136
  104. integer width = 325
  105. integer taborder = 30
  106. string text = "取消"
  107. end type
  108. event cb_exit::clicked;ls_esq_tran.cur_data=trim(sle_nr.text)
  109. ls_esq_tran.ELSE_BOOLEAN=cbx_else.CHECKED
  110. ls_esq_tran.DIST_BOOLEAN=cbx_dist.CHECKED
  111. Close(parent)
  112. end event
  113. type cb_add from uo_imflatbutton within w_publ_input_expr_posi
  114. boolean visible = false
  115. integer x = 434
  116. integer y = 148
  117. integer width = 325
  118. integer height = 96
  119. integer taborder = 50
  120. boolean enabled = false
  121. string text = "增加条件"
  122. end type
  123. event clicked;call super::clicked;ls_esq_tran.cur_data=trim(sle_nr.text)
  124. ls_esq_tran.return_flag=1
  125. ls_esq_tran.ELSE_BOOLEAN=cbx_else.CHECKED
  126. ls_esq_tran.DIST_BOOLEAN=cbx_dist.CHECKED
  127. Close(parent)
  128. end event
  129. type cb_repl from uo_imflatbutton within w_publ_input_expr_posi
  130. boolean visible = false
  131. integer x = 59
  132. integer y = 148
  133. integer width = 325
  134. integer height = 96
  135. integer taborder = 20
  136. string text = "重新查询"
  137. end type
  138. event clicked;call super::clicked;ls_esq_tran.cur_data=trim(sle_nr.text)
  139. ls_esq_tran.return_flag=2
  140. ls_esq_tran.ELSE_BOOLEAN=cbx_else.CHECKED
  141. ls_esq_tran.DIST_BOOLEAN=cbx_dist.CHECKED
  142. Close(parent)
  143. end event
  144. type sle_nr from u_sleedit within w_publ_input_expr_posi
  145. integer x = 9
  146. integer y = 24
  147. integer width = 1554
  148. boolean bringtotop = true
  149. end type
  150. event inputchanged;if trim(this.text)<>'' then
  151. cb_add.enabled=true
  152. else
  153. cb_add.enabled=false
  154. end if
  155. end event
  156. type cbx_else from checkbox within w_publ_input_expr_posi
  157. boolean visible = false
  158. integer x = 1591
  159. integer y = 16
  160. integer width = 224
  161. integer height = 68
  162. boolean bringtotop = true
  163. integer textsize = -9
  164. integer weight = 400
  165. fontcharset fontcharset = gb2312charset!
  166. fontpitch fontpitch = variable!
  167. string facename = "宋体"
  168. long textcolor = 33554432
  169. long backcolor = 134217739
  170. string text = "除外"
  171. end type
  172. type cbx_dist from checkbox within w_publ_input_expr_posi
  173. integer x = 1591
  174. integer y = 36
  175. integer width = 402
  176. integer height = 60
  177. boolean bringtotop = true
  178. integer textsize = -9
  179. integer weight = 400
  180. fontcharset fontcharset = gb2312charset!
  181. fontpitch fontpitch = variable!
  182. string facename = "宋体"
  183. long textcolor = 33554432
  184. long backcolor = 134217739
  185. string text = "区分大小写"
  186. end type
  187. type cb_setposition from uo_imflatbutton within w_publ_input_expr_posi
  188. integer x = 320
  189. integer y = 136
  190. integer width = 325
  191. integer height = 96
  192. integer taborder = 40
  193. boolean bringtotop = true
  194. string text = "定位"
  195. boolean default = true
  196. end type
  197. event clicked;call super::clicked;ls_esq_tran.cur_data=trim(sle_nr.text)
  198. ls_esq_tran.return_flag=4
  199. ls_esq_tran.ELSE_BOOLEAN=cbx_else.CHECKED
  200. ls_esq_tran.DIST_BOOLEAN=cbx_dist.CHECKED
  201. Close(parent)
  202. end event