w_publ_inputexpr.srw 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. $PBExportHeader$w_publ_inputexpr.srw
  2. forward
  3. global type w_publ_inputexpr from w_publ_base
  4. end type
  5. type cb_add from uo_imflatbutton within w_publ_inputexpr
  6. end type
  7. type cb_repl from uo_imflatbutton within w_publ_inputexpr
  8. end type
  9. type cbx_dist from checkbox within w_publ_inputexpr
  10. end type
  11. type cb_setposition from uo_imflatbutton within w_publ_inputexpr
  12. end type
  13. type ddlb_op from dropdownlistbox within w_publ_inputexpr
  14. end type
  15. type sle_nr from multilineedit within w_publ_inputexpr
  16. end type
  17. type st_1 from statictext within w_publ_inputexpr
  18. end type
  19. type cb_1 from uo_imflatbutton within w_publ_inputexpr
  20. end type
  21. end forward
  22. global type w_publ_inputexpr from w_publ_base
  23. integer x = 407
  24. integer y = 224
  25. integer width = 1970
  26. integer height = 708
  27. string title = "请填入补充内容"
  28. boolean minbox = false
  29. windowtype windowtype = response!
  30. cb_add cb_add
  31. cb_repl cb_repl
  32. cbx_dist cbx_dist
  33. cb_setposition cb_setposition
  34. ddlb_op ddlb_op
  35. sle_nr sle_nr
  36. st_1 st_1
  37. cb_1 cb_1
  38. end type
  39. global w_publ_inputexpr w_publ_inputexpr
  40. type variables
  41. string cur_filter_expr
  42. //当前FILTER表达式
  43. string cur_filter_expr_INCHA
  44. //当前FILTER表达式中文表示
  45. s_esq_tran ls_esq_tran
  46. //返回结构
  47. INT SHORTHEIGHT=576,LONGHEIGHT=1000
  48. end variables
  49. on w_publ_inputexpr.create
  50. int iCurrent
  51. call super::create
  52. this.cb_add=create cb_add
  53. this.cb_repl=create cb_repl
  54. this.cbx_dist=create cbx_dist
  55. this.cb_setposition=create cb_setposition
  56. this.ddlb_op=create ddlb_op
  57. this.sle_nr=create sle_nr
  58. this.st_1=create st_1
  59. this.cb_1=create cb_1
  60. iCurrent=UpperBound(this.Control)
  61. this.Control[iCurrent+1]=this.cb_add
  62. this.Control[iCurrent+2]=this.cb_repl
  63. this.Control[iCurrent+3]=this.cbx_dist
  64. this.Control[iCurrent+4]=this.cb_setposition
  65. this.Control[iCurrent+5]=this.ddlb_op
  66. this.Control[iCurrent+6]=this.sle_nr
  67. this.Control[iCurrent+7]=this.st_1
  68. this.Control[iCurrent+8]=this.cb_1
  69. end on
  70. on w_publ_inputexpr.destroy
  71. call super::destroy
  72. destroy(this.cb_add)
  73. destroy(this.cb_repl)
  74. destroy(this.cbx_dist)
  75. destroy(this.cb_setposition)
  76. destroy(this.ddlb_op)
  77. destroy(this.sle_nr)
  78. destroy(this.st_1)
  79. destroy(this.cb_1)
  80. end on
  81. event open;call super::open;ls_esq_tran=Message.PowerObjectParm
  82. this.title='筛选项目: '+ls_esq_tran.title +' 包含'
  83. sle_nr.text=ls_esq_tran.cur_data
  84. cur_filter_expr=ls_esq_tran.cur_filter_expr
  85. cur_filter_expr_INCHA=ls_esq_tran.cur_filter_expr_INCHA
  86. //THIS.HEIGHT=SHORTHEIGHT
  87. environment exerun_env
  88. GetEnvironment(exerun_env )
  89. this.x=ls_esq_tran.x - 200
  90. this.y=ls_esq_tran.y - 130
  91. if this.x<0 then this.x=0
  92. if this.y<0 then this.y=0
  93. if this.x > PixelsToUnits(exerun_env.screenwidth, XPixelsToUnits!) - this.Width then this.x = PixelsToUnits(exerun_env.screenwidth, XPixelsToUnits!) - this.Width
  94. if this.y > PixelsToUnits(exerun_env.screenheight, yPixelsToUnits!) - this.HeighT then this.y = PixelsToUnits(exerun_env.screenheight, yPixelsToUnits!) - this.HeighT
  95. ls_esq_tran.return_flag=0
  96. if trim(sle_nr.text)<>'' then
  97. cb_add.enabled=true
  98. sle_nr.SelectText(1,len(sle_nr.text))
  99. end if
  100. end event
  101. event close;CloseWithReturn(THIS,ls_esq_tran)
  102. end event
  103. event rbuttondown;call super::rbuttondown;cb_exit.TriggerEvent(clicked!)
  104. end event
  105. type cb_func from w_publ_base`cb_func within w_publ_inputexpr
  106. boolean visible = false
  107. integer x = 1614
  108. integer y = 128
  109. integer taborder = 50
  110. boolean enabled = false
  111. end type
  112. type cb_exit from w_publ_base`cb_exit within w_publ_inputexpr
  113. integer x = 1545
  114. integer y = 516
  115. integer width = 325
  116. integer taborder = 40
  117. string text = "取消"
  118. end type
  119. event cb_exit::clicked;ls_esq_tran.cur_data = Trim(sle_nr.Text)
  120. ls_esq_tran.DIST_BOOLEAN = cbx_dist.Checked
  121. ls_esq_tran.comp_op = ddlb_op.Text
  122. ls_esq_tran.return_flag = 0
  123. Close(PARENT)
  124. end event
  125. type cb_add from uo_imflatbutton within w_publ_inputexpr
  126. integer x = 795
  127. integer y = 516
  128. integer width = 325
  129. integer height = 96
  130. integer taborder = 70
  131. string text = "增加条件"
  132. end type
  133. event clicked;call super::clicked;IF Pos(Trim(sle_nr.Text),"'") > 0 THEN
  134. MessageBox('提示',"录入内容不能包含符号'")
  135. RETURN
  136. END IF
  137. ls_esq_tran.cur_data = Trim(sle_nr.Text)
  138. ls_esq_tran.return_flag = 1
  139. ls_esq_tran.DIST_BOOLEAN = cbx_dist.Checked
  140. ls_esq_tran.comp_op = ddlb_op.Text
  141. Close(PARENT)
  142. end event
  143. type cb_repl from uo_imflatbutton within w_publ_inputexpr
  144. integer x = 421
  145. integer y = 516
  146. integer width = 325
  147. integer height = 96
  148. integer taborder = 20
  149. string text = "重新查询"
  150. boolean default = true
  151. end type
  152. event clicked;call super::clicked;IF Pos(Trim(sle_nr.Text),"'") > 0 THEN
  153. MessageBox('提示',"录入内容不能包含符号'")
  154. RETURN
  155. END IF
  156. ls_esq_tran.cur_data = Trim(sle_nr.Text)
  157. ls_esq_tran.return_flag = 2
  158. ls_esq_tran.DIST_BOOLEAN = cbx_dist.Checked
  159. ls_esq_tran.comp_op = ddlb_op.Text
  160. Close(Parent)
  161. end event
  162. type cbx_dist from checkbox within w_publ_inputexpr
  163. integer x = 14
  164. integer y = 516
  165. integer width = 379
  166. integer height = 60
  167. boolean bringtotop = true
  168. integer textsize = -9
  169. integer weight = 400
  170. fontcharset fontcharset = gb2312charset!
  171. fontpitch fontpitch = variable!
  172. string facename = "宋体"
  173. long textcolor = 33554432
  174. long backcolor = 134217739
  175. string text = "区分大小写"
  176. end type
  177. type cb_setposition from uo_imflatbutton within w_publ_inputexpr
  178. integer x = 1170
  179. integer y = 516
  180. integer width = 325
  181. integer height = 96
  182. integer taborder = 60
  183. boolean bringtotop = true
  184. string text = "定位"
  185. boolean default = true
  186. end type
  187. event clicked;call super::clicked;IF Pos(Trim(sle_nr.Text),"'") > 0 THEN
  188. MessageBox('提示',"录入内容不能包含符号'")
  189. RETURN
  190. END IF
  191. ls_esq_tran.cur_data = Trim(sle_nr.Text)
  192. ls_esq_tran.return_flag = 4
  193. ls_esq_tran.DIST_BOOLEAN = cbx_dist.Checked
  194. ls_esq_tran.comp_op = ddlb_op.Text
  195. Close(PARENT)
  196. end event
  197. type ddlb_op from dropdownlistbox within w_publ_inputexpr
  198. integer x = 9
  199. integer y = 80
  200. integer width = 338
  201. integer height = 552
  202. integer taborder = 30
  203. boolean bringtotop = true
  204. integer textsize = -9
  205. integer weight = 400
  206. fontcharset fontcharset = gb2312charset!
  207. fontpitch fontpitch = variable!
  208. string facename = "宋体"
  209. long textcolor = 33554432
  210. string text = "包含"
  211. boolean sorted = false
  212. string item[] = {"包含","不包含","等于","不等于","大于","小于","大于等于","小于等于"}
  213. borderstyle borderstyle = stylelowered!
  214. end type
  215. type sle_nr from multilineedit within w_publ_inputexpr
  216. event inputchanged ( )
  217. integer x = 393
  218. integer y = 80
  219. integer width = 1554
  220. integer height = 404
  221. integer taborder = 10
  222. boolean bringtotop = true
  223. integer textsize = -9
  224. integer weight = 400
  225. fontcharset fontcharset = gb2312charset!
  226. fontpitch fontpitch = variable!
  227. string facename = "宋体"
  228. long textcolor = 33554432
  229. boolean vscrollbar = true
  230. borderstyle borderstyle = stylelowered!
  231. end type
  232. event inputchanged();IF Trim(This.Text) <> '' THEN
  233. cb_add.Enabled = True
  234. ELSE
  235. cb_add.Enabled = False
  236. END IF
  237. end event
  238. event modified;IF KeyDown(KeyEnter!) THEN
  239. cb_repl.TriggerEvent( 'clicked')
  240. END IF
  241. end event
  242. type st_1 from statictext within w_publ_inputexpr
  243. integer x = 5
  244. integer y = 12
  245. integer width = 1275
  246. integer height = 48
  247. boolean bringtotop = true
  248. integer textsize = -9
  249. integer weight = 400
  250. fontcharset fontcharset = gb2312charset!
  251. fontpitch fontpitch = variable!
  252. string facename = "宋体"
  253. long textcolor = 255
  254. long backcolor = 134217739
  255. string text = "提示: 按住Ctrl+回车可实现换行,同时查询多个资料"
  256. boolean focusrectangle = false
  257. end type
  258. type cb_1 from uo_imflatbutton within w_publ_inputexpr
  259. integer y = 404
  260. integer width = 384
  261. integer height = 96
  262. integer taborder = 30
  263. boolean bringtotop = true
  264. string text = "粘贴涂选内容"
  265. boolean default = true
  266. end type
  267. event clicked;call super::clicked;sle_nr.text=sys_DataWindowselected
  268. end event