This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| @@ -481,6 +481,36 @@ namespace VEPROMS.CSLA.Library | ||||
| 			} | ||||
| 		} | ||||
| 		#endregion | ||||
| 		public bool IsCautionStructure | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				return ((ItemPartCount > 0) && (ItemParts[0].PartType == E_FromType.Caution)); | ||||
| 			} | ||||
| 		} | ||||
| 		public bool IsNoteStructure | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				return ((ItemPartCount > 0) && (ItemParts[0].PartType == E_FromType.Note)); | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		public bool IsCautionStructureFirstSib | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				return ((FirstSibling.ItemPartCount > 0) && (FirstSibling.ItemParts[0].PartType == E_FromType.Caution)); | ||||
| 			} | ||||
| 		} | ||||
| 		public bool IsNoteStructureFirstSib | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				return ((FirstSibling.ItemPartCount > 0) && (FirstSibling.ItemParts[0].PartType == E_FromType.Note)); | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		public bool IsType(string type) | ||||
| 		{ | ||||
| 			int stepType = ((int)MyContent.Type) % 10000; | ||||
| @@ -616,6 +646,27 @@ namespace VEPROMS.CSLA.Library | ||||
| 				return parent.IsInRNO; | ||||
| 			} | ||||
| 		} | ||||
| 		public int RNOLevel | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				return (IsHigh?0:(IsRNO?1:0)+((ItemInfo)ActiveParent).RNOLevel); | ||||
| 			} | ||||
| 		} | ||||
| 		public int Columns | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				// check config value on my section, if null/default use Pmode of active format | ||||
| 				SectionInfo si = SectionInfo.Get(ActiveSection.ItemID); //ActiveSection as SectionInfo; | ||||
| 				if (si != null) | ||||
| 				{ | ||||
| 					if (si.SectionConfig.Section_ColumnMode != SectionConfig.SectionColumnMode.Default) | ||||
| 						return (int)si.SectionConfig.Section_ColumnMode; | ||||
| 				} | ||||
| 				return ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.StepSectionLayoutData.PMode ?? 2;  | ||||
| 			} | ||||
| 		} | ||||
| 		/// <summary> | ||||
| 		/// FormatStepType - Maps to step type in format file.  All types map directly from step type in content | ||||
| 		/// to step type in format except rno.  The '39' is the RNO index in the format file.  Note that we  | ||||
| @@ -643,7 +694,7 @@ namespace VEPROMS.CSLA.Library | ||||
| 			get | ||||
| 			{ | ||||
| 				ItemInfo temp = this; | ||||
| 				while (temp.NextItems[0] != null) temp = temp.NextItems[0]; | ||||
| 				while (temp.NextItems != null) temp = temp.NextItems[0]; | ||||
| 				return temp; | ||||
| 			} | ||||
| 		} | ||||
|   | ||||
| @@ -208,5 +208,16 @@ namespace VEPROMS.CSLA.Library | ||||
| 		Plackeep = 0x20000,   // Do replace in PlaceKeepers | ||||
| 		InSecTitle = 0x40000    | ||||
| 	} | ||||
| 	public enum E_ArrowKeys : uint | ||||
| 	{ | ||||
| 		Up = 1, | ||||
| 		Down = 2, | ||||
| 		Right = 3, | ||||
| 		Left = 4, | ||||
| 		CtrlUp = 5, | ||||
| 		CtrlDown = 6, | ||||
| 		CtrlRight = 7, | ||||
| 		CtrlLeft = 8 | ||||
| 	} | ||||
| 	#endregion | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user