w_autobill_date_ch.srw 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. $PBExportHeader$w_autobill_date_ch.srw
  2. forward
  3. global type w_autobill_date_ch from w_publ_base
  4. end type
  5. type em_1 from editmask within w_autobill_date_ch
  6. end type
  7. type cb_1 from uo_imflatbutton within w_autobill_date_ch
  8. end type
  9. type st_1 from statictext within w_autobill_date_ch
  10. end type
  11. end forward
  12. global type w_autobill_date_ch from w_publ_base
  13. integer width = 1335
  14. integer height = 600
  15. string title = "截止日期"
  16. boolean minbox = false
  17. windowtype windowtype = response!
  18. em_1 em_1
  19. cb_1 cb_1
  20. st_1 st_1
  21. end type
  22. global w_autobill_date_ch w_autobill_date_ch
  23. type variables
  24. s_edit_index_tran s_tran
  25. end variables
  26. on w_autobill_date_ch.create
  27. int iCurrent
  28. call super::create
  29. this.em_1=create em_1
  30. this.cb_1=create cb_1
  31. this.st_1=create st_1
  32. iCurrent=UpperBound(this.Control)
  33. this.Control[iCurrent+1]=this.em_1
  34. this.Control[iCurrent+2]=this.cb_1
  35. this.Control[iCurrent+3]=this.st_1
  36. end on
  37. on w_autobill_date_ch.destroy
  38. call super::destroy
  39. destroy(this.em_1)
  40. destroy(this.cb_1)
  41. destroy(this.st_1)
  42. end on
  43. event close;call super::close;closewithreturn(this,s_tran)
  44. end event
  45. type cb_func from w_publ_base`cb_func within w_autobill_date_ch
  46. boolean visible = false
  47. end type
  48. type cb_exit from w_publ_base`cb_exit within w_autobill_date_ch
  49. integer x = 795
  50. integer y = 340
  51. integer taborder = 40
  52. string text = "取消"
  53. integer picsize = 16
  54. end type
  55. event cb_exit::clicked;s_tran.b_long = 0
  56. close(parent)
  57. end event
  58. type em_1 from editmask within w_autobill_date_ch
  59. integer x = 453
  60. integer y = 180
  61. integer width = 402
  62. integer height = 84
  63. integer taborder = 10
  64. boolean bringtotop = true
  65. integer textsize = -9
  66. integer weight = 400
  67. fontcharset fontcharset = gb2312charset!
  68. fontpitch fontpitch = variable!
  69. string facename = "宋体"
  70. long textcolor = 33554432
  71. string text = "none"
  72. alignment alignment = center!
  73. borderstyle borderstyle = stylelowered!
  74. maskdatatype maskdatatype = datemask!
  75. string mask = "yyyy-mm-dd"
  76. boolean spin = true
  77. end type
  78. event constructor;this.text = String(Today(),'yyyy-mm-dd')
  79. end event
  80. event rbuttondown;s_calender_arg s_calender
  81. s_calender.PointerX = This.PointerX() + Parent.X
  82. s_calender.PointerY = This.PointerY() + Parent.Y
  83. s_calender.X = This.X
  84. s_calender.Y = This.Y
  85. OpenWithParm(w_calendar,s_calender)
  86. This.Text = String(id_date_selected)
  87. end event
  88. type cb_1 from uo_imflatbutton within w_autobill_date_ch
  89. integer x = 224
  90. integer y = 340
  91. integer width = 311
  92. integer height = 96
  93. integer taborder = 30
  94. boolean bringtotop = true
  95. boolean default = true
  96. string normalpicname = "ok.bmp"
  97. integer picsize = 16
  98. end type
  99. event clicked;call super::clicked;s_tran.b_long = 1
  100. s_tran.b_datetime = DateTime(Date(em_1.Text),Time('23:59:59'))
  101. close(parent)
  102. end event
  103. type st_1 from statictext within w_autobill_date_ch
  104. integer x = 23
  105. integer y = 52
  106. integer width = 1294
  107. integer height = 84
  108. boolean bringtotop = true
  109. integer textsize = -11
  110. integer weight = 400
  111. fontcharset fontcharset = gb2312charset!
  112. fontpitch fontpitch = variable!
  113. string facename = "宋体"
  114. long textcolor = 33554432
  115. long backcolor = 134217739
  116. string text = "请输入截止日期,系统将结清日期前的帐目"
  117. alignment alignment = center!
  118. boolean focusrectangle = false
  119. end type