w_outware_pos_qty.srw 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. $PBExportHeader$w_outware_pos_qty.srw
  2. forward
  3. global type w_outware_pos_qty from w_publ_base
  4. end type
  5. type cb_1 from uo_imflatbutton within w_outware_pos_qty
  6. end type
  7. type em_1 from editmask within w_outware_pos_qty
  8. end type
  9. type st_2 from statictext within w_outware_pos_qty
  10. end type
  11. type st_1 from statictext within w_outware_pos_qty
  12. end type
  13. type st_mtrlname from statictext within w_outware_pos_qty
  14. end type
  15. end forward
  16. global type w_outware_pos_qty from w_publ_base
  17. integer width = 1481
  18. integer height = 704
  19. boolean titlebar = false
  20. string title = ""
  21. boolean controlmenu = false
  22. boolean minbox = false
  23. windowtype windowtype = response!
  24. cb_1 cb_1
  25. em_1 em_1
  26. st_2 st_2
  27. st_1 st_1
  28. st_mtrlname st_mtrlname
  29. end type
  30. global w_outware_pos_qty w_outware_pos_qty
  31. type variables
  32. s_pos_qty_tran s_rt_stru
  33. end variables
  34. event open;call super::open;s_rt_stru = message.powerobjectparm
  35. em_1.text = string(s_rt_stru.preqty)
  36. st_mtrlname.text = string(s_rt_stru.mtrlname)
  37. em_1.setfocus()
  38. s_rt_stru.if_ok = 0
  39. end event
  40. on w_outware_pos_qty.create
  41. int iCurrent
  42. call super::create
  43. this.cb_1=create cb_1
  44. this.em_1=create em_1
  45. this.st_2=create st_2
  46. this.st_1=create st_1
  47. this.st_mtrlname=create st_mtrlname
  48. iCurrent=UpperBound(this.Control)
  49. this.Control[iCurrent+1]=this.cb_1
  50. this.Control[iCurrent+2]=this.em_1
  51. this.Control[iCurrent+3]=this.st_2
  52. this.Control[iCurrent+4]=this.st_1
  53. this.Control[iCurrent+5]=this.st_mtrlname
  54. end on
  55. on w_outware_pos_qty.destroy
  56. call super::destroy
  57. destroy(this.cb_1)
  58. destroy(this.em_1)
  59. destroy(this.st_2)
  60. destroy(this.st_1)
  61. destroy(this.st_mtrlname)
  62. end on
  63. event close;call super::close;closewithreturn(this,s_rt_stru)
  64. end event
  65. type cb_func from w_publ_base`cb_func within w_outware_pos_qty
  66. boolean visible = false
  67. integer y = 688
  68. end type
  69. type cb_exit from w_publ_base`cb_exit within w_outware_pos_qty
  70. integer x = 873
  71. integer y = 504
  72. string text = "退出[ESC]"
  73. string normalpicname = ""
  74. end type
  75. event cb_exit::clicked;s_rt_stru.if_ok = 0
  76. close(parent)
  77. end event
  78. type cb_1 from uo_imflatbutton within w_outware_pos_qty
  79. integer x = 329
  80. integer y = 504
  81. integer width = 311
  82. integer height = 96
  83. integer taborder = 30
  84. boolean bringtotop = true
  85. string text = "确定[ENT]"
  86. boolean default = true
  87. end type
  88. event clicked;call super::clicked;s_rt_stru.if_ok = 1
  89. s_rt_stru.newqty = dec(em_1.text)
  90. close(parent)
  91. end event
  92. type em_1 from editmask within w_outware_pos_qty
  93. integer x = 384
  94. integer y = 344
  95. integer width = 384
  96. integer height = 84
  97. integer taborder = 30
  98. boolean bringtotop = true
  99. integer textsize = -9
  100. integer weight = 700
  101. fontcharset fontcharset = gb2312charset!
  102. fontpitch fontpitch = variable!
  103. string facename = "宋体"
  104. long textcolor = 33554432
  105. string text = "0.00"
  106. borderstyle borderstyle = stylelowered!
  107. string mask = "###,##0.00"
  108. end type
  109. event getfocus;this.selecttext( 1, len(this.text))
  110. end event
  111. type st_2 from statictext within w_outware_pos_qty
  112. integer x = 137
  113. integer y = 360
  114. integer width = 251
  115. integer height = 48
  116. boolean bringtotop = true
  117. integer textsize = -9
  118. integer weight = 400
  119. fontcharset fontcharset = gb2312charset!
  120. fontpitch fontpitch = variable!
  121. string facename = "宋体"
  122. long textcolor = 33554432
  123. long backcolor = 134217739
  124. string text = "数量:"
  125. boolean focusrectangle = false
  126. end type
  127. type st_1 from statictext within w_outware_pos_qty
  128. integer x = 137
  129. integer y = 132
  130. integer width = 558
  131. integer height = 48
  132. boolean bringtotop = true
  133. integer textsize = -9
  134. integer weight = 400
  135. fontcharset fontcharset = gb2312charset!
  136. fontpitch fontpitch = variable!
  137. string facename = "宋体"
  138. long textcolor = 16711680
  139. long backcolor = 134217739
  140. string text = "商品名称:"
  141. boolean focusrectangle = false
  142. end type
  143. type st_mtrlname from statictext within w_outware_pos_qty
  144. integer x = 137
  145. integer y = 196
  146. integer width = 1216
  147. integer height = 48
  148. boolean bringtotop = true
  149. integer textsize = -9
  150. integer weight = 700
  151. fontcharset fontcharset = gb2312charset!
  152. fontpitch fontpitch = variable!
  153. string facename = "宋体"
  154. long textcolor = 33554432
  155. long backcolor = 67108864
  156. alignment alignment = center!
  157. boolean focusrectangle = false
  158. end type