w_workprice_change_rate_edit.srw 7.9 KB

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