w_credence_edit_popup_dft.srw 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. $PBExportHeader$w_credence_edit_popup_dft.srw
  2. $PBExportComments$凭证录入
  3. forward
  4. global type w_credence_edit_popup_dft from w_publ_base
  5. end type
  6. type em_dft_yearmon from editmask within w_credence_edit_popup_dft
  7. end type
  8. type st_dft_cmonth from statictext within w_credence_edit_popup_dft
  9. end type
  10. type em_1 from uo_editmask_date within w_credence_edit_popup_dft
  11. end type
  12. type cb_1 from uo_imflatbutton within w_credence_edit_popup_dft
  13. end type
  14. type cbx_1 from checkbox within w_credence_edit_popup_dft
  15. end type
  16. end forward
  17. global type w_credence_edit_popup_dft from w_publ_base
  18. integer width = 1225
  19. integer height = 556
  20. string title = "设置"
  21. boolean minbox = false
  22. windowtype windowtype = response!
  23. em_dft_yearmon em_dft_yearmon
  24. st_dft_cmonth st_dft_cmonth
  25. em_1 em_1
  26. cb_1 cb_1
  27. cbx_1 cbx_1
  28. end type
  29. global w_credence_edit_popup_dft w_credence_edit_popup_dft
  30. type variables
  31. s_edit_index_tran s_rst
  32. end variables
  33. on w_credence_edit_popup_dft.create
  34. int iCurrent
  35. call super::create
  36. this.em_dft_yearmon=create em_dft_yearmon
  37. this.st_dft_cmonth=create st_dft_cmonth
  38. this.em_1=create em_1
  39. this.cb_1=create cb_1
  40. this.cbx_1=create cbx_1
  41. iCurrent=UpperBound(this.Control)
  42. this.Control[iCurrent+1]=this.em_dft_yearmon
  43. this.Control[iCurrent+2]=this.st_dft_cmonth
  44. this.Control[iCurrent+3]=this.em_1
  45. this.Control[iCurrent+4]=this.cb_1
  46. this.Control[iCurrent+5]=this.cbx_1
  47. end on
  48. on w_credence_edit_popup_dft.destroy
  49. call super::destroy
  50. destroy(this.em_dft_yearmon)
  51. destroy(this.st_dft_cmonth)
  52. destroy(this.em_1)
  53. destroy(this.cb_1)
  54. destroy(this.cbx_1)
  55. end on
  56. event close;call super::close;CloseWithReturn(THIS,s_rst)
  57. end event
  58. type cb_func from w_publ_base`cb_func within w_credence_edit_popup_dft
  59. integer x = 297
  60. integer y = 900
  61. end type
  62. type cb_exit from w_publ_base`cb_exit within w_credence_edit_popup_dft
  63. integer x = 645
  64. integer y = 308
  65. string text = "取消"
  66. end type
  67. event cb_exit::clicked;s_rst.d_long = 0
  68. CLOSE(PARENT)
  69. end event
  70. type em_dft_yearmon from editmask within w_credence_edit_popup_dft
  71. integer x = 590
  72. integer y = 24
  73. integer width = 288
  74. integer height = 88
  75. integer taborder = 10
  76. boolean bringtotop = true
  77. integer textsize = -9
  78. integer weight = 400
  79. fontcharset fontcharset = gb2312charset!
  80. fontpitch fontpitch = variable!
  81. string facename = "宋体"
  82. long textcolor = 33554432
  83. borderstyle borderstyle = stylelowered!
  84. string mask = "000000"
  85. boolean spin = true
  86. end type
  87. event constructor;this.text = string(sys_curyearmon)
  88. end event
  89. type st_dft_cmonth from statictext within w_credence_edit_popup_dft
  90. integer x = 169
  91. integer y = 40
  92. integer width = 411
  93. integer height = 52
  94. boolean bringtotop = true
  95. integer textsize = -9
  96. integer weight = 400
  97. fontcharset fontcharset = gb2312charset!
  98. fontpitch fontpitch = variable!
  99. string facename = "宋体"
  100. long textcolor = 33554432
  101. long backcolor = 134217739
  102. boolean enabled = false
  103. string text = "默认凭证月份:"
  104. alignment alignment = right!
  105. boolean focusrectangle = false
  106. end type
  107. type em_1 from uo_editmask_date within w_credence_edit_popup_dft
  108. integer x = 590
  109. integer y = 156
  110. integer taborder = 20
  111. boolean bringtotop = true
  112. end type
  113. event constructor;call super::constructor;THIS.Text = String(f_rst_mon_1st(3,sys_curyearmon),'yyyy-mm-dd')
  114. end event
  115. type cb_1 from uo_imflatbutton within w_credence_edit_popup_dft
  116. integer x = 197
  117. integer y = 308
  118. integer width = 311
  119. integer height = 96
  120. integer taborder = 20
  121. boolean bringtotop = true
  122. end type
  123. event clicked;call super::clicked;
  124. s_rst.d_long = 1
  125. s_rst.b_long = Long(em_dft_yearmon.Text)
  126. IF cbx_1.Checked THEN
  127. s_rst.c_long = 1
  128. ELSE
  129. s_rst.c_long = 0
  130. END IF
  131. s_rst.b_datetime = DateTime(Date(em_1.Text),Time(0))
  132. CLOSE(PARENT)
  133. end event
  134. type cbx_1 from checkbox within w_credence_edit_popup_dft
  135. integer x = 114
  136. integer y = 172
  137. integer width = 466
  138. integer height = 60
  139. boolean bringtotop = true
  140. integer textsize = -9
  141. integer weight = 400
  142. fontcharset fontcharset = gb2312charset!
  143. fontpitch fontpitch = variable!
  144. string facename = "宋体"
  145. long textcolor = 33554432
  146. long backcolor = 134217739
  147. string text = "默认相关日期:"
  148. end type