if (_WebOrderModel.OrderNo.ToString().Trim().Equals("") == true)
                return;
            string OrderNo = _WebOrderModel.OrderNo;
            //client.GetOrderNOAsync(orderno); 
            DocumentPreviewWindow preview = new DocumentPreviewWindow();
            ReportPreviewModel model = new ReportPreviewModel();
            //读取ReportService服务地址
            model.ServiceUri = SystemControl.Super.GetAppSetting("ReportService.BaseURL");
            model.ReportTypeName = "Com.B2B.Admin.Report.XtraOrderDetail";
            model.Parameters["Weborderno"].Value = OrderNo;
            //model.AutoShowParametersPanel = false;           
            preview.Model = model;
            preview.Model.CreateDocument();
            preview.ShowDialog();

posted on 2011-11-08 16:28  仟儿  阅读(806)  评论(0编辑  收藏  举报