w_mtrl_unit_ch.srw 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. $PBExportHeader$w_mtrl_unit_ch.srw
  2. forward
  3. global type w_mtrl_unit_ch from w_publ_base
  4. end type
  5. type rb_unit from radiobutton within w_mtrl_unit_ch
  6. end type
  7. type rb_unit_buy from radiobutton within w_mtrl_unit_ch
  8. end type
  9. type rb_unit_scll from radiobutton within w_mtrl_unit_ch
  10. end type
  11. type cb_1 from uo_imflatbutton within w_mtrl_unit_ch
  12. end type
  13. type rb_unit_sale from radiobutton within w_mtrl_unit_ch
  14. end type
  15. type gb_1 from groupbox within w_mtrl_unit_ch
  16. end type
  17. end forward
  18. global type w_mtrl_unit_ch from w_publ_base
  19. integer width = 1001
  20. integer height = 828
  21. string title = "外协盘点单位选择"
  22. boolean minbox = false
  23. windowtype windowtype = response!
  24. rb_unit rb_unit
  25. rb_unit_buy rb_unit_buy
  26. rb_unit_scll rb_unit_scll
  27. cb_1 cb_1
  28. rb_unit_sale rb_unit_sale
  29. gb_1 gb_1
  30. end type
  31. global w_mtrl_unit_ch w_mtrl_unit_ch
  32. type variables
  33. long ins_unit = 0
  34. end variables
  35. on w_mtrl_unit_ch.create
  36. int iCurrent
  37. call super::create
  38. this.rb_unit=create rb_unit
  39. this.rb_unit_buy=create rb_unit_buy
  40. this.rb_unit_scll=create rb_unit_scll
  41. this.cb_1=create cb_1
  42. this.rb_unit_sale=create rb_unit_sale
  43. this.gb_1=create gb_1
  44. iCurrent=UpperBound(this.Control)
  45. this.Control[iCurrent+1]=this.rb_unit
  46. this.Control[iCurrent+2]=this.rb_unit_buy
  47. this.Control[iCurrent+3]=this.rb_unit_scll
  48. this.Control[iCurrent+4]=this.cb_1
  49. this.Control[iCurrent+5]=this.rb_unit_sale
  50. this.Control[iCurrent+6]=this.gb_1
  51. end on
  52. on w_mtrl_unit_ch.destroy
  53. call super::destroy
  54. destroy(this.rb_unit)
  55. destroy(this.rb_unit_buy)
  56. destroy(this.rb_unit_scll)
  57. destroy(this.cb_1)
  58. destroy(this.rb_unit_sale)
  59. destroy(this.gb_1)
  60. end on
  61. event close;call super::close;closewithreturn(this,ins_unit)
  62. end event
  63. type cb_func from w_publ_base`cb_func within w_mtrl_unit_ch
  64. boolean visible = false
  65. end type
  66. type cb_exit from w_publ_base`cb_exit within w_mtrl_unit_ch
  67. integer x = 640
  68. integer y = 620
  69. integer picsize = 16
  70. end type
  71. event cb_exit::clicked;ins_unit = -1
  72. close(parent)
  73. end event
  74. type rb_unit from radiobutton within w_mtrl_unit_ch
  75. integer x = 183
  76. integer y = 140
  77. integer width = 402
  78. integer height = 60
  79. boolean bringtotop = true
  80. integer textsize = -9
  81. integer weight = 400
  82. fontcharset fontcharset = gb2312charset!
  83. fontpitch fontpitch = variable!
  84. string facename = "宋体"
  85. long textcolor = 33554432
  86. long backcolor = 134217739
  87. string text = "按库存单位"
  88. boolean checked = true
  89. end type
  90. type rb_unit_buy from radiobutton within w_mtrl_unit_ch
  91. integer x = 183
  92. integer y = 248
  93. integer width = 347
  94. integer height = 60
  95. boolean bringtotop = true
  96. integer textsize = -9
  97. integer weight = 400
  98. fontcharset fontcharset = gb2312charset!
  99. fontpitch fontpitch = variable!
  100. string facename = "宋体"
  101. long textcolor = 33554432
  102. long backcolor = 134217739
  103. string text = "按辅单位1"
  104. end type
  105. type rb_unit_scll from radiobutton within w_mtrl_unit_ch
  106. integer x = 183
  107. integer y = 356
  108. integer width = 329
  109. integer height = 60
  110. boolean bringtotop = true
  111. integer textsize = -9
  112. integer weight = 400
  113. fontcharset fontcharset = gb2312charset!
  114. fontpitch fontpitch = variable!
  115. string facename = "宋体"
  116. long textcolor = 33554432
  117. long backcolor = 134217739
  118. string text = "按辅单位2"
  119. end type
  120. type cb_1 from uo_imflatbutton within w_mtrl_unit_ch
  121. integer x = 293
  122. integer y = 620
  123. integer width = 311
  124. integer height = 96
  125. integer taborder = 20
  126. boolean bringtotop = true
  127. string normalpicname = "ok.bmp"
  128. integer picsize = 16
  129. end type
  130. event clicked;call super::clicked;IF rb_unit.Checked = TRUE THEN
  131. ins_unit = 0
  132. ELSEIF rb_unit_buy.Checked = TRUE THEN
  133. ins_unit = 1
  134. ELSEIF rb_unit_scll.Checked = TRUE THEN
  135. ins_unit = 2
  136. ELSEIF rb_unit_sale.Checked = TRUE THEN
  137. ins_unit = 3
  138. END IF
  139. Close(PARENT)
  140. end event
  141. type rb_unit_sale from radiobutton within w_mtrl_unit_ch
  142. integer x = 183
  143. integer y = 464
  144. integer width = 329
  145. integer height = 60
  146. boolean bringtotop = true
  147. integer textsize = -9
  148. integer weight = 400
  149. fontcharset fontcharset = gb2312charset!
  150. fontpitch fontpitch = variable!
  151. string facename = "宋体"
  152. long textcolor = 33554432
  153. long backcolor = 134217739
  154. string text = "按辅单位3"
  155. end type
  156. type gb_1 from groupbox within w_mtrl_unit_ch
  157. integer x = 128
  158. integer y = 60
  159. integer width = 763
  160. integer height = 528
  161. integer taborder = 30
  162. integer textsize = -9
  163. integer weight = 400
  164. fontcharset fontcharset = gb2312charset!
  165. fontpitch fontpitch = variable!
  166. string facename = "宋体"
  167. long textcolor = 33554432
  168. long backcolor = 134217739
  169. string text = "外协盘点计量单位选择"
  170. end type