w_rp_cmpl_mtrlcost_update_planprice.srw 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. $PBExportHeader$w_rp_cmpl_mtrlcost_update_planprice.srw
  2. forward
  3. global type w_rp_cmpl_mtrlcost_update_planprice from w_publ_base
  4. end type
  5. type cbx_price from checkbox within w_rp_cmpl_mtrlcost_update_planprice
  6. end type
  7. type cbx_jgprice from checkbox within w_rp_cmpl_mtrlcost_update_planprice
  8. end type
  9. type cbx_wfjgprice from checkbox within w_rp_cmpl_mtrlcost_update_planprice
  10. end type
  11. type cbx_outcost from checkbox within w_rp_cmpl_mtrlcost_update_planprice
  12. end type
  13. type cbx_otherprice from checkbox within w_rp_cmpl_mtrlcost_update_planprice
  14. end type
  15. type cb_1 from uo_imflatbutton within w_rp_cmpl_mtrlcost_update_planprice
  16. end type
  17. type mle_1 from multilineedit within w_rp_cmpl_mtrlcost_update_planprice
  18. end type
  19. type cbx_eqprice from checkbox within w_rp_cmpl_mtrlcost_update_planprice
  20. end type
  21. type gb_1 from groupbox within w_rp_cmpl_mtrlcost_update_planprice
  22. end type
  23. end forward
  24. global type w_rp_cmpl_mtrlcost_update_planprice from w_publ_base
  25. integer width = 1115
  26. integer height = 884
  27. string title = "更新计划选项"
  28. boolean controlmenu = false
  29. boolean minbox = false
  30. windowtype windowtype = response!
  31. cbx_price cbx_price
  32. cbx_jgprice cbx_jgprice
  33. cbx_wfjgprice cbx_wfjgprice
  34. cbx_outcost cbx_outcost
  35. cbx_otherprice cbx_otherprice
  36. cb_1 cb_1
  37. mle_1 mle_1
  38. cbx_eqprice cbx_eqprice
  39. gb_1 gb_1
  40. end type
  41. global w_rp_cmpl_mtrlcost_update_planprice w_rp_cmpl_mtrlcost_update_planprice
  42. type variables
  43. s_rp_cmpl_mtrlcost_update_planprice s_rst
  44. end variables
  45. on w_rp_cmpl_mtrlcost_update_planprice.create
  46. int iCurrent
  47. call super::create
  48. this.cbx_price=create cbx_price
  49. this.cbx_jgprice=create cbx_jgprice
  50. this.cbx_wfjgprice=create cbx_wfjgprice
  51. this.cbx_outcost=create cbx_outcost
  52. this.cbx_otherprice=create cbx_otherprice
  53. this.cb_1=create cb_1
  54. this.mle_1=create mle_1
  55. this.cbx_eqprice=create cbx_eqprice
  56. this.gb_1=create gb_1
  57. iCurrent=UpperBound(this.Control)
  58. this.Control[iCurrent+1]=this.cbx_price
  59. this.Control[iCurrent+2]=this.cbx_jgprice
  60. this.Control[iCurrent+3]=this.cbx_wfjgprice
  61. this.Control[iCurrent+4]=this.cbx_outcost
  62. this.Control[iCurrent+5]=this.cbx_otherprice
  63. this.Control[iCurrent+6]=this.cb_1
  64. this.Control[iCurrent+7]=this.mle_1
  65. this.Control[iCurrent+8]=this.cbx_eqprice
  66. this.Control[iCurrent+9]=this.gb_1
  67. end on
  68. on w_rp_cmpl_mtrlcost_update_planprice.destroy
  69. call super::destroy
  70. destroy(this.cbx_price)
  71. destroy(this.cbx_jgprice)
  72. destroy(this.cbx_wfjgprice)
  73. destroy(this.cbx_outcost)
  74. destroy(this.cbx_otherprice)
  75. destroy(this.cb_1)
  76. destroy(this.mle_1)
  77. destroy(this.cbx_eqprice)
  78. destroy(this.gb_1)
  79. end on
  80. event close;call super::close;CloseWithReturn(This,s_rst)
  81. end event
  82. event open;call super::open;s_rst.ifupdate = 0
  83. end event
  84. type cb_func from w_publ_base`cb_func within w_rp_cmpl_mtrlcost_update_planprice
  85. integer x = 389
  86. integer y = 1212
  87. end type
  88. type cb_exit from w_publ_base`cb_exit within w_rp_cmpl_mtrlcost_update_planprice
  89. integer x = 562
  90. integer y = 600
  91. string text = "取消"
  92. end type
  93. event cb_exit::clicked;s_rst.ifupdate = 0
  94. Close(Parent)
  95. end event
  96. type cbx_price from checkbox within w_rp_cmpl_mtrlcost_update_planprice
  97. integer x = 91
  98. integer y = 300
  99. integer width = 343
  100. integer height = 60
  101. boolean bringtotop = true
  102. integer textsize = -9
  103. integer weight = 400
  104. fontcharset fontcharset = gb2312charset!
  105. fontpitch fontpitch = variable!
  106. string facename = "宋体"
  107. long textcolor = 33554432
  108. long backcolor = 134217739
  109. string text = "材料成本"
  110. boolean checked = true
  111. end type
  112. type cbx_jgprice from checkbox within w_rp_cmpl_mtrlcost_update_planprice
  113. integer x = 617
  114. integer y = 304
  115. integer width = 343
  116. integer height = 60
  117. boolean bringtotop = true
  118. integer textsize = -9
  119. integer weight = 400
  120. fontcharset fontcharset = gb2312charset!
  121. fontpitch fontpitch = variable!
  122. string facename = "宋体"
  123. long textcolor = 33554432
  124. long backcolor = 134217739
  125. string text = "人力成本"
  126. boolean checked = true
  127. end type
  128. type cbx_wfjgprice from checkbox within w_rp_cmpl_mtrlcost_update_planprice
  129. integer x = 91
  130. integer y = 392
  131. integer width = 343
  132. integer height = 60
  133. boolean bringtotop = true
  134. integer textsize = -9
  135. integer weight = 400
  136. fontcharset fontcharset = gb2312charset!
  137. fontpitch fontpitch = variable!
  138. string facename = "宋体"
  139. long textcolor = 33554432
  140. long backcolor = 134217739
  141. string text = "外协成本"
  142. end type
  143. type cbx_outcost from checkbox within w_rp_cmpl_mtrlcost_update_planprice
  144. integer x = 617
  145. integer y = 392
  146. integer width = 343
  147. integer height = 60
  148. boolean bringtotop = true
  149. integer textsize = -9
  150. integer weight = 400
  151. fontcharset fontcharset = gb2312charset!
  152. fontpitch fontpitch = variable!
  153. string facename = "宋体"
  154. long textcolor = 33554432
  155. long backcolor = 134217739
  156. string text = "费用成本"
  157. end type
  158. type cbx_otherprice from checkbox within w_rp_cmpl_mtrlcost_update_planprice
  159. integer x = 91
  160. integer y = 484
  161. integer width = 343
  162. integer height = 60
  163. boolean bringtotop = true
  164. integer textsize = -9
  165. integer weight = 400
  166. fontcharset fontcharset = gb2312charset!
  167. fontpitch fontpitch = variable!
  168. string facename = "宋体"
  169. long textcolor = 33554432
  170. long backcolor = 134217739
  171. string text = "附加成本"
  172. end type
  173. type cb_1 from uo_imflatbutton within w_rp_cmpl_mtrlcost_update_planprice
  174. integer x = 96
  175. integer y = 600
  176. integer taborder = 10
  177. boolean bringtotop = true
  178. string normalpicname = "ok.bmp"
  179. end type
  180. event clicked;call super::clicked;s_rst.ifupdate = 1
  181. IF cbx_price.Checked THEN
  182. s_rst.ifprice = 1
  183. ELSE
  184. s_rst.ifprice = 0
  185. END IF
  186. IF cbx_jgprice.Checked THEN
  187. s_rst.ifjgprice = 1
  188. ELSE
  189. s_rst.ifjgprice = 0
  190. END IF
  191. IF cbx_wfjgprice.Checked THEN
  192. s_rst.ifwfjgprice = 1
  193. ELSE
  194. s_rst.ifwfjgprice = 0
  195. END IF
  196. IF cbx_outcost.Checked THEN
  197. s_rst.ifoutcost = 1
  198. ELSE
  199. s_rst.ifoutcost = 0
  200. END IF
  201. IF cbx_otherprice.Checked THEN
  202. s_rst.ifotherprice = 1
  203. ELSE
  204. s_rst.ifotherprice = 0
  205. END IF
  206. IF cbx_eqprice.Checked THEN
  207. s_rst.ifeqprice = 1
  208. ELSE
  209. s_rst.ifeqprice = 0
  210. END IF
  211. Close(Parent)
  212. end event
  213. type mle_1 from multilineedit within w_rp_cmpl_mtrlcost_update_planprice
  214. integer x = 73
  215. integer y = 44
  216. integer width = 937
  217. integer height = 152
  218. integer taborder = 10
  219. boolean bringtotop = true
  220. integer textsize = -9
  221. integer weight = 700
  222. fontcharset fontcharset = gb2312charset!
  223. fontpitch fontpitch = variable!
  224. string facename = "宋体"
  225. long textcolor = 255
  226. long backcolor = 134217739
  227. string text = " 是否确定要将当前统计的成本价更新到物料的计划价?"
  228. boolean border = false
  229. end type
  230. type cbx_eqprice from checkbox within w_rp_cmpl_mtrlcost_update_planprice
  231. integer x = 617
  232. integer y = 484
  233. integer width = 343
  234. integer height = 60
  235. boolean bringtotop = true
  236. integer textsize = -9
  237. integer weight = 400
  238. fontcharset fontcharset = gb2312charset!
  239. fontpitch fontpitch = variable!
  240. string facename = "宋体"
  241. long textcolor = 33554432
  242. long backcolor = 134217739
  243. string text = "设备成本"
  244. end type
  245. type gb_1 from groupbox within w_rp_cmpl_mtrlcost_update_planprice
  246. integer x = 73
  247. integer y = 240
  248. integer width = 955
  249. integer height = 328
  250. integer taborder = 20
  251. integer textsize = -9
  252. integer weight = 400
  253. fontcharset fontcharset = gb2312charset!
  254. fontpitch fontpitch = variable!
  255. string facename = "宋体"
  256. long textcolor = 33554432
  257. long backcolor = 134217739
  258. string text = "勾选要检查成本"
  259. end type