Remove Old comments

Remove unnecessary Disposes
This commit is contained in:
Rich
2012-06-01 17:08:16 +00:00
parent af5f3056d9
commit 869663b79c
71 changed files with 105 additions and 1482 deletions

View File

@@ -555,11 +555,7 @@ namespace VEPROMS.CSLA.Library
{
Annotation tmp = Annotation.New(myItem, myAnnotationType, rtfText, searchText, config, dts, userID);
if (tmp.IsSavable)
{
Annotation tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -585,11 +581,7 @@ namespace VEPROMS.CSLA.Library
{
Annotation tmp = Annotation.New(myItem, myAnnotationType, rtfText, searchText, config);
if (tmp.IsSavable)
{
Annotation tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -543,11 +543,7 @@ namespace VEPROMS.CSLA.Library
{
AnnotationAudit tmp = AnnotationAudit.New(annotationID, itemID, typeID, rtfText, searchText, config, dts, userID, deleteStatus);
if (tmp.IsSavable)
{
AnnotationAudit tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -300,22 +300,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_AnnotationInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItem != null)
// {
// _MyItem.Dispose();// Dispose related value
// _MyItem = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyAnnotationType != null)
// {
// _MyAnnotationType.Dispose();// Dispose related value
// _MyAnnotationType = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(AnnotationTypeAnnotation tmp)
@@ -341,22 +325,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_AnnotationInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItem != null)
// {
// _MyItem.Dispose();// Dispose related value
// _MyItem = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyAnnotationType != null)
// {
// _MyAnnotationType.Dispose();// Dispose related value
// _MyAnnotationType = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(ItemAnnotation tmp)
@@ -382,22 +350,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_AnnotationInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItem != null)
// {
// _MyItem.Dispose();// Dispose related value
// _MyItem = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyAnnotationType != null)
// {
// _MyAnnotationType.Dispose();// Dispose related value
// _MyAnnotationType = null;// Reset related value
// }
OnChange();// raise an event
}
public static AnnotationInfo Get(int annotationID)

View File

@@ -519,11 +519,7 @@ namespace VEPROMS.CSLA.Library
{
AnnotationType tmp = AnnotationType.New(name, config, dts, userID);
if (tmp.IsSavable)
{
AnnotationType tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -546,11 +542,7 @@ namespace VEPROMS.CSLA.Library
{
AnnotationType tmp = AnnotationType.New(name, config);
if (tmp.IsSavable)
{
AnnotationType tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -619,11 +619,7 @@ namespace VEPROMS.CSLA.Library
{
Assignment tmp = Assignment.New(myGroup, myRole, myFolder, startDate, endDate, dts, usrID);
if (tmp.IsSavable)
{
Assignment tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -648,11 +644,7 @@ namespace VEPROMS.CSLA.Library
{
Assignment tmp = Assignment.New(myGroup, myRole, myFolder, endDate);
if (tmp.IsSavable)
{
Assignment tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -305,30 +305,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UsrID = tmp.UsrID;
_AssignmentInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyGroup != null)
// {
// _MyGroup.Dispose();// Dispose related value
// _MyGroup = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRole != null)
// {
// _MyRole.Dispose();// Dispose related value
// _MyRole = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFolder != null)
// {
// _MyFolder.Dispose();// Dispose related value
// _MyFolder = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(FolderAssignment tmp)
@@ -360,30 +336,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UsrID = tmp.UsrID;
_AssignmentInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyGroup != null)
// {
// _MyGroup.Dispose();// Dispose related value
// _MyGroup = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRole != null)
// {
// _MyRole.Dispose();// Dispose related value
// _MyRole = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFolder != null)
// {
// _MyFolder.Dispose();// Dispose related value
// _MyFolder = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(GroupAssignment tmp)
@@ -415,30 +367,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UsrID = tmp.UsrID;
_AssignmentInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyGroup != null)
// {
// _MyGroup.Dispose();// Dispose related value
// _MyGroup = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRole != null)
// {
// _MyRole.Dispose();// Dispose related value
// _MyRole = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFolder != null)
// {
// _MyFolder.Dispose();// Dispose related value
// _MyFolder = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(RoleAssignment tmp)
@@ -470,30 +398,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UsrID = tmp.UsrID;
_AssignmentInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyGroup != null)
// {
// _MyGroup.Dispose();// Dispose related value
// _MyGroup = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRole != null)
// {
// _MyRole.Dispose();// Dispose related value
// _MyRole = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFolder != null)
// {
// _MyFolder.Dispose();// Dispose related value
// _MyFolder = null;// Reset related value
// }
OnChange();// raise an event
}
public static AssignmentInfo Get(int aid)

View File

@@ -523,11 +523,7 @@ namespace VEPROMS.CSLA.Library
{
Association tmp = Association.New(myDocVersion, myROFst, config, dts, userID);
if (tmp.IsSavable)
{
Association tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -551,11 +547,7 @@ namespace VEPROMS.CSLA.Library
{
Association tmp = Association.New(myDocVersion, myROFst, config);
if (tmp.IsSavable)
{
Association tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -266,22 +266,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_AssociationInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyDocVersion != null)
// {
// _MyDocVersion.Dispose();// Dispose related value
// _MyDocVersion = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyROFst != null)
// {
// _MyROFst.Dispose();// Dispose related value
// _MyROFst = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(DocVersionAssociation tmp)
@@ -305,22 +289,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_AssociationInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyDocVersion != null)
// {
// _MyDocVersion.Dispose();// Dispose related value
// _MyDocVersion = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyROFst != null)
// {
// _MyROFst.Dispose();// Dispose related value
// _MyROFst = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(ROFstAssociation tmp)
@@ -344,22 +312,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_AssociationInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyDocVersion != null)
// {
// _MyDocVersion.Dispose();// Dispose related value
// _MyDocVersion = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyROFst != null)
// {
// _MyROFst.Dispose();// Dispose related value
// _MyROFst = null;// Reset related value
// }
OnChange();// raise an event
}
public static AssociationInfo Get(int associationID)

View File

@@ -501,11 +501,7 @@ namespace VEPROMS.CSLA.Library
{
Check tmp = Check.New(myRevision, myStage, consistencyChecks, dts, userID);
if (tmp.IsSavable)
{
Check tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -529,11 +525,7 @@ namespace VEPROMS.CSLA.Library
{
Check tmp = Check.New(myRevision, myStage, consistencyChecks);
if (tmp.IsSavable)
{
Check tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -265,22 +265,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_CheckInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRevision != null)
// {
// _MyRevision.Dispose();// Dispose related value
// _MyRevision = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyStage != null)
// {
// _MyStage.Dispose();// Dispose related value
// _MyStage = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(RevisionCheck tmp)
@@ -304,22 +288,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_CheckInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRevision != null)
// {
// _MyRevision.Dispose();// Dispose related value
// _MyRevision = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyStage != null)
// {
// _MyStage.Dispose();// Dispose related value
// _MyStage = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(StageCheck tmp)
@@ -343,22 +311,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_CheckInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRevision != null)
// {
// _MyRevision.Dispose();// Dispose related value
// _MyRevision = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyStage != null)
// {
// _MyStage.Dispose();// Dispose related value
// _MyStage = null;// Reset related value
// }
OnChange();// raise an event
}
public static CheckInfo Get(int checkID)

View File

@@ -591,11 +591,7 @@ namespace VEPROMS.CSLA.Library
{
Connection tmp = Connection.New(name, title, connectionString, serverType, config, dts, usrID);
if (tmp.IsSavable)
{
Connection tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -620,11 +616,7 @@ namespace VEPROMS.CSLA.Library
{
Connection tmp = Connection.New(name, title, connectionString, config);
if (tmp.IsSavable)
{
Connection tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -969,11 +969,7 @@ namespace VEPROMS.CSLA.Library
{
Content tmp = Content.New(number, text, type, myFormat, config, dts, userID);
if (tmp.IsSavable)
{
Content tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -999,11 +995,7 @@ namespace VEPROMS.CSLA.Library
{
Content tmp = Content.New(number, text, type, myFormat, config);
if (tmp.IsSavable)
{
Content tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -541,11 +541,7 @@ namespace VEPROMS.CSLA.Library
{
ContentAudit tmp = ContentAudit.New(contentID, number, text, type, formatID, config, dts, userID, deleteStatus);
if (tmp.IsSavable)
{
ContentAudit tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -627,50 +627,9 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_ContentInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFormat != null)
// {
// _MyFormat.Dispose();// Dispose related value
// _MyFormat = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyEntry != null)
// {
// _MyEntry.Dispose();// Dispose related value
// _MyEntry = null;// Reset related value
// }
_ContentEntryCount = -1;// Reset Count
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyGrid != null)
// {
// _MyGrid.Dispose();// Dispose related value
// _MyGrid = null;// Reset related value
// }
if (_MyGrid != null && tmp.MyGrid != null) _MyGrid.ResetContent(tmp.MyGrid);
_ContentGridCount = -1;// Reset Count
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyImage != null)
// {
// _MyImage.Dispose();// Dispose related value
// _MyImage = null;// Reset related value
// }
_ContentImageCount = -1;// Reset Count
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyZContent != null)
// {
// _MyZContent.Dispose();// Dispose related value
// _MyZContent = null;// Reset related value
// }
_ContentZContentCount = -1;// Reset Count
OnChange(this);// raise an event only for this instance
}
@@ -691,49 +650,9 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_ContentInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFormat != null)
// {
// _MyFormat.Dispose();// Dispose related value
// _MyFormat = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyEntry != null)
// {
// _MyEntry.Dispose();// Dispose related value
// _MyEntry = null;// Reset related value
// }
_ContentEntryCount = -1;// Reset Count
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyGrid != null)
// {
// _MyGrid.Dispose();// Dispose related value
// _MyGrid = null;// Reset related value
// }
_ContentGridCount = -1;// Reset Count
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyImage != null)
// {
// _MyImage.Dispose();// Dispose related value
// _MyImage = null;// Reset related value
// }
_ContentImageCount = -1;// Reset Count
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyZContent != null)
// {
// _MyZContent.Dispose();// Dispose related value
// _MyZContent = null;// Reset related value
// }
_ContentZContentCount = -1;// Reset Count
OnChange(this);// raise an event only for this instance
}

View File

@@ -530,11 +530,7 @@ namespace VEPROMS.CSLA.Library
{
DROUsage tmp = DROUsage.New(myDocument, roid, config, dts, userID, myRODb);
if (tmp.IsSavable)
{
DROUsage tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -559,11 +555,7 @@ namespace VEPROMS.CSLA.Library
{
DROUsage tmp = DROUsage.New(myDocument, roid, config, myRODb);
if (tmp.IsSavable)
{
DROUsage tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -276,22 +276,6 @@ namespace VEPROMS.CSLA.Library
_MyRODb = null; // Reset list so that the next line gets a new list
if (MyRODb != null) MyRODb.RefreshRODbDROUsages(); // Update List for new value
_DROUsageInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyDocument != null)
// {
// _MyDocument.Dispose();// Dispose related value
// _MyDocument = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRODb != null)
// {
// _MyRODb.Dispose();// Dispose related value
// _MyRODb = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(DocumentDROUsage tmp)
@@ -316,22 +300,6 @@ namespace VEPROMS.CSLA.Library
_MyRODb = null; // Reset list so that the next line gets a new list
if (MyRODb != null) MyRODb.RefreshRODbDROUsages(); // Update List for new value
_DROUsageInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyDocument != null)
// {
// _MyDocument.Dispose();// Dispose related value
// _MyDocument = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRODb != null)
// {
// _MyRODb.Dispose();// Dispose related value
// _MyRODb = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(RODbDROUsage tmp)
@@ -356,22 +324,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_DROUsageInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyDocument != null)
// {
// _MyDocument.Dispose();// Dispose related value
// _MyDocument = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRODb != null)
// {
// _MyRODb.Dispose();// Dispose related value
// _MyRODb = null;// Reset related value
// }
OnChange();// raise an event
}
public static DROUsageInfo Get(int dROUsageID)

View File

@@ -506,11 +506,7 @@ namespace VEPROMS.CSLA.Library
{
Detail tmp = Detail.New(myContent, itemType, text, config, dts, userID);
if (tmp.IsSavable)
{
Detail tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -535,11 +531,7 @@ namespace VEPROMS.CSLA.Library
{
Detail tmp = Detail.New(myContent, itemType, text, config);
if (tmp.IsSavable)
{
Detail tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -258,14 +258,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_DetailInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(ContentDetail tmp)
@@ -284,14 +276,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_DetailInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
OnChange();// raise an event
}
public static DetailInfo Get(int detailID)

View File

@@ -675,11 +675,7 @@ namespace VEPROMS.CSLA.Library
{
DocVersion tmp = DocVersion.New(myFolder, versionType, name, title, myItem, myFormat, config, dts, userID);
if (tmp.IsSavable)
{
DocVersion tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -706,11 +702,7 @@ namespace VEPROMS.CSLA.Library
{
DocVersion tmp = DocVersion.New(myFolder, name, title, myItem, myFormat, config);
if (tmp.IsSavable)
{
DocVersion tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -368,30 +368,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_DocVersionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFolder != null)
// {
// _MyFolder.Dispose();// Dispose related value
// _MyFolder = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItem != null)
// {
// _MyItem.Dispose();// Dispose related value
// _MyItem = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFormat != null)
// {
// _MyFormat.Dispose();// Dispose related value
// _MyFormat = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(FolderDocVersion tmp)
@@ -425,30 +401,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_DocVersionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFolder != null)
// {
// _MyFolder.Dispose();// Dispose related value
// _MyFolder = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItem != null)
// {
// _MyItem.Dispose();// Dispose related value
// _MyItem = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFormat != null)
// {
// _MyFormat.Dispose();// Dispose related value
// _MyFormat = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(FormatDocVersion tmp)
@@ -482,30 +434,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_DocVersionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFolder != null)
// {
// _MyFolder.Dispose();// Dispose related value
// _MyFolder = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItem != null)
// {
// _MyItem.Dispose();// Dispose related value
// _MyItem = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFormat != null)
// {
// _MyFormat.Dispose();// Dispose related value
// _MyFormat = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(ItemDocVersion tmp)
@@ -539,30 +467,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_DocVersionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFolder != null)
// {
// _MyFolder.Dispose();// Dispose related value
// _MyFolder = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItem != null)
// {
// _MyItem.Dispose();// Dispose related value
// _MyItem = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFormat != null)
// {
// _MyFormat.Dispose();// Dispose related value
// _MyFormat = null;// Reset related value
// }
OnChange();// raise an event
}
public static DocVersionInfo Get(int versionID)

View File

@@ -678,11 +678,7 @@ namespace VEPROMS.CSLA.Library
{
Document tmp = Document.New(libTitle, docContent, docAscii, config, dts, userID, fileExtension);
if (tmp.IsSavable)
{
Document tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -707,11 +703,7 @@ namespace VEPROMS.CSLA.Library
{
Document tmp = Document.New(libTitle, docContent, docAscii, config);
if (tmp.IsSavable)
{
Document tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -571,11 +571,7 @@ namespace VEPROMS.CSLA.Library
{
DocumentAudit tmp = DocumentAudit.New(docID, libTitle, docContent, docAscii, config, dts, userID, fileExtension, docPdf, deleteStatus);
if (tmp.IsSavable)
{
DocumentAudit tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -426,11 +426,7 @@ namespace VEPROMS.CSLA.Library
{
Entry tmp = Entry.New(myContent, myDocument);
if (tmp.IsSavable)
{
Entry tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -455,11 +451,7 @@ namespace VEPROMS.CSLA.Library
{
Entry tmp = Entry.New(myContent, myDocument, dts, userID);
if (tmp.IsSavable)
{
Entry tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -428,11 +428,7 @@ namespace VEPROMS.CSLA.Library
{
EntryAudit tmp = EntryAudit.New(contentID, docID, dts, userID, deleteStatus);
if (tmp.IsSavable)
{
EntryAudit tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -238,22 +238,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_EntryInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyDocument != null)
// {
// _MyDocument.Dispose();// Dispose related value
// _MyDocument = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(DocumentEntry tmp)
@@ -269,22 +253,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_EntryInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyDocument != null)
// {
// _MyDocument.Dispose();// Dispose related value
// _MyDocument = null;// Reset related value
// }
OnChange();// raise an event
}
public static EntryInfo Get(int contentID)

View File

@@ -523,11 +523,7 @@ namespace VEPROMS.CSLA.Library
{
Figure tmp = Figure.New(myROFst, myROImage, config, dts, userID);
if (tmp.IsSavable)
{
Figure tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -551,11 +547,7 @@ namespace VEPROMS.CSLA.Library
{
Figure tmp = Figure.New(myROFst, myROImage, config);
if (tmp.IsSavable)
{
Figure tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -265,22 +265,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_FigureInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyROFst != null)
// {
// _MyROFst.Dispose();// Dispose related value
// _MyROFst = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyROImage != null)
// {
// _MyROImage.Dispose();// Dispose related value
// _MyROImage = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(ROFstFigure tmp)
@@ -304,22 +288,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_FigureInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyROFst != null)
// {
// _MyROFst.Dispose();// Dispose related value
// _MyROFst = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyROImage != null)
// {
// _MyROImage.Dispose();// Dispose related value
// _MyROImage = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(ROImageFigure tmp)
@@ -343,22 +311,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_FigureInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyROFst != null)
// {
// _MyROFst.Dispose();// Dispose related value
// _MyROFst = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyROImage != null)
// {
// _MyROImage.Dispose();// Dispose related value
// _MyROImage = null;// Reset related value
// }
OnChange();// raise an event
}
public static FigureInfo Get(int figureID)

View File

@@ -820,11 +820,7 @@ namespace VEPROMS.CSLA.Library
{
Folder tmp = Folder.New(myParent, myConnection, name, title, shortName, myFormat, manualOrder, config, dts, usrID);
if (tmp.IsSavable)
{
Folder tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -853,11 +849,7 @@ namespace VEPROMS.CSLA.Library
{
Folder tmp = Folder.New(myParent, myConnection, name, title, shortName, myFormat, manualOrder, config);
if (tmp.IsSavable)
{
Folder tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -452,30 +452,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UsrID = tmp.UsrID;
_FolderInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyParent != null)
// {
// _MyParent.Dispose();// Dispose related value
// _MyParent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyConnection != null)
// {
// _MyConnection.Dispose();// Dispose related value
// _MyConnection = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFormat != null)
// {
// _MyFormat.Dispose();// Dispose related value
// _MyFormat = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(ConnectionFolder tmp)
@@ -510,30 +486,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UsrID = tmp.UsrID;
_FolderInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyParent != null)
// {
// _MyParent.Dispose();// Dispose related value
// _MyParent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyConnection != null)
// {
// _MyConnection.Dispose();// Dispose related value
// _MyConnection = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFormat != null)
// {
// _MyFormat.Dispose();// Dispose related value
// _MyFormat = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(FormatFolder tmp)
@@ -568,30 +520,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UsrID = tmp.UsrID;
_FolderInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyParent != null)
// {
// _MyParent.Dispose();// Dispose related value
// _MyParent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyConnection != null)
// {
// _MyConnection.Dispose();// Dispose related value
// _MyConnection = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyFormat != null)
// {
// _MyFormat.Dispose();// Dispose related value
// _MyFormat = null;// Reset related value
// }
OnChange();// raise an event
}
public static FolderInfo Get(int folderID)

View File

@@ -763,11 +763,7 @@ namespace VEPROMS.CSLA.Library
{
Format tmp = Format.New(myParent, name, description, data, genMac, dts, userID);
if (tmp.IsSavable)
{
Format tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -793,11 +789,7 @@ namespace VEPROMS.CSLA.Library
{
Format tmp = Format.New(myParent, name, description, data, genMac);
if (tmp.IsSavable)
{
Format tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -421,14 +421,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_FormatInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyParent != null)
// {
// _MyParent.Dispose();// Dispose related value
// _MyParent = null;// Reset related value
// }
OnChange();// raise an event
}
public static FormatInfo Get(int formatID)

View File

@@ -432,11 +432,7 @@ namespace VEPROMS.CSLA.Library
{
Grid tmp = Grid.New(myContent, data, config, dts, userID);
if (tmp.IsSavable)
{
Grid tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -460,11 +456,7 @@ namespace VEPROMS.CSLA.Library
{
Grid tmp = Grid.New(myContent, data, config);
if (tmp.IsSavable)
{
Grid tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -494,11 +494,7 @@ namespace VEPROMS.CSLA.Library
{
GridAudit tmp = GridAudit.New(contentID, data, config, dts, userID, deleteStatus, contentAuditID);
if (tmp.IsSavable)
{
GridAudit tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -525,11 +521,7 @@ namespace VEPROMS.CSLA.Library
{
GridAudit tmp = GridAudit.New(contentID, data, config, dts, userID, deleteStatus);
if (tmp.IsSavable)
{
GridAudit tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -227,14 +227,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_GridInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
OnChange();// raise an event
}
public static GridInfo Get(int contentID)

View File

@@ -594,11 +594,7 @@ namespace VEPROMS.CSLA.Library
{
Group tmp = Group.New(groupName, groupType, config, dts, usrID);
if (tmp.IsSavable)
{
Group tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -622,11 +618,7 @@ namespace VEPROMS.CSLA.Library
{
Group tmp = Group.New(groupName, groupType, config);
if (tmp.IsSavable)
{
Group tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -482,11 +482,7 @@ namespace VEPROMS.CSLA.Library
{
Image tmp = Image.New(myContent, imageType, fileName, data, config, dts, userID);
if (tmp.IsSavable)
{
Image tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -511,11 +507,7 @@ namespace VEPROMS.CSLA.Library
{
Image tmp = Image.New(myContent, fileName, data, config);
if (tmp.IsSavable)
{
Image tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -519,11 +519,7 @@ namespace VEPROMS.CSLA.Library
{
ImageAudit tmp = ImageAudit.New(contentID, imageType, fileName, data, config, dts, userID, deleteStatus);
if (tmp.IsSavable)
{
ImageAudit tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -798,11 +798,7 @@ namespace VEPROMS.CSLA.Library
{
Item tmp = Item.New(myPrevious, myContent, dts, userID);
if (tmp.IsSavable)
{
Item tmp2 = tmp;
tmp = tmp2.Save();
//tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -825,11 +821,7 @@ namespace VEPROMS.CSLA.Library
{
Item tmp = Item.New(myPrevious, myContent);
if (tmp.IsSavable)
{
Item tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -461,11 +461,7 @@ namespace VEPROMS.CSLA.Library
{
ItemAudit tmp = ItemAudit.New(itemID, previousID, contentID, dts, userID, deleteStatus);
if (tmp.IsSavable)
{
ItemAudit tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -496,22 +496,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_ItemInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyPrevious != null)
// {
// _MyPrevious.Dispose();// Dispose related value
// _MyPrevious = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(ContentItem tmp)
@@ -534,22 +518,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_ItemInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyPrevious != null)
// {
// _MyPrevious.Dispose();// Dispose related value
// _MyPrevious = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
OnChange();// raise an event
}
public static ItemInfo Get(int itemID)

View File

@@ -597,11 +597,7 @@ namespace VEPROMS.CSLA.Library
{
Membership tmp = Membership.New(myUser, myGroup, startDate, endDate, config, dts, usrID);
if (tmp.IsSavable)
{
Membership tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -626,11 +622,7 @@ namespace VEPROMS.CSLA.Library
{
Membership tmp = Membership.New(myUser, myGroup, endDate, config);
if (tmp.IsSavable)
{
Membership tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -287,22 +287,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UsrID = tmp.UsrID;
_MembershipInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyUser != null)
// {
// _MyUser.Dispose();// Dispose related value
// _MyUser = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyGroup != null)
// {
// _MyGroup.Dispose();// Dispose related value
// _MyGroup = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(GroupMembership tmp)
@@ -328,22 +312,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UsrID = tmp.UsrID;
_MembershipInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyUser != null)
// {
// _MyUser.Dispose();// Dispose related value
// _MyUser = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyGroup != null)
// {
// _MyGroup.Dispose();// Dispose related value
// _MyGroup = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(UserMembership tmp)
@@ -369,22 +337,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UsrID = tmp.UsrID;
_MembershipInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyUser != null)
// {
// _MyUser.Dispose();// Dispose related value
// _MyUser = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyGroup != null)
// {
// _MyGroup.Dispose();// Dispose related value
// _MyGroup = null;// Reset related value
// }
OnChange();// raise an event
}
public static MembershipInfo Get(int ugid)

View File

@@ -440,11 +440,7 @@ namespace VEPROMS.CSLA.Library
{
Part tmp = Part.New(myContent, fromType, myItem);
if (tmp.IsSavable)
{
Part tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -470,11 +466,7 @@ namespace VEPROMS.CSLA.Library
{
Part tmp = Part.New(myContent, fromType, myItem, dts, userID);
if (tmp.IsSavable)
{
Part tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -451,11 +451,7 @@ namespace VEPROMS.CSLA.Library
{
PartAudit tmp = PartAudit.New(contentID, fromType, itemID, dts, userID, deleteStatus);
if (tmp.IsSavable)
{
PartAudit tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -249,22 +249,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_PartInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItem != null)
// {
// _MyItem.Dispose();// Dispose related value
// _MyItem = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(Content myContent, ContentPart tmp)
@@ -287,22 +271,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_PartInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItem != null)
// {
// _MyItem.Dispose();// Dispose related value
// _MyItem = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(ItemPart tmp)
@@ -318,22 +286,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_PartInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItem != null)
// {
// _MyItem.Dispose();// Dispose related value
// _MyItem = null;// Reset related value
// }
OnChange();// raise an event
}
public static PartInfo Get(int contentID, int fromType)

View File

@@ -510,11 +510,7 @@ namespace VEPROMS.CSLA.Library
{
Pdf tmp = Pdf.New(myDocument, debugStatus, topRow, pageLength, leftMargin, pageWidth, pageCount, docPdf, dts, userID);
if (tmp.IsSavable)
{
Pdf tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -543,11 +539,7 @@ namespace VEPROMS.CSLA.Library
{
Pdf tmp = Pdf.New(myDocument, debugStatus, topRow, pageLength, leftMargin, pageWidth, pageCount, docPdf);
if (tmp.IsSavable)
{
Pdf tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -292,14 +292,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_PdfInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyDocument != null)
// {
// _MyDocument.Dispose();// Dispose related value
// _MyDocument = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(Document myDocument, DocumentPdf tmp)
@@ -317,14 +309,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_PdfInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyDocument != null)
// {
// _MyDocument.Dispose();// Dispose related value
// _MyDocument = null;// Reset related value
// }
OnChange();// raise an event
}
public static PdfInfo Get(int docID, int debugStatus, int topRow, int pageLength, int leftMargin, int pageWidth)

View File

@@ -655,11 +655,7 @@ namespace VEPROMS.CSLA.Library
{
Permission tmp = Permission.New(myRole, permLevel, versionType, permValue, permAD, startDate, endDate, config, dts, usrID);
if (tmp.IsSavable)
{
Permission tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -686,11 +682,7 @@ namespace VEPROMS.CSLA.Library
{
Permission tmp = Permission.New(myRole, permLevel, versionType, permValue, endDate, config);
if (tmp.IsSavable)
{
Permission tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -314,14 +314,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UsrID = tmp.UsrID;
_PermissionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRole != null)
// {
// _MyRole.Dispose();// Dispose related value
// _MyRole = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(RolePermission tmp)
@@ -344,14 +336,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UsrID = tmp.UsrID;
_PermissionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRole != null)
// {
// _MyRole.Dispose();// Dispose related value
// _MyRole = null;// Reset related value
// }
OnChange();// raise an event
}
public static PermissionInfo Get(int pid)

View File

@@ -744,11 +744,7 @@ namespace VEPROMS.CSLA.Library
{
RODb tmp = RODb.New(rOName, folderPath, dBConnectionString, config, dts, userID);
if (tmp.IsSavable)
{
RODb tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -773,11 +769,7 @@ namespace VEPROMS.CSLA.Library
{
RODb tmp = RODb.New(rOName, folderPath, dBConnectionString, config);
if (tmp.IsSavable)
{
RODb tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -614,11 +614,7 @@ namespace VEPROMS.CSLA.Library
{
ROFst tmp = ROFst.New(myRODb, rOLookup, config, dts, userID);
if (tmp.IsSavable)
{
ROFst tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -642,11 +638,7 @@ namespace VEPROMS.CSLA.Library
{
ROFst tmp = ROFst.New(myRODb, rOLookup, config);
if (tmp.IsSavable)
{
ROFst tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -323,14 +323,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_ROFstInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRODb != null)
// {
// _MyRODb.Dispose();// Dispose related value
// _MyRODb = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(RODbROFst tmp)
@@ -348,14 +340,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_ROFstInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRODb != null)
// {
// _MyRODb.Dispose();// Dispose related value
// _MyRODb = null;// Reset related value
// }
OnChange();// raise an event
}
public static ROFstInfo Get(int rOFstID)

View File

@@ -592,11 +592,7 @@ namespace VEPROMS.CSLA.Library
{
ROImage tmp = ROImage.New(myRODb, fileName, content, config, dts, userID);
if (tmp.IsSavable)
{
ROImage tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -621,11 +617,7 @@ namespace VEPROMS.CSLA.Library
{
ROImage tmp = ROImage.New(myRODb, fileName, content, config);
if (tmp.IsSavable)
{
ROImage tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -296,14 +296,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_ROImageInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRODb != null)
// {
// _MyRODb.Dispose();// Dispose related value
// _MyRODb = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(RODbROImage tmp)
@@ -322,14 +314,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_ROImageInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRODb != null)
// {
// _MyRODb.Dispose();// Dispose related value
// _MyRODb = null;// Reset related value
// }
OnChange();// raise an event
}
public static ROImageInfo Get(int imageID)

View File

@@ -643,11 +643,7 @@ namespace VEPROMS.CSLA.Library
{
Revision tmp = Revision.New(itemID, typeID, revisionNumber, revisionDate, notes, config, dts, userID);
if (tmp.IsSavable)
{
Revision tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -673,11 +669,7 @@ namespace VEPROMS.CSLA.Library
{
Revision tmp = Revision.New(itemID, revisionNumber, revisionDate, notes, config);
if (tmp.IsSavable)
{
Revision tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -530,11 +530,7 @@ namespace VEPROMS.CSLA.Library
{
RoUsage tmp = RoUsage.New(myContent, roid, config, dts, userID, myRODb);
if (tmp.IsSavable)
{
RoUsage tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -559,11 +555,7 @@ namespace VEPROMS.CSLA.Library
{
RoUsage tmp = RoUsage.New(myContent, roid, config, myRODb);
if (tmp.IsSavable)
{
RoUsage tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -276,22 +276,6 @@ namespace VEPROMS.CSLA.Library
_MyRODb = null; // Reset list so that the next line gets a new list
if (MyRODb != null) MyRODb.RefreshRODbRoUsages(); // Update List for new value
_RoUsageInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRODb != null)
// {
// _MyRODb.Dispose();// Dispose related value
// _MyRODb = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(ContentRoUsage tmp)
@@ -316,22 +300,6 @@ namespace VEPROMS.CSLA.Library
_MyRODb = null; // Reset list so that the next line gets a new list
if (MyRODb != null) MyRODb.RefreshRODbRoUsages(); // Update List for new value
_RoUsageInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRODb != null)
// {
// _MyRODb.Dispose();// Dispose related value
// _MyRODb = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(RODbRoUsage tmp)
@@ -356,22 +324,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_RoUsageInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRODb != null)
// {
// _MyRODb.Dispose();// Dispose related value
// _MyRODb = null;// Reset related value
// }
OnChange();// raise an event
}
public static RoUsageInfo Get(int rOUsageID)

View File

@@ -565,11 +565,7 @@ namespace VEPROMS.CSLA.Library
{
Role tmp = Role.New(name, title);
if (tmp.IsSavable)
{
Role tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -594,11 +590,7 @@ namespace VEPROMS.CSLA.Library
{
Role tmp = Role.New(name, title, dts, usrID);
if (tmp.IsSavable)
{
Role tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -572,11 +572,7 @@ namespace VEPROMS.CSLA.Library
{
Stage tmp = Stage.New(name, description, isApproved, dts, userID);
if (tmp.IsSavable)
{
Stage tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -599,11 +595,7 @@ namespace VEPROMS.CSLA.Library
{
Stage tmp = Stage.New(name, description);
if (tmp.IsSavable)
{
Stage tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -657,11 +657,7 @@ namespace VEPROMS.CSLA.Library
{
Transition tmp = Transition.New(myContent, myItemToID, myItemRangeID, isRange, tranType, config, dts, userID);
if (tmp.IsSavable)
{
Transition tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -686,11 +682,7 @@ namespace VEPROMS.CSLA.Library
{
Transition tmp = Transition.New(myContent, myItemToID, myItemRangeID, config);
if (tmp.IsSavable)
{
Transition tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -351,38 +351,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_TransitionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItemToID != null)
// {
// _MyItemToID.Dispose();// Dispose related value
// _MyItemToID = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItemRangeID != null)
// {
// _MyItemRangeID.Dispose();// Dispose related value
// _MyItemRangeID = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyZTransition != null)
// {
// _MyZTransition.Dispose();// Dispose related value
// _MyZTransition = null;// Reset related value
// }
_TransitionZTransitionCount = -1;// Reset Count
OnChange();// raise an event
}
@@ -416,38 +384,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_TransitionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItemToID != null)
// {
// _MyItemToID.Dispose();// Dispose related value
// _MyItemToID = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItemRangeID != null)
// {
// _MyItemRangeID.Dispose();// Dispose related value
// _MyItemRangeID = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyZTransition != null)
// {
// _MyZTransition.Dispose();// Dispose related value
// _MyZTransition = null;// Reset related value
// }
_TransitionZTransitionCount = -1;// Reset Count
OnChange();// raise an event
}
@@ -481,38 +417,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_TransitionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItemToID != null)
// {
// _MyItemToID.Dispose();// Dispose related value
// _MyItemToID = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItemRangeID != null)
// {
// _MyItemRangeID.Dispose();// Dispose related value
// _MyItemRangeID = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyZTransition != null)
// {
// _MyZTransition.Dispose();// Dispose related value
// _MyZTransition = null;// Reset related value
// }
_TransitionZTransitionCount = -1;// Reset Count
OnChange();// raise an event
}
@@ -546,38 +450,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_TransitionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyContent != null)
// {
// _MyContent.Dispose();// Dispose related value
// _MyContent = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItemToID != null)
// {
// _MyItemToID.Dispose();// Dispose related value
// _MyItemToID = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyItemRangeID != null)
// {
// _MyItemRangeID.Dispose();// Dispose related value
// _MyItemRangeID = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyZTransition != null)
// {
// _MyZTransition.Dispose();// Dispose related value
// _MyZTransition = null;// Reset related value
// }
_TransitionZTransitionCount = -1;// Reset Count
OnChange();// raise an event
}

View File

@@ -734,11 +734,7 @@ namespace VEPROMS.CSLA.Library
{
User tmp = User.New(userID, firstName, middleName, lastName, suffix, courtesyTitle, phoneNumber, cFGName, userLogin, userName, config, dts, usrID);
if (tmp.IsSavable)
{
User tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
@@ -769,11 +765,7 @@ namespace VEPROMS.CSLA.Library
{
User tmp = User.New(firstName, middleName, lastName, suffix, courtesyTitle, phoneNumber, cFGName, userLogin, userName, config);
if (tmp.IsSavable)
{
User tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -522,11 +522,7 @@ namespace VEPROMS.CSLA.Library
{
Version tmp = Version.New(myRevision, myStage, pdf, summaryPDF, dts, userID);
if (tmp.IsSavable)
{
Version tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -276,22 +276,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_VersionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRevision != null)
// {
// _MyRevision.Dispose();// Dispose related value
// _MyRevision = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyStage != null)
// {
// _MyStage.Dispose();// Dispose related value
// _MyStage = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(RevisionVersion tmp)
@@ -316,22 +300,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_VersionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRevision != null)
// {
// _MyRevision.Dispose();// Dispose related value
// _MyRevision = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyStage != null)
// {
// _MyStage.Dispose();// Dispose related value
// _MyStage = null;// Reset related value
// }
OnChange();// raise an event
}
public static void Refresh(StageVersion tmp)
@@ -356,22 +324,6 @@ namespace VEPROMS.CSLA.Library
_DTS = tmp.DTS;
_UserID = tmp.UserID;
_VersionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyRevision != null)
// {
// _MyRevision.Dispose();// Dispose related value
// _MyRevision = null;// Reset related value
// }
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyStage != null)
// {
// _MyStage.Dispose();// Dispose related value
// _MyStage = null;// Reset related value
// }
OnChange();// raise an event
}
public static VersionInfo Get(int versionID)

View File

@@ -346,11 +346,7 @@ namespace VEPROMS.CSLA.Library
{
ZContent tmp = ZContent.New(myContent, oldStepSequence);
if (tmp.IsSavable)
{
ZContent tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -310,8 +310,6 @@ namespace VEPROMS.CSLA.Library
_CountDisposed++;
_Disposed = true;
RemoveFromDictionaries();
if (_MyTransition != null)
_MyTransition = null;
}
private void RemoveFromDictionaries()
{
@@ -348,11 +346,7 @@ namespace VEPROMS.CSLA.Library
{
ZTransition tmp = ZTransition.New(myTransition, oldto);
if (tmp.IsSavable)
{
ZTransition tmp2 = tmp;
tmp = tmp2.Save();
tmp2.Dispose();
}
tmp = tmp.Save();
else
{
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();

View File

@@ -194,14 +194,6 @@ namespace VEPROMS.CSLA.Library
{
_Oldto = tmp.Oldto;
_ZTransitionInfoExtension.Refresh(this);
//RHM Removed 20090724 - Duplicates function of code above.
// - Dispose caused error when a new step was added.
// - Resequence of transitions did not work properly.
// if(_MyTransition != null)
// {
// _MyTransition.Dispose();// Dispose related value
// _MyTransition = null;// Reset related value
// }
OnChange();// raise an event
}
public static ZTransitionInfo Get(int transitionID)