w_sys_msx.srw 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. $PBExportHeader$w_sys_msx.srw
  2. $PBExportComments$Generated MDI frame window
  3. forward
  4. global type w_sys_msx from w_publ_base
  5. end type
  6. type cb_1 from commandbutton within w_sys_msx
  7. end type
  8. type em_1 from editmask within w_sys_msx
  9. end type
  10. type em_2 from editmask within w_sys_msx
  11. end type
  12. type st_3 from statictext within w_sys_msx
  13. end type
  14. type st_4 from statictext within w_sys_msx
  15. end type
  16. type cbx_1 from checkbox within w_sys_msx
  17. end type
  18. end forward
  19. global type w_sys_msx from w_publ_base
  20. integer width = 1326
  21. integer height = 688
  22. string title = "选择筛选时间条件(默认刷新范围)"
  23. boolean minbox = false
  24. windowtype windowtype = response!
  25. cb_1 cb_1
  26. em_1 em_1
  27. em_2 em_2
  28. st_3 st_3
  29. st_4 st_4
  30. cbx_1 cbx_1
  31. end type
  32. global w_sys_msx w_sys_msx
  33. type variables
  34. s_edit_tran lss_rtv
  35. end variables
  36. on w_sys_msx.create
  37. int iCurrent
  38. call super::create
  39. this.cb_1=create cb_1
  40. this.em_1=create em_1
  41. this.em_2=create em_2
  42. this.st_3=create st_3
  43. this.st_4=create st_4
  44. this.cbx_1=create cbx_1
  45. iCurrent=UpperBound(this.Control)
  46. this.Control[iCurrent+1]=this.cb_1
  47. this.Control[iCurrent+2]=this.em_1
  48. this.Control[iCurrent+3]=this.em_2
  49. this.Control[iCurrent+4]=this.st_3
  50. this.Control[iCurrent+5]=this.st_4
  51. this.Control[iCurrent+6]=this.cbx_1
  52. end on
  53. on w_sys_msx.destroy
  54. call super::destroy
  55. destroy(this.cb_1)
  56. destroy(this.em_1)
  57. destroy(this.em_2)
  58. destroy(this.st_3)
  59. destroy(this.st_4)
  60. destroy(this.cbx_1)
  61. end on
  62. event open;call super::open;lss_rtv=Message.PowerObjectParm
  63. em_1.text=string(lss_rtv.first_date,'yyyy-mm-dd')
  64. em_2.text=string(lss_rtv.end_date,'yyyy-mm-dd')
  65. IF lss_rtv.USE<>0 THEN
  66. cbx_1.CHECKED=TRUE
  67. ELSE
  68. cbx_1.CHECKED=FALSE
  69. END IF
  70. IF lss_rtv.YN=1 THEN
  71. cbx_1.VISIBLE=TRUE
  72. ELSE
  73. cbx_1.VISIBLE=FALSE
  74. cbx_1.CHECKED=TRUE
  75. END IF
  76. //RelativeDate(
  77. end event
  78. type cb_func from w_publ_base`cb_func within w_sys_msx
  79. boolean visible = false
  80. integer x = 965
  81. integer y = 220
  82. boolean enabled = false
  83. end type
  84. type cb_exit from w_publ_base`cb_exit within w_sys_msx
  85. integer x = 741
  86. integer y = 440
  87. string text = "取消"
  88. end type
  89. type cb_1 from commandbutton within w_sys_msx
  90. integer x = 242
  91. integer y = 440
  92. integer width = 311
  93. integer height = 96
  94. integer taborder = 30
  95. integer textsize = -9
  96. integer weight = 400
  97. fontcharset fontcharset = gb2312charset!
  98. fontpitch fontpitch = variable!
  99. string facename = "宋体"
  100. string text = "确定"
  101. boolean default = true
  102. end type
  103. event clicked;lss_rtv.first_date=date(em_1.text)
  104. lss_rtv.end_date =date(em_2.text)
  105. lss_rtv.yn=1
  106. IF cbx_1.CHECKED THEN
  107. lss_rtv.USE=1
  108. ELSE
  109. lss_rtv.USE=0
  110. END IF
  111. CloseWithReturn(w_sys_msx,lss_rtv)
  112. //RelativeDate (,-1)
  113. end event
  114. type em_1 from editmask within w_sys_msx
  115. integer x = 462
  116. integer y = 160
  117. integer width = 453
  118. integer height = 88
  119. integer taborder = 10
  120. integer textsize = -10
  121. integer weight = 400
  122. fontcharset fontcharset = gb2312charset!
  123. fontpitch fontpitch = variable!
  124. string facename = "宋体"
  125. long textcolor = 33554432
  126. borderstyle borderstyle = stylelowered!
  127. maskdatatype maskdatatype = datemask!
  128. string mask = "yyyy-mm-dd"
  129. boolean spin = true
  130. end type
  131. type em_2 from editmask within w_sys_msx
  132. integer x = 462
  133. integer y = 272
  134. integer width = 453
  135. integer height = 88
  136. integer taborder = 20
  137. integer textsize = -10
  138. integer weight = 400
  139. fontcharset fontcharset = gb2312charset!
  140. fontpitch fontpitch = variable!
  141. string facename = "宋体"
  142. long textcolor = 33554432
  143. borderstyle borderstyle = stylelowered!
  144. maskdatatype maskdatatype = datemask!
  145. string mask = "yyyy-mm-dd"
  146. boolean spin = true
  147. end type
  148. type st_3 from statictext within w_sys_msx
  149. integer x = 311
  150. integer y = 180
  151. integer width = 87
  152. integer height = 76
  153. integer textsize = -9
  154. integer weight = 400
  155. fontcharset fontcharset = gb2312charset!
  156. fontpitch fontpitch = variable!
  157. string facename = "宋体"
  158. long textcolor = 33554432
  159. long backcolor = 134217739
  160. boolean enabled = false
  161. string text = "从:"
  162. alignment alignment = right!
  163. boolean focusrectangle = false
  164. end type
  165. type st_4 from statictext within w_sys_msx
  166. integer x = 50
  167. integer y = 32
  168. integer width = 768
  169. integer height = 76
  170. integer textsize = -10
  171. integer weight = 700
  172. fontcharset fontcharset = gb2312charset!
  173. fontpitch fontpitch = fixed!
  174. fontfamily fontfamily = modern!
  175. string facename = "幼圆"
  176. long backcolor = 134217739
  177. boolean enabled = false
  178. string text = "确定查询结果集时间范围"
  179. boolean focusrectangle = false
  180. end type
  181. type cbx_1 from checkbox within w_sys_msx
  182. boolean visible = false
  183. integer x = 896
  184. integer y = 28
  185. integer width = 338
  186. integer height = 76
  187. boolean bringtotop = true
  188. integer textsize = -9
  189. integer weight = 400
  190. fontcharset fontcharset = gb2312charset!
  191. fontpitch fontpitch = variable!
  192. string facename = "宋体"
  193. long textcolor = 33554432
  194. long backcolor = 67108864
  195. string text = "有效记录"
  196. end type