w_mtrldef_edit_price_updatebill_2.srw 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. $PBExportHeader$w_mtrldef_edit_price_updatebill_2.srw
  2. forward
  3. global type w_mtrldef_edit_price_updatebill_2 from w_publ_base
  4. end type
  5. type st_1 from statictext within w_mtrldef_edit_price_updatebill_2
  6. end type
  7. type cb_1 from uo_imflatbutton within w_mtrldef_edit_price_updatebill_2
  8. end type
  9. type mle_1 from multilineedit within w_mtrldef_edit_price_updatebill_2
  10. end type
  11. type ddlb_1 from uo_ddlb_storageid within w_mtrldef_edit_price_updatebill_2
  12. end type
  13. type cbx_mtrlorigin_0 from checkbox within w_mtrldef_edit_price_updatebill_2
  14. end type
  15. type cbx_mtrlorigin_3 from checkbox within w_mtrldef_edit_price_updatebill_2
  16. end type
  17. type cbx_mtrlorigin_2 from checkbox within w_mtrldef_edit_price_updatebill_2
  18. end type
  19. end forward
  20. global type w_mtrldef_edit_price_updatebill_2 from w_publ_base
  21. integer width = 1376
  22. integer height = 1016
  23. string title = "更新计划价"
  24. boolean minbox = false
  25. windowtype windowtype = response!
  26. st_1 st_1
  27. cb_1 cb_1
  28. mle_1 mle_1
  29. ddlb_1 ddlb_1
  30. cbx_mtrlorigin_0 cbx_mtrlorigin_0
  31. cbx_mtrlorigin_3 cbx_mtrlorigin_3
  32. cbx_mtrlorigin_2 cbx_mtrlorigin_2
  33. end type
  34. global w_mtrldef_edit_price_updatebill_2 w_mtrldef_edit_price_updatebill_2
  35. type variables
  36. Long cur_storageid = 0
  37. s_edit_index_tran s_rslt
  38. end variables
  39. on w_mtrldef_edit_price_updatebill_2.create
  40. int iCurrent
  41. call super::create
  42. this.st_1=create st_1
  43. this.cb_1=create cb_1
  44. this.mle_1=create mle_1
  45. this.ddlb_1=create ddlb_1
  46. this.cbx_mtrlorigin_0=create cbx_mtrlorigin_0
  47. this.cbx_mtrlorigin_3=create cbx_mtrlorigin_3
  48. this.cbx_mtrlorigin_2=create cbx_mtrlorigin_2
  49. iCurrent=UpperBound(this.Control)
  50. this.Control[iCurrent+1]=this.st_1
  51. this.Control[iCurrent+2]=this.cb_1
  52. this.Control[iCurrent+3]=this.mle_1
  53. this.Control[iCurrent+4]=this.ddlb_1
  54. this.Control[iCurrent+5]=this.cbx_mtrlorigin_0
  55. this.Control[iCurrent+6]=this.cbx_mtrlorigin_3
  56. this.Control[iCurrent+7]=this.cbx_mtrlorigin_2
  57. end on
  58. on w_mtrldef_edit_price_updatebill_2.destroy
  59. call super::destroy
  60. destroy(this.st_1)
  61. destroy(this.cb_1)
  62. destroy(this.mle_1)
  63. destroy(this.ddlb_1)
  64. destroy(this.cbx_mtrlorigin_0)
  65. destroy(this.cbx_mtrlorigin_3)
  66. destroy(this.cbx_mtrlorigin_2)
  67. end on
  68. event close;call super::close;Int li_flag
  69. IF cbx_mtrlorigin_0.Checked THEN
  70. li_flag = 1
  71. ELSE
  72. li_flag = 0
  73. END IF
  74. f_SetProfileString (sys_empid,This.ClassName(), "cbx_mtrlorigin_0",String(li_flag))
  75. IF cbx_mtrlorigin_3.Checked THEN
  76. li_flag = 1
  77. ELSE
  78. li_flag = 0
  79. END IF
  80. f_SetProfileString (sys_empid,This.ClassName(), "cbx_mtrlorigin_3",String(li_flag))
  81. IF cbx_mtrlorigin_2.Checked THEN
  82. li_flag = 1
  83. ELSE
  84. li_flag = 0
  85. END IF
  86. f_SetProfileString (sys_empid,This.ClassName(), "cbx_mtrlorigin_2",String(li_flag))
  87. CloseWithReturn(This,s_rslt)
  88. end event
  89. event ue_before_open;call super::ue_before_open;Int li_flag
  90. li_flag = integer(f_ProfileString (sys_empid,This.ClassName(), "cbx_mtrlorigin_0",'1'))
  91. cbx_mtrlorigin_0.Checked = li_flag = 1
  92. li_flag = integer(f_ProfileString (sys_empid,This.ClassName(), "cbx_mtrlorigin_3",'0'))
  93. cbx_mtrlorigin_3.Checked = li_flag = 1
  94. li_flag = integer(f_ProfileString (sys_empid,This.ClassName(), "cbx_mtrlorigin_2",'0'))
  95. cbx_mtrlorigin_2.Checked = li_flag = 1
  96. end event
  97. type cb_func from w_publ_base`cb_func within w_mtrldef_edit_price_updatebill_2
  98. boolean visible = false
  99. integer x = 809
  100. boolean enabled = false
  101. end type
  102. type cb_exit from w_publ_base`cb_exit within w_mtrldef_edit_price_updatebill_2
  103. integer x = 805
  104. integer y = 724
  105. string text = "取消"
  106. end type
  107. event cb_exit::clicked;s_rslt.b_long = 0
  108. close(parent)
  109. end event
  110. type st_1 from statictext within w_mtrldef_edit_price_updatebill_2
  111. integer x = 183
  112. integer y = 628
  113. integer width = 137
  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 = 33554432
  122. long backcolor = 134217739
  123. string text = "仓库"
  124. boolean focusrectangle = false
  125. end type
  126. type cb_1 from uo_imflatbutton within w_mtrldef_edit_price_updatebill_2
  127. integer x = 334
  128. integer y = 724
  129. integer width = 311
  130. integer height = 96
  131. integer taborder = 20
  132. boolean bringtotop = true
  133. end type
  134. event clicked;call super::clicked;Boolean lb_flag = False
  135. s_rslt.b_long = cur_storageid
  136. IF cbx_mtrlorigin_0.Checked THEN
  137. s_rslt.c_long = 1
  138. lb_flag = True
  139. ELSE
  140. s_rslt.c_long = 0
  141. END IF
  142. IF cbx_mtrlorigin_3.Checked THEN
  143. s_rslt.d_long = 1
  144. lb_flag = True
  145. ELSE
  146. s_rslt.d_long = 0
  147. END IF
  148. IF cbx_mtrlorigin_2.Checked THEN
  149. s_rslt.e_long = 1
  150. lb_flag = True
  151. ELSE
  152. s_rslt.e_long = 0
  153. END IF
  154. IF Not lb_flag THEN
  155. MessageBox('','必须最少选择一种物料类型')
  156. RETURN
  157. END IF
  158. Close(Parent)
  159. end event
  160. type mle_1 from multilineedit within w_mtrldef_edit_price_updatebill_2
  161. integer x = 18
  162. integer y = 16
  163. integer width = 1330
  164. integer height = 372
  165. integer taborder = 10
  166. boolean bringtotop = true
  167. integer textsize = -9
  168. integer weight = 400
  169. fontcharset fontcharset = gb2312charset!
  170. fontpitch fontpitch = variable!
  171. string facename = "宋体"
  172. long textcolor = 255
  173. long backcolor = 16777215
  174. string text = " 注意:此功能将会按勾选的类别的物料计划价【>0】更新所选仓库未结存的进仓单成本价,出仓单成本价,库存成本价、库存金额,结存表本期的期初、期间进、期间出、结余金额; 确定操作后,结存表的期初金额将有可能与上月的结余金额不相符,数据将不能恢复,请使用前做好备份工作,谨慎使用!"
  175. boolean border = false
  176. boolean displayonly = true
  177. end type
  178. type ddlb_1 from uo_ddlb_storageid within w_mtrldef_edit_price_updatebill_2
  179. integer x = 306
  180. integer y = 616
  181. integer width = 873
  182. integer taborder = 20
  183. boolean bringtotop = true
  184. end type
  185. event selectionchanged;call super::selectionchanged;cur_storageid = uo_storageid
  186. end event
  187. event constructor;call super::constructor;cur_storageid = uo_storageid
  188. end event
  189. type cbx_mtrlorigin_0 from checkbox within w_mtrldef_edit_price_updatebill_2
  190. integer x = 142
  191. integer y = 492
  192. integer width = 238
  193. integer height = 60
  194. boolean bringtotop = true
  195. integer textsize = -9
  196. integer weight = 400
  197. fontcharset fontcharset = gb2312charset!
  198. fontpitch fontpitch = variable!
  199. string facename = "宋体"
  200. long textcolor = 33554432
  201. long backcolor = 134217739
  202. string text = "自制"
  203. boolean checked = true
  204. end type
  205. type cbx_mtrlorigin_3 from checkbox within w_mtrldef_edit_price_updatebill_2
  206. integer x = 567
  207. integer y = 496
  208. integer width = 238
  209. integer height = 60
  210. boolean bringtotop = true
  211. integer textsize = -9
  212. integer weight = 400
  213. fontcharset fontcharset = gb2312charset!
  214. fontpitch fontpitch = variable!
  215. string facename = "宋体"
  216. long textcolor = 33554432
  217. long backcolor = 134217739
  218. string text = "外协"
  219. end type
  220. type cbx_mtrlorigin_2 from checkbox within w_mtrldef_edit_price_updatebill_2
  221. integer x = 983
  222. integer y = 496
  223. integer width = 238
  224. integer height = 60
  225. boolean bringtotop = true
  226. integer textsize = -9
  227. integer weight = 400
  228. fontcharset fontcharset = gb2312charset!
  229. fontpitch fontpitch = variable!
  230. string facename = "宋体"
  231. long textcolor = 33554432
  232. long backcolor = 134217739
  233. string text = "采购"
  234. end type