|
|
|
|
@@ -2142,7 +2142,20 @@ namespace RODBInterface
|
|
|
|
|
wraccid = accid;
|
|
|
|
|
string dt = string.Format("{0:yyyyMMddHHmmss}", System.DateTime.Now);
|
|
|
|
|
string xmlstr = GenerateXmlString(ro, false);
|
|
|
|
|
string strUpdate = "UPDATE " + ro.GetAttribute("Table") + " SET Info = '" + xmlstr + "'";
|
|
|
|
|
StringBuilder xmlstrTmp = new StringBuilder(); // B2026-025 prep the info field data so it will be saved correctly.
|
|
|
|
|
char[] chrAry = xmlstr.ToCharArray();
|
|
|
|
|
foreach (int chr in chrAry)
|
|
|
|
|
{
|
|
|
|
|
if (chr > 160)
|
|
|
|
|
{
|
|
|
|
|
xmlstrTmp.Append($"\\u{(int)chr}?");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
xmlstrTmp.Append((char)chr);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
string strUpdate = "UPDATE " + ro.GetAttribute("Table") + " SET Info = '" + xmlstrTmp + "'";
|
|
|
|
|
if (movedRO)
|
|
|
|
|
{
|
|
|
|
|
VlnXmlElement parent = (VlnXmlElement)ro.ParentNode;
|
|
|
|
|
@@ -2186,6 +2199,20 @@ namespace RODBInterface
|
|
|
|
|
}
|
|
|
|
|
string xmlstr = GenerateXmlString(ro, false);
|
|
|
|
|
|
|
|
|
|
StringBuilder xmlstrTmp = new StringBuilder(); // B2026-025 prep the info field data so it will be saved correctly.
|
|
|
|
|
char[] chrAry = xmlstr.ToCharArray();
|
|
|
|
|
foreach (int chr in chrAry)
|
|
|
|
|
{
|
|
|
|
|
if (chr > 160)
|
|
|
|
|
{
|
|
|
|
|
xmlstrTmp.Append($"\\u{(int)chr}?");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
xmlstrTmp.Append((char)chr);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string wraccid = null;
|
|
|
|
|
if (ro.HasAttribute("AccPageID"))
|
|
|
|
|
{
|
|
|
|
|
@@ -2209,13 +2236,13 @@ namespace RODBInterface
|
|
|
|
|
// strInsert = "INSERT INTO " + parent.GetAttribute("Table") + "( RecID, RecType, ParentID, AccPageID, ModDateTime, Info ) ";
|
|
|
|
|
strInsert = "INSERT INTO " + parent.GetAttribute("Table") + "( RecID, RecType, ParentID, ModDateTime, AccPageID, Info ) ";
|
|
|
|
|
strInsert = strInsert + " VALUES ('" + ro.GetAttribute("RecID") + "'," + (uint)RecordType.Group + ",'" + ro.GetAttribute("ParentID");
|
|
|
|
|
strInsert = strInsert + "','" + wraccid + "','" + dt + "','" + xmlstr + "');";
|
|
|
|
|
strInsert = strInsert + "','" + wraccid + "','" + dt + "','" + xmlstrTmp + "');";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
strInsert = "INSERT INTO " + parent.GetAttribute("Table") + "( RecID, RecType, ParentID, ModDateTime, Info ) ";
|
|
|
|
|
strInsert = strInsert + " VALUES ('" + ro.GetAttribute("RecID") + "'," + (uint)RecordType.Group + ",'" + ro.GetAttribute("ParentID");
|
|
|
|
|
strInsert = strInsert + "','" + dt + "','" + xmlstr + "');";
|
|
|
|
|
strInsert = strInsert + "','" + dt + "','" + xmlstrTmp + "');";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@@ -2223,7 +2250,7 @@ namespace RODBInterface
|
|
|
|
|
{
|
|
|
|
|
strInsert = "INSERT INTO " + parent.GetAttribute("Table") + "( RecID, RecType, ParentID, AccPageId, ModDateTime, Info ) ";
|
|
|
|
|
strInsert = strInsert + " VALUES ('" + ro.GetAttribute("RecID") + "'," + (uint)RecordType.RRO + ",'" + ro.GetAttribute("ParentID");
|
|
|
|
|
strInsert = strInsert + "','" + wraccid + "','" + dt + "','" + xmlstr + "');";
|
|
|
|
|
strInsert = strInsert + "','" + wraccid + "','" + dt + "','" + xmlstrTmp + "');";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
@@ -2631,7 +2658,20 @@ namespace RODBInterface
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
StatMsgWindow.StatusMessage = echild.GetAttribute("MenuTitle");
|
|
|
|
|
str = "UPDATE " + echild.GetAttribute("Table") + " SET Info = '" + tinfo2 + "'";
|
|
|
|
|
StringBuilder tinfo2Tmp = new StringBuilder(); // B2026-025 prep the info field data so it will be saved correctly.
|
|
|
|
|
char[] chrAry = tinfo2.ToCharArray();
|
|
|
|
|
foreach (int chr in chrAry)
|
|
|
|
|
{
|
|
|
|
|
if (chr > 160)
|
|
|
|
|
{
|
|
|
|
|
tinfo2Tmp.Append($"\\u{(int)chr}?");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
tinfo2Tmp.Append((char)chr);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
str = "UPDATE " + echild.GetAttribute("Table") + " SET Info = '" + tinfo2Tmp + "'";
|
|
|
|
|
str = str + ", ModDateTime = '" + dt + "' WHERE RecID = '" + echild.GetAttribute("RecID") + "';";
|
|
|
|
|
DBE.Command(str);
|
|
|
|
|
DBE.Reader();
|
|
|
|
|
|