$PBExportHeader$w_aifmb_class_map_ch.srw forward global type w_aifmb_class_map_ch from window end type type cb_choise from uo_imflatbutton within w_aifmb_class_map_ch end type type cb_sync from uo_imflatbutton within w_aifmb_class_map_ch end type type tv_1 from uo_tv_aifmb_class within w_aifmb_class_map_ch end type type cb_exit from uo_imflatbutton within w_aifmb_class_map_ch end type type cb_reflash from uo_imflatbutton within w_aifmb_class_map_ch end type type ln_bar from line within w_aifmb_class_map_ch end type type ln_bar2 from line within w_aifmb_class_map_ch end type type r_bar from rectangle within w_aifmb_class_map_ch end type type ln_1 from line within w_aifmb_class_map_ch end type type ln_2 from line within w_aifmb_class_map_ch end type type ln_3 from line within w_aifmb_class_map_ch end type type ln_4 from line within w_aifmb_class_map_ch end type end forward global type w_aifmb_class_map_ch from window integer width = 1545 integer height = 1576 boolean titlebar = true string title = "亚洲国际电商物料类别映射" boolean controlmenu = true windowtype windowtype = response! long backcolor = 67108864 string icon = "AppIcon!" boolean center = true event ue_sync_node ( ) cb_choise cb_choise cb_sync cb_sync tv_1 tv_1 cb_exit cb_exit cb_reflash cb_reflash ln_bar ln_bar ln_bar2 ln_bar2 r_bar r_bar ln_1 ln_1 ln_2 ln_2 ln_3 ln_3 ln_4 ln_4 end type global w_aifmb_class_map_ch w_aifmb_class_map_ch type variables long ins_nodeid = 0 end variables event ue_sync_node();uo_aifmb = Create uo_aifmb Int rslt = 1 String arg_msg IF uo_aifmb.uf_sync_node(arg_msg) <> 1 THEN rslt = 0 GOTO ext END IF ext: Destroy uo_aifmb IF rslt = 1 THEN MessageBox('提示', '同步成功') cb_reflash.TriggerEvent(Clicked!) ELSE MessageBox('ERROR', arg_msg) END IF end event on w_aifmb_class_map_ch.create this.cb_choise=create cb_choise this.cb_sync=create cb_sync this.tv_1=create tv_1 this.cb_exit=create cb_exit this.cb_reflash=create cb_reflash this.ln_bar=create ln_bar this.ln_bar2=create ln_bar2 this.r_bar=create r_bar this.ln_1=create ln_1 this.ln_2=create ln_2 this.ln_3=create ln_3 this.ln_4=create ln_4 this.Control[]={this.cb_choise,& this.cb_sync,& this.tv_1,& this.cb_exit,& this.cb_reflash,& this.ln_bar,& this.ln_bar2,& this.r_bar,& this.ln_1,& this.ln_2,& this.ln_3,& this.ln_4} end on on w_aifmb_class_map_ch.destroy destroy(this.cb_choise) destroy(this.cb_sync) destroy(this.tv_1) destroy(this.cb_exit) destroy(this.cb_reflash) destroy(this.ln_bar) destroy(this.ln_bar2) destroy(this.r_bar) destroy(this.ln_1) destroy(this.ln_2) destroy(this.ln_3) destroy(this.ln_4) end on event resize;ln_bar.EndX = This.Width ln_bar2.EndX = This.Width ln_1.EndX = This.Width ln_2.EndX = This.Width ln_3.EndX = This.Width ln_4.EndX = This.Width r_bar.Width = This.Width tv_1.Height = This.WorkSpaceHeight() - tv_1.Y tv_1.Width = This.WorkSpaceWidth() - tv_1.X end event event open;cb_reflash.triggerevent(clicked!) end event event close;closewithreturn(this, ins_nodeid) end event type cb_choise from uo_imflatbutton within w_aifmb_class_map_ch integer x = 425 integer width = 151 integer height = 164 integer taborder = 90 string text = "选中" string normalpicname = "ok.bmp" integer picsize = 16 toolbaralignment pic_align = alignattop! boolean border = false end type event clicked;call super::clicked;if ins_nodeid <= 0 then MessageBox('提示', '请选择基类') return end if close(parent) end event type cb_sync from uo_imflatbutton within w_aifmb_class_map_ch integer x = 151 integer width = 274 integer height = 164 integer taborder = 80 string text = "同步基类" string normalpicname = "refresh.BMP" integer picsize = 16 toolbaralignment pic_align = alignattop! boolean border = false end type event clicked;call super::clicked;parent.triggerevent('ue_sync_node') end event type tv_1 from uo_tv_aifmb_class within w_aifmb_class_map_ch integer y = 184 integer width = 841 integer taborder = 90 end type event selectionchanged;call super::selectionchanged;s_aifmb_tvi s_data s_data = pf_getdata(newhandle) IF s_data.reltype = 2 THEN ins_nodeid = s_data.relid ELSE ins_nodeid = 0 END IF end event event doubleclicked;call super::doubleclicked;cb_choise.triggerevent(clicked!) end event type cb_exit from uo_imflatbutton within w_aifmb_class_map_ch integer x = 576 integer width = 151 integer height = 164 integer taborder = 70 string text = "退出" boolean cancel = true string normalpicname = "exit.bmp" integer picsize = 16 toolbaralignment pic_align = alignattop! boolean border = false end type event clicked;call super::clicked;Close(PARENT) end event type cb_reflash from uo_imflatbutton within w_aifmb_class_map_ch integer width = 151 integer height = 164 integer taborder = 10 string text = "刷新" string normalpicname = "refresh.BMP" integer picsize = 16 toolbaralignment pic_align = alignattop! boolean border = false end type event clicked;call super::clicked;tv_1.uf_build_tree() end event type ln_bar from line within w_aifmb_class_map_ch long linecolor = 268435456 integer linethickness = 4 integer beginy = 172 integer endx = 2007 integer endy = 172 end type type ln_bar2 from line within w_aifmb_class_map_ch long linecolor = 16777215 integer linethickness = 4 integer beginy = 176 integer endx = 2039 integer endy = 176 end type type r_bar from rectangle within w_aifmb_class_map_ch long linecolor = 16777215 integer linethickness = 4 long fillcolor = 1073741824 integer x = 2139 integer width = 146 integer height = 68 end type event constructor;this.fillcolor = 14215660 this.linecolor = 14215660 this.x = -1 this.y = -1 this.height = ln_bar.beginy - 5 end event type ln_1 from line within w_aifmb_class_map_ch boolean visible = false long linecolor = 268435456 integer linethickness = 4 integer beginy = 292 integer endx = 2016 integer endy = 292 end type type ln_2 from line within w_aifmb_class_map_ch boolean visible = false long linecolor = 16777215 integer linethickness = 4 integer beginy = 296 integer endx = 2048 integer endy = 296 end type type ln_3 from line within w_aifmb_class_map_ch boolean visible = false long linecolor = 268435456 integer linethickness = 4 integer beginy = 412 integer endx = 2016 integer endy = 412 end type type ln_4 from line within w_aifmb_class_map_ch boolean visible = false long linecolor = 16777215 integer linethickness = 4 integer beginy = 416 integer endx = 2048 integer endy = 416 end type