w_credence_post.srw 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. $PBExportHeader$w_credence_post.srw
  2. forward
  3. global type w_credence_post from w_publ_base
  4. end type
  5. type dw_1 from datawindow within w_credence_post
  6. end type
  7. type gb_2 from groupbox within w_credence_post
  8. end type
  9. type gb_1 from groupbox within w_credence_post
  10. end type
  11. type cb_1 from uo_imflatbutton within w_credence_post
  12. end type
  13. type rb_1 from radiobutton within w_credence_post
  14. end type
  15. type rb_2 from radiobutton within w_credence_post
  16. end type
  17. type p_1 from picture within w_credence_post
  18. end type
  19. type mle_1 from multilineedit within w_credence_post
  20. end type
  21. end forward
  22. global type w_credence_post from w_publ_base
  23. integer width = 2043
  24. integer height = 1200
  25. string title = "凭证登帐"
  26. boolean minbox = false
  27. long backcolor = 80269524
  28. dw_1 dw_1
  29. gb_2 gb_2
  30. gb_1 gb_1
  31. cb_1 cb_1
  32. rb_1 rb_1
  33. rb_2 rb_2
  34. p_1 p_1
  35. mle_1 mle_1
  36. end type
  37. global w_credence_post w_credence_post
  38. type variables
  39. uo_credence uo_credpost
  40. end variables
  41. on w_credence_post.create
  42. int iCurrent
  43. call super::create
  44. this.dw_1=create dw_1
  45. this.gb_2=create gb_2
  46. this.gb_1=create gb_1
  47. this.cb_1=create cb_1
  48. this.rb_1=create rb_1
  49. this.rb_2=create rb_2
  50. this.p_1=create p_1
  51. this.mle_1=create mle_1
  52. iCurrent=UpperBound(this.Control)
  53. this.Control[iCurrent+1]=this.dw_1
  54. this.Control[iCurrent+2]=this.gb_2
  55. this.Control[iCurrent+3]=this.gb_1
  56. this.Control[iCurrent+4]=this.cb_1
  57. this.Control[iCurrent+5]=this.rb_1
  58. this.Control[iCurrent+6]=this.rb_2
  59. this.Control[iCurrent+7]=this.p_1
  60. this.Control[iCurrent+8]=this.mle_1
  61. end on
  62. on w_credence_post.destroy
  63. call super::destroy
  64. destroy(this.dw_1)
  65. destroy(this.gb_2)
  66. destroy(this.gb_1)
  67. destroy(this.cb_1)
  68. destroy(this.rb_1)
  69. destroy(this.rb_2)
  70. destroy(this.p_1)
  71. destroy(this.mle_1)
  72. end on
  73. event open;call super::open;dw_1.settransobject(sqlca)
  74. dw_1.retrieve(sys_accsetid)
  75. uo_credpost = create uo_credence
  76. end event
  77. event close;destroy uo_credpost
  78. end event
  79. type cb_func from w_publ_base`cb_func within w_credence_post
  80. boolean visible = false
  81. integer x = 114
  82. integer y = 248
  83. boolean enabled = false
  84. end type
  85. type cb_exit from w_publ_base`cb_exit within w_credence_post
  86. integer x = 1664
  87. integer y = 952
  88. string text = "取消"
  89. end type
  90. type dw_1 from datawindow within w_credence_post
  91. integer x = 585
  92. integer y = 240
  93. integer width = 1413
  94. integer height = 152
  95. integer taborder = 20
  96. boolean bringtotop = true
  97. string dataobject = "dw_accset_curyearmon"
  98. boolean border = false
  99. boolean livescroll = true
  100. end type
  101. type gb_2 from groupbox within w_credence_post
  102. integer x = 32
  103. integer y = 884
  104. integer width = 1961
  105. integer height = 36
  106. integer taborder = 50
  107. integer textsize = -9
  108. integer weight = 400
  109. fontcharset fontcharset = gb2312charset!
  110. fontpitch fontpitch = variable!
  111. string facename = "宋体"
  112. long textcolor = 33554432
  113. long backcolor = 67108864
  114. end type
  115. type gb_1 from groupbox within w_credence_post
  116. integer x = 599
  117. integer y = 444
  118. integer width = 1390
  119. integer height = 428
  120. integer taborder = 30
  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 = 67108864
  128. string text = "凭证连续性选择"
  129. end type
  130. type cb_1 from uo_imflatbutton within w_credence_post
  131. integer x = 1262
  132. integer y = 956
  133. integer width = 311
  134. integer height = 96
  135. integer taborder = 60
  136. boolean bringtotop = true
  137. boolean default = true
  138. string normalpicname = "ok.bmp"
  139. end type
  140. event clicked;Int arg_posttype
  141. String arg_msg
  142. IF rb_1.Checked THEN
  143. arg_posttype = 1
  144. ELSE
  145. arg_posttype = 2
  146. END IF
  147. //检查凭证号是否连续
  148. IF uo_credpost.post_begin(arg_posttype,sys_subaccsetid,arg_msg) = 0 THEN
  149. MessageBox(publ_operator,arg_msg)
  150. RETURN
  151. END IF
  152. IF uo_credpost.Post(sys_subaccsetid,arg_msg,TRUE) = 0 THEN
  153. MessageBox(publ_operator,arg_msg)
  154. RETURN
  155. END IF
  156. f_setsysoplog('登帐','登帐,用户:'+publ_operator+',帐套:'+s_sys_accset.accsetname,arg_msg,TRUE)
  157. arg_msg = '会计期间:'+String(sys_curyearmon)+'的凭证登帐成功,'+arg_msg
  158. MessageBox(publ_operator,arg_msg)
  159. Close(PARENT)
  160. end event
  161. type rb_1 from radiobutton within w_credence_post
  162. integer x = 731
  163. integer y = 552
  164. integer width = 850
  165. integer height = 76
  166. boolean bringtotop = true
  167. integer textsize = -9
  168. integer weight = 400
  169. fontcharset fontcharset = gb2312charset!
  170. fontpitch fontpitch = variable!
  171. string facename = "宋体"
  172. long textcolor = 33554432
  173. long backcolor = 67108864
  174. string text = "发现凭证号不连续时终止登帐"
  175. boolean checked = true
  176. end type
  177. type rb_2 from radiobutton within w_credence_post
  178. integer x = 731
  179. integer y = 688
  180. integer width = 850
  181. integer height = 76
  182. boolean bringtotop = true
  183. integer textsize = -9
  184. integer weight = 400
  185. fontcharset fontcharset = gb2312charset!
  186. fontpitch fontpitch = variable!
  187. string facename = "宋体"
  188. long textcolor = 33554432
  189. long backcolor = 67108864
  190. string text = "允许凭证号不连续的凭证登帐"
  191. end type
  192. type p_1 from picture within w_credence_post
  193. integer x = 32
  194. integer y = 36
  195. integer width = 539
  196. integer height = 832
  197. boolean bringtotop = true
  198. boolean originalsize = true
  199. string picturename = "graphics\post.bmp"
  200. boolean border = true
  201. borderstyle borderstyle = stylelowered!
  202. boolean focusrectangle = false
  203. end type
  204. type mle_1 from multilineedit within w_credence_post
  205. integer x = 599
  206. integer y = 40
  207. integer width = 1390
  208. integer height = 180
  209. integer taborder = 40
  210. boolean bringtotop = true
  211. integer textsize = -9
  212. integer weight = 400
  213. fontcharset fontcharset = gb2312charset!
  214. fontpitch fontpitch = variable!
  215. string facename = "宋体"
  216. long textcolor = 16711680
  217. string text = " 提示:本次登帐将把当前会计期间所有未登帐的凭证一次性地登入总分类帐户和明细分类帐户,以便于查询帐表和输出报表。"
  218. boolean displayonly = true
  219. borderstyle borderstyle = stylelowered!
  220. end type