w_mtrlarea_rate.srw 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. $PBExportHeader$w_mtrlarea_rate.srw
  2. forward
  3. global type w_mtrlarea_rate from w_publ_base
  4. end type
  5. type em_1 from editmask within w_mtrlarea_rate
  6. end type
  7. type st_1 from statictext within w_mtrlarea_rate
  8. end type
  9. type cb_1 from uo_imflatbutton within w_mtrlarea_rate
  10. end type
  11. type ddlb_1 from dropdownlistbox within w_mtrlarea_rate
  12. end type
  13. type st_2 from statictext within w_mtrlarea_rate
  14. end type
  15. type st_3 from statictext within w_mtrlarea_rate
  16. end type
  17. end forward
  18. global type w_mtrlarea_rate from w_publ_base
  19. integer width = 1106
  20. integer height = 592
  21. string title = "比例"
  22. boolean minbox = false
  23. windowtype windowtype = response!
  24. em_1 em_1
  25. st_1 st_1
  26. cb_1 cb_1
  27. ddlb_1 ddlb_1
  28. st_2 st_2
  29. st_3 st_3
  30. end type
  31. global w_mtrlarea_rate w_mtrlarea_rate
  32. type variables
  33. decimal rslt_rebate
  34. s_edit_index_tran s_tranf8
  35. end variables
  36. on w_mtrlarea_rate.create
  37. int iCurrent
  38. call super::create
  39. this.em_1=create em_1
  40. this.st_1=create st_1
  41. this.cb_1=create cb_1
  42. this.ddlb_1=create ddlb_1
  43. this.st_2=create st_2
  44. this.st_3=create st_3
  45. iCurrent=UpperBound(this.Control)
  46. this.Control[iCurrent+1]=this.em_1
  47. this.Control[iCurrent+2]=this.st_1
  48. this.Control[iCurrent+3]=this.cb_1
  49. this.Control[iCurrent+4]=this.ddlb_1
  50. this.Control[iCurrent+5]=this.st_2
  51. this.Control[iCurrent+6]=this.st_3
  52. end on
  53. on w_mtrlarea_rate.destroy
  54. call super::destroy
  55. destroy(this.em_1)
  56. destroy(this.st_1)
  57. destroy(this.cb_1)
  58. destroy(this.ddlb_1)
  59. destroy(this.st_2)
  60. destroy(this.st_3)
  61. end on
  62. event close;call super::close;CloseWithReturn(THIS,s_tranf8)
  63. end event
  64. type cb_func from w_publ_base`cb_func within w_mtrlarea_rate
  65. boolean visible = false
  66. integer x = 160
  67. integer y = 640
  68. boolean enabled = false
  69. end type
  70. type cb_exit from w_publ_base`cb_exit within w_mtrlarea_rate
  71. integer x = 613
  72. integer y = 296
  73. end type
  74. event cb_exit::clicked;rslt_rebate = 0
  75. close(parent)
  76. end event
  77. type em_1 from editmask within w_mtrlarea_rate
  78. integer x = 288
  79. integer y = 144
  80. integer width = 402
  81. integer height = 84
  82. integer taborder = 10
  83. boolean bringtotop = true
  84. integer textsize = -9
  85. integer weight = 400
  86. fontcharset fontcharset = gb2312charset!
  87. fontpitch fontpitch = variable!
  88. string facename = "宋体"
  89. long textcolor = 33554432
  90. string text = "1.00"
  91. alignment alignment = right!
  92. borderstyle borderstyle = stylelowered!
  93. maskdatatype maskdatatype = decimalmask!
  94. string mask = "#,##0.00###"
  95. end type
  96. type st_1 from statictext within w_mtrlarea_rate
  97. integer x = 123
  98. integer y = 152
  99. integer width = 165
  100. integer height = 48
  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. alignment alignment = right!
  111. boolean focusrectangle = false
  112. end type
  113. type cb_1 from uo_imflatbutton within w_mtrlarea_rate
  114. integer x = 146
  115. integer y = 296
  116. integer width = 311
  117. integer height = 96
  118. integer taborder = 20
  119. boolean bringtotop = true
  120. end type
  121. event clicked;call super::clicked;s_tranf8.b_decimal = Dec(em_1.Text)
  122. IF ddlb_1.Text = '油漆面积' THEN
  123. s_tranf8.b_long = 0
  124. ELSEIF ddlb_1.Text = '油漆面积1' THEN
  125. s_tranf8.b_long = 1
  126. ELSEIF ddlb_1.Text = '油漆面积2' THEN
  127. s_tranf8.b_long = 2
  128. END IF
  129. Close(PARENT)
  130. end event
  131. type ddlb_1 from dropdownlistbox within w_mtrlarea_rate
  132. integer x = 288
  133. integer y = 52
  134. integer width = 549
  135. integer height = 452
  136. integer taborder = 10
  137. boolean bringtotop = true
  138. integer textsize = -9
  139. integer weight = 400
  140. fontcharset fontcharset = gb2312charset!
  141. fontpitch fontpitch = variable!
  142. string facename = "宋体"
  143. long textcolor = 33554432
  144. string text = "油漆面积"
  145. boolean sorted = false
  146. string item[] = {"油漆面积","油漆面积1","油漆面积2"}
  147. borderstyle borderstyle = stylelowered!
  148. end type
  149. type st_2 from statictext within w_mtrlarea_rate
  150. integer x = 197
  151. integer y = 64
  152. integer width = 78
  153. integer height = 48
  154. boolean bringtotop = true
  155. integer textsize = -9
  156. integer weight = 400
  157. fontcharset fontcharset = gb2312charset!
  158. fontpitch fontpitch = variable!
  159. string facename = "宋体"
  160. long textcolor = 33554432
  161. long backcolor = 134217739
  162. string text = "按"
  163. boolean focusrectangle = false
  164. end type
  165. type st_3 from statictext within w_mtrlarea_rate
  166. integer x = 855
  167. integer y = 64
  168. integer width = 119
  169. integer height = 68
  170. boolean bringtotop = true
  171. integer textsize = -9
  172. integer weight = 400
  173. fontcharset fontcharset = gb2312charset!
  174. fontpitch fontpitch = variable!
  175. string facename = "宋体"
  176. long textcolor = 33554432
  177. long backcolor = 134217739
  178. string text = "计算"
  179. boolean focusrectangle = false
  180. end type