w_choose_outware.srw 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. $PBExportHeader$w_choose_outware.srw
  2. forward
  3. global type w_choose_outware from w_publ_base
  4. end type
  5. type cb_1 from uo_imflatbutton within w_choose_outware
  6. end type
  7. type cbx_packqty_cmpl from checkbox within w_choose_outware
  8. end type
  9. type cbx_zk from checkbox within w_choose_outware
  10. end type
  11. type cbx_enamt_edit from checkbox within w_choose_outware
  12. end type
  13. type cbx_enamt_notax_edit from checkbox within w_choose_outware
  14. end type
  15. type gb_1 from groupbox within w_choose_outware
  16. end type
  17. end forward
  18. global type w_choose_outware from w_publ_base
  19. integer width = 2606
  20. integer height = 864
  21. string title = ""
  22. boolean minbox = false
  23. windowtype windowtype = response!
  24. cb_1 cb_1
  25. cbx_packqty_cmpl cbx_packqty_cmpl
  26. cbx_zk cbx_zk
  27. cbx_enamt_edit cbx_enamt_edit
  28. cbx_enamt_notax_edit cbx_enamt_notax_edit
  29. gb_1 gb_1
  30. end type
  31. global w_choose_outware w_choose_outware
  32. type variables
  33. s_choose s_c1
  34. long ii_enamt_edit
  35. end variables
  36. on w_choose_outware.create
  37. int iCurrent
  38. call super::create
  39. this.cb_1=create cb_1
  40. this.cbx_packqty_cmpl=create cbx_packqty_cmpl
  41. this.cbx_zk=create cbx_zk
  42. this.cbx_enamt_edit=create cbx_enamt_edit
  43. this.cbx_enamt_notax_edit=create cbx_enamt_notax_edit
  44. this.gb_1=create gb_1
  45. iCurrent=UpperBound(this.Control)
  46. this.Control[iCurrent+1]=this.cb_1
  47. this.Control[iCurrent+2]=this.cbx_packqty_cmpl
  48. this.Control[iCurrent+3]=this.cbx_zk
  49. this.Control[iCurrent+4]=this.cbx_enamt_edit
  50. this.Control[iCurrent+5]=this.cbx_enamt_notax_edit
  51. this.Control[iCurrent+6]=this.gb_1
  52. end on
  53. on w_choose_outware.destroy
  54. call super::destroy
  55. destroy(this.cb_1)
  56. destroy(this.cbx_packqty_cmpl)
  57. destroy(this.cbx_zk)
  58. destroy(this.cbx_enamt_edit)
  59. destroy(this.cbx_enamt_notax_edit)
  60. destroy(this.gb_1)
  61. end on
  62. event close;call super::close;closewithreturn(this, s_c1)
  63. end event
  64. event open;call super::open;s_c1.ifok = false
  65. end event
  66. type cb_func from w_publ_base`cb_func within w_choose_outware
  67. boolean visible = false
  68. end type
  69. type cb_exit from w_publ_base`cb_exit within w_choose_outware
  70. integer x = 1458
  71. integer y = 600
  72. string text = "取消"
  73. end type
  74. event cb_exit::clicked;call super::clicked;Close(w_choose)
  75. end event
  76. type cb_1 from uo_imflatbutton within w_choose_outware
  77. integer x = 750
  78. integer y = 600
  79. integer width = 311
  80. integer height = 96
  81. integer taborder = 20
  82. boolean bringtotop = true
  83. string normalpicname = "ok.bmp"
  84. end type
  85. event clicked;call super::clicked;s_c1.ifok = true
  86. s_c1.amt_pprice_out = cbx_enamt_edit.Checked
  87. s_c1.packqty_out = cbx_packqty_cmpl.Checked
  88. s_c1.notax_price_out = cbx_enamt_notax_edit.Checked
  89. s_c1.zk_out = cbx_zk.Checked
  90. close(parent)
  91. end event
  92. type cbx_packqty_cmpl from checkbox within w_choose_outware
  93. integer x = 128
  94. integer y = 144
  95. integer width = 690
  96. integer height = 80
  97. boolean bringtotop = true
  98. integer textsize = -9
  99. integer weight = 400
  100. fontcharset fontcharset = gb2312charset!
  101. fontpitch fontpitch = variable!
  102. string facename = "宋体"
  103. long textcolor = 33554432
  104. long backcolor = 134217739
  105. string text = "录入包装数计算数量"
  106. end type
  107. event clicked;Int ifchecked
  108. IF THIS.Checked THEN
  109. ifchecked = 1
  110. this.weight = 700
  111. this.textcolor = 255
  112. ELSE
  113. ifchecked = 0
  114. this.weight = 400
  115. this.textcolor = 0
  116. END IF
  117. f_SetProfileString (sys_empid,'w_choose_outware', "cbx_packqty_cmpl", String(ifchecked))
  118. end event
  119. event constructor;Int ifchecked
  120. ifchecked = Integer(f_ProfileString (sys_empid,'w_choose_outware', "cbx_packqty_cmpl", '0'))
  121. IF ifchecked = 0 THEN
  122. THIS.checked = FALSE
  123. this.weight = 400
  124. this.textcolor = 0
  125. ELSE
  126. THIS.checked = TRUE
  127. this.weight = 700
  128. this.textcolor = 255
  129. END IF
  130. end event
  131. type cbx_zk from checkbox within w_choose_outware
  132. integer x = 1673
  133. integer y = 292
  134. integer width = 645
  135. integer height = 80
  136. boolean bringtotop = true
  137. integer textsize = -9
  138. integer weight = 400
  139. fontcharset fontcharset = gb2312charset!
  140. fontpitch fontpitch = variable!
  141. string facename = "宋体"
  142. long textcolor = 33554432
  143. long backcolor = 134217739
  144. string text = "录入金额计算折扣"
  145. end type
  146. event clicked;Int ifchecked
  147. IF THIS.Checked THEN
  148. ifchecked = 1
  149. this.weight = 700
  150. this.textcolor = 255
  151. ELSE
  152. ifchecked = 0
  153. this.weight = 400
  154. this.textcolor = 0
  155. END IF
  156. f_SetProfileString (sys_empid,'w_choose_outware', "cbx_zk", String(ifchecked))
  157. end event
  158. event constructor;
  159. //初始化
  160. Int ifchecked
  161. ifchecked = Integer(f_ProfileString (sys_empid,'w_choose_outware', "cbx_zk", '0'))
  162. IF ifchecked = 0 THEN
  163. THIS.checked = FALSE
  164. this.weight = 400
  165. this.textcolor = 0
  166. ELSE
  167. THIS.checked = TRUE
  168. this.weight = 700
  169. this.textcolor = 255
  170. END IF
  171. end event
  172. type cbx_enamt_edit from checkbox within w_choose_outware
  173. integer x = 1673
  174. integer y = 144
  175. integer width = 617
  176. integer height = 80
  177. boolean bringtotop = true
  178. integer textsize = -9
  179. integer weight = 400
  180. fontcharset fontcharset = gb2312charset!
  181. fontpitch fontpitch = variable!
  182. string facename = "宋体"
  183. long textcolor = 33554432
  184. long backcolor = 134217739
  185. string text = "录入金额计算单价"
  186. end type
  187. event clicked;Int ifchecked
  188. IF THIS.Checked THEN
  189. ifchecked = 1
  190. this.weight = 700
  191. this.textcolor = 255
  192. ELSE
  193. ifchecked = 0
  194. this.weight = 400
  195. this.textcolor = 0
  196. END IF
  197. f_SetProfileString (sys_empid,'w_choose_outware', "cbx_enamt_edit", String(ifchecked))
  198. end event
  199. event constructor;Int ifchecked
  200. ifchecked = Integer(f_ProfileString (sys_empid,'w_choose_outware', "cbx_enamt_edit", '0'))
  201. IF ifchecked = 0 THEN
  202. THIS.checked = FALSE
  203. this.weight = 400
  204. this.textcolor = 0
  205. ELSE
  206. THIS.checked = TRUE
  207. this.weight = 700
  208. this.textcolor = 255
  209. END IF
  210. end event
  211. type cbx_enamt_notax_edit from checkbox within w_choose_outware
  212. integer x = 128
  213. integer y = 292
  214. integer width = 539
  215. integer height = 80
  216. boolean bringtotop = true
  217. integer textsize = -9
  218. integer weight = 400
  219. fontcharset fontcharset = gb2312charset!
  220. fontpitch fontpitch = variable!
  221. string facename = "宋体"
  222. long textcolor = 33554432
  223. long backcolor = 134217739
  224. string text = "录入不含税单价"
  225. end type
  226. event clicked;Int ifchecked
  227. IF THIS.Checked THEN
  228. ifchecked = 1
  229. this.weight = 700
  230. this.textcolor = 255
  231. ELSE
  232. ifchecked = 0
  233. this.weight = 400
  234. this.textcolor = 0
  235. END IF
  236. f_SetProfileString (sys_empid,'w_choose_outware', "cbx_enamt_notax_edit", String(ifchecked))
  237. end event
  238. event constructor;Int ifchecked
  239. ifchecked = Integer(f_ProfileString (sys_empid,'w_choose_outware', "cbx_enamt_notax_edit", '0'))
  240. IF ifchecked = 0 THEN
  241. THIS.checked = FALSE
  242. this.weight = 400
  243. this.textcolor = 0
  244. ELSE
  245. THIS.checked = TRUE
  246. this.weight = 700
  247. this.textcolor = 255
  248. END IF
  249. end event
  250. type gb_1 from groupbox within w_choose_outware
  251. integer width = 2583
  252. integer height = 772
  253. integer taborder = 30
  254. integer textsize = -9
  255. integer weight = 400
  256. fontcharset fontcharset = gb2312charset!
  257. fontpitch fontpitch = variable!
  258. string facename = "宋体"
  259. long textcolor = 33554432
  260. long backcolor = 67108864
  261. end type