private void InitilizeFlow_ExecuteCode(object sender, System.EventArgs e) { // Update the Workflow details in AdjudicationApplication Table XmlDocument WfInfo = new XmlDocument(); IgrssAdapters.ValuationAdapter.UpdateAdjudicationWfDetails(this.WorkflowInstanceId, WfInfo.OuterXml, this.ValuationFormId); VerificationList = new List <FeedbackData>(); // Get the Process Flow for the current office OfficeProcess_LKPTableAdapter adapter = new OfficeProcess_LKPTableAdapter(); XmlDocument process = new XmlDocument(); DataRow dr = adapter.GetProcessDetails(InitiatingOffice, "ADJ").Rows[0]; process.LoadXml((string)dr["Data"]); // Read and Assign the verification process data to lists XmlNodeList VerificationItems = process.SelectNodes("Process/VerificationList/Item"); foreach (XmlElement item in VerificationItems) { OfficesCommunication_LKPTableAdapter comAdapter = new OfficesCommunication_LKPTableAdapter(); DataTable dt = comAdapter.GetCommunicationOfficeByKey(InitiatingOffice, item.Attributes["ForwardingOffice"].Value); if (dt.Rows.Count > 0) { VerificationList.Add(new FeedbackData(InitiatingOffice, (Guid)dt.Rows[0]["CommunicatingOffice"], new Guid(item.Attributes["Role"].Value))); } } }
private void InitilizeInstance_ExecuteCode(object sender, System.EventArgs e) { XmlDocument WfInfo = new XmlDocument(); IgrssAdapters.ComplainAdapter.UpdateWorkflowDetails(this.WorkflowInstanceId, WfInfo.OuterXml, ComplainId); // Load the Complain ProcessFlow for the current Office OfficeProcess_LKPTableAdapter adapter = new OfficeProcess_LKPTableAdapter(); XmlDocument process = new XmlDocument(); DataRow dr = adapter.GetProcessDetails(ComplainOffice, "COM").Rows[0]; process.LoadXml((string)dr["Data"]); // Read and Assign the list of users who will accept the complain string filter = "Process/VerificationList/Item"; XmlNodeList AcceptenceNodes = process.SelectNodes(filter); AcceptanceList = new List <FeedbackData>(); foreach (XmlElement item in AcceptenceNodes) { OfficesCommunication_LKPTableAdapter comAdapter = new OfficesCommunication_LKPTableAdapter(); DataTable dt = comAdapter.GetCommunicationOfficeByKey(ComplainOffice, item.Attributes["ForwardingOffice"].Value); if (dt.Rows.Count > 0) { AcceptanceList.Add(new FeedbackData(ComplainOffice, (Guid)dt.Rows[0]["CommunicatingOffice"], new Guid(item.Attributes["Role"].Value))); } } }