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:
1 parent
c97f0d38e0
commit
3c7c853d00
3 files changed
+47
-6
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user