w_cmpl_status_qty_ch.srw 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. $PBExportHeader$w_cmpl_status_qty_ch.srw
  2. forward
  3. global type w_cmpl_status_qty_ch from w_publ_base
  4. end type
  5. type cb_1 from uo_imflatbutton within w_cmpl_status_qty_ch
  6. end type
  7. type sle_1 from singlelineedit within w_cmpl_status_qty_ch
  8. end type
  9. type rb_1 from radiobutton within w_cmpl_status_qty_ch
  10. end type
  11. type rb_2 from radiobutton within w_cmpl_status_qty_ch
  12. end type
  13. type st_1 from statictext within w_cmpl_status_qty_ch
  14. end type
  15. type st_2 from statictext within w_cmpl_status_qty_ch
  16. end type
  17. type st_3 from statictext within w_cmpl_status_qty_ch
  18. end type
  19. type em_1 from editmask within w_cmpl_status_qty_ch
  20. end type
  21. type ddlb_1 from dropdownlistbox within w_cmpl_status_qty_ch
  22. end type
  23. type st_4 from statictext within w_cmpl_status_qty_ch
  24. end type
  25. end forward
  26. global type w_cmpl_status_qty_ch from w_publ_base
  27. integer width = 1454
  28. integer height = 632
  29. string title = "设定公式"
  30. boolean minbox = false
  31. windowtype windowtype = response!
  32. cb_1 cb_1
  33. sle_1 sle_1
  34. rb_1 rb_1
  35. rb_2 rb_2
  36. st_1 st_1
  37. st_2 st_2
  38. st_3 st_3
  39. em_1 em_1
  40. ddlb_1 ddlb_1
  41. st_4 st_4
  42. end type
  43. global w_cmpl_status_qty_ch w_cmpl_status_qty_ch
  44. type variables
  45. string ls_value
  46. long ll_flag
  47. string ls_num
  48. long ll_type = 0
  49. s_cmpl_addqty s_cmpl
  50. end variables
  51. on w_cmpl_status_qty_ch.create
  52. int iCurrent
  53. call super::create
  54. this.cb_1=create cb_1
  55. this.sle_1=create sle_1
  56. this.rb_1=create rb_1
  57. this.rb_2=create rb_2
  58. this.st_1=create st_1
  59. this.st_2=create st_2
  60. this.st_3=create st_3
  61. this.em_1=create em_1
  62. this.ddlb_1=create ddlb_1
  63. this.st_4=create st_4
  64. iCurrent=UpperBound(this.Control)
  65. this.Control[iCurrent+1]=this.cb_1
  66. this.Control[iCurrent+2]=this.sle_1
  67. this.Control[iCurrent+3]=this.rb_1
  68. this.Control[iCurrent+4]=this.rb_2
  69. this.Control[iCurrent+5]=this.st_1
  70. this.Control[iCurrent+6]=this.st_2
  71. this.Control[iCurrent+7]=this.st_3
  72. this.Control[iCurrent+8]=this.em_1
  73. this.Control[iCurrent+9]=this.ddlb_1
  74. this.Control[iCurrent+10]=this.st_4
  75. end on
  76. on w_cmpl_status_qty_ch.destroy
  77. call super::destroy
  78. destroy(this.cb_1)
  79. destroy(this.sle_1)
  80. destroy(this.rb_1)
  81. destroy(this.rb_2)
  82. destroy(this.st_1)
  83. destroy(this.st_2)
  84. destroy(this.st_3)
  85. destroy(this.em_1)
  86. destroy(this.ddlb_1)
  87. destroy(this.st_4)
  88. end on
  89. event close;call super::close;closewithreturn(this,s_cmpl)
  90. end event
  91. event open;call super::open;ddlb_1.additem( sys_option_change_status)
  92. ddlb_1.additem( sys_option_change_woodcode)
  93. ddlb_1.additem( sys_option_change_pcode)
  94. ddlb_1.additem( sys_option_change_mtrlsectype)
  95. ddlb_1.additem( sys_option_change_zxmtrlmode)
  96. ddlb_1.text = sys_option_change_status
  97. ls_value = f_ProfileString (sys_empid,'w_cmpl_status_qty_ch', "value",'0')
  98. ll_flag = Long(f_ProfileString (sys_empid,'w_cmpl_status_qty_ch', "flag",'0'))
  99. ls_num = f_ProfileString (sys_empid,'w_cmpl_status_qty_ch', "num",'0')
  100. IF ll_flag = 0 THEN
  101. rb_1.Checked = TRUE
  102. ELSE
  103. rb_2.Checked = TRUE
  104. END IF
  105. sle_1.Text = ls_value
  106. em_1.text = ls_num
  107. end event
  108. type cb_func from w_publ_base`cb_func within w_cmpl_status_qty_ch
  109. boolean visible = false
  110. end type
  111. type cb_exit from w_publ_base`cb_exit within w_cmpl_status_qty_ch
  112. integer x = 795
  113. integer y = 424
  114. integer width = 302
  115. integer height = 100
  116. end type
  117. type cb_1 from uo_imflatbutton within w_cmpl_status_qty_ch
  118. integer x = 384
  119. integer y = 424
  120. integer taborder = 20
  121. boolean bringtotop = true
  122. string normalpicname = "ok.bmp"
  123. end type
  124. event clicked;call super::clicked;ls_value = sle_1.Text
  125. ls_num = em_1.Text
  126. if ls_num > '5' then
  127. ls_num = '5'
  128. end if
  129. IF rb_1.Checked THEN
  130. ll_flag = 0
  131. ELSEIF rb_2.Checked THEN
  132. ll_flag = 1
  133. END IF
  134. f_SetProfileString (sys_empid,"w_cmpl_status_qty_ch", "flag", String(ll_flag))
  135. f_SetProfileString (sys_empid,"w_cmpl_status_qty_ch", "value", ls_value)
  136. f_SetProfileString (sys_empid,"w_cmpl_status_qty_ch", "num", ls_num)
  137. s_cmpl.flag = ll_flag
  138. s_cmpl.addvalue = Dec(ls_value)
  139. s_cmpl.cmptype = ll_type
  140. s_cmpl.num = Long(ls_num)
  141. Close(PARENT)
  142. end event
  143. type sle_1 from singlelineedit within w_cmpl_status_qty_ch
  144. integer x = 905
  145. integer y = 136
  146. integer width = 302
  147. integer height = 84
  148. integer taborder = 30
  149. boolean bringtotop = true
  150. integer textsize = -9
  151. integer weight = 400
  152. fontcharset fontcharset = gb2312charset!
  153. fontpitch fontpitch = variable!
  154. string facename = "宋体"
  155. long textcolor = 33554432
  156. borderstyle borderstyle = stylelowered!
  157. end type
  158. type rb_1 from radiobutton within w_cmpl_status_qty_ch
  159. integer x = 750
  160. integer y = 112
  161. integer width = 155
  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 rb_2 from radiobutton within w_cmpl_status_qty_ch
  174. integer x = 750
  175. integer y = 192
  176. integer width = 160
  177. integer height = 56
  178. boolean bringtotop = true
  179. integer textsize = -9
  180. integer weight = 400
  181. fontcharset fontcharset = gb2312charset!
  182. fontpitch fontpitch = variable!
  183. string facename = "宋体"
  184. long textcolor = 33554432
  185. long backcolor = 134217739
  186. string text = "/"
  187. end type
  188. type st_1 from statictext within w_cmpl_status_qty_ch
  189. integer x = 567
  190. integer y = 156
  191. integer width = 178
  192. integer height = 64
  193. boolean bringtotop = true
  194. integer textsize = -9
  195. integer weight = 400
  196. fontcharset fontcharset = gb2312charset!
  197. fontpitch fontpitch = variable!
  198. string facename = "宋体"
  199. long textcolor = 33554432
  200. long backcolor = 134217739
  201. string text = "* 辅数"
  202. boolean focusrectangle = false
  203. end type
  204. type st_2 from statictext within w_cmpl_status_qty_ch
  205. integer x = 1234
  206. integer y = 156
  207. integer width = 192
  208. integer height = 64
  209. boolean bringtotop = true
  210. integer textsize = -9
  211. integer weight = 400
  212. fontcharset fontcharset = gb2312charset!
  213. fontpitch fontpitch = variable!
  214. string facename = "宋体"
  215. long textcolor = 33554432
  216. long backcolor = 134217739
  217. string text = "= 数量"
  218. boolean focusrectangle = false
  219. end type
  220. type st_3 from statictext within w_cmpl_status_qty_ch
  221. integer x = 517
  222. integer y = 304
  223. integer width = 201
  224. integer height = 56
  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. alignment alignment = right!
  235. boolean focusrectangle = false
  236. end type
  237. type em_1 from editmask within w_cmpl_status_qty_ch
  238. integer x = 736
  239. integer y = 292
  240. integer width = 238
  241. integer height = 84
  242. integer taborder = 40
  243. boolean bringtotop = true
  244. integer textsize = -9
  245. integer weight = 400
  246. fontcharset fontcharset = gb2312charset!
  247. fontpitch fontpitch = variable!
  248. string facename = "宋体"
  249. long textcolor = 33554432
  250. alignment alignment = right!
  251. borderstyle borderstyle = stylelowered!
  252. string mask = "###0"
  253. boolean spin = true
  254. double increment = 1
  255. string minmax = "0~~5"
  256. end type
  257. type ddlb_1 from dropdownlistbox within w_cmpl_status_qty_ch
  258. integer x = 23
  259. integer y = 136
  260. integer width = 517
  261. integer height = 464
  262. integer taborder = 50
  263. boolean bringtotop = true
  264. integer textsize = -9
  265. integer weight = 400
  266. fontcharset fontcharset = gb2312charset!
  267. fontpitch fontpitch = variable!
  268. string facename = "宋体"
  269. long textcolor = 33554432
  270. boolean autohscroll = true
  271. boolean sorted = false
  272. boolean hscrollbar = true
  273. boolean vscrollbar = true
  274. borderstyle borderstyle = stylelowered!
  275. end type
  276. event selectionchanged;ll_type = index - 1
  277. end event
  278. type st_4 from statictext within w_cmpl_status_qty_ch
  279. integer x = 32
  280. integer y = 40
  281. integer width = 645
  282. integer height = 48
  283. boolean bringtotop = true
  284. integer textsize = -9
  285. integer weight = 400
  286. fontcharset fontcharset = gb2312charset!
  287. fontpitch fontpitch = variable!
  288. string facename = "宋体"
  289. long textcolor = 255
  290. long backcolor = 134217739
  291. string text = "注:请选择参与运算的参数"
  292. boolean focusrectangle = false
  293. end type