w_outware_pos_mxdscrp.srw 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. $PBExportHeader$w_outware_pos_mxdscrp.srw
  2. forward
  3. global type w_outware_pos_mxdscrp from w_publ_base
  4. end type
  5. type cb_1 from uo_imflatbutton within w_outware_pos_mxdscrp
  6. end type
  7. type em_1 from editmask within w_outware_pos_mxdscrp
  8. end type
  9. type st_1 from statictext within w_outware_pos_mxdscrp
  10. end type
  11. type st_mtrlname from statictext within w_outware_pos_mxdscrp
  12. end type
  13. type st_2 from statictext within w_outware_pos_mxdscrp
  14. end type
  15. end forward
  16. global type w_outware_pos_mxdscrp 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_1 st_1
  27. st_mtrlname st_mtrlname
  28. st_2 st_2
  29. end type
  30. global w_outware_pos_mxdscrp w_outware_pos_mxdscrp
  31. type variables
  32. s_pos_mxdscrp_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.predscrp)
  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_mxdscrp.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_1=create st_1
  46. this.st_mtrlname=create st_mtrlname
  47. this.st_2=create st_2
  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_1
  52. this.Control[iCurrent+4]=this.st_mtrlname
  53. this.Control[iCurrent+5]=this.st_2
  54. end on
  55. on w_outware_pos_mxdscrp.destroy
  56. call super::destroy
  57. destroy(this.cb_1)
  58. destroy(this.em_1)
  59. destroy(this.st_1)
  60. destroy(this.st_mtrlname)
  61. destroy(this.st_2)
  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_mxdscrp
  66. boolean visible = false
  67. integer y = 712
  68. end type
  69. type cb_exit from w_publ_base`cb_exit within w_outware_pos_mxdscrp
  70. integer x = 782
  71. integer y = 500
  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_mxdscrp
  79. integer x = 302
  80. integer y = 500
  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.newdscrp = trim(em_1.text)
  90. close(parent)
  91. end event
  92. type em_1 from editmask within w_outware_pos_mxdscrp
  93. integer x = 315
  94. integer y = 328
  95. integer width = 1033
  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. borderstyle borderstyle = stylelowered!
  106. maskdatatype maskdatatype = stringmask!
  107. end type
  108. event getfocus;this.selecttext( 1, len(this.text))
  109. end event
  110. type st_1 from statictext within w_outware_pos_mxdscrp
  111. integer x = 137
  112. integer y = 132
  113. integer width = 558
  114. integer height = 48
  115. boolean bringtotop = true
  116. integer textsize = -9
  117. integer weight = 400
  118. fontcharset fontcharset = gb2312charset!
  119. fontpitch fontpitch = variable!
  120. string facename = "宋体"
  121. long textcolor = 16711680
  122. long backcolor = 134217739
  123. string text = "商品名称:"
  124. boolean focusrectangle = false
  125. end type
  126. type st_mtrlname from statictext within w_outware_pos_mxdscrp
  127. integer x = 137
  128. integer y = 196
  129. integer width = 1216
  130. integer height = 48
  131. boolean bringtotop = true
  132. integer textsize = -9
  133. integer weight = 700
  134. fontcharset fontcharset = gb2312charset!
  135. fontpitch fontpitch = variable!
  136. string facename = "宋体"
  137. long textcolor = 33554432
  138. long backcolor = 67108864
  139. alignment alignment = center!
  140. boolean focusrectangle = false
  141. end type
  142. type st_2 from statictext within w_outware_pos_mxdscrp
  143. integer x = 137
  144. integer y = 344
  145. integer width = 160
  146. integer height = 48
  147. boolean bringtotop = true
  148. integer textsize = -9
  149. integer weight = 400
  150. fontcharset fontcharset = gb2312charset!
  151. fontpitch fontpitch = variable!
  152. string facename = "宋体"
  153. long textcolor = 16711680
  154. long backcolor = 134217739
  155. string text = "备注:"
  156. boolean focusrectangle = false
  157. end type