w_xls_publ_inputexpr.srw 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. $PBExportHeader$w_xls_publ_inputexpr.srw
  2. forward
  3. global type w_xls_publ_inputexpr from w_xls_publ_base
  4. end type
  5. type cb_add from uo_xls_imflatbutton within w_xls_publ_inputexpr
  6. end type
  7. type cb_repl from uo_xls_imflatbutton within w_xls_publ_inputexpr
  8. end type
  9. type sle_nr from u_xls_sleedit within w_xls_publ_inputexpr
  10. end type
  11. type cbx_else from checkbox within w_xls_publ_inputexpr
  12. end type
  13. end forward
  14. global type w_xls_publ_inputexpr from w_xls_publ_base
  15. integer x = 407
  16. integer y = 224
  17. integer width = 1952
  18. integer height = 336
  19. string title = "请填入补充内容"
  20. boolean controlmenu = false
  21. boolean minbox = false
  22. windowtype windowtype = response!
  23. cb_add cb_add
  24. cb_repl cb_repl
  25. sle_nr sle_nr
  26. cbx_else cbx_else
  27. end type
  28. global w_xls_publ_inputexpr w_xls_publ_inputexpr
  29. TYPE VARIABLES
  30. String cur_filter_expr
  31. //当前FILTER表达式
  32. String cur_filter_expr_INCHA
  33. //当前FILTER表达式中文表示
  34. s_xls_esq_tran ls_xls_esq_tran
  35. //返回结构
  36. Int SHORTHEIGHT = 336,LONGHEIGHT = 1000
  37. END VARIABLES
  38. on w_xls_publ_inputexpr.create
  39. int iCurrent
  40. call super::create
  41. this.cb_add=create cb_add
  42. this.cb_repl=create cb_repl
  43. this.sle_nr=create sle_nr
  44. this.cbx_else=create cbx_else
  45. iCurrent=UpperBound(this.Control)
  46. this.Control[iCurrent+1]=this.cb_add
  47. this.Control[iCurrent+2]=this.cb_repl
  48. this.Control[iCurrent+3]=this.sle_nr
  49. this.Control[iCurrent+4]=this.cbx_else
  50. end on
  51. on w_xls_publ_inputexpr.destroy
  52. call super::destroy
  53. destroy(this.cb_add)
  54. destroy(this.cb_repl)
  55. destroy(this.sle_nr)
  56. destroy(this.cbx_else)
  57. end on
  58. EVENT OPEN;
  59. CALL SUPER::OPEN;
  60. ls_xls_esq_tran = Message.PowerObjectParm
  61. THIS.Title = '筛选项目: '+ls_xls_esq_tran.Title +' 包含'
  62. sle_nr.Text = ls_xls_esq_tran.cur_data
  63. cur_filter_expr = ls_xls_esq_tran.cur_filter_expr
  64. cur_filter_expr_INCHA = ls_xls_esq_tran.cur_filter_expr_INCHA
  65. THIS.Height = SHORTHEIGHT
  66. environment exerun_env
  67. GetEnvironment(exerun_env )
  68. THIS.X = ls_xls_esq_tran.X - 200
  69. THIS.Y = ls_xls_esq_tran.Y - 130
  70. IF THIS.X < 0 THEN THIS.X = 0
  71. IF THIS.Y < 0 THEN THIS.Y = 0
  72. IF THIS.X > PixelsToUnits(exerun_env.ScreenWidth, XPixelsToUnits!) - THIS.Width THEN THIS.X = PixelsToUnits(exerun_env.ScreenWidth, XPixelsToUnits!) - THIS.Width
  73. IF THIS.Y > PixelsToUnits(exerun_env.ScreenHeight, yPixelsToUnits!) - THIS.Height THEN THIS.Y = PixelsToUnits(exerun_env.ScreenHeight, yPixelsToUnits!) - THIS.Height
  74. ls_xls_esq_tran.return_flag = 0
  75. IF Trim(sle_nr.Text) <> '' THEN
  76. cb_add.Enabled = TRUE
  77. sle_nr.SelectText(1,Len(sle_nr.Text))
  78. END IF
  79. END EVENT
  80. EVENT CLOSE;
  81. CloseWithReturn(THIS,ls_xls_esq_tran)
  82. END EVENT
  83. EVENT RButtonDown;
  84. CALL SUPER::RButtonDown;
  85. cb_exit.TriggerEvent(Clicked!)
  86. END EVENT
  87. type cb_func from w_xls_publ_base`cb_func within w_xls_publ_inputexpr
  88. boolean visible = false
  89. integer x = 1797
  90. integer y = 128
  91. integer taborder = 40
  92. boolean enabled = false
  93. end type
  94. type cb_exit from w_xls_publ_base`cb_exit within w_xls_publ_inputexpr
  95. integer x = 1339
  96. integer y = 128
  97. integer width = 325
  98. integer taborder = 30
  99. string text = "取消"
  100. end type
  101. EVENT cb_exit::Clicked;
  102. ls_xls_esq_tran.cur_data = Trim(sle_nr.Text)
  103. ls_xls_esq_tran.ELSE_BOOLEAN = cbx_else.Checked
  104. Close(PARENT)
  105. END EVENT
  106. type cb_add from uo_xls_imflatbutton within w_xls_publ_inputexpr
  107. integer x = 786
  108. integer y = 128
  109. integer width = 325
  110. integer height = 96
  111. integer taborder = 50
  112. boolean enabled = false
  113. string text = "增加条件"
  114. end type
  115. EVENT Clicked;
  116. CALL SUPER::Clicked;
  117. ls_xls_esq_tran.cur_data = Trim(sle_nr.Text)
  118. ls_xls_esq_tran.return_flag = 1
  119. ls_xls_esq_tran.ELSE_BOOLEAN = cbx_else.Checked
  120. Close(PARENT)
  121. END EVENT
  122. type cb_repl from uo_xls_imflatbutton within w_xls_publ_inputexpr
  123. integer x = 261
  124. integer y = 128
  125. integer width = 325
  126. integer height = 96
  127. integer taborder = 20
  128. string text = "重新查询"
  129. boolean default = true
  130. end type
  131. EVENT Clicked;
  132. CALL SUPER::Clicked;
  133. ls_xls_esq_tran.cur_data = Trim(sle_nr.Text)
  134. ls_xls_esq_tran.return_flag = 2
  135. ls_xls_esq_tran.ELSE_BOOLEAN = cbx_else.Checked
  136. Close(PARENT)
  137. END EVENT
  138. type sle_nr from u_xls_sleedit within w_xls_publ_inputexpr
  139. integer x = 32
  140. integer y = 20
  141. integer width = 1591
  142. boolean bringtotop = true
  143. end type
  144. EVENT inputchanged;
  145. IF Trim(THIS.Text) <> '' THEN
  146. cb_add.Enabled = TRUE
  147. ELSE
  148. cb_add.Enabled = FALSE
  149. END IF
  150. END EVENT
  151. type cbx_else from checkbox within w_xls_publ_inputexpr
  152. integer x = 1664
  153. integer y = 28
  154. integer width = 224
  155. integer height = 76
  156. boolean bringtotop = true
  157. integer textsize = -9
  158. integer weight = 400
  159. fontcharset fontcharset = gb2312charset!
  160. fontpitch fontpitch = variable!
  161. string facename = "宋体"
  162. long textcolor = 33554432
  163. long backcolor = 134217739
  164. string text = "除外"
  165. end type