Restored RevDate for approval.
Use existing MyProcedure rather than "getting" an item from the database.
This commit is contained in:
		@@ -288,6 +288,24 @@ namespace VEPROMS.CSLA.Library
 | 
			
		||||
				OnPropertyChanged("Print_Rev");
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		//new rev_date
 | 
			
		||||
		[Category("Print Settings")]		//Note that this print setting is stored under 'Procedure' element
 | 
			
		||||
		[Browsable(false)]
 | 
			
		||||
		[DisplayName("Revision RevDate")]
 | 
			
		||||
		[RefreshProperties(RefreshProperties.All)]
 | 
			
		||||
		[Description("Revision RevDate")]
 | 
			
		||||
		public string Print_RevDate
 | 
			
		||||
		{
 | 
			
		||||
			get
 | 
			
		||||
			{
 | 
			
		||||
				return _Xp["Procedure", "RevDate"];
 | 
			
		||||
			}
 | 
			
		||||
			set
 | 
			
		||||
			{
 | 
			
		||||
				_Xp["Procedure", "RevDate"] = value;
 | 
			
		||||
				OnPropertyChanged("Print_RevDate");
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		[Category("Print Settings")]
 | 
			
		||||
		//PROPGRID: Hide Number of Copies
 | 
			
		||||
		[Browsable(false)]
 | 
			
		||||
 
 | 
			
		||||
@@ -72,7 +72,7 @@ namespace VEPROMS.CSLA.Library
 | 
			
		||||
					sect = (sect.ActiveParent as SectionInfo) ?? SectionInfo.Get((sect.ActiveParent as ItemInfo).ItemID);
 | 
			
		||||
				}
 | 
			
		||||
				// There may be levels of procedures, i.e. procedures within a procedure.
 | 
			
		||||
				ProcedureInfo proc = ProcedureInfo.Get(((ItemInfo)sect.ActiveParent).ItemID);
 | 
			
		||||
				ProcedureInfo proc = sect.MyProcedure;
 | 
			
		||||
				retval = proc.ProcedureConfig.GetValue(args.Group, args.Item);
 | 
			
		||||
				if (retval != string.Empty) return retval;
 | 
			
		||||
				while (proc.ActiveParent.IsProcedure)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user