void BindAdviceInfo() { if (Advice != null) { SimpleEditorPanel uc = this.LoadControl("/ModelUI/Panel/System/SimpleEditorPanel.ascx") as SimpleEditorPanel; uc.PanelName = "adminView"; uc.ModelName = Advice.ModelName; uc.IsViewer = true; ModelDetails.Controls.Add(uc); } }
void BindReplayList() { if (ThisAdvice != null) { TitleLabel.Text = "信息" + ThisAdvice.StateText + ":" + "【" + ThisAdvice.Title + "】"; SimpleEditorPanel uc = this.LoadControl("/ModelUI/Panel/System/SimpleEditorPanel.ascx") as SimpleEditorPanel; uc.PanelName = "adminView"; uc.ModelName = ThisAdvice.ModelName; uc.PanelContext.CtrVersion = CtrVersion.V26; uc.IsViewer = true; ModelDetails.Controls.Add(uc); } }
void LoadModel() { if (phModelEditor != null && mv1.ActiveViewIndex == 2) { if (String.IsNullOrEmpty(ModelName) || String.IsNullOrEmpty(ModelName.Trim())) { Response.Write("内容模型为空"); return; } SimpleEditorPanel ep = LoadControl("~/ModelUI/Panel/system/SimpleEditorPanel.ascx") as SimpleEditorPanel; ep.ModelName = ModelName; ep.PanelName = "fedit"; phModelEditor.Controls.Clear(); phModelEditor.Controls.Add(ep); ep.OnSuccess += new EventHandler(ep_OnSuccess); } }