w_inputbox_stop.srw 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. $PBExportHeader$w_inputbox_stop.srw
  2. forward
  3. global type w_inputbox_stop from w_publ_base
  4. end type
  5. type cb_que from uo_imflatbutton within w_inputbox_stop
  6. end type
  7. type sle_nr from u_sleedit within w_inputbox_stop
  8. end type
  9. type em_1 from editmask within w_inputbox_stop
  10. end type
  11. type st_1 from statictext within w_inputbox_stop
  12. end type
  13. type st_2 from statictext within w_inputbox_stop
  14. end type
  15. end forward
  16. global type w_inputbox_stop from w_publ_base
  17. integer x = 23
  18. integer y = 24
  19. integer width = 2825
  20. integer height = 480
  21. string title = "请填入内容"
  22. boolean controlmenu = false
  23. boolean minbox = false
  24. windowtype windowtype = response!
  25. cb_que cb_que
  26. sle_nr sle_nr
  27. em_1 em_1
  28. st_1 st_1
  29. st_2 st_2
  30. end type
  31. global w_inputbox_stop w_inputbox_stop
  32. type variables
  33. S_INPUTBOX S_OBJSTRU
  34. s_stopmx rst_stop
  35. end variables
  36. on w_inputbox_stop.create
  37. int iCurrent
  38. call super::create
  39. this.cb_que=create cb_que
  40. this.sle_nr=create sle_nr
  41. this.em_1=create em_1
  42. this.st_1=create st_1
  43. this.st_2=create st_2
  44. iCurrent=UpperBound(this.Control)
  45. this.Control[iCurrent+1]=this.cb_que
  46. this.Control[iCurrent+2]=this.sle_nr
  47. this.Control[iCurrent+3]=this.em_1
  48. this.Control[iCurrent+4]=this.st_1
  49. this.Control[iCurrent+5]=this.st_2
  50. end on
  51. on w_inputbox_stop.destroy
  52. call super::destroy
  53. destroy(this.cb_que)
  54. destroy(this.sle_nr)
  55. destroy(this.em_1)
  56. destroy(this.st_1)
  57. destroy(this.st_2)
  58. end on
  59. event open;call super::open;S_OBJSTRU = Message.PowerObjectParm
  60. THIS.Title = S_OBJSTRU.Title
  61. sle_nr.Text = S_OBJSTRU.OLD_TEXT
  62. sle_nr.SetFocus()
  63. sle_nr.SelectText(1,Len(sle_nr.Text))
  64. end event
  65. event close;CloseWithReturn(this,rst_stop)
  66. end event
  67. type cb_func from w_publ_base`cb_func within w_inputbox_stop
  68. boolean visible = false
  69. integer x = 859
  70. integer y = 124
  71. boolean enabled = false
  72. end type
  73. type cb_exit from w_publ_base`cb_exit within w_inputbox_stop
  74. integer x = 526
  75. integer y = 260
  76. integer width = 325
  77. string text = "取消"
  78. end type
  79. type cb_que from uo_imflatbutton within w_inputbox_stop
  80. integer x = 18
  81. integer y = 260
  82. integer width = 325
  83. integer height = 96
  84. integer taborder = 30
  85. boolean enabled = false
  86. boolean default = true
  87. end type
  88. event clicked;call super::clicked;rst_stop.stopqty=dec(em_1.text)
  89. rst_stop.stopreason=sle_nr.text
  90. if rst_stop.stopqty <= 0 then
  91. messagebox('提示','中止数量不合理')
  92. em_1.SetFocus()
  93. return
  94. end if
  95. Close(parent)
  96. end event
  97. type sle_nr from u_sleedit within w_inputbox_stop
  98. integer x = 293
  99. integer y = 132
  100. integer width = 2505
  101. integer height = 84
  102. boolean bringtotop = true
  103. end type
  104. event inputchanged;if trim(this.text)<>'' then
  105. cb_que.enabled=true
  106. else
  107. cb_que.enabled=false
  108. end if
  109. end event
  110. type em_1 from editmask within w_inputbox_stop
  111. integer x = 293
  112. integer y = 28
  113. integer width = 581
  114. integer height = 84
  115. integer taborder = 10
  116. boolean bringtotop = true
  117. integer textsize = -9
  118. integer weight = 400
  119. fontcharset fontcharset = gb2312charset!
  120. fontpitch fontpitch = variable!
  121. string facename = "宋体"
  122. long textcolor = 33554432
  123. string text = "0"
  124. alignment alignment = right!
  125. borderstyle borderstyle = stylelowered!
  126. string mask = "#,###,###,##0.#####"
  127. end type
  128. type st_1 from statictext within w_inputbox_stop
  129. integer x = 18
  130. integer y = 40
  131. integer width = 274
  132. integer height = 48
  133. boolean bringtotop = true
  134. integer textsize = -9
  135. integer weight = 400
  136. fontcharset fontcharset = gb2312charset!
  137. fontpitch fontpitch = variable!
  138. string facename = "宋体"
  139. long textcolor = 33554432
  140. long backcolor = 134217739
  141. string text = "中止数量:"
  142. alignment alignment = right!
  143. boolean focusrectangle = false
  144. end type
  145. type st_2 from statictext within w_inputbox_stop
  146. integer x = 18
  147. integer y = 144
  148. integer width = 274
  149. integer height = 48
  150. boolean bringtotop = true
  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. alignment alignment = right!
  160. boolean focusrectangle = false
  161. end type