protected override void OnPreRender(EventArgs e) { WindowFeature feature = GetWindowFeature(); if (CurrentMode == ControlShowingMode.Normal) { InitShowDialogControl(); } else { if (CurrentProcess != null) { viewerControl.InitializeValue = GetWorkflowInfo(CurrentProcess, ShowMainStream); viewerControl.Attributes["wrapperControlID"] = this.ClientID; } } OpenWindowFeature = feature.ToWindowFeatureClientString(); RegisterClientStringTable(); RegisterHover(); RegisterPopupMenu(); WfControlHelperExt.RegisterCurrentUserAppAuthInfoScript(this.Page); base.OnPreRender(e); }
protected override void OnInit(EventArgs e) { WfControlHelperExt.InitWfControlPostBackErrorHandler(this.Page); base.OnInit(e); ExceptionHelper.TrueThrow(WfMoveToControl.Current != null && WfMoveToControl.Current != this, "不能在页面上创建两个WfMoveToControl"); HttpContext.Current.Items["WfMoveToControl"] = this; if (Page.IsCallback) { EnsureChildControls(); } }
protected override void OnInit(EventArgs e) { WfControlHelperExt.InitWfControlPostBackErrorHandler(this.Page); base.OnInit(e); }