w_publ_inputexpr.srw 6.6 KB

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