Page Num Transition
Initial version needed for Page Num Transition
This commit is contained in:
parent
ef32061c72
commit
cfb0981a22
@ -645,7 +645,7 @@ namespace VEPROMS
|
|||||||
// Determine change bar settings. First get from config & then see if override from dialog.
|
// Determine change bar settings. First get from config & then see if override from dialog.
|
||||||
// Also check that format allows override.
|
// Also check that format allows override.
|
||||||
ChangeBarDefinition cbd = DetermineChangeBarSettings();
|
ChangeBarDefinition cbd = DetermineChangeBarSettings();
|
||||||
if (MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave > 0)
|
if (MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave > 0 || MyProcedure.ActiveFormat.PlantFormat.FormatData.TransData.UseTransitionModifier)
|
||||||
MyProcedure = ProcedureInfo.GetItemAndChildrenByUnit(MyProcedure.ItemID, 0, MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave);
|
MyProcedure = ProcedureInfo.GetItemAndChildrenByUnit(MyProcedure.ItemID, 0, MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave);
|
||||||
else
|
else
|
||||||
MyProcedure = ProcedureInfo.GetItemAndChildren(MyProcedure.ItemID);
|
MyProcedure = ProcedureInfo.GetItemAndChildren(MyProcedure.ItemID);
|
||||||
|
62
PROMS/VEPROMS.CSLA.Library/Config/TransitionConfig.cs
Normal file
62
PROMS/VEPROMS.CSLA.Library/Config/TransitionConfig.cs
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
using System.ComponentModel;
|
||||||
|
|
||||||
|
namespace VEPROMS.CSLA.Library
|
||||||
|
{
|
||||||
|
[Serializable]
|
||||||
|
[TypeConverter(typeof(ExpandableObjectConverter))]
|
||||||
|
public class TransitionConfig : ConfigDynamicTypeDescriptor, INotifyPropertyChanged
|
||||||
|
{
|
||||||
|
private XMLProperties _Xp;
|
||||||
|
private XMLProperties Xp
|
||||||
|
{
|
||||||
|
get { return _Xp; }
|
||||||
|
}
|
||||||
|
public TransitionConfig(string xml)
|
||||||
|
{
|
||||||
|
if (xml == string.Empty) xml = "<Config/>";
|
||||||
|
_Xp = new XMLProperties(xml);
|
||||||
|
}
|
||||||
|
public TransitionConfig(TransitionInfo ti)
|
||||||
|
{
|
||||||
|
string xml = ti.Config;
|
||||||
|
if (xml == string.Empty) xml = "<Config/>";
|
||||||
|
_Xp = new XMLProperties(xml);
|
||||||
|
}
|
||||||
|
public TransitionConfig(Transition t)
|
||||||
|
{
|
||||||
|
string xml = t.Config;
|
||||||
|
if (xml == string.Empty) xml = "<Config/>";
|
||||||
|
_Xp = new XMLProperties(xml);
|
||||||
|
}
|
||||||
|
public TransitionConfig()
|
||||||
|
{
|
||||||
|
_Xp = new XMLProperties();
|
||||||
|
}
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
string s = _Xp.ToString();
|
||||||
|
if (s == "<Config/>" || s == "<Config></Config>") return string.Empty;
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
#region GeneralTransitionProperties
|
||||||
|
[Category("Formatted")] // format transition, i.e. include page number
|
||||||
|
[DisplayName("Formatted")]
|
||||||
|
[RefreshProperties(RefreshProperties.All)]
|
||||||
|
[Description("Formatted")]
|
||||||
|
public string Transition_Formatted
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _Xp["Transition", "Formatted"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_Xp["Transition", "Formatted"] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user