Esempio n. 1
0
		protected override void LoadFromPrimary()
		{
			Pages.Clear();
			ReportModel model = designerLoader.CreateRenderableModel();
			var collectCmd = new CollectParametersCommand(model);
			collectCmd.Run();
			switch (model.DataModel)
			{
					case GlobalEnums.PushPullModel.FormSheet :
					{
						exportRunner.RunReport(model,(ReportParameters)null);
						break;
					}
					case GlobalEnums.PushPullModel.PullData:
					{
						exportRunner.RunReport(model,(ReportParameters)null);
						break;
					}
					case GlobalEnums.PushPullModel.PushData:
					{
						var cmd = new DataSetFromXsdCommand();
						cmd.Run();
						System.Data.DataSet ds = cmd.DataSet;
						exportRunner.RunReport(model,ds.Tables[0],(ReportParameters)null);
						break;
					}
				default:
					throw new InvalidReportModelException();
			}
			PreviewViewModel previewViewModel = new PreviewViewModel (model.ReportSettings,exportRunner.Pages);
			viewer.SetBinding(previewViewModel);
		}
Esempio n. 2
0
		void CollectParamValues(ReportSettings reportSettings){

			CollectParametersCommand p = new CollectParametersCommand(reportSettings);
			p.Run();
		}
		public override void Run()
		{
			CollectParametersCommand sql = new CollectParametersCommand(model);
			sql.Run();
		}
Esempio n. 4
0
        public override void Run()
        {
            CollectParametersCommand cmd = new CollectParametersCommand(Model);

            cmd.Run();
        }
Esempio n. 5
0
		void FillParameters(ParameterCollection paramCollection)
		{
			model.ReportSettings.ParameterCollection.AddRange(paramCollection);
			CollectParametersCommand p = new CollectParametersCommand(model);
			p.Run();
		}
Esempio n. 6
0
		public override void Run()
		{
			CollectParametersCommand cmd = new CollectParametersCommand(Model.ReportSettings);
			cmd.Run();
		}
Esempio n. 7
0
		public override void Run()
		{
			CollectParametersCommand cmd = new CollectParametersCommand(Model);
			cmd.Run();
		}
Esempio n. 8
0
        public override void Run()
        {
            CollectParametersCommand sql = new CollectParametersCommand(model);

            sql.Run();
        }
Esempio n. 9
0
        public override void Run()
        {
            CollectParametersCommand cmd = new CollectParametersCommand(Model.ReportSettings);

            cmd.Run();
        }