/// <summary> /// 获取当前流程所有定义自动收集参数集合 /// </summary> /// <returns></returns> private WfParameterNeedToBeCollected GetCurrentDescriptorParameters() { WfParameterNeedToBeCollected items = new WfParameterNeedToBeCollected(); items.MergeParameterItems(CurrentProcess.CurrentActivity.Descriptor.ParametersNeedToBeCollected); items.MergeParameterItems(CurrentProcess.Descriptor.ParametersNeedToBeCollected); return(items); }
/// <summary> /// 收集数据 /// </summary> public void CollectData() { //WfParameterNeedToBeCollected items = new WfParameterNeedToBeCollected(); ////ParameterType = MCS.Library.SOA.DataObjects.Workflow.DataType.String, ////ParameterType = MCS.Library.SOA.DataObjects.Workflow.DataType.DateTime, //items.Add(new WfParameterDescriptor() { AutoCollect = true, ParameterName = "Drtest", ControlID = "testControl", ControlPropertyName = "SelectedValue" }); //items.Add(new WfParameterDescriptor() { AutoCollect = true, ParameterName = "Calendartest", ControlID = "DeluxeCalendar1", ControlPropertyName = "Value" }); WfParameterNeedToBeCollected items = this.GetCurrentDescriptorParameters(); foreach (WfParameterDescriptor wfpd in items) { if (wfpd.AutoCollect) { CollectParameter(wfpd); } } }