Added code to handle Table ROs.
Used generic (static) VlnFlexGrid.ROTableUpdate to determine if the table contents are updated. Added Error Handling around the code that shuts down PROMs Added function to ROFSTLookup to retrieve the Accessory Page ID. Corrected code to handle value changes for Table ROs Created generic (static) VlnFlexGrid.ROTableUpdate to determine if the table contents are updated.
This commit is contained in:
@@ -1759,45 +1759,46 @@ namespace Volian.Controls.Library
|
||||
|
||||
public List<string> roFstInfo_ROTableUpdate(object sender, ROFstInfoROTableUpdateEventArgs args)
|
||||
{
|
||||
string xml = null;
|
||||
string srchtxt = null;
|
||||
Content content = (Content)sender;
|
||||
using (VlnFlexGrid myGrid = new VlnFlexGrid(content.ContentItems[0]))
|
||||
{
|
||||
using (StringReader sr = new StringReader(args.OldGridXml))
|
||||
{
|
||||
myGrid.ReadXml(sr);
|
||||
sr.Close();
|
||||
}
|
||||
string roid = content.ContentRoUsages[0].ROID; //myGrid.ROID;
|
||||
int rodbid = content.ContentRoUsages[0].RODbID; //myGrid.RODbId;
|
||||
////Font GridFont = myGrid.Font;
|
||||
//myGrid.MergedRanges.Clear();
|
||||
//myGrid.Clear();
|
||||
//myGrid.ParseTableFromText(args.ROText);
|
||||
//myGrid.AutoSizeCols();
|
||||
//myGrid.AutoSizeRows();
|
||||
//myGrid.MakeRTFcells();
|
||||
//myGrid.RODbId = rodbid;
|
||||
//myGrid.ROID = roid;
|
||||
//myGrid.IsRoTable = true;
|
||||
myGrid.Visible = false;
|
||||
myGrid.ConvertTableROToGrid(args.ROText, rodbid, roid);
|
||||
myGrid.FixTableCellsHeightWidth();
|
||||
myGrid.AdjustGridControlSize();
|
||||
myGrid.Visible = 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;
|
||||
return VlnFlexGrid.ROTableUpdate(sender, args);
|
||||
//string xml = null;
|
||||
//string srchtxt = null;
|
||||
//Content content = (Content)sender;
|
||||
//using (VlnFlexGrid myGrid = new VlnFlexGrid(content.ContentItems[0]))
|
||||
//{
|
||||
// using (StringReader sr = new StringReader(args.OldGridXml))
|
||||
// {
|
||||
// myGrid.ReadXml(sr);
|
||||
// sr.Close();
|
||||
// }
|
||||
// string roid = content.ContentRoUsages[0].ROID; //myGrid.ROID;
|
||||
// int rodbid = content.ContentRoUsages[0].RODbID; //myGrid.RODbId;
|
||||
// ////Font GridFont = myGrid.Font;
|
||||
// //myGrid.MergedRanges.Clear();
|
||||
// //myGrid.Clear();
|
||||
// //myGrid.ParseTableFromText(args.ROText);
|
||||
// //myGrid.AutoSizeCols();
|
||||
// //myGrid.AutoSizeRows();
|
||||
// //myGrid.MakeRTFcells();
|
||||
// //myGrid.RODbId = rodbid;
|
||||
// //myGrid.ROID = roid;
|
||||
// //myGrid.IsRoTable = true;
|
||||
// myGrid.Visible = false;
|
||||
// myGrid.ConvertTableROToGrid(args.ROText, rodbid, roid);
|
||||
// myGrid.FixTableCellsHeightWidth();
|
||||
// myGrid.AdjustGridControlSize();
|
||||
// myGrid.Visible = 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 rtabAdmin_Click(object sender, EventArgs e)
|
||||
|
Reference in New Issue
Block a user