w_pdb_date.srw 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. $PBExportHeader$w_pdb_date.srw
  2. forward
  3. global type w_pdb_date from w_publ_base
  4. end type
  5. type cb_1 from uo_imflatbutton within w_pdb_date
  6. end type
  7. type st_1 from statictext within w_pdb_date
  8. end type
  9. type em_3 from editmask within w_pdb_date
  10. end type
  11. type cbx_noallocqty from checkbox within w_pdb_date
  12. end type
  13. end forward
  14. global type w_pdb_date from w_publ_base
  15. integer width = 1257
  16. integer height = 612
  17. string title = "日期"
  18. boolean minbox = false
  19. windowtype windowtype = response!
  20. cb_1 cb_1
  21. st_1 st_1
  22. em_3 em_3
  23. cbx_noallocqty cbx_noallocqty
  24. end type
  25. global w_pdb_date w_pdb_date
  26. type variables
  27. string rst_pdb
  28. s_edit_index_tran s_tran_re
  29. end variables
  30. on w_pdb_date.create
  31. int iCurrent
  32. call super::create
  33. this.cb_1=create cb_1
  34. this.st_1=create st_1
  35. this.em_3=create em_3
  36. this.cbx_noallocqty=create cbx_noallocqty
  37. iCurrent=UpperBound(this.Control)
  38. this.Control[iCurrent+1]=this.cb_1
  39. this.Control[iCurrent+2]=this.st_1
  40. this.Control[iCurrent+3]=this.em_3
  41. this.Control[iCurrent+4]=this.cbx_noallocqty
  42. end on
  43. on w_pdb_date.destroy
  44. call super::destroy
  45. destroy(this.cb_1)
  46. destroy(this.st_1)
  47. destroy(this.em_3)
  48. destroy(this.cbx_noallocqty)
  49. end on
  50. event open;call super::open;String ls_title
  51. ls_title = Message.StringParm
  52. THIS.Title = ls_title
  53. st_1.Text = ls_title
  54. rst_pdb = ''
  55. end event
  56. event close;call super::close;CloseWithReturn(THIS,s_tran_re)
  57. end event
  58. type cb_func from w_publ_base`cb_func within w_pdb_date
  59. boolean visible = false
  60. integer x = 1115
  61. integer y = 4
  62. integer width = 114
  63. boolean enabled = false
  64. end type
  65. type cb_exit from w_publ_base`cb_exit within w_pdb_date
  66. integer x = 626
  67. integer y = 344
  68. string text = "取消"
  69. end type
  70. event cb_exit::clicked;rst_pdb = ''
  71. Close(PARENT)
  72. end event
  73. type cb_1 from uo_imflatbutton within w_pdb_date
  74. integer x = 219
  75. integer y = 344
  76. integer width = 311
  77. integer height = 96
  78. integer taborder = 30
  79. boolean bringtotop = true
  80. string normalpicname = "ok.bmp"
  81. end type
  82. event clicked;call super::clicked;s_tran_re.b_string = em_3.Text
  83. IF cbx_noallocqty.Checked THEN
  84. s_tran_re.b_long = 1
  85. ELSE
  86. s_tran_re.b_long = 0
  87. END IF
  88. Close(PARENT)
  89. end event
  90. type st_1 from statictext within w_pdb_date
  91. integer x = 169
  92. integer y = 136
  93. integer width = 256
  94. integer height = 48
  95. boolean bringtotop = true
  96. integer textsize = -9
  97. integer weight = 400
  98. fontcharset fontcharset = gb2312charset!
  99. fontpitch fontpitch = variable!
  100. string facename = "宋体"
  101. long textcolor = 33554432
  102. long backcolor = 134217739
  103. string text = "日期"
  104. alignment alignment = right!
  105. boolean focusrectangle = false
  106. end type
  107. type em_3 from editmask within w_pdb_date
  108. integer x = 443
  109. integer y = 120
  110. integer width = 430
  111. integer height = 88
  112. integer taborder = 10
  113. boolean bringtotop = true
  114. integer textsize = -9
  115. integer weight = 400
  116. fontcharset fontcharset = gb2312charset!
  117. fontpitch fontpitch = variable!
  118. string facename = "宋体"
  119. long textcolor = 33554432
  120. string text = "none"
  121. alignment alignment = center!
  122. borderstyle borderstyle = stylelowered!
  123. maskdatatype maskdatatype = datetimemask!
  124. string mask = "yyyy-mm-dd"
  125. boolean spin = true
  126. end type
  127. event rbuttondown;s_calender_arg s_calender
  128. s_calender.PointerX = THIS.PointerX()
  129. s_calender.PointerY = THIS.PointerY()
  130. s_calender.X = THIS.X
  131. s_calender.Y = THIS.Y
  132. OpenWithParm(w_calendar,s_calender)
  133. THIS.Text = String(id_date_selected)
  134. end event
  135. event constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
  136. end event
  137. type cbx_noallocqty from checkbox within w_pdb_date
  138. boolean visible = false
  139. integer x = 357
  140. integer y = 252
  141. integer width = 411
  142. integer height = 60
  143. boolean bringtotop = true
  144. integer textsize = -9
  145. integer weight = 400
  146. fontcharset fontcharset = gb2312charset!
  147. fontpitch fontpitch = variable!
  148. string facename = "宋体"
  149. long textcolor = 33554432
  150. long backcolor = 134217739
  151. string text = "不考虑零库存"
  152. end type