B2022-073 find the first procedure set that has Parent Child information to pass into RO Editor
This commit is contained in:
		| @@ -538,6 +538,7 @@ namespace Volian.Controls.Library | |||||||
| 				// C2021-026 pass in Parent/Child information (list of the children) | 				// C2021-026 pass in Parent/Child information (list of the children) | ||||||
| 				// B2022-019 look at all DocVersions to find ParentChild information | 				// B2022-019 look at all DocVersions to find ParentChild information | ||||||
| 				//           to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set | 				//           to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set | ||||||
|  | 				// B2022-073 Break out of the foreach when we find a set with parent/child information | ||||||
|  |  | ||||||
| 				DocVersionInfoList dvil = DocVersionInfoList.Get(); | 				DocVersionInfoList dvil = DocVersionInfoList.Get(); | ||||||
|  |  | ||||||
| @@ -547,9 +548,9 @@ namespace Volian.Controls.Library | |||||||
| 					if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0") | 					if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0") | ||||||
| 					{ | 					{ | ||||||
| 						args += " \"PC=" + dvc.Unit_Name + "\""; | 						args += " \"PC=" + dvc.Unit_Name + "\""; | ||||||
| 					} |  | ||||||
| 						break; | 						break; | ||||||
| 					} | 					} | ||||||
|  | 				} | ||||||
|  |  | ||||||
| 				System.Diagnostics.Process.Start(roapp, args); | 				System.Diagnostics.Process.Start(roapp, args); | ||||||
| 			} | 			} | ||||||
| @@ -1096,6 +1097,7 @@ namespace Volian.Controls.Library | |||||||
| 				// C2021-026 pass in Parent/Child information (list of the children) | 				// C2021-026 pass in Parent/Child information (list of the children) | ||||||
| 				// B2022-019 look at all DocVersions to find ParentChild information | 				// B2022-019 look at all DocVersions to find ParentChild information | ||||||
| 				//           to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set | 				//           to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set | ||||||
|  | 				// B2022-073 Break out of the foreach when we find a set with parent/child information | ||||||
| 				DocVersionInfoList dvil = DocVersionInfoList.Get(); | 				DocVersionInfoList dvil = DocVersionInfoList.Get(); | ||||||
|  |  | ||||||
| 				foreach (DocVersionInfo dvi in dvil) | 				foreach (DocVersionInfo dvi in dvil) | ||||||
| @@ -1105,10 +1107,9 @@ namespace Volian.Controls.Library | |||||||
| 					if (jdvc != null && jdvc.Unit_Name != "" && jdvc.Unit_Name != "0") | 					if (jdvc != null && jdvc.Unit_Name != "" && jdvc.Unit_Name != "0") | ||||||
| 					{ | 					{ | ||||||
| 						args += " \"PC=" + jdvc.Unit_Name + "\""; | 						args += " \"PC=" + jdvc.Unit_Name + "\""; | ||||||
| 					} |  | ||||||
|  |  | ||||||
| 						break; | 						break; | ||||||
| 					} | 					} | ||||||
|  | 				} | ||||||
|  |  | ||||||
| 				System.Diagnostics.Process.Start(roapp, args); | 				System.Diagnostics.Process.Start(roapp, args); | ||||||
| 			} | 			} | ||||||
|   | |||||||
| @@ -3131,14 +3131,17 @@ namespace Volian.Controls.Library | |||||||
| 				// C2021-026 pass in Parent/Child information (list of the children) | 				// C2021-026 pass in Parent/Child information (list of the children) | ||||||
| 				// B2022-019 look at all DocVersions to find ParentChild information | 				// B2022-019 look at all DocVersions to find ParentChild information | ||||||
| 				//           to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set | 				//           to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set | ||||||
|  | 				// B2022-073 Break out of the foreach when we find a set with parent/child information | ||||||
| 				DocVersionInfoList dvil = DocVersionInfoList.Get(); | 				DocVersionInfoList dvil = DocVersionInfoList.Get(); | ||||||
| 				foreach (DocVersionInfo dvi in dvil) | 				foreach (DocVersionInfo dvi in dvil) | ||||||
| 				{ | 				{ | ||||||
| 					DocVersionConfig dvc = dvi.DocVersionConfig as DocVersionConfig; | 					DocVersionConfig dvc = dvi.DocVersionConfig as DocVersionConfig; | ||||||
| 					if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0") | 					if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0") | ||||||
|  | 					{ | ||||||
| 						args += " \"PC=" + dvc.Unit_Name + "\""; | 						args += " \"PC=" + dvc.Unit_Name + "\""; | ||||||
| 						break; | 						break; | ||||||
| 					} | 					} | ||||||
|  | 				} | ||||||
| 				System.Diagnostics.Process.Start(roapp, args); | 				System.Diagnostics.Process.Start(roapp, args); | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| @@ -3298,14 +3301,17 @@ namespace Volian.Controls.Library | |||||||
| 			// C2021-026 pass in Parent/Child information (list of the children) | 			// C2021-026 pass in Parent/Child information (list of the children) | ||||||
| 			// B2022-019 look at all DocVersions to find ParentChild information | 			// B2022-019 look at all DocVersions to find ParentChild information | ||||||
| 			//           to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set | 			//           to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set | ||||||
|  | 			// B2022-073 Break out of the foreach when we find a set with parent/child information | ||||||
| 			DocVersionInfoList dvil = DocVersionInfoList.Get(); | 			DocVersionInfoList dvil = DocVersionInfoList.Get(); | ||||||
| 			foreach (DocVersionInfo dvi in dvil) | 			foreach (DocVersionInfo dvi in dvil) | ||||||
| 			{ | 			{ | ||||||
| 				DocVersionConfig dvc = dvi.DocVersionConfig as DocVersionConfig; | 				DocVersionConfig dvc = dvi.DocVersionConfig as DocVersionConfig; | ||||||
| 				if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0") | 				if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0") | ||||||
|  | 				{ | ||||||
| 					roloc += " \"PC=" + dvc.Unit_Name + "\""; | 					roloc += " \"PC=" + dvc.Unit_Name + "\""; | ||||||
| 					break; | 					break; | ||||||
| 				} | 				} | ||||||
|  | 			} | ||||||
| 			System.Diagnostics.Process.Start(roapp, roloc); | 			System.Diagnostics.Process.Start(roapp, roloc); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -2103,14 +2103,17 @@ namespace Volian.Controls.Library | |||||||
| 			// C2021-026 pass in Parent/Child information (list of the children) | 			// C2021-026 pass in Parent/Child information (list of the children) | ||||||
| 			// B2022-019 look at all DocVersions to find ParentChild information | 			// B2022-019 look at all DocVersions to find ParentChild information | ||||||
| 			//           to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set | 			//           to ensure we pass in Parent/Child even when not coming from a Parent/Child procedure set | ||||||
|  | 			// B2022-073 Break out of the foreach when we find a set with parent/child information | ||||||
| 			DocVersionInfoList dvil = DocVersionInfoList.Get(); | 			DocVersionInfoList dvil = DocVersionInfoList.Get(); | ||||||
| 			foreach (DocVersionInfo dvi in dvil) | 			foreach (DocVersionInfo dvi in dvil) | ||||||
| 			{ | 			{ | ||||||
| 				DocVersionConfig dvc = dvi.DocVersionConfig as DocVersionConfig; | 				DocVersionConfig dvc = dvi.DocVersionConfig as DocVersionConfig; | ||||||
| 				if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0") | 				if (dvc != null && dvc.Unit_Name != "" && dvc.Unit_Name != "0") | ||||||
|  | 				{ | ||||||
| 					roloc += " \"PC=" + dvc.Unit_Name + "\""; | 					roloc += " \"PC=" + dvc.Unit_Name + "\""; | ||||||
| 					break; | 					break; | ||||||
| 				} | 				} | ||||||
|  | 			} | ||||||
| 			System.Diagnostics.Process.Start(roapp, roloc); | 			System.Diagnostics.Process.Start(roapp, roloc); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user