w_prdpf_change_rate_edit.srw 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. $PBExportHeader$w_prdpf_change_rate_edit.srw
  2. forward
  3. global type w_prdpf_change_rate_edit from window
  4. end type
  5. type rb_6 from radiobutton within w_prdpf_change_rate_edit
  6. end type
  7. type rb_5 from radiobutton within w_prdpf_change_rate_edit
  8. end type
  9. type rb_4 from radiobutton within w_prdpf_change_rate_edit
  10. end type
  11. type rb_3 from radiobutton within w_prdpf_change_rate_edit
  12. end type
  13. type st_3 from statictext within w_prdpf_change_rate_edit
  14. end type
  15. type em_2 from editmask within w_prdpf_change_rate_edit
  16. end type
  17. type st_2 from statictext within w_prdpf_change_rate_edit
  18. end type
  19. type em_1 from editmask within w_prdpf_change_rate_edit
  20. end type
  21. type rb_2 from radiobutton within w_prdpf_change_rate_edit
  22. end type
  23. type rb_1 from radiobutton within w_prdpf_change_rate_edit
  24. end type
  25. type st_1 from statictext within w_prdpf_change_rate_edit
  26. end type
  27. type cb_2 from uo_imflatbutton within w_prdpf_change_rate_edit
  28. end type
  29. type cb_1 from uo_imflatbutton within w_prdpf_change_rate_edit
  30. end type
  31. type gb_1 from groupbox within w_prdpf_change_rate_edit
  32. end type
  33. type gb_2 from groupbox within w_prdpf_change_rate_edit
  34. end type
  35. end forward
  36. global type w_prdpf_change_rate_edit from window
  37. integer width = 1262
  38. integer height = 748
  39. boolean titlebar = true
  40. string title = "物料清单变更单批设置新用料量"
  41. windowtype windowtype = response!
  42. long backcolor = 134217739
  43. string icon = "AppIcon!"
  44. boolean center = true
  45. rb_6 rb_6
  46. rb_5 rb_5
  47. rb_4 rb_4
  48. rb_3 rb_3
  49. st_3 st_3
  50. em_2 em_2
  51. st_2 st_2
  52. em_1 em_1
  53. rb_2 rb_2
  54. rb_1 rb_1
  55. st_1 st_1
  56. cb_2 cb_2
  57. cb_1 cb_1
  58. gb_1 gb_1
  59. gb_2 gb_2
  60. end type
  61. global w_prdpf_change_rate_edit w_prdpf_change_rate_edit
  62. type variables
  63. String rst_datetime
  64. s_edit_index_tran s_tran
  65. end variables
  66. on w_prdpf_change_rate_edit.create
  67. this.rb_6=create rb_6
  68. this.rb_5=create rb_5
  69. this.rb_4=create rb_4
  70. this.rb_3=create rb_3
  71. this.st_3=create st_3
  72. this.em_2=create em_2
  73. this.st_2=create st_2
  74. this.em_1=create em_1
  75. this.rb_2=create rb_2
  76. this.rb_1=create rb_1
  77. this.st_1=create st_1
  78. this.cb_2=create cb_2
  79. this.cb_1=create cb_1
  80. this.gb_1=create gb_1
  81. this.gb_2=create gb_2
  82. this.Control[]={this.rb_6,&
  83. this.rb_5,&
  84. this.rb_4,&
  85. this.rb_3,&
  86. this.st_3,&
  87. this.em_2,&
  88. this.st_2,&
  89. this.em_1,&
  90. this.rb_2,&
  91. this.rb_1,&
  92. this.st_1,&
  93. this.cb_2,&
  94. this.cb_1,&
  95. this.gb_1,&
  96. this.gb_2}
  97. end on
  98. on w_prdpf_change_rate_edit.destroy
  99. destroy(this.rb_6)
  100. destroy(this.rb_5)
  101. destroy(this.rb_4)
  102. destroy(this.rb_3)
  103. destroy(this.st_3)
  104. destroy(this.em_2)
  105. destroy(this.st_2)
  106. destroy(this.em_1)
  107. destroy(this.rb_2)
  108. destroy(this.rb_1)
  109. destroy(this.st_1)
  110. destroy(this.cb_2)
  111. destroy(this.cb_1)
  112. destroy(this.gb_1)
  113. destroy(this.gb_2)
  114. end on
  115. event close;CloseWithReturn(THIS,s_tran)
  116. end event
  117. type rb_6 from radiobutton within w_prdpf_change_rate_edit
  118. integer x = 914
  119. integer y = 128
  120. integer width = 160
  121. integer height = 60
  122. integer textsize = -9
  123. integer weight = 400
  124. fontcharset fontcharset = gb2312charset!
  125. fontpitch fontpitch = variable!
  126. string facename = "宋体"
  127. long textcolor = 33554432
  128. long backcolor = 134217739
  129. string text = "除"
  130. end type
  131. type rb_5 from radiobutton within w_prdpf_change_rate_edit
  132. integer x = 663
  133. integer y = 128
  134. integer width = 160
  135. integer height = 60
  136. integer textsize = -9
  137. integer weight = 400
  138. fontcharset fontcharset = gb2312charset!
  139. fontpitch fontpitch = variable!
  140. string facename = "宋体"
  141. long textcolor = 33554432
  142. long backcolor = 134217739
  143. string text = "乘"
  144. boolean checked = true
  145. end type
  146. type rb_4 from radiobutton within w_prdpf_change_rate_edit
  147. integer x = 411
  148. integer y = 128
  149. integer width = 160
  150. integer height = 60
  151. integer textsize = -9
  152. integer weight = 400
  153. fontcharset fontcharset = gb2312charset!
  154. fontpitch fontpitch = variable!
  155. string facename = "宋体"
  156. long textcolor = 33554432
  157. long backcolor = 134217739
  158. string text = "减"
  159. end type
  160. type rb_3 from radiobutton within w_prdpf_change_rate_edit
  161. integer x = 155
  162. integer y = 128
  163. integer width = 160
  164. integer height = 60
  165. integer textsize = -9
  166. integer weight = 400
  167. fontcharset fontcharset = gb2312charset!
  168. fontpitch fontpitch = variable!
  169. string facename = "宋体"
  170. long textcolor = 33554432
  171. long backcolor = 134217739
  172. string text = "加"
  173. end type
  174. type st_3 from statictext within w_prdpf_change_rate_edit
  175. integer x = 151
  176. integer y = 352
  177. integer width = 343
  178. integer height = 48
  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. alignment alignment = right!
  188. boolean focusrectangle = false
  189. end type
  190. type em_2 from editmask within w_prdpf_change_rate_edit
  191. integer x = 512
  192. integer y = 336
  193. integer width = 110
  194. integer height = 84
  195. integer taborder = 20
  196. integer textsize = -9
  197. integer weight = 400
  198. fontcharset fontcharset = gb2312charset!
  199. fontpitch fontpitch = variable!
  200. string facename = "宋体"
  201. long textcolor = 33554432
  202. string text = "5"
  203. borderstyle borderstyle = stylelowered!
  204. string mask = "#"
  205. end type
  206. type st_2 from statictext within w_prdpf_change_rate_edit
  207. integer x = 37
  208. integer y = 44
  209. integer width = 1193
  210. integer height = 48
  211. integer textsize = -9
  212. integer weight = 400
  213. fontcharset fontcharset = gb2312charset!
  214. fontpitch fontpitch = variable!
  215. string facename = "宋体"
  216. long textcolor = 255
  217. long backcolor = 134217739
  218. string text = "说明:新用料量 = 原用料量 (加/减/乘/除) 参数"
  219. boolean focusrectangle = false
  220. end type
  221. type em_1 from editmask within w_prdpf_change_rate_edit
  222. integer x = 512
  223. integer y = 228
  224. integer width = 402
  225. integer height = 84
  226. integer taborder = 10
  227. integer textsize = -9
  228. integer weight = 400
  229. fontcharset fontcharset = gb2312charset!
  230. fontpitch fontpitch = variable!
  231. string facename = "宋体"
  232. long textcolor = 33554432
  233. string text = "1"
  234. borderstyle borderstyle = stylelowered!
  235. maskdatatype maskdatatype = decimalmask!
  236. string mask = "###,##0.00###"
  237. end type
  238. type rb_2 from radiobutton within w_prdpf_change_rate_edit
  239. integer x = 681
  240. integer y = 444
  241. integer width = 334
  242. integer height = 60
  243. integer textsize = -9
  244. integer weight = 400
  245. fontcharset fontcharset = gb2312charset!
  246. fontpitch fontpitch = variable!
  247. string facename = "宋体"
  248. long textcolor = 33554432
  249. long backcolor = 134217739
  250. string text = "全部修改"
  251. boolean checked = true
  252. end type
  253. type rb_1 from radiobutton within w_prdpf_change_rate_edit
  254. integer x = 261
  255. integer y = 444
  256. integer width = 334
  257. integer height = 60
  258. integer textsize = -9
  259. integer weight = 400
  260. fontcharset fontcharset = gb2312charset!
  261. fontpitch fontpitch = variable!
  262. string facename = "宋体"
  263. long textcolor = 33554432
  264. long backcolor = 134217739
  265. string text = "单行修改"
  266. end type
  267. type st_1 from statictext within w_prdpf_change_rate_edit
  268. integer x = 283
  269. integer y = 240
  270. integer width = 210
  271. integer height = 48
  272. integer textsize = -9
  273. integer weight = 400
  274. fontcharset fontcharset = gb2312charset!
  275. fontpitch fontpitch = variable!
  276. string facename = "宋体"
  277. long textcolor = 33554432
  278. long backcolor = 134217739
  279. string text = "参数:"
  280. alignment alignment = right!
  281. boolean focusrectangle = false
  282. end type
  283. type cb_2 from uo_imflatbutton within w_prdpf_change_rate_edit
  284. integer x = 229
  285. integer y = 536
  286. integer taborder = 20
  287. end type
  288. event clicked;call super::clicked;IF Dec(em_1.Text) < 0 THEN
  289. MessageBox('提示','请输入正确的参数')
  290. RETURN
  291. END IF
  292. IF Long(em_2.Text) < 0 THEN
  293. MessageBox('提示','请输入正确的小数位数')
  294. RETURN
  295. END IF
  296. IF rb_6.Checked AND Dec(em_1.Text) = 0 THEN
  297. MessageBox('提示','请输入正确的参数,否则出现除零错误')
  298. RETURN
  299. END IF
  300. s_tran.b_decimal = Dec(em_1.Text)
  301. s_tran.c_long = Long(em_2.Text)
  302. IF rb_1.Checked THEN
  303. s_tran.b_long = 0 //单行
  304. ELSE
  305. s_tran.b_long = 1 //全部
  306. END IF
  307. // s_tran.d_long 0 + , 1 - , 2 * , 3 /
  308. IF rb_3.Checked THEN
  309. s_tran.d_long = 0
  310. END IF
  311. IF rb_4.Checked THEN
  312. s_tran.d_long = 1
  313. END IF
  314. IF rb_5.Checked THEN
  315. s_tran.d_long = 2
  316. END IF
  317. IF rb_6.Checked THEN
  318. s_tran.d_long = 3
  319. END IF
  320. Close(PARENT)
  321. end event
  322. type cb_1 from uo_imflatbutton within w_prdpf_change_rate_edit
  323. integer x = 736
  324. integer y = 536
  325. integer taborder = 10
  326. string text = "退出"
  327. end type
  328. event clicked;call super::clicked;
  329. s_tran.b_decimal = -1
  330. s_tran.b_long = -1
  331. Close(PARENT)
  332. end event
  333. type gb_1 from groupbox within w_prdpf_change_rate_edit
  334. boolean visible = false
  335. integer x = 55
  336. integer y = 24
  337. integer width = 1097
  338. integer height = 192
  339. integer taborder = 10
  340. integer textsize = -12
  341. integer weight = 400
  342. fontcharset fontcharset = ansi!
  343. fontpitch fontpitch = variable!
  344. fontfamily fontfamily = swiss!
  345. string facename = "Arial"
  346. long textcolor = 33554432
  347. long backcolor = 67108864
  348. string text = "none"
  349. end type
  350. type gb_2 from groupbox within w_prdpf_change_rate_edit
  351. boolean visible = false
  352. integer x = 114
  353. integer y = 396
  354. integer width = 974
  355. integer height = 136
  356. integer taborder = 30
  357. integer textsize = -12
  358. integer weight = 400
  359. fontcharset fontcharset = ansi!
  360. fontpitch fontpitch = variable!
  361. fontfamily fontfamily = swiss!
  362. string facename = "Arial"
  363. long textcolor = 33554432
  364. long backcolor = 67108864
  365. string text = "none"
  366. end type