Modifed GetChronology methods to include datetime parameter
Modified GetChronologyByUnit methods to include datetime parameter Modified GetSummary methods to include datetime parameter Modified GetSummaryByUnit methods to include datetime parameter Modified HasChangeBar property to base value on ChangeBarDate Added ChangeBarDate property to ProcedureInfo class
This commit is contained in:
@@ -1983,7 +1983,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (sc == null) return false;
|
||||
// if there is no override & return whether there was a change to the text.
|
||||
if (sc.Step_CBOverride == null)
|
||||
return (MyContent.DTS > MyProcedure.DTS);
|
||||
return (MyContent.DTS > MyProcedure.ChangeBarDate);
|
||||
else // override is on:
|
||||
return (sc.Step_CBOverride == "On");
|
||||
}
|
||||
@@ -4084,6 +4084,22 @@ namespace VEPROMS.CSLA.Library
|
||||
[Serializable()]
|
||||
public partial class ProcedureInfo : ItemInfo, IVEDrillDownReadOnly
|
||||
{
|
||||
private DateTime? _ChangeBarDate = null;
|
||||
public DateTime ChangeBarDate
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_ChangeBarDate == null)
|
||||
{
|
||||
_ChangeBarDate = DTS;
|
||||
string cbDTS = (MyConfig as ProcedureConfig).Print_ChangeBarDate;
|
||||
if ((cbDTS ?? "") != "")
|
||||
_ChangeBarDate = DateTime.Parse(cbDTS);
|
||||
}
|
||||
return (DateTime)_ChangeBarDate;
|
||||
}
|
||||
set { _ChangeBarDate = value; }
|
||||
}
|
||||
public Dictionary<int, ItemInfo> MyLookup = null;
|
||||
public override void SetupTags()
|
||||
{
|
||||
@@ -4153,6 +4169,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (tmp != null)
|
||||
{
|
||||
tmp.MyDocVersion.DocVersionConfig.SelectedSlave = (int)unitID;
|
||||
(tmp.MyConfig as ProcedureConfig).SelectedSlave = (int)unitID;
|
||||
TransitionLookup tranLookup = new TransitionLookup((int)unitID, (int)itemID, tmp.MyLookup);
|
||||
tranLookup.NewLookupNeeded += new TransitionLookupEvent(GetNewLookup);
|
||||
SetParentSectionAndDocVersion(tmp, tmp.MyDocVersion, null, tmp.MyDocVersion, tranLookup);
|
||||
|
Reference in New Issue
Block a user