This commit is contained in:
@@ -9,6 +9,7 @@ using System.IO;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using System.Drawing.Imaging;
|
||||
using VEPROMS.Properties;
|
||||
using Volian.Controls.Library;
|
||||
using DescriptiveEnum;
|
||||
using DevComponents.DotNetBar;
|
||||
using DevComponents.DotNetBar.Controls;
|
||||
@@ -739,11 +740,47 @@ namespace VEPROMS
|
||||
break;
|
||||
}
|
||||
Cursor = Cursors.WaitCursor;
|
||||
SelectedROFst.ROTableUpdate += new ROFstInfoROTableUpdateEvent(roFstInfo_ROTableUpdate);
|
||||
ROFst newrofst = ROFstInfo.UpdateRoFst(rdi, dva, _DocVersionConfig.MyDocVersion, SelectedROFst);
|
||||
SelectedROFst.ROTableUpdate -= new ROFstInfoROTableUpdateEvent(roFstInfo_ROTableUpdate);
|
||||
Cursor = Cursors.Default;
|
||||
}
|
||||
}
|
||||
|
||||
public List<string> roFstInfo_ROTableUpdate(object sender, ROFstInfoROTableUpdateEventArgs args)
|
||||
{
|
||||
string xml = null;
|
||||
string srchtxt = null;
|
||||
using (VlnFlexGrid myGrid = new VlnFlexGrid())
|
||||
{
|
||||
using (StringReader sr = new StringReader(args.OldGridXml))
|
||||
{
|
||||
myGrid.ReadXml(sr);
|
||||
sr.Close();
|
||||
}
|
||||
string roid = myGrid.ROID;
|
||||
int rodbid = myGrid.RODbId;
|
||||
Font GridFont = myGrid.Font;
|
||||
myGrid.Clear();
|
||||
myGrid.ParseTableFromText(args.ROText);
|
||||
myGrid.AutoSizeCols();
|
||||
myGrid.AutoSizeRows();
|
||||
myGrid.MakeRTFcells();
|
||||
myGrid.RODbId = rodbid;
|
||||
myGrid.ROID = roid;
|
||||
myGrid.IsRoTable = true;
|
||||
using (StringWriter sw = new StringWriter())
|
||||
{
|
||||
myGrid.WriteXml(sw);
|
||||
xml = sw.GetStringBuilder().ToString();
|
||||
sw.Close();
|
||||
}
|
||||
srchtxt = myGrid.GetSearchableText();
|
||||
}
|
||||
List<string> retlist = new List<string>();
|
||||
retlist.Add(srchtxt);
|
||||
retlist.Add(xml);
|
||||
return retlist;
|
||||
}
|
||||
private void ppBtnResetRoVals_Click(object sender, EventArgs e)
|
||||
{
|
||||
// This will not be supported in the first release. A discussion was held on 1/6/09 with MRC, JSJ, RHM &
|
||||
|
Reference in New Issue
Block a user