This commit is contained in:
Kathy Ruffing 2012-09-12 12:59:25 +00:00
parent 99b6a97fd3
commit f8040e9a52

View File

@ -32,6 +32,7 @@ namespace DataLoader
if (userid == null || userid == "") userid = "Migration";
int tok = -1;
//char[] chrarr = { '\x1', '\x2', '\x3', '\x5' };
Textm = Textm.Replace("\\", "<BackSlash>");
char[] chrarr = { '\x1', '\x2', '\x3' };
try
{
@ -76,7 +77,7 @@ namespace DataLoader
//content = Content.MakeContent(null, stptext, 20000 + int.Parse(newstptyp!=null?newstptyp:StepType),null, ManualPagebreak?ci.ToString():null, dts, userid);
// 20000 flags step type item & 1 adjusts for 'base' in format files.
int contenttype = (structtype == "R") ? 20040 : 20001 + int.Parse(newstptyp != null ? newstptyp : StepType);
content = Content.New(null, stptext, contenttype, null, ci.ToString(), dts, userid);
content = Content.New(null, stptext.Replace("<BackSlash>", "\\\\"), contenttype, null, ci.ToString(), dts, userid);
content.MyZContent.OldStepSequence = ProcNumber + "|" + stpseq;
// Before we save it, handle RO & Transitions tokens.
@ -136,7 +137,7 @@ namespace DataLoader
}
if (txtdirty)
{
content.Text = stptext;
content.Text = stptext.Replace("<BackSlash>", "\\\\");
//content.Save();
}
if (!content.IsSavable) ErrorRpt.ErrorReport(content);