w_mod_outdate.srw 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. $PBExportHeader$w_mod_outdate.srw
  2. forward
  3. global type w_mod_outdate from window
  4. end type
  5. type st_1 from statictext within w_mod_outdate
  6. end type
  7. type em_1 from editmask within w_mod_outdate
  8. end type
  9. type cb_2 from commandbutton within w_mod_outdate
  10. end type
  11. type cb_1 from commandbutton within w_mod_outdate
  12. end type
  13. end forward
  14. global type w_mod_outdate from window
  15. integer width = 1284
  16. integer height = 493
  17. boolean titlebar = true
  18. string title = "批修改销售时间"
  19. boolean controlmenu = true
  20. windowtype windowtype = response!
  21. long backcolor = 67108864
  22. string icon = "AppIcon!"
  23. boolean center = true
  24. st_1 st_1
  25. em_1 em_1
  26. cb_2 cb_2
  27. cb_1 cb_1
  28. end type
  29. global w_mod_outdate w_mod_outdate
  30. type variables
  31. s_edit_index_tran s_tran
  32. end variables
  33. on w_mod_outdate.create
  34. this.st_1=create st_1
  35. this.em_1=create em_1
  36. this.cb_2=create cb_2
  37. this.cb_1=create cb_1
  38. this.Control[]={this.st_1,&
  39. this.em_1,&
  40. this.cb_2,&
  41. this.cb_1}
  42. end on
  43. on w_mod_outdate.destroy
  44. destroy(this.st_1)
  45. destroy(this.em_1)
  46. destroy(this.cb_2)
  47. destroy(this.cb_1)
  48. end on
  49. event open;//s_tran = Message.PowerObjectParm
  50. em_1.text = string(today())
  51. end event
  52. event close;CLOSEWITHRETURN(THIS,s_tran)
  53. end event
  54. type st_1 from statictext within w_mod_outdate
  55. integer x = 84
  56. integer y = 138
  57. integer width = 413
  58. integer height = 48
  59. integer textsize = -9
  60. integer weight = 400
  61. fontcharset fontcharset = gb2312charset!
  62. fontpitch fontpitch = variable!
  63. string facename = "宋体"
  64. long textcolor = 33554432
  65. long backcolor = 67108864
  66. string text = "销售时间"
  67. alignment alignment = center!
  68. boolean focusrectangle = false
  69. end type
  70. type em_1 from editmask within w_mod_outdate
  71. integer x = 556
  72. integer y = 118
  73. integer width = 505
  74. integer height = 86
  75. integer taborder = 10
  76. integer textsize = -9
  77. integer weight = 400
  78. fontcharset fontcharset = gb2312charset!
  79. fontpitch fontpitch = variable!
  80. string facename = "宋体"
  81. long textcolor = 33554432
  82. string text = "none"
  83. alignment alignment = Center!
  84. borderstyle borderstyle = stylelowered!
  85. maskdatatype maskdatatype = datemask!
  86. string mask = "yyyy-mm-dd"
  87. boolean spin = true
  88. end type
  89. type cb_2 from commandbutton within w_mod_outdate
  90. integer x = 655
  91. integer y = 266
  92. integer width = 350
  93. integer height = 90
  94. integer taborder = 20
  95. integer textsize = -9
  96. integer weight = 400
  97. fontcharset fontcharset = gb2312charset!
  98. fontpitch fontpitch = variable!
  99. string facename = "宋体"
  100. string text = "取消"
  101. end type
  102. event clicked;close(parent)
  103. end event
  104. type cb_1 from commandbutton within w_mod_outdate
  105. integer x = 263
  106. integer y = 266
  107. integer width = 350
  108. integer height = 90
  109. integer taborder = 10
  110. integer textsize = -9
  111. integer weight = 400
  112. fontcharset fontcharset = gb2312charset!
  113. fontpitch fontpitch = variable!
  114. string facename = "宋体"
  115. string text = "确认"
  116. end type
  117. event clicked;s_tran.b_datetime = datetime(em_1.text)
  118. s_tran.b_long = 1
  119. close(parent)
  120. end event