public NReportParameter(ReportParameter reportParameter) { Prompt = reportParameter.Prompt; Name = reportParameter.Name; MultiValue = reportParameter.MultiValue; MultiValueSpecified = reportParameter.MultiValueSpecified; AllowBlank = reportParameter.AllowBlank; switch (reportParameter.Type) { case ParameterTypeEnum.Boolean: _parameterType = ReportParameterType.Boolean; break; case ParameterTypeEnum.DateTime: _parameterType = ReportParameterType.DateTime; break; case ParameterTypeEnum.Float: _parameterType = ReportParameterType.Float; break; case ParameterTypeEnum.Integer: _parameterType = ReportParameterType.Integer; break; case ParameterTypeEnum.String: _parameterType = ReportParameterType.String; break; } if (reportParameter.ValidValues != null) { foreach (ValidValue vv in reportParameter.ValidValues) { _validValues.Add(new NValidValue(vv)); } } if (reportParameter.Dependencies != null) { foreach (string dep in reportParameter.Dependencies) { _dependencies.Add(dep); } } if (reportParameter.DefaultValues != null) { foreach (string def in reportParameter.DefaultValues) { _defaultValues.Add(def); } } }
/// <remarks/> public void SetReportParametersAsync(string Report, ReportParameter[] Parameters, object userState) { if ((this.SetReportParametersOperationCompleted == null)) { this.SetReportParametersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetReportParametersOperationCompleted); } this.InvokeAsync("SetReportParameters", new object[] { Report, Parameters}, this.SetReportParametersOperationCompleted, userState); }
/// <remarks/> public void SetReportParametersAsync(string Report, ReportParameter[] Parameters) { this.SetReportParametersAsync(Report, Parameters, null); }
public void SetReportParameters(string Report, ReportParameter[] Parameters) { this.Invoke("SetReportParameters", new object[] { Report, Parameters}); }