Corrected processing of RO values in grids when printing individual unit of multiunit site

Added SetData method to GridInfo class to allow updating grid data
Added GetNonCached method to GridInfo class to allowing retrieving noncached grid data
Added code to retrieve noncached grid data during printing of procedure with grids
This commit is contained in:
Rich
2014-01-10 03:14:04 +00:00
parent c97f0d38e0
commit 3c7c853d00
3 changed files with 47 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text;
using Csla;
namespace VEPROMS.CSLA.Library
{
@@ -10,5 +11,29 @@ namespace VEPROMS.CSLA.Library
{
RefreshFields(myGrid);
}
public void SetData(string myData)
{
_Data = myData;
RemoveFromCache(this);
}
public static GridInfo GetNonCached(int contentID)
{
//if (!CanGetObject())
// throw new System.Security.SecurityException("User not authorized to view a Grid");
try
{
GridInfo tmp = DataPortal.Fetch<GridInfo>(new PKCriteria(contentID));
if (tmp.ErrorMessage == "No Record Found")
{
tmp.Dispose(); // Clean-up GridInfo
tmp = null;
}
return tmp;
}
catch (Exception ex)
{
throw new DbCslaException("Error on GridInfo.Get", ex);
}
}
}
}