Update related lists when related value changes.
This commit is contained in:
@@ -259,12 +259,30 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
private void RefreshFields(DocVersion tmp)
|
||||
{
|
||||
_FolderID = tmp.FolderID;
|
||||
if (_FolderID != tmp.FolderID)
|
||||
{
|
||||
MyFolder.RefreshFolderDocVersions(); // Update List for old value
|
||||
_FolderID = tmp.FolderID; // Update the value
|
||||
_MyFolder = null; // Reset list so that the next line gets a new list
|
||||
MyFolder.RefreshFolderDocVersions(); // Update List for new value
|
||||
}
|
||||
_VersionType = tmp.VersionType;
|
||||
_Name = tmp.Name;
|
||||
_Title = tmp.Title;
|
||||
_ItemID = tmp.ItemID;
|
||||
_FormatID = tmp.FormatID;
|
||||
if (_ItemID != tmp.ItemID)
|
||||
{
|
||||
MyItem.RefreshItemDocVersions(); // Update List for old value
|
||||
_ItemID = tmp.ItemID; // Update the value
|
||||
_MyItem = null; // Reset list so that the next line gets a new list
|
||||
MyItem.RefreshItemDocVersions(); // Update List for new value
|
||||
}
|
||||
if (_FormatID != tmp.FormatID)
|
||||
{
|
||||
MyFormat.RefreshFormatDocVersions(); // Update List for old value
|
||||
_FormatID = tmp.FormatID; // Update the value
|
||||
_MyFormat = null; // Reset list so that the next line gets a new list
|
||||
MyFormat.RefreshFormatDocVersions(); // Update List for new value
|
||||
}
|
||||
_Config = tmp.Config;
|
||||
_DTS = tmp.DTS;
|
||||
_UserID = tmp.UserID;
|
||||
@@ -285,8 +303,20 @@ namespace VEPROMS.CSLA.Library
|
||||
_VersionType = tmp.VersionType;
|
||||
_Name = tmp.Name;
|
||||
_Title = tmp.Title;
|
||||
_ItemID = tmp.ItemID;
|
||||
_FormatID = tmp.FormatID;
|
||||
if (_ItemID != tmp.ItemID)
|
||||
{
|
||||
MyItem.RefreshItemDocVersions(); // Update List for old value
|
||||
_ItemID = tmp.ItemID; // Update the value
|
||||
_MyItem = null; // Reset list so that the next line gets a new list
|
||||
MyItem.RefreshItemDocVersions(); // Update List for new value
|
||||
}
|
||||
if (_FormatID != tmp.FormatID)
|
||||
{
|
||||
MyFormat.RefreshFormatDocVersions(); // Update List for old value
|
||||
_FormatID = tmp.FormatID; // Update the value
|
||||
_MyFormat = null; // Reset list so that the next line gets a new list
|
||||
MyFormat.RefreshFormatDocVersions(); // Update List for new value
|
||||
}
|
||||
_Config = tmp.Config;
|
||||
_DTS = tmp.DTS;
|
||||
_UserID = tmp.UserID;
|
||||
@@ -304,11 +334,23 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
private void RefreshFields(FormatDocVersion tmp)
|
||||
{
|
||||
_FolderID = tmp.FolderID;
|
||||
if (_FolderID != tmp.FolderID)
|
||||
{
|
||||
MyFolder.RefreshFolderDocVersions(); // Update List for old value
|
||||
_FolderID = tmp.FolderID; // Update the value
|
||||
_MyFolder = null; // Reset list so that the next line gets a new list
|
||||
MyFolder.RefreshFolderDocVersions(); // Update List for new value
|
||||
}
|
||||
_VersionType = tmp.VersionType;
|
||||
_Name = tmp.Name;
|
||||
_Title = tmp.Title;
|
||||
_ItemID = tmp.ItemID;
|
||||
if (_ItemID != tmp.ItemID)
|
||||
{
|
||||
MyItem.RefreshItemDocVersions(); // Update List for old value
|
||||
_ItemID = tmp.ItemID; // Update the value
|
||||
_MyItem = null; // Reset list so that the next line gets a new list
|
||||
MyItem.RefreshItemDocVersions(); // Update List for new value
|
||||
}
|
||||
_Config = tmp.Config;
|
||||
_DTS = tmp.DTS;
|
||||
_UserID = tmp.UserID;
|
||||
@@ -326,11 +368,23 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
private void RefreshFields(ItemDocVersion tmp)
|
||||
{
|
||||
_FolderID = tmp.FolderID;
|
||||
if (_FolderID != tmp.FolderID)
|
||||
{
|
||||
MyFolder.RefreshFolderDocVersions(); // Update List for old value
|
||||
_FolderID = tmp.FolderID; // Update the value
|
||||
_MyFolder = null; // Reset list so that the next line gets a new list
|
||||
MyFolder.RefreshFolderDocVersions(); // Update List for new value
|
||||
}
|
||||
_VersionType = tmp.VersionType;
|
||||
_Name = tmp.Name;
|
||||
_Title = tmp.Title;
|
||||
_FormatID = tmp.FormatID;
|
||||
if (_FormatID != tmp.FormatID)
|
||||
{
|
||||
MyFormat.RefreshFormatDocVersions(); // Update List for old value
|
||||
_FormatID = tmp.FormatID; // Update the value
|
||||
_MyFormat = null; // Reset list so that the next line gets a new list
|
||||
MyFormat.RefreshFormatDocVersions(); // Update List for new value
|
||||
}
|
||||
_Config = tmp.Config;
|
||||
_DTS = tmp.DTS;
|
||||
_UserID = tmp.UserID;
|
||||
|
Reference in New Issue
Block a user