123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- $PBExportHeader$w_view_status.srw
- forward
- global type w_view_status from w_publ_base
- end type
- type cb_1 from uo_imflatbutton within w_view_status
- end type
- type mle_dscrp from multilineedit within w_view_status
- end type
- type st_2 from statictext within w_view_status
- end type
- type gb_1 from groupbox within w_view_status
- end type
- type st_msg from statictext within w_view_status
- end type
- end forward
- global type w_view_status from w_publ_base
- integer height = 1212
- string title = ""
- boolean minbox = false
- windowtype windowtype = response!
- cb_1 cb_1
- mle_dscrp mle_dscrp
- st_2 st_2
- gb_1 gb_1
- st_msg st_msg
- end type
- global w_view_status w_view_status
- type variables
- s_view_dscrp s_view
- end variables
- on w_view_status.create
- int iCurrent
- call super::create
- this.cb_1=create cb_1
- this.mle_dscrp=create mle_dscrp
- this.st_2=create st_2
- this.gb_1=create gb_1
- this.st_msg=create st_msg
- iCurrent=UpperBound(this.Control)
- this.Control[iCurrent+1]=this.cb_1
- this.Control[iCurrent+2]=this.mle_dscrp
- this.Control[iCurrent+3]=this.st_2
- this.Control[iCurrent+4]=this.gb_1
- this.Control[iCurrent+5]=this.st_msg
- end on
- on w_view_status.destroy
- call super::destroy
- destroy(this.cb_1)
- destroy(this.mle_dscrp)
- destroy(this.st_2)
- destroy(this.gb_1)
- destroy(this.st_msg)
- end on
- event open;call super::open;s_view = Message.PowerObjectParm
- mle_dscrp.Text = s_view.dscrp
- IF not s_view.editmode THEN
- cb_1.Visible = FALSE
- cb_exit.Visible = FALSE
- mle_dscrp.Height = 980
- mle_dscrp.DisplayOnly = TRUE
- THIS.Title = s_view.Title + ' - 查看状态'
- ELSE
- cb_1.Visible = TRUE
- cb_exit.Visible = TRUE
- mle_dscrp.Height = 840
- mle_dscrp.DisplayOnly = FALSE
- THIS.Title = s_view.Title + ' - 编辑状态'
- END IF
- st_msg.text = '剩余' + string(250 - len(mle_dscrp.text)) + '个字节'
- end event
- event close;call super::close;closewithreturn(this,s_view)
- end event
- type cb_func from w_publ_base`cb_func within w_view_status
- boolean visible = false
- end type
- type cb_exit from w_publ_base`cb_exit within w_view_status
- integer x = 1207
- integer y = 988
- string text = "取消"
- end type
- type cb_1 from uo_imflatbutton within w_view_status
- integer x = 498
- integer y = 988
- integer width = 311
- integer height = 96
- integer taborder = 20
- boolean bringtotop = true
- string normalpicname = "ok.bmp"
- end type
- event clicked;call super::clicked;IF mle_dscrp.Text <> s_view.dscrp THEN
- s_view.dscrp = mle_dscrp.Text
- END IF
- Close(PARENT)
- end event
- type mle_dscrp from multilineedit within w_view_status
- event enchange pbm_enchange
- integer x = 69
- integer y = 104
- integer width = 1865
- integer height = 840
- integer taborder = 30
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- boolean vscrollbar = true
- boolean autovscroll = true
- integer limit = 250
- borderstyle borderstyle = stylelowered!
- boolean hideselection = false
- end type
- event enchange;st_msg.text = '剩余' + string(250 - len(this.text)) + '个字节'
- end event
- type st_2 from statictext within w_view_status
- integer x = 64
- integer y = 44
- integer width = 1440
- integer height = 48
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 255
- long backcolor = 67108864
- string text = "说明:备注不能超过250个字节,中文 = 2字节,英文 = 1字节"
- boolean focusrectangle = false
- end type
- type gb_1 from groupbox within w_view_status
- integer x = 18
- integer width = 1961
- integer height = 1108
- integer taborder = 30
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 67108864
- end type
- type st_msg from statictext within w_view_status
- integer x = 1573
- integer y = 44
- integer width = 338
- integer height = 48
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 67108864
- boolean focusrectangle = false
- end type
|