New function to fix the ro values in the link text within the content text (for example, if the rodbid is updated in the link text)

Add menu item for ro fixer.
Fix ro values correctly if containing a dash and/or in a grid
This commit is contained in:
2014-03-10 16:25:58 +00:00
parent 7530ca00f3
commit 2702cfeeed
4 changed files with 153 additions and 5 deletions

View File

@@ -1145,7 +1145,20 @@ namespace DataLoader
}
private void fixROValuesToolStripMenuItem_Click(object sender, EventArgs e)
{
Database.VEPROMS_Connection = MySettings.ConnectionString.Replace("{DBName}", MySettings.DBName);
ROFixer myRoFixer = new ROFixer(MySettings.LogFilePath);
myRoFixer.StatusChanged += new ROFixerEvent(myRoFixer_StatusChanged);
TimeSpan howlong = myRoFixer.Process();
string RoFixTime = string.Format("Fix RO Values completion time: {0:D2}:{1:D2}:{2:D2}.{3}", howlong.Hours, howlong.Minutes, howlong.Seconds, howlong.Milliseconds);
MyInfo = RoFixTime;
}
void myRoFixer_StatusChanged(object sender, ROFixerEventArgs args)
{
Status = args.MyStatus;
}
}
public class MessageBuilder
{