$PBExportHeader$w_view_dscrp.srw forward global type w_view_dscrp from w_publ_base end type type cb_1 from uo_imflatbutton within w_view_dscrp end type type mle_dscrp from multilineedit within w_view_dscrp end type type st_2 from statictext within w_view_dscrp end type type gb_1 from groupbox within w_view_dscrp end type type st_msg from statictext within w_view_dscrp end type type cb_choice from commandbutton within w_view_dscrp end type end forward global type w_view_dscrp from w_publ_base integer width = 2002 integer height = 1284 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 cb_choice cb_choice end type global w_view_dscrp w_view_dscrp type variables s_view_dscrp s_view long limit_flag=0 end variables on w_view_dscrp.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 this.cb_choice=create cb_choice 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 this.Control[iCurrent+6]=this.cb_choice end on on w_view_dscrp.destroy call super::destroy destroy(this.cb_1) destroy(this.mle_dscrp) destroy(this.st_2) destroy(this.gb_1) destroy(this.st_msg) destroy(this.cb_choice) 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 cb_choice.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_dscrp boolean visible = false end type type cb_exit from w_publ_base`cb_exit within w_view_dscrp integer x = 1207 integer y = 1072 string text = "取消" end type type cb_1 from uo_imflatbutton within w_view_dscrp integer x = 498 integer y = 1072 integer width = 311 integer height = 96 integer taborder = 20 boolean bringtotop = true string normalpicname = "ok.bmp" end type event clicked;call super::clicked;IF IsNull(s_view.dscrp) THEN s_view.dscrp = '' 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_dscrp event enchange pbm_enchange integer x = 69 integer y = 212 integer width = 1865 integer height = 836 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 = 2500 borderstyle borderstyle = stylelowered! boolean hideselection = false end type event enchange;st_msg.Text = '剩余' + String(250 - Len(This.Text)) + '个字节' IF limit_flag = 0 And Len(This.Text) > 250 THEN MessageBox('提示','当前字数已超过250 !!') limit_flag = 1 END IF end event type st_2 from statictext within w_view_dscrp 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_dscrp integer x = 18 integer width = 1961 integer height = 1188 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_dscrp 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 type cb_choice from commandbutton within w_view_dscrp integer x = 64 integer y = 116 integer width = 247 integer height = 84 integer taborder = 50 boolean bringtotop = true integer textsize = -9 integer weight = 400 fontcharset fontcharset = gb2312charset! fontpitch fontpitch = variable! string facename = "宋体" string text = "选择" end type event clicked;IF Not IsValid(w_dscrpdef_edit) THEN Open(w_dscrpdef_edit) s_outrepdef s_outrep_ch s_outrep_ch = Message.PowerObjectParm IF s_outrep_ch.outrepdscrp <> '' THEN mle_dscrp.Text = s_outrep_ch.outrepdscrp END IF END IF end event