Fix to import Transitions in Grids (tables)
This commit is contained in:
parent
dcedc10ba9
commit
ae2473ba24
@ -2519,6 +2519,8 @@ namespace VEPROMS
|
||||
else
|
||||
replacewith = string.Format("#Link:TransitionRange:{0} {1} {2} {3}", trantype, transitionid, toid, rangeid);
|
||||
content.Text = content.Text.Replace(lookfor, replacewith);
|
||||
if (content.MyGrid != null && content.MyGrid.Data != "")
|
||||
content.MyGrid.Data = content.MyGrid.Data.Replace(lookfor, replacewith);
|
||||
content.FixTransitionText(TransitionInfo.Get(tt.TransitionID));
|
||||
content.Save();
|
||||
}
|
||||
@ -2586,6 +2588,8 @@ namespace VEPROMS
|
||||
else
|
||||
replacewith = string.Format("#Link:TransitionRange:{0} {1} {2} {3}", trantype, transitionid, toid, rangeid);
|
||||
cc.Text = cc.Text.Replace(lookfor, replacewith);
|
||||
if (cc.MyGrid != null && cc.MyGrid.Data != "")
|
||||
cc.MyGrid.Data = cc.MyGrid.Data.Replace(lookfor, replacewith);
|
||||
bool forceConvertToText = false;
|
||||
if (TransitionInfo.Get(tt.TransitionID).MyItemToID.ActiveSection != null)
|
||||
{
|
||||
@ -2628,6 +2632,8 @@ namespace VEPROMS
|
||||
else
|
||||
replacewith = string.Format("#Link:TransitionRange:{0} {1} {2} {3}", trantype, transitionid, toid, rangeid);
|
||||
cc.Text = cc.Text.Replace(lookfor, replacewith);
|
||||
if (cc.MyGrid != null && cc.MyGrid.Data != "")
|
||||
cc.MyGrid.Data = cc.MyGrid.Data.Replace(lookfor, replacewith);
|
||||
if (TransitionInfo.Get(tt.TransitionID).MyItemToID.ActiveSection != null)
|
||||
{
|
||||
SectionConfig sc = TransitionInfo.Get(tt.TransitionID).MyItemToID.ActiveSection.MyConfig as SectionConfig;
|
||||
@ -3853,6 +3859,7 @@ namespace VEPROMS
|
||||
DateTime dts = DateTime.Parse(nd.Attributes.GetNamedItem("dts").InnerText);
|
||||
Grid gg = Grid.MakeGrid(content, data, config, dts, userid);
|
||||
gg.Save();
|
||||
content.MyGrid = gg;
|
||||
}
|
||||
|
||||
// jsj 4-29-2016 appears to not be used
|
||||
|
Loading…
x
Reference in New Issue
Block a user