B2026-025_Unicode_removed_from_RO_menu_titles_in_treeview
This commit is contained in:
@@ -2146,7 +2146,7 @@ namespace RODBInterface
|
|||||||
char[] chrAry = xmlstr.ToCharArray();
|
char[] chrAry = xmlstr.ToCharArray();
|
||||||
foreach (int chr in chrAry)
|
foreach (int chr in chrAry)
|
||||||
{
|
{
|
||||||
if (chr > 160)
|
if (chr > 166)
|
||||||
{
|
{
|
||||||
xmlstrTmp.Append($"\\u{(int)chr}?");
|
xmlstrTmp.Append($"\\u{(int)chr}?");
|
||||||
}
|
}
|
||||||
@@ -2155,7 +2155,7 @@ namespace RODBInterface
|
|||||||
xmlstrTmp.Append((char)chr);
|
xmlstrTmp.Append((char)chr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
string strUpdate = "UPDATE " + ro.GetAttribute("Table") + " SET Info = '" + xmlstrTmp + "'";
|
string strUpdate = "UPDATE " + ro.GetAttribute("Table") + " SET Info = '" + xmlstrTmp.ToString() + "'";
|
||||||
if (movedRO)
|
if (movedRO)
|
||||||
{
|
{
|
||||||
VlnXmlElement parent = (VlnXmlElement)ro.ParentNode;
|
VlnXmlElement parent = (VlnXmlElement)ro.ParentNode;
|
||||||
@@ -2203,7 +2203,7 @@ namespace RODBInterface
|
|||||||
char[] chrAry = xmlstr.ToCharArray();
|
char[] chrAry = xmlstr.ToCharArray();
|
||||||
foreach (int chr in chrAry)
|
foreach (int chr in chrAry)
|
||||||
{
|
{
|
||||||
if (chr > 160)
|
if (chr > 166)
|
||||||
{
|
{
|
||||||
xmlstrTmp.Append($"\\u{(int)chr}?");
|
xmlstrTmp.Append($"\\u{(int)chr}?");
|
||||||
}
|
}
|
||||||
@@ -2236,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, AccPageID, ModDateTime, Info ) ";
|
||||||
strInsert = "INSERT INTO " + parent.GetAttribute("Table") + "( RecID, RecType, ParentID, ModDateTime, AccPageID, 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 + " VALUES ('" + ro.GetAttribute("RecID") + "'," + (uint)RecordType.Group + ",'" + ro.GetAttribute("ParentID");
|
||||||
strInsert = strInsert + "','" + wraccid + "','" + dt + "','" + xmlstrTmp + "');";
|
strInsert = strInsert + "','" + wraccid + "','" + dt + "','" + xmlstrTmp.ToString() + "');";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
strInsert = "INSERT INTO " + parent.GetAttribute("Table") + "( RecID, RecType, ParentID, ModDateTime, Info ) ";
|
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 + " VALUES ('" + ro.GetAttribute("RecID") + "'," + (uint)RecordType.Group + ",'" + ro.GetAttribute("ParentID");
|
||||||
strInsert = strInsert + "','" + dt + "','" + xmlstrTmp + "');";
|
strInsert = strInsert + "','" + dt + "','" + xmlstrTmp.ToString() + "');";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -2250,7 +2250,7 @@ namespace RODBInterface
|
|||||||
{
|
{
|
||||||
strInsert = "INSERT INTO " + parent.GetAttribute("Table") + "( RecID, RecType, ParentID, AccPageId, ModDateTime, Info ) ";
|
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 + " VALUES ('" + ro.GetAttribute("RecID") + "'," + (uint)RecordType.RRO + ",'" + ro.GetAttribute("ParentID");
|
||||||
strInsert = strInsert + "','" + wraccid + "','" + dt + "','" + xmlstrTmp + "');";
|
strInsert = strInsert + "','" + wraccid + "','" + dt + "','" + xmlstrTmp.ToString() + "');";
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -2662,7 +2662,7 @@ namespace RODBInterface
|
|||||||
char[] chrAry = tinfo2.ToCharArray();
|
char[] chrAry = tinfo2.ToCharArray();
|
||||||
foreach (int chr in chrAry)
|
foreach (int chr in chrAry)
|
||||||
{
|
{
|
||||||
if (chr > 160)
|
if (chr > 166)
|
||||||
{
|
{
|
||||||
tinfo2Tmp.Append($"\\u{(int)chr}?");
|
tinfo2Tmp.Append($"\\u{(int)chr}?");
|
||||||
}
|
}
|
||||||
@@ -2671,7 +2671,7 @@ namespace RODBInterface
|
|||||||
tinfo2Tmp.Append((char)chr);
|
tinfo2Tmp.Append((char)chr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
str = "UPDATE " + echild.GetAttribute("Table") + " SET Info = '" + tinfo2Tmp + "'";
|
str = "UPDATE " + echild.GetAttribute("Table") + " SET Info = '" + tinfo2Tmp.ToString() + "'";
|
||||||
str = str + ", ModDateTime = '" + dt + "' WHERE RecID = '" + echild.GetAttribute("RecID") + "';";
|
str = str + ", ModDateTime = '" + dt + "' WHERE RecID = '" + echild.GetAttribute("RecID") + "';";
|
||||||
DBE.Command(str);
|
DBE.Command(str);
|
||||||
DBE.Reader();
|
DBE.Reader();
|
||||||
|
|||||||
Reference in New Issue
Block a user