void UPExecuteWorkflowRequestDelegate.ExecuteWorkflowRequestDidFinishWithResult(UPExecuteWorkflowServerOperation sender, UPExecuteWorkflowResult result) { throw new NotImplementedException(); }
void ExecuteWorkflowRequestDidFinishWithResult(UPExecuteWorkflowServerOperation sender, UPExecuteWorkflowResult result) { if (result.ChangedRecords.Count > 0) { string outputInfoAreaId = this.FormItem.Options.ValueOrDefault("OutputInfoAreaId") as string; int outputMultiple = Convert.ToInt32(this.FormItem.Options.ValueOrDefault("OutputMultiple")); this.outputValue = string.Empty; if (outputMultiple > 0) { if (!string.IsNullOrEmpty(outputInfoAreaId)) { foreach (string r in result.ChangedRecords) { if (r.InfoAreaId() == outputInfoAreaId) { if (string.IsNullOrEmpty(this.outputValue)) { this.outputValue = r; } else { this.outputValue = this.outputValue + "," + r; } } } } else { this.outputValue = String.Join(",", result.ChangedRecords.ToArray()); } } else if (!string.IsNullOrEmpty(outputInfoAreaId)) { foreach (string r in result.ChangedRecords) { if (r.InfoAreaId() == outputInfoAreaId) { this.outputValue = r; break; } } } else { this.outputValue = result.ChangedRecords[0]; } } else { this.outputValue = string.Empty; } this.ResultMessages = result.Messages; this.Delegate.GroupModelControllerValueChanged(this, this.outputValue); this.ShowFinished(null); }