w_view_status.srw 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. $PBExportHeader$w_view_status.srw
  2. forward
  3. global type w_view_status from w_publ_base
  4. end type
  5. type cb_1 from uo_imflatbutton within w_view_status
  6. end type
  7. type mle_dscrp from multilineedit within w_view_status
  8. end type
  9. type st_2 from statictext within w_view_status
  10. end type
  11. type gb_1 from groupbox within w_view_status
  12. end type
  13. type st_msg from statictext within w_view_status
  14. end type
  15. end forward
  16. global type w_view_status from w_publ_base
  17. integer height = 1212
  18. string title = ""
  19. boolean minbox = false
  20. windowtype windowtype = response!
  21. cb_1 cb_1
  22. mle_dscrp mle_dscrp
  23. st_2 st_2
  24. gb_1 gb_1
  25. st_msg st_msg
  26. end type
  27. global w_view_status w_view_status
  28. type variables
  29. s_view_dscrp s_view
  30. end variables
  31. on w_view_status.create
  32. int iCurrent
  33. call super::create
  34. this.cb_1=create cb_1
  35. this.mle_dscrp=create mle_dscrp
  36. this.st_2=create st_2
  37. this.gb_1=create gb_1
  38. this.st_msg=create st_msg
  39. iCurrent=UpperBound(this.Control)
  40. this.Control[iCurrent+1]=this.cb_1
  41. this.Control[iCurrent+2]=this.mle_dscrp
  42. this.Control[iCurrent+3]=this.st_2
  43. this.Control[iCurrent+4]=this.gb_1
  44. this.Control[iCurrent+5]=this.st_msg
  45. end on
  46. on w_view_status.destroy
  47. call super::destroy
  48. destroy(this.cb_1)
  49. destroy(this.mle_dscrp)
  50. destroy(this.st_2)
  51. destroy(this.gb_1)
  52. destroy(this.st_msg)
  53. end on
  54. event open;call super::open;s_view = Message.PowerObjectParm
  55. mle_dscrp.Text = s_view.dscrp
  56. IF not s_view.editmode THEN
  57. cb_1.Visible = FALSE
  58. cb_exit.Visible = FALSE
  59. mle_dscrp.Height = 980
  60. mle_dscrp.DisplayOnly = TRUE
  61. THIS.Title = s_view.Title + ' - 查看状态'
  62. ELSE
  63. cb_1.Visible = TRUE
  64. cb_exit.Visible = TRUE
  65. mle_dscrp.Height = 840
  66. mle_dscrp.DisplayOnly = FALSE
  67. THIS.Title = s_view.Title + ' - 编辑状态'
  68. END IF
  69. st_msg.text = '剩余' + string(250 - len(mle_dscrp.text)) + '个字节'
  70. end event
  71. event close;call super::close;closewithreturn(this,s_view)
  72. end event
  73. type cb_func from w_publ_base`cb_func within w_view_status
  74. boolean visible = false
  75. end type
  76. type cb_exit from w_publ_base`cb_exit within w_view_status
  77. integer x = 1207
  78. integer y = 988
  79. string text = "取消"
  80. end type
  81. type cb_1 from uo_imflatbutton within w_view_status
  82. integer x = 498
  83. integer y = 988
  84. integer width = 311
  85. integer height = 96
  86. integer taborder = 20
  87. boolean bringtotop = true
  88. string normalpicname = "ok.bmp"
  89. end type
  90. event clicked;call super::clicked;IF mle_dscrp.Text <> s_view.dscrp THEN
  91. s_view.dscrp = mle_dscrp.Text
  92. END IF
  93. Close(PARENT)
  94. end event
  95. type mle_dscrp from multilineedit within w_view_status
  96. event enchange pbm_enchange
  97. integer x = 69
  98. integer y = 104
  99. integer width = 1865
  100. integer height = 840
  101. integer taborder = 30
  102. boolean bringtotop = true
  103. integer textsize = -9
  104. integer weight = 400
  105. fontcharset fontcharset = gb2312charset!
  106. fontpitch fontpitch = variable!
  107. string facename = "宋体"
  108. long textcolor = 33554432
  109. boolean vscrollbar = true
  110. boolean autovscroll = true
  111. integer limit = 250
  112. borderstyle borderstyle = stylelowered!
  113. boolean hideselection = false
  114. end type
  115. event enchange;st_msg.text = '剩余' + string(250 - len(this.text)) + '个字节'
  116. end event
  117. type st_2 from statictext within w_view_status
  118. integer x = 64
  119. integer y = 44
  120. integer width = 1440
  121. integer height = 48
  122. boolean bringtotop = true
  123. integer textsize = -9
  124. integer weight = 400
  125. fontcharset fontcharset = gb2312charset!
  126. fontpitch fontpitch = variable!
  127. string facename = "宋体"
  128. long textcolor = 255
  129. long backcolor = 67108864
  130. string text = "说明:备注不能超过250个字节,中文 = 2字节,英文 = 1字节"
  131. boolean focusrectangle = false
  132. end type
  133. type gb_1 from groupbox within w_view_status
  134. integer x = 18
  135. integer width = 1961
  136. integer height = 1108
  137. integer taborder = 30
  138. integer textsize = -9
  139. integer weight = 400
  140. fontcharset fontcharset = gb2312charset!
  141. fontpitch fontpitch = variable!
  142. string facename = "宋体"
  143. long textcolor = 33554432
  144. long backcolor = 67108864
  145. end type
  146. type st_msg from statictext within w_view_status
  147. integer x = 1573
  148. integer y = 44
  149. integer width = 338
  150. integer height = 48
  151. boolean bringtotop = true
  152. integer textsize = -9
  153. integer weight = 400
  154. fontcharset fontcharset = gb2312charset!
  155. fontpitch fontpitch = variable!
  156. string facename = "宋体"
  157. long textcolor = 33554432
  158. long backcolor = 67108864
  159. boolean focusrectangle = false
  160. end type