w_query_dt.srw 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. $PBExportHeader$w_query_dt.srw
  2. forward
  3. global type w_query_dt from w_publ_base
  4. end type
  5. type em_1 from uo_editmask_date within w_query_dt
  6. end type
  7. type em_2 from uo_editmask_date within w_query_dt
  8. end type
  9. type cb_1 from uo_imflatbutton within w_query_dt
  10. end type
  11. type st_1 from statictext within w_query_dt
  12. end type
  13. type st_2 from statictext within w_query_dt
  14. end type
  15. end forward
  16. global type w_query_dt from w_publ_base
  17. integer width = 1271
  18. integer height = 796
  19. string title = "日期"
  20. boolean minbox = false
  21. windowtype windowtype = response!
  22. em_1 em_1
  23. em_2 em_2
  24. cb_1 cb_1
  25. st_1 st_1
  26. st_2 st_2
  27. end type
  28. global w_query_dt w_query_dt
  29. type variables
  30. s_query_dt s_dt
  31. end variables
  32. on w_query_dt.create
  33. int iCurrent
  34. call super::create
  35. this.em_1=create em_1
  36. this.em_2=create em_2
  37. this.cb_1=create cb_1
  38. this.st_1=create st_1
  39. this.st_2=create st_2
  40. iCurrent=UpperBound(this.Control)
  41. this.Control[iCurrent+1]=this.em_1
  42. this.Control[iCurrent+2]=this.em_2
  43. this.Control[iCurrent+3]=this.cb_1
  44. this.Control[iCurrent+4]=this.st_1
  45. this.Control[iCurrent+5]=this.st_2
  46. end on
  47. on w_query_dt.destroy
  48. call super::destroy
  49. destroy(this.em_1)
  50. destroy(this.em_2)
  51. destroy(this.cb_1)
  52. destroy(this.st_1)
  53. destroy(this.st_2)
  54. end on
  55. event close;call super::close;CloseWithReturn(THIS,s_dt)
  56. end event
  57. event open;call super::open;s_dt.ifquery = FALSE
  58. end event
  59. type cb_func from w_publ_base`cb_func within w_query_dt
  60. boolean visible = false
  61. integer x = 178
  62. integer y = 1168
  63. boolean enabled = false
  64. end type
  65. type cb_exit from w_publ_base`cb_exit within w_query_dt
  66. integer x = 741
  67. integer y = 476
  68. end type
  69. type em_1 from uo_editmask_date within w_query_dt
  70. integer x = 517
  71. integer y = 120
  72. integer taborder = 30
  73. boolean bringtotop = true
  74. end type
  75. event constructor;call super::constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
  76. end event
  77. type em_2 from uo_editmask_date within w_query_dt
  78. integer x = 517
  79. integer y = 264
  80. integer taborder = 40
  81. boolean bringtotop = true
  82. end type
  83. event constructor;call super::constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
  84. end event
  85. type cb_1 from uo_imflatbutton within w_query_dt
  86. integer x = 229
  87. integer y = 476
  88. integer width = 311
  89. integer taborder = 50
  90. boolean bringtotop = true
  91. string normalpicname = "ok.bmp"
  92. end type
  93. event clicked;call super::clicked;s_dt.ifquery = TRUE
  94. s_dt.fdt = DateTime(Date(em_1.Text),Time(0))
  95. s_dt.edt = DateTime(Date(em_2.Text),Time('23:59:59'))
  96. Close(PARENT)
  97. end event
  98. type st_1 from statictext within w_query_dt
  99. integer x = 197
  100. integer y = 140
  101. integer width = 311
  102. integer height = 48
  103. boolean bringtotop = true
  104. integer textsize = -9
  105. integer weight = 400
  106. fontcharset fontcharset = gb2312charset!
  107. fontpitch fontpitch = variable!
  108. string facename = "宋体"
  109. long textcolor = 33554432
  110. long backcolor = 134217739
  111. string text = "开始日期"
  112. alignment alignment = center!
  113. boolean focusrectangle = false
  114. end type
  115. type st_2 from statictext within w_query_dt
  116. integer x = 197
  117. integer y = 284
  118. integer width = 311
  119. integer height = 48
  120. boolean bringtotop = true
  121. integer textsize = -9
  122. integer weight = 400
  123. fontcharset fontcharset = gb2312charset!
  124. fontpitch fontpitch = variable!
  125. string facename = "宋体"
  126. long textcolor = 33554432
  127. long backcolor = 134217739
  128. string text = "结束日期"
  129. alignment alignment = center!
  130. boolean focusrectangle = false
  131. end type