w_ware_cmpl_taxamt.srw 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. $PBExportHeader$w_ware_cmpl_taxamt.srw
  2. forward
  3. global type w_ware_cmpl_taxamt from w_publ_base_style
  4. end type
  5. type st_taxamt from statictext within w_ware_cmpl_taxamt
  6. end type
  7. type sle_taxamt from singlelineedit within w_ware_cmpl_taxamt
  8. end type
  9. type cb_2 from uo_imflatbutton within w_ware_cmpl_taxamt
  10. end type
  11. type cb_1 from uo_imflatbutton within w_ware_cmpl_taxamt
  12. end type
  13. end forward
  14. global type w_ware_cmpl_taxamt from w_publ_base_style
  15. integer width = 1362
  16. integer height = 472
  17. string title = "录入税金计算税率"
  18. boolean minbox = false
  19. windowtype windowtype = response!
  20. st_taxamt st_taxamt
  21. sle_taxamt sle_taxamt
  22. cb_2 cb_2
  23. cb_1 cb_1
  24. end type
  25. global w_ware_cmpl_taxamt w_ware_cmpl_taxamt
  26. type variables
  27. s_edit_index_tran s_return
  28. end variables
  29. on w_ware_cmpl_taxamt.create
  30. int iCurrent
  31. call super::create
  32. this.st_taxamt=create st_taxamt
  33. this.sle_taxamt=create sle_taxamt
  34. this.cb_2=create cb_2
  35. this.cb_1=create cb_1
  36. iCurrent=UpperBound(this.Control)
  37. this.Control[iCurrent+1]=this.st_taxamt
  38. this.Control[iCurrent+2]=this.sle_taxamt
  39. this.Control[iCurrent+3]=this.cb_2
  40. this.Control[iCurrent+4]=this.cb_1
  41. end on
  42. on w_ware_cmpl_taxamt.destroy
  43. call super::destroy
  44. destroy(this.st_taxamt)
  45. destroy(this.sle_taxamt)
  46. destroy(this.cb_2)
  47. destroy(this.cb_1)
  48. end on
  49. event open;call super::open;s_edit_index_tran s_tran
  50. String ls_unit
  51. decimal lde_price,lde_price_notax
  52. s_tran = Message.PowerObjectParm
  53. If Not IsNull(s_tran) Then
  54. ls_unit = s_tran.b_string
  55. lde_price = s_tran.b_decimal
  56. lde_price_notax = s_tran.c_decimal
  57. End If
  58. st_taxamt.Text = '* 每'+ ls_unit + '税金:'
  59. //sle_price.text = string(lde_price,'#,##0.####')
  60. //sle_price_notax.text = string(lde_price_notax,'#,##0.####')
  61. end event
  62. event close;call super::close;CloseWithReturn(This,s_return)
  63. end event
  64. type cb_func from w_publ_base_style`cb_func within w_ware_cmpl_taxamt
  65. boolean visible = false
  66. end type
  67. type cb_exit from w_publ_base_style`cb_exit within w_ware_cmpl_taxamt
  68. boolean visible = false
  69. integer x = 1143
  70. integer y = 536
  71. end type
  72. type ln_bar from w_publ_base_style`ln_bar within w_ware_cmpl_taxamt
  73. boolean visible = false
  74. end type
  75. type ln_bar2 from w_publ_base_style`ln_bar2 within w_ware_cmpl_taxamt
  76. boolean visible = false
  77. end type
  78. type r_bar from w_publ_base_style`r_bar within w_ware_cmpl_taxamt
  79. boolean visible = false
  80. end type
  81. type st_taxamt from statictext within w_ware_cmpl_taxamt
  82. integer x = 50
  83. integer y = 84
  84. integer width = 334
  85. integer height = 84
  86. boolean bringtotop = true
  87. integer textsize = -9
  88. integer weight = 400
  89. fontcharset fontcharset = gb2312charset!
  90. fontpitch fontpitch = variable!
  91. string facename = "宋体"
  92. long textcolor = 33554432
  93. long backcolor = 134217739
  94. string text = "每单位税:"
  95. alignment alignment = right!
  96. boolean focusrectangle = false
  97. end type
  98. type sle_taxamt from singlelineedit within w_ware_cmpl_taxamt
  99. event key pbm_keydown
  100. integer x = 398
  101. integer y = 72
  102. integer width = 928
  103. integer height = 84
  104. integer taborder = 30
  105. boolean bringtotop = true
  106. integer textsize = -9
  107. integer weight = 400
  108. fontcharset fontcharset = gb2312charset!
  109. fontpitch fontpitch = variable!
  110. string facename = "宋体"
  111. long textcolor = 33554432
  112. borderstyle borderstyle = stylelowered!
  113. end type
  114. event key;If KeyDown(keyenter!) Then
  115. cb_2.TriggerEvent(Clicked!)
  116. End If
  117. end event
  118. type cb_2 from uo_imflatbutton within w_ware_cmpl_taxamt
  119. integer x = 1010
  120. integer y = 196
  121. integer width = 151
  122. integer height = 164
  123. integer taborder = 20
  124. boolean bringtotop = true
  125. end type
  126. event clicked;call super::clicked;Dec lde_taxamt
  127. lde_taxamt = 0
  128. If sle_taxamt.Text <> '' Then
  129. lde_taxamt = Dec(sle_taxamt.Text)
  130. Else
  131. MessageBox('提示','请输入单位税金!')
  132. Return
  133. End If
  134. s_return.b_decimal = lde_taxamt
  135. Parent.TriggerEvent(Close!)
  136. end event
  137. type cb_1 from uo_imflatbutton within w_ware_cmpl_taxamt
  138. integer x = 1170
  139. integer y = 196
  140. integer width = 151
  141. integer height = 164
  142. integer taborder = 20
  143. boolean bringtotop = true
  144. string text = "退出"
  145. end type
  146. event clicked;call super::clicked;close(parent)
  147. end event