Ejemplo n.º 1
0
 /// <summary>
 /// 重新请求
 /// </summary>
 /// <param name="mode">模块</param>
 /// <param name="cmd">命令</param>
 /// <param name="dialog">对话框</param>
 public void Redirect(string mode, string cmd, UMC.Web.UIDialog dialog)
 {
     this.Headers.Set(EventType.AsyncDialog, dialog.ToAsyncArgs());
     this.ClientEvent   |= WebEvent.AsyncDialog;
     this.ClientRedirect = new ClientRedirect {
         Model = mode, Command = cmd
     };
     this.End();
 }
Ejemplo n.º 2
0
        internal void RedirectDialog(string mode, string cmd, UMC.Web.UIDialog dialog, WebRequest req)
        {
            this.Headers.Set(EventType.AsyncDialog, dialog.ToAsyncArgs());

            if (req.Items.Count > 0)
            {
                req.Arguments.Set(WebRequest.KEY_ARGUMENTS_ITEMS, req.Items);
            }

            this.Headers.Set(WebRequest.KEY_HEADER_ARGUMENTS, req.Arguments);
            this.ClientEvent   |= WebEvent.AsyncDialog | WebEvent.Dialog;
            this.ClientRedirect = new ClientRedirect {
                Model = mode, Command = cmd
            };

            this.End();
        }