Exemplo n.º 1
0
        public void Reach()
        {
            var context = this.PageContext ?? new Context();

            byte[] resData = _Client.UploadValues(FMWW.Core.MainMenu.Url, MainMenuFactory.CreateInstance().Translate());
            var    html    = Encoding.UTF8.GetString(resData);

            resData = _Client.UploadValues(
                FMWW.Core.Helpers.UrlBuilder.Build("/JMODE_ASP/faces/contents/X024_160_DISTRIBUTE_EXPORT/X024_SELECT.jsp"),
                context.Translate(true));
            html = Encoding.UTF8.GetString(resData);

            FMWW.Core.Helpers.Ajax.Run(this._Client, UrlX024Select);
        }
Exemplo n.º 2
0
        private void ReachWebPageDistributeExportAsync(Action <string> completed)
        {
            UploadValuesCompletedEventHandler onUploadValuesCompleted = null;

            onUploadValuesCompleted = (o, args) =>
            {
                this._Client.UploadValuesCompleted -= onUploadValuesCompleted;
                var html = Encoding.UTF8.GetString(args.Result);
                completed(html);
            };
            this._Client.UploadValuesCompleted += onUploadValuesCompleted;
            this._Client.UploadValuesAsync(FMWW.Core.MainMenu.Url, FMWW.Http.Method.Post, MainMenuFactory.CreateInstance().Translate());
        }