Restored RevDate for approval.
Use existing MyProcedure rather than "getting" an item from the database.
This commit is contained in:
parent
7b5fdd9f74
commit
1b0023deb5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user