Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d17688fc9d | |||
| 294d19e9d1 | |||
| 7fee639b53 | |||
| c2a5a8ec7d | |||
| ec823cab97 | |||
| 83f88b6df3 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -418,7 +418,7 @@ namespace ROEditor
|
|||||||
// NOTE: not doing the "Using System.Threading;" statement at beginning of file because it conflicts with the declaration of the "Timer" variable
|
// NOTE: not doing the "Using System.Threading;" statement at beginning of file because it conflicts with the declaration of the "Timer" variable
|
||||||
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
|
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
|
||||||
|
|
||||||
// The data path the was passed in.
|
// The data path the was passed in.
|
||||||
DbConnectPath = PassedInPath;
|
DbConnectPath = PassedInPath;
|
||||||
|
|
||||||
// Setup the context menu
|
// Setup the context menu
|
||||||
|
|||||||
@@ -2147,7 +2147,6 @@ namespace RODBInterface
|
|||||||
foreach (int chr in chrAry)
|
foreach (int chr in chrAry)
|
||||||
{
|
{
|
||||||
if (chr > 166)
|
if (chr > 166)
|
||||||
|
|
||||||
{
|
{
|
||||||
xmlstrTmp.Append($"\\u{(int)chr}?");
|
xmlstrTmp.Append($"\\u{(int)chr}?");
|
||||||
}
|
}
|
||||||
@@ -2205,7 +2204,6 @@ namespace RODBInterface
|
|||||||
foreach (int chr in chrAry)
|
foreach (int chr in chrAry)
|
||||||
{
|
{
|
||||||
if (chr > 166)
|
if (chr > 166)
|
||||||
|
|
||||||
{
|
{
|
||||||
xmlstrTmp.Append($"\\u{(int)chr}?");
|
xmlstrTmp.Append($"\\u{(int)chr}?");
|
||||||
}
|
}
|
||||||
@@ -2660,7 +2658,20 @@ namespace RODBInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
StatMsgWindow.StatusMessage = echild.GetAttribute("MenuTitle");
|
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 > 166)
|
||||||
|
{
|
||||||
|
tinfo2Tmp.Append($"\\u{(int)chr}?");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tinfo2Tmp.Append((char)chr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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();
|
||||||
|
|||||||
@@ -24329,8 +24329,10 @@ BEGIN
|
|||||||
OR FromID in (Select ContentID from tblContents where deletestatus != 0 and ActionDTS < @dte)
|
OR FromID in (Select ContentID from tblContents where deletestatus != 0 and ActionDTS < @dte)
|
||||||
)
|
)
|
||||||
PRINT 'Deleting Items and Parts'
|
PRINT 'Deleting Items and Parts'
|
||||||
|
alter table tblParts nocheck constraint FK_Parts_Items
|
||||||
delete from tblItems where deletestatus != 0 and DTS < @dte
|
delete from tblItems where deletestatus != 0 and DTS < @dte
|
||||||
delete from tblParts where deletestatus != 0 and ItemID Not IN (Select ItemID from Items) and DTS < @dte
|
delete from tblParts where deletestatus != 0 and ItemID Not IN (Select ItemID from Items) and DTS < @dte
|
||||||
|
alter table tblParts check constraint FK_Parts_Items
|
||||||
PRINT 'Purging Parts with deleted Contents'
|
PRINT 'Purging Parts with deleted Contents'
|
||||||
DELETE from Child
|
DELETE from Child
|
||||||
FROM tblParts AS Child
|
FROM tblParts AS Child
|
||||||
@@ -24355,7 +24357,9 @@ BEGIN
|
|||||||
ON Itms.ItemID = tblItems.ItemID AND Itms.deletestatus = tblItems.deletestatus
|
ON Itms.ItemID = tblItems.ItemID AND Itms.deletestatus = tblItems.deletestatus
|
||||||
alter table tblItems check constraint FK_Items_Items
|
alter table tblItems check constraint FK_Items_Items
|
||||||
PRINT 'Purging Contents'
|
PRINT 'Purging Contents'
|
||||||
|
alter table tblEntries nocheck constraint FK_Entries_Contents
|
||||||
delete from tblContents where deletestatus != 0 and ActionDTS < @dte
|
delete from tblContents where deletestatus != 0 and ActionDTS < @dte
|
||||||
|
alter table tblEntries check constraint FK_Entries_Contents
|
||||||
PRINT 'Phase 3'
|
PRINT 'Phase 3'
|
||||||
delete from AnnotationAudits where DTS < @dte
|
delete from AnnotationAudits where DTS < @dte
|
||||||
delete from ContentAudits where DTS < @dte
|
delete from ContentAudits where DTS < @dte
|
||||||
@@ -24766,8 +24770,8 @@ BEGIN TRY -- Try Block
|
|||||||
DECLARE @RevDate varchar(255)
|
DECLARE @RevDate varchar(255)
|
||||||
DECLARE @RevDescription varchar(255)
|
DECLARE @RevDescription varchar(255)
|
||||||
|
|
||||||
set @RevDate = '02/18/2026 7:00 AM'
|
set @RevDate = '03/12/2026 11:00 AM'
|
||||||
set @RevDescription = 'Added Audit Ability for ChangeBars'
|
set @RevDescription = 'Update to Purge Change History Tool'
|
||||||
|
|
||||||
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
|
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
|
||||||
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
|
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
|
||||||
|
|||||||
@@ -1668,20 +1668,8 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
Clipboard.Clear();
|
Clipboard.Clear();
|
||||||
|
|
||||||
//Try to update the data object to persist beyond PROMS life
|
Clipboard.SetDataObject(myDO); // this saves the cleaned up information to the Windows clipboard
|
||||||
//if can't, log it and use old method of scoping clipboard to PROMS life
|
}
|
||||||
try
|
|
||||||
{
|
|
||||||
// noticed that sometimes the clipboard will get stuck - so set it to retry twice
|
|
||||||
// and if it fails, scope the clipboard to within PROMS
|
|
||||||
Clipboard.SetDataObject(myDO, true, 2, 100); // this saves the cleaned up information to the Windows clipboard
|
|
||||||
}
|
|
||||||
catch (System.Runtime.InteropServices.ExternalException ex)
|
|
||||||
{
|
|
||||||
_MyLog.Warn($"Error Setting Clipboard Object to Persist beyond PROMS. Clipboard will be scoped to PROMS. Error:{ex.Message}");
|
|
||||||
Clipboard.SetDataObject(myDO); // this saves the cleaned up information to the Windows clipboard
|
|
||||||
}
|
|
||||||
}
|
|
||||||
iData = Clipboard.GetDataObject();
|
iData = Clipboard.GetDataObject();
|
||||||
bool noEquationData = true;
|
bool noEquationData = true;
|
||||||
// part of bug B2017-117 we were running out of window handles when printing, found this similar use of
|
// part of bug B2017-117 we were running out of window handles when printing, found this similar use of
|
||||||
|
|||||||
@@ -2473,19 +2473,6 @@ namespace Volian.Controls.Library
|
|||||||
private string ConvertTableText(string str)
|
private string ConvertTableText(string str)
|
||||||
{
|
{
|
||||||
string rtn = str;
|
string rtn = str;
|
||||||
string pattern = @"\\u([0-9]{1,4})\?";
|
|
||||||
|
|
||||||
string mValue, mValue2 = "";
|
|
||||||
foreach (Match match in Regex.Matches(rtn, pattern, RegexOptions.IgnoreCase))
|
|
||||||
{
|
|
||||||
mValue = match.Value;
|
|
||||||
mValue2 = @"\f1 " + mValue + @"\f0";
|
|
||||||
rtn = rtn.Replace(match.Value, mValue2);
|
|
||||||
// @"\f1\u9474 ?\f0")
|
|
||||||
// linkValue = linkValue.Replace(match.Value, "\\f1 " + match.Value + "\\f0");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//ShowRawString(str, "ConvertTableText IN");
|
//ShowRawString(str, "ConvertTableText IN");
|
||||||
rtn = rtn.Replace(@"START]\v0", @"START]\cf1\v0");
|
rtn = rtn.Replace(@"START]\v0", @"START]\cf1\v0");
|
||||||
rtn = rtn.Replace(@"\v #Link:", @"\cf0\v #Link:");
|
rtn = rtn.Replace(@"\v #Link:", @"\cf0\v #Link:");
|
||||||
@@ -3840,9 +3827,6 @@ namespace Volian.Controls.Library
|
|||||||
this.MergedRanges.Clear();
|
this.MergedRanges.Clear();
|
||||||
this.Clear();
|
this.Clear();
|
||||||
this.IsRoTable = true;
|
this.IsRoTable = true;
|
||||||
//valtext = valtext.Replace(@"\u8209?", "-");
|
|
||||||
//valtext = Regex.Replace(valtext, @"\\u([0-9]{1,4})\?", m => int.TryParse(m?.Groups[1]?.Value, out int result) ? Convert.ToChar(result).ToString() : "");
|
|
||||||
//valtext = valtext.Replace("-", @"\u8209?");
|
|
||||||
this.ParseTableFromText(valtext, GridLinePattern.Single);
|
this.ParseTableFromText(valtext, GridLinePattern.Single);
|
||||||
this.AutoSizeCols();
|
this.AutoSizeCols();
|
||||||
this.AutoSizeRows();
|
this.AutoSizeRows();
|
||||||
|
|||||||
Reference in New Issue
Block a user