Remove Old comments
Remove unnecessary Disposes
This commit is contained in:
parent
af5f3056d9
commit
869663b79c
@ -355,7 +355,7 @@ namespace VEPROMS
|
|||||||
stg.IsApproved = found.IsApproved;
|
stg.IsApproved = found.IsApproved;
|
||||||
stg.UserID = Volian.Base.Library.VlnSettings.UserID;
|
stg.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||||
stg.DTS = DateTime.Now;
|
stg.DTS = DateTime.Now;
|
||||||
stg.Save().Dispose();
|
stg.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
myLocalStageInfoList.Remove(found);
|
myLocalStageInfoList.Remove(found);
|
||||||
@ -365,7 +365,7 @@ namespace VEPROMS
|
|||||||
using (Stage stg = si.Get())
|
using (Stage stg = si.Get())
|
||||||
{
|
{
|
||||||
stg.Delete();
|
stg.Delete();
|
||||||
stg.Save().Dispose();
|
stg.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -373,7 +373,7 @@ namespace VEPROMS
|
|||||||
foreach (LocalStageInfo lsi in myLocalStageInfoList)
|
foreach (LocalStageInfo lsi in myLocalStageInfoList)
|
||||||
{
|
{
|
||||||
using (Stage stg = Stage.MakeStage(lsi.Name, "", lsi.IsApproved, DateTime.Now, Volian.Base.Library.VlnSettings.UserID))
|
using (Stage stg = Stage.MakeStage(lsi.Name, "", lsi.IsApproved, DateTime.Now, Volian.Base.Library.VlnSettings.UserID))
|
||||||
stg.Save().Dispose();
|
stg.Save();
|
||||||
}
|
}
|
||||||
StageInfoList.Refresh();
|
StageInfoList.Refresh();
|
||||||
}
|
}
|
||||||
@ -396,7 +396,7 @@ namespace VEPROMS
|
|||||||
at.Name = found.Name;
|
at.Name = found.Name;
|
||||||
at.UserID = Volian.Base.Library.VlnSettings.UserID;
|
at.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||||
at.DTS = DateTime.Now;
|
at.DTS = DateTime.Now;
|
||||||
at.Save().Dispose();
|
at.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
myLocalAnnotationTypeInfoList.Remove(found);
|
myLocalAnnotationTypeInfoList.Remove(found);
|
||||||
@ -406,7 +406,7 @@ namespace VEPROMS
|
|||||||
using (AnnotationType at = ai.Get())
|
using (AnnotationType at = ai.Get())
|
||||||
{
|
{
|
||||||
at.Delete();
|
at.Delete();
|
||||||
at.Save().Dispose();
|
at.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -414,7 +414,7 @@ namespace VEPROMS
|
|||||||
foreach (LocalAnnotationTypeInfo lai in myLocalAnnotationTypeInfoList)
|
foreach (LocalAnnotationTypeInfo lai in myLocalAnnotationTypeInfoList)
|
||||||
{
|
{
|
||||||
using (AnnotationType at = AnnotationType.New(lai.Name, "", DateTime.Now, Volian.Base.Library.VlnSettings.UserID))
|
using (AnnotationType at = AnnotationType.New(lai.Name, "", DateTime.Now, Volian.Base.Library.VlnSettings.UserID))
|
||||||
at.Save().Dispose();
|
at.Save();
|
||||||
}
|
}
|
||||||
AnnotationTypeInfoList.Refresh();
|
AnnotationTypeInfoList.Refresh();
|
||||||
}
|
}
|
||||||
|
@ -140,12 +140,14 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
if (isWordSect && !sectinfo.HasWordContent && !sectinfo.IsAutoTOCSection)
|
if (isWordSect && !sectinfo.HasWordContent && !sectinfo.IsAutoTOCSection)
|
||||||
{
|
{
|
||||||
Content cont = Content.Get(sectinfo.MyContent.ContentID);
|
using (Content cont = Content.Get(sectinfo.MyContent.ContentID))
|
||||||
Byte[] tstbyte = System.Text.Encoding.Default.GetBytes("");
|
{
|
||||||
Document doc = Document.MakeDocument(null, tstbyte, null, null); // tstbyte, null, null, null);
|
Byte[] tstbyte = System.Text.Encoding.Default.GetBytes("");
|
||||||
Entry entry = cont.MyEntry;
|
Document doc = Document.MakeDocument(null, tstbyte, null, null); // tstbyte, null, null, null);
|
||||||
entry.MyDocument = Document.Get(doc.DocID);
|
Entry entry = cont.MyEntry;
|
||||||
cont.Save().Dispose();
|
entry.MyDocument = Document.Get(doc.DocID);
|
||||||
|
cont.Save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void btnSectPropCancel_Click(object sender, EventArgs e)
|
private void btnSectPropCancel_Click(object sender, EventArgs e)
|
||||||
|
@ -152,7 +152,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
using (Item newNextItem = newNextInfo.Get())
|
using (Item newNextItem = newNextInfo.Get())
|
||||||
{
|
{
|
||||||
newNextItem.MyPrevious = this;
|
newNextItem.MyPrevious = this;
|
||||||
newNextItem.Save().Dispose();
|
newNextItem.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -182,7 +182,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
parentItem.MyContent.ContentParts[(int)partType].MyItem = this;
|
parentItem.MyContent.ContentParts[(int)partType].MyItem = this;
|
||||||
parentItem.Save().Dispose();
|
parentItem.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (parentInfoDV != null) // Moving Item (Procedure) within DocVersion
|
else if (parentInfoDV != null) // Moving Item (Procedure) within DocVersion
|
||||||
@ -191,13 +191,13 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
ItemInfo firstinfo = parentInfoDV.FirstChild();
|
ItemInfo firstinfo = parentInfoDV.FirstChild();
|
||||||
parentItemDV.MyItem = wasfirstchild?parentInfoDV.Procedures[1].Get():this;
|
parentItemDV.MyItem = wasfirstchild?parentInfoDV.Procedures[1].Get():this;
|
||||||
parentItemDV.Save().Dispose();
|
parentItemDV.Save();
|
||||||
if (!wasfirstchild && firstinfo != null)
|
if (!wasfirstchild && firstinfo != null)
|
||||||
{
|
{
|
||||||
using (Item firstchild = firstinfo.Get())
|
using (Item firstchild = firstinfo.Get())
|
||||||
{
|
{
|
||||||
firstchild.MyPrevious = this;
|
firstchild.MyPrevious = this;
|
||||||
firstchild.Save().Dispose();
|
firstchild.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -237,7 +237,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
using (Item nextItem = nextInfo.Get())
|
using (Item nextItem = nextInfo.Get())
|
||||||
{
|
{
|
||||||
nextItem.MyPrevious = itm;// Aim the next item back at the new item.
|
nextItem.MyPrevious = itm;// Aim the next item back at the new item.
|
||||||
nextItem.Save().Dispose();
|
nextItem.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (fromitem == null)
|
if (fromitem == null)
|
||||||
@ -252,15 +252,15 @@ namespace VEPROMS.CSLA.Library
|
|||||||
using (Item firstchild = firstinfo.Get())
|
using (Item firstchild = firstinfo.Get())
|
||||||
{
|
{
|
||||||
parentItem.MyContent.ContentParts[(int)partType].MyItem = itm;// First update the parent to point to the new first child
|
parentItem.MyContent.ContentParts[(int)partType].MyItem = itm;// First update the parent to point to the new first child
|
||||||
parentItem.Save().Dispose();
|
parentItem.Save();
|
||||||
firstchild.MyPrevious = itm;// Aim the old first child to point to the new first child.
|
firstchild.MyPrevious = itm;// Aim the old first child to point to the new first child.
|
||||||
firstchild.Save().Dispose();
|
firstchild.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
parentItem.MyContent.ContentParts.Add((int)partType, itm);// update the parent to point to the new first child
|
parentItem.MyContent.ContentParts.Add((int)partType, itm);// update the parent to point to the new first child
|
||||||
parentItem.Save().Dispose();
|
parentItem.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -270,13 +270,13 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
ItemInfo firstinfo = parentInfoDV.FirstChild();
|
ItemInfo firstinfo = parentInfoDV.FirstChild();
|
||||||
parentItemDV.MyItem = itm;// First update the parent to point to the new first child
|
parentItemDV.MyItem = itm;// First update the parent to point to the new first child
|
||||||
parentItemDV.Save().Dispose();
|
parentItemDV.Save();
|
||||||
if (firstinfo != null)
|
if (firstinfo != null)
|
||||||
{
|
{
|
||||||
using (Item firstchild = firstinfo.Get())
|
using (Item firstchild = firstinfo.Get())
|
||||||
{
|
{
|
||||||
firstchild.MyPrevious = itm;// Aim the old first child to point to the new first child.
|
firstchild.MyPrevious = itm;// Aim the old first child to point to the new first child.
|
||||||
firstchild.Save().Dispose();
|
firstchild.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -555,11 +555,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Annotation tmp = Annotation.New(myItem, myAnnotationType, rtfText, searchText, config, dts, userID);
|
Annotation tmp = Annotation.New(myItem, myAnnotationType, rtfText, searchText, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Annotation tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -585,11 +581,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Annotation tmp = Annotation.New(myItem, myAnnotationType, rtfText, searchText, config);
|
Annotation tmp = Annotation.New(myItem, myAnnotationType, rtfText, searchText, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Annotation tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -543,11 +543,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
AnnotationAudit tmp = AnnotationAudit.New(annotationID, itemID, typeID, rtfText, searchText, config, dts, userID, deleteStatus);
|
AnnotationAudit tmp = AnnotationAudit.New(annotationID, itemID, typeID, rtfText, searchText, config, dts, userID, deleteStatus);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
AnnotationAudit tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -300,22 +300,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_AnnotationInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(AnnotationTypeAnnotation tmp)
|
public static void Refresh(AnnotationTypeAnnotation tmp)
|
||||||
@ -341,22 +325,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_AnnotationInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(ItemAnnotation tmp)
|
public static void Refresh(ItemAnnotation tmp)
|
||||||
@ -382,22 +350,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_AnnotationInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static AnnotationInfo Get(int annotationID)
|
public static AnnotationInfo Get(int annotationID)
|
||||||
|
@ -519,11 +519,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
AnnotationType tmp = AnnotationType.New(name, config, dts, userID);
|
AnnotationType tmp = AnnotationType.New(name, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
AnnotationType tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -546,11 +542,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
AnnotationType tmp = AnnotationType.New(name, config);
|
AnnotationType tmp = AnnotationType.New(name, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
AnnotationType tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -619,11 +619,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Assignment tmp = Assignment.New(myGroup, myRole, myFolder, startDate, endDate, dts, usrID);
|
Assignment tmp = Assignment.New(myGroup, myRole, myFolder, startDate, endDate, dts, usrID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Assignment tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -648,11 +644,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Assignment tmp = Assignment.New(myGroup, myRole, myFolder, endDate);
|
Assignment tmp = Assignment.New(myGroup, myRole, myFolder, endDate);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Assignment tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -305,30 +305,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UsrID = tmp.UsrID;
|
_UsrID = tmp.UsrID;
|
||||||
_AssignmentInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(FolderAssignment tmp)
|
public static void Refresh(FolderAssignment tmp)
|
||||||
@ -360,30 +336,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UsrID = tmp.UsrID;
|
_UsrID = tmp.UsrID;
|
||||||
_AssignmentInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(GroupAssignment tmp)
|
public static void Refresh(GroupAssignment tmp)
|
||||||
@ -415,30 +367,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UsrID = tmp.UsrID;
|
_UsrID = tmp.UsrID;
|
||||||
_AssignmentInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(RoleAssignment tmp)
|
public static void Refresh(RoleAssignment tmp)
|
||||||
@ -470,30 +398,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UsrID = tmp.UsrID;
|
_UsrID = tmp.UsrID;
|
||||||
_AssignmentInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static AssignmentInfo Get(int aid)
|
public static AssignmentInfo Get(int aid)
|
||||||
|
@ -523,11 +523,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Association tmp = Association.New(myDocVersion, myROFst, config, dts, userID);
|
Association tmp = Association.New(myDocVersion, myROFst, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Association tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -551,11 +547,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Association tmp = Association.New(myDocVersion, myROFst, config);
|
Association tmp = Association.New(myDocVersion, myROFst, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Association tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -266,22 +266,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_AssociationInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(DocVersionAssociation tmp)
|
public static void Refresh(DocVersionAssociation tmp)
|
||||||
@ -305,22 +289,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_AssociationInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(ROFstAssociation tmp)
|
public static void Refresh(ROFstAssociation tmp)
|
||||||
@ -344,22 +312,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_AssociationInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static AssociationInfo Get(int associationID)
|
public static AssociationInfo Get(int associationID)
|
||||||
|
@ -501,11 +501,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Check tmp = Check.New(myRevision, myStage, consistencyChecks, dts, userID);
|
Check tmp = Check.New(myRevision, myStage, consistencyChecks, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Check tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -529,11 +525,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Check tmp = Check.New(myRevision, myStage, consistencyChecks);
|
Check tmp = Check.New(myRevision, myStage, consistencyChecks);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Check tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -265,22 +265,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_CheckInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(RevisionCheck tmp)
|
public static void Refresh(RevisionCheck tmp)
|
||||||
@ -304,22 +288,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_CheckInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(StageCheck tmp)
|
public static void Refresh(StageCheck tmp)
|
||||||
@ -343,22 +311,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_CheckInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static CheckInfo Get(int checkID)
|
public static CheckInfo Get(int checkID)
|
||||||
|
@ -591,11 +591,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Connection tmp = Connection.New(name, title, connectionString, serverType, config, dts, usrID);
|
Connection tmp = Connection.New(name, title, connectionString, serverType, config, dts, usrID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Connection tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -620,11 +616,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Connection tmp = Connection.New(name, title, connectionString, config);
|
Connection tmp = Connection.New(name, title, connectionString, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Connection tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -969,11 +969,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Content tmp = Content.New(number, text, type, myFormat, config, dts, userID);
|
Content tmp = Content.New(number, text, type, myFormat, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Content tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -999,11 +995,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Content tmp = Content.New(number, text, type, myFormat, config);
|
Content tmp = Content.New(number, text, type, myFormat, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Content tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -541,11 +541,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
ContentAudit tmp = ContentAudit.New(contentID, number, text, type, formatID, config, dts, userID, deleteStatus);
|
ContentAudit tmp = ContentAudit.New(contentID, number, text, type, formatID, config, dts, userID, deleteStatus);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
ContentAudit tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -627,50 +627,9 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_ContentInfoExtension.Refresh(this);
|
_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
|
_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
|
_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
|
_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
|
_ContentZContentCount = -1;// Reset Count
|
||||||
OnChange(this);// raise an event only for this instance
|
OnChange(this);// raise an event only for this instance
|
||||||
}
|
}
|
||||||
@ -691,49 +650,9 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_ContentInfoExtension.Refresh(this);
|
_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
|
_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
|
_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
|
_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
|
_ContentZContentCount = -1;// Reset Count
|
||||||
OnChange(this);// raise an event only for this instance
|
OnChange(this);// raise an event only for this instance
|
||||||
}
|
}
|
||||||
|
@ -530,11 +530,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
DROUsage tmp = DROUsage.New(myDocument, roid, config, dts, userID, myRODb);
|
DROUsage tmp = DROUsage.New(myDocument, roid, config, dts, userID, myRODb);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
DROUsage tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -559,11 +555,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
DROUsage tmp = DROUsage.New(myDocument, roid, config, myRODb);
|
DROUsage tmp = DROUsage.New(myDocument, roid, config, myRODb);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
DROUsage tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -276,22 +276,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_MyRODb = null; // Reset list so that the next line gets a new list
|
_MyRODb = null; // Reset list so that the next line gets a new list
|
||||||
if (MyRODb != null) MyRODb.RefreshRODbDROUsages(); // Update List for new value
|
if (MyRODb != null) MyRODb.RefreshRODbDROUsages(); // Update List for new value
|
||||||
_DROUsageInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(DocumentDROUsage tmp)
|
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
|
_MyRODb = null; // Reset list so that the next line gets a new list
|
||||||
if (MyRODb != null) MyRODb.RefreshRODbDROUsages(); // Update List for new value
|
if (MyRODb != null) MyRODb.RefreshRODbDROUsages(); // Update List for new value
|
||||||
_DROUsageInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(RODbDROUsage tmp)
|
public static void Refresh(RODbDROUsage tmp)
|
||||||
@ -356,22 +324,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_DROUsageInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static DROUsageInfo Get(int dROUsageID)
|
public static DROUsageInfo Get(int dROUsageID)
|
||||||
|
@ -506,11 +506,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Detail tmp = Detail.New(myContent, itemType, text, config, dts, userID);
|
Detail tmp = Detail.New(myContent, itemType, text, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Detail tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -535,11 +531,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Detail tmp = Detail.New(myContent, itemType, text, config);
|
Detail tmp = Detail.New(myContent, itemType, text, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Detail tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -258,14 +258,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_DetailInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(ContentDetail tmp)
|
public static void Refresh(ContentDetail tmp)
|
||||||
@ -284,14 +276,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_DetailInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static DetailInfo Get(int detailID)
|
public static DetailInfo Get(int detailID)
|
||||||
|
@ -675,11 +675,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
DocVersion tmp = DocVersion.New(myFolder, versionType, name, title, myItem, myFormat, config, dts, userID);
|
DocVersion tmp = DocVersion.New(myFolder, versionType, name, title, myItem, myFormat, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
DocVersion tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
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);
|
DocVersion tmp = DocVersion.New(myFolder, name, title, myItem, myFormat, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
DocVersion tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -368,30 +368,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_DocVersionInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(FolderDocVersion tmp)
|
public static void Refresh(FolderDocVersion tmp)
|
||||||
@ -425,30 +401,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_DocVersionInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(FormatDocVersion tmp)
|
public static void Refresh(FormatDocVersion tmp)
|
||||||
@ -482,30 +434,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_DocVersionInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(ItemDocVersion tmp)
|
public static void Refresh(ItemDocVersion tmp)
|
||||||
@ -539,30 +467,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_DocVersionInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static DocVersionInfo Get(int versionID)
|
public static DocVersionInfo Get(int versionID)
|
||||||
|
@ -678,11 +678,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Document tmp = Document.New(libTitle, docContent, docAscii, config, dts, userID, fileExtension);
|
Document tmp = Document.New(libTitle, docContent, docAscii, config, dts, userID, fileExtension);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Document tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -707,11 +703,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Document tmp = Document.New(libTitle, docContent, docAscii, config);
|
Document tmp = Document.New(libTitle, docContent, docAscii, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Document tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -571,11 +571,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
DocumentAudit tmp = DocumentAudit.New(docID, libTitle, docContent, docAscii, config, dts, userID, fileExtension, docPdf, deleteStatus);
|
DocumentAudit tmp = DocumentAudit.New(docID, libTitle, docContent, docAscii, config, dts, userID, fileExtension, docPdf, deleteStatus);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
DocumentAudit tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -426,11 +426,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Entry tmp = Entry.New(myContent, myDocument);
|
Entry tmp = Entry.New(myContent, myDocument);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Entry tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -455,11 +451,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Entry tmp = Entry.New(myContent, myDocument, dts, userID);
|
Entry tmp = Entry.New(myContent, myDocument, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Entry tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -428,11 +428,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
EntryAudit tmp = EntryAudit.New(contentID, docID, dts, userID, deleteStatus);
|
EntryAudit tmp = EntryAudit.New(contentID, docID, dts, userID, deleteStatus);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
EntryAudit tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -238,22 +238,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_EntryInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(DocumentEntry tmp)
|
public static void Refresh(DocumentEntry tmp)
|
||||||
@ -269,22 +253,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_EntryInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static EntryInfo Get(int contentID)
|
public static EntryInfo Get(int contentID)
|
||||||
|
@ -523,11 +523,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Figure tmp = Figure.New(myROFst, myROImage, config, dts, userID);
|
Figure tmp = Figure.New(myROFst, myROImage, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Figure tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -551,11 +547,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Figure tmp = Figure.New(myROFst, myROImage, config);
|
Figure tmp = Figure.New(myROFst, myROImage, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Figure tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -265,22 +265,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_FigureInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(ROFstFigure tmp)
|
public static void Refresh(ROFstFigure tmp)
|
||||||
@ -304,22 +288,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_FigureInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(ROImageFigure tmp)
|
public static void Refresh(ROImageFigure tmp)
|
||||||
@ -343,22 +311,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_FigureInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static FigureInfo Get(int figureID)
|
public static FigureInfo Get(int figureID)
|
||||||
|
@ -820,11 +820,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Folder tmp = Folder.New(myParent, myConnection, name, title, shortName, myFormat, manualOrder, config, dts, usrID);
|
Folder tmp = Folder.New(myParent, myConnection, name, title, shortName, myFormat, manualOrder, config, dts, usrID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Folder tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
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);
|
Folder tmp = Folder.New(myParent, myConnection, name, title, shortName, myFormat, manualOrder, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Folder tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -452,30 +452,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UsrID = tmp.UsrID;
|
_UsrID = tmp.UsrID;
|
||||||
_FolderInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(ConnectionFolder tmp)
|
public static void Refresh(ConnectionFolder tmp)
|
||||||
@ -510,30 +486,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UsrID = tmp.UsrID;
|
_UsrID = tmp.UsrID;
|
||||||
_FolderInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(FormatFolder tmp)
|
public static void Refresh(FormatFolder tmp)
|
||||||
@ -568,30 +520,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UsrID = tmp.UsrID;
|
_UsrID = tmp.UsrID;
|
||||||
_FolderInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static FolderInfo Get(int folderID)
|
public static FolderInfo Get(int folderID)
|
||||||
|
@ -763,11 +763,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Format tmp = Format.New(myParent, name, description, data, genMac, dts, userID);
|
Format tmp = Format.New(myParent, name, description, data, genMac, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Format tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -793,11 +789,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Format tmp = Format.New(myParent, name, description, data, genMac);
|
Format tmp = Format.New(myParent, name, description, data, genMac);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Format tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -421,14 +421,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_FormatInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static FormatInfo Get(int formatID)
|
public static FormatInfo Get(int formatID)
|
||||||
|
@ -432,11 +432,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Grid tmp = Grid.New(myContent, data, config, dts, userID);
|
Grid tmp = Grid.New(myContent, data, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Grid tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -460,11 +456,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Grid tmp = Grid.New(myContent, data, config);
|
Grid tmp = Grid.New(myContent, data, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Grid tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -494,11 +494,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
GridAudit tmp = GridAudit.New(contentID, data, config, dts, userID, deleteStatus, contentAuditID);
|
GridAudit tmp = GridAudit.New(contentID, data, config, dts, userID, deleteStatus, contentAuditID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
GridAudit tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
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);
|
GridAudit tmp = GridAudit.New(contentID, data, config, dts, userID, deleteStatus);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
GridAudit tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -227,14 +227,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_GridInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static GridInfo Get(int contentID)
|
public static GridInfo Get(int contentID)
|
||||||
|
@ -594,11 +594,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Group tmp = Group.New(groupName, groupType, config, dts, usrID);
|
Group tmp = Group.New(groupName, groupType, config, dts, usrID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Group tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -622,11 +618,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Group tmp = Group.New(groupName, groupType, config);
|
Group tmp = Group.New(groupName, groupType, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Group tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -482,11 +482,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Image tmp = Image.New(myContent, imageType, fileName, data, config, dts, userID);
|
Image tmp = Image.New(myContent, imageType, fileName, data, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Image tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -511,11 +507,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Image tmp = Image.New(myContent, fileName, data, config);
|
Image tmp = Image.New(myContent, fileName, data, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Image tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -519,11 +519,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
ImageAudit tmp = ImageAudit.New(contentID, imageType, fileName, data, config, dts, userID, deleteStatus);
|
ImageAudit tmp = ImageAudit.New(contentID, imageType, fileName, data, config, dts, userID, deleteStatus);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
ImageAudit tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -798,11 +798,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Item tmp = Item.New(myPrevious, myContent, dts, userID);
|
Item tmp = Item.New(myPrevious, myContent, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Item tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
//tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -825,11 +821,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Item tmp = Item.New(myPrevious, myContent);
|
Item tmp = Item.New(myPrevious, myContent);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Item tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -461,11 +461,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
ItemAudit tmp = ItemAudit.New(itemID, previousID, contentID, dts, userID, deleteStatus);
|
ItemAudit tmp = ItemAudit.New(itemID, previousID, contentID, dts, userID, deleteStatus);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
ItemAudit tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -496,22 +496,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_ItemInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(ContentItem tmp)
|
public static void Refresh(ContentItem tmp)
|
||||||
@ -534,22 +518,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_ItemInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static ItemInfo Get(int itemID)
|
public static ItemInfo Get(int itemID)
|
||||||
|
@ -597,11 +597,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Membership tmp = Membership.New(myUser, myGroup, startDate, endDate, config, dts, usrID);
|
Membership tmp = Membership.New(myUser, myGroup, startDate, endDate, config, dts, usrID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Membership tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -626,11 +622,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Membership tmp = Membership.New(myUser, myGroup, endDate, config);
|
Membership tmp = Membership.New(myUser, myGroup, endDate, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Membership tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -287,22 +287,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UsrID = tmp.UsrID;
|
_UsrID = tmp.UsrID;
|
||||||
_MembershipInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(GroupMembership tmp)
|
public static void Refresh(GroupMembership tmp)
|
||||||
@ -328,22 +312,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UsrID = tmp.UsrID;
|
_UsrID = tmp.UsrID;
|
||||||
_MembershipInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(UserMembership tmp)
|
public static void Refresh(UserMembership tmp)
|
||||||
@ -369,22 +337,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UsrID = tmp.UsrID;
|
_UsrID = tmp.UsrID;
|
||||||
_MembershipInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static MembershipInfo Get(int ugid)
|
public static MembershipInfo Get(int ugid)
|
||||||
|
@ -440,11 +440,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Part tmp = Part.New(myContent, fromType, myItem);
|
Part tmp = Part.New(myContent, fromType, myItem);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Part tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -470,11 +466,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Part tmp = Part.New(myContent, fromType, myItem, dts, userID);
|
Part tmp = Part.New(myContent, fromType, myItem, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Part tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -451,11 +451,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
PartAudit tmp = PartAudit.New(contentID, fromType, itemID, dts, userID, deleteStatus);
|
PartAudit tmp = PartAudit.New(contentID, fromType, itemID, dts, userID, deleteStatus);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
PartAudit tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -249,22 +249,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_PartInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(Content myContent, ContentPart tmp)
|
public static void Refresh(Content myContent, ContentPart tmp)
|
||||||
@ -287,22 +271,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_PartInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(ItemPart tmp)
|
public static void Refresh(ItemPart tmp)
|
||||||
@ -318,22 +286,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_PartInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static PartInfo Get(int contentID, int fromType)
|
public static PartInfo Get(int contentID, int fromType)
|
||||||
|
@ -510,11 +510,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Pdf tmp = Pdf.New(myDocument, debugStatus, topRow, pageLength, leftMargin, pageWidth, pageCount, docPdf, dts, userID);
|
Pdf tmp = Pdf.New(myDocument, debugStatus, topRow, pageLength, leftMargin, pageWidth, pageCount, docPdf, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Pdf tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
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);
|
Pdf tmp = Pdf.New(myDocument, debugStatus, topRow, pageLength, leftMargin, pageWidth, pageCount, docPdf);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Pdf tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -292,14 +292,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_PdfInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(Document myDocument, DocumentPdf tmp)
|
public static void Refresh(Document myDocument, DocumentPdf tmp)
|
||||||
@ -317,14 +309,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_PdfInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static PdfInfo Get(int docID, int debugStatus, int topRow, int pageLength, int leftMargin, int pageWidth)
|
public static PdfInfo Get(int docID, int debugStatus, int topRow, int pageLength, int leftMargin, int pageWidth)
|
||||||
|
@ -655,11 +655,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Permission tmp = Permission.New(myRole, permLevel, versionType, permValue, permAD, startDate, endDate, config, dts, usrID);
|
Permission tmp = Permission.New(myRole, permLevel, versionType, permValue, permAD, startDate, endDate, config, dts, usrID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Permission tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
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);
|
Permission tmp = Permission.New(myRole, permLevel, versionType, permValue, endDate, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Permission tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -314,14 +314,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UsrID = tmp.UsrID;
|
_UsrID = tmp.UsrID;
|
||||||
_PermissionInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(RolePermission tmp)
|
public static void Refresh(RolePermission tmp)
|
||||||
@ -344,14 +336,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UsrID = tmp.UsrID;
|
_UsrID = tmp.UsrID;
|
||||||
_PermissionInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static PermissionInfo Get(int pid)
|
public static PermissionInfo Get(int pid)
|
||||||
|
@ -744,11 +744,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
RODb tmp = RODb.New(rOName, folderPath, dBConnectionString, config, dts, userID);
|
RODb tmp = RODb.New(rOName, folderPath, dBConnectionString, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
RODb tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -773,11 +769,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
RODb tmp = RODb.New(rOName, folderPath, dBConnectionString, config);
|
RODb tmp = RODb.New(rOName, folderPath, dBConnectionString, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
RODb tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -614,11 +614,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
ROFst tmp = ROFst.New(myRODb, rOLookup, config, dts, userID);
|
ROFst tmp = ROFst.New(myRODb, rOLookup, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
ROFst tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -642,11 +638,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
ROFst tmp = ROFst.New(myRODb, rOLookup, config);
|
ROFst tmp = ROFst.New(myRODb, rOLookup, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
ROFst tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -323,14 +323,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_ROFstInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(RODbROFst tmp)
|
public static void Refresh(RODbROFst tmp)
|
||||||
@ -348,14 +340,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_ROFstInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static ROFstInfo Get(int rOFstID)
|
public static ROFstInfo Get(int rOFstID)
|
||||||
|
@ -592,11 +592,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
ROImage tmp = ROImage.New(myRODb, fileName, content, config, dts, userID);
|
ROImage tmp = ROImage.New(myRODb, fileName, content, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
ROImage tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -621,11 +617,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
ROImage tmp = ROImage.New(myRODb, fileName, content, config);
|
ROImage tmp = ROImage.New(myRODb, fileName, content, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
ROImage tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -296,14 +296,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_ROImageInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(RODbROImage tmp)
|
public static void Refresh(RODbROImage tmp)
|
||||||
@ -322,14 +314,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_ROImageInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static ROImageInfo Get(int imageID)
|
public static ROImageInfo Get(int imageID)
|
||||||
|
@ -643,11 +643,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Revision tmp = Revision.New(itemID, typeID, revisionNumber, revisionDate, notes, config, dts, userID);
|
Revision tmp = Revision.New(itemID, typeID, revisionNumber, revisionDate, notes, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Revision tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -673,11 +669,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Revision tmp = Revision.New(itemID, revisionNumber, revisionDate, notes, config);
|
Revision tmp = Revision.New(itemID, revisionNumber, revisionDate, notes, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Revision tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -530,11 +530,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
RoUsage tmp = RoUsage.New(myContent, roid, config, dts, userID, myRODb);
|
RoUsage tmp = RoUsage.New(myContent, roid, config, dts, userID, myRODb);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
RoUsage tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -559,11 +555,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
RoUsage tmp = RoUsage.New(myContent, roid, config, myRODb);
|
RoUsage tmp = RoUsage.New(myContent, roid, config, myRODb);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
RoUsage tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -276,22 +276,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_MyRODb = null; // Reset list so that the next line gets a new list
|
_MyRODb = null; // Reset list so that the next line gets a new list
|
||||||
if (MyRODb != null) MyRODb.RefreshRODbRoUsages(); // Update List for new value
|
if (MyRODb != null) MyRODb.RefreshRODbRoUsages(); // Update List for new value
|
||||||
_RoUsageInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(ContentRoUsage tmp)
|
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
|
_MyRODb = null; // Reset list so that the next line gets a new list
|
||||||
if (MyRODb != null) MyRODb.RefreshRODbRoUsages(); // Update List for new value
|
if (MyRODb != null) MyRODb.RefreshRODbRoUsages(); // Update List for new value
|
||||||
_RoUsageInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(RODbRoUsage tmp)
|
public static void Refresh(RODbRoUsage tmp)
|
||||||
@ -356,22 +324,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_RoUsageInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static RoUsageInfo Get(int rOUsageID)
|
public static RoUsageInfo Get(int rOUsageID)
|
||||||
|
@ -565,11 +565,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Role tmp = Role.New(name, title);
|
Role tmp = Role.New(name, title);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Role tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -594,11 +590,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Role tmp = Role.New(name, title, dts, usrID);
|
Role tmp = Role.New(name, title, dts, usrID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Role tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -572,11 +572,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Stage tmp = Stage.New(name, description, isApproved, dts, userID);
|
Stage tmp = Stage.New(name, description, isApproved, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Stage tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -599,11 +595,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Stage tmp = Stage.New(name, description);
|
Stage tmp = Stage.New(name, description);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Stage tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -657,11 +657,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Transition tmp = Transition.New(myContent, myItemToID, myItemRangeID, isRange, tranType, config, dts, userID);
|
Transition tmp = Transition.New(myContent, myItemToID, myItemRangeID, isRange, tranType, config, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Transition tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
@ -686,11 +682,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Transition tmp = Transition.New(myContent, myItemToID, myItemRangeID, config);
|
Transition tmp = Transition.New(myContent, myItemToID, myItemRangeID, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Transition tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -351,38 +351,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_TransitionInfoExtension.Refresh(this);
|
_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
|
_TransitionZTransitionCount = -1;// Reset Count
|
||||||
OnChange();// raise an event
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
@ -416,38 +384,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_TransitionInfoExtension.Refresh(this);
|
_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
|
_TransitionZTransitionCount = -1;// Reset Count
|
||||||
OnChange();// raise an event
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
@ -481,38 +417,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_TransitionInfoExtension.Refresh(this);
|
_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
|
_TransitionZTransitionCount = -1;// Reset Count
|
||||||
OnChange();// raise an event
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
@ -546,38 +450,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_TransitionInfoExtension.Refresh(this);
|
_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
|
_TransitionZTransitionCount = -1;// Reset Count
|
||||||
OnChange();// raise an event
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
|
@ -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);
|
User tmp = User.New(userID, firstName, middleName, lastName, suffix, courtesyTitle, phoneNumber, cFGName, userLogin, userName, config, dts, usrID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
User tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
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);
|
User tmp = User.New(firstName, middleName, lastName, suffix, courtesyTitle, phoneNumber, cFGName, userLogin, userName, config);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
User tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -522,11 +522,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
Version tmp = Version.New(myRevision, myStage, pdf, summaryPDF, dts, userID);
|
Version tmp = Version.New(myRevision, myStage, pdf, summaryPDF, dts, userID);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
Version tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -276,22 +276,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_VersionInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(RevisionVersion tmp)
|
public static void Refresh(RevisionVersion tmp)
|
||||||
@ -316,22 +300,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_VersionInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static void Refresh(StageVersion tmp)
|
public static void Refresh(StageVersion tmp)
|
||||||
@ -356,22 +324,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_DTS = tmp.DTS;
|
_DTS = tmp.DTS;
|
||||||
_UserID = tmp.UserID;
|
_UserID = tmp.UserID;
|
||||||
_VersionInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static VersionInfo Get(int versionID)
|
public static VersionInfo Get(int versionID)
|
||||||
|
@ -346,11 +346,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
ZContent tmp = ZContent.New(myContent, oldStepSequence);
|
ZContent tmp = ZContent.New(myContent, oldStepSequence);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
ZContent tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -310,8 +310,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
_CountDisposed++;
|
_CountDisposed++;
|
||||||
_Disposed = true;
|
_Disposed = true;
|
||||||
RemoveFromDictionaries();
|
RemoveFromDictionaries();
|
||||||
if (_MyTransition != null)
|
|
||||||
_MyTransition = null;
|
|
||||||
}
|
}
|
||||||
private void RemoveFromDictionaries()
|
private void RemoveFromDictionaries()
|
||||||
{
|
{
|
||||||
@ -348,11 +346,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
ZTransition tmp = ZTransition.New(myTransition, oldto);
|
ZTransition tmp = ZTransition.New(myTransition, oldto);
|
||||||
if (tmp.IsSavable)
|
if (tmp.IsSavable)
|
||||||
{
|
tmp = tmp.Save();
|
||||||
ZTransition tmp2 = tmp;
|
|
||||||
tmp = tmp2.Save();
|
|
||||||
tmp2.Dispose();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
Csla.Validation.BrokenRulesCollection brc = tmp.ValidationRules.GetBrokenRules();
|
||||||
|
@ -194,14 +194,6 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
_Oldto = tmp.Oldto;
|
_Oldto = tmp.Oldto;
|
||||||
_ZTransitionInfoExtension.Refresh(this);
|
_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
|
OnChange();// raise an event
|
||||||
}
|
}
|
||||||
public static ZTransitionInfo Get(int transitionID)
|
public static ZTransitionInfo Get(int transitionID)
|
||||||
|
@ -1042,7 +1042,7 @@ namespace Volian.Controls.Library
|
|||||||
SetLastValues(DocVersionInfo.Get(docversion.VersionID));
|
SetLastValues(DocVersionInfo.Get(docversion.VersionID));
|
||||||
if (OnNodeOpenProperty(this, new vlnTreePropertyEventArgs("Working Draft", docversion.DocVersionConfig)) == DialogResult.OK)
|
if (OnNodeOpenProperty(this, new vlnTreePropertyEventArgs("Working Draft", docversion.DocVersionConfig)) == DialogResult.OK)
|
||||||
{
|
{
|
||||||
docversion.Save().Dispose();
|
docversion.Save();
|
||||||
tn = new VETreeNode(_LastDocVersionInfo);
|
tn = new VETreeNode(_LastDocVersionInfo);
|
||||||
SelectedNode.Nodes.Add(tn); // add tree node to end of list.
|
SelectedNode.Nodes.Add(tn); // add tree node to end of list.
|
||||||
}
|
}
|
||||||
@ -1061,7 +1061,7 @@ namespace Volian.Controls.Library
|
|||||||
SetLastValues(FolderInfo.Get(folder.FolderID));
|
SetLastValues(FolderInfo.Get(folder.FolderID));
|
||||||
if (OnNodeOpenProperty(this, new vlnTreePropertyEventArgs(uniquename, folder.FolderConfig)) == DialogResult.OK)
|
if (OnNodeOpenProperty(this, new vlnTreePropertyEventArgs(uniquename, folder.FolderConfig)) == DialogResult.OK)
|
||||||
{
|
{
|
||||||
folder.Save().Dispose();
|
folder.Save();
|
||||||
tn = new VETreeNode((IVEDrillDownReadOnly)_LastFolderInfo);
|
tn = new VETreeNode((IVEDrillDownReadOnly)_LastFolderInfo);
|
||||||
SelectedNode.Nodes.Add(tn); // add new tree node to end of childlist.
|
SelectedNode.Nodes.Add(tn); // add new tree node to end of childlist.
|
||||||
}
|
}
|
||||||
@ -1083,7 +1083,7 @@ namespace Volian.Controls.Library
|
|||||||
SetLastValues(FolderInfo.Get(folder.FolderID));
|
SetLastValues(FolderInfo.Get(folder.FolderID));
|
||||||
if (OnNodeOpenProperty(this, new vlnTreePropertyEventArgs(uniquename, folder.FolderConfig)) == DialogResult.OK)
|
if (OnNodeOpenProperty(this, new vlnTreePropertyEventArgs(uniquename, folder.FolderConfig)) == DialogResult.OK)
|
||||||
{
|
{
|
||||||
folder.Save().Dispose();
|
folder.Save();
|
||||||
tn = new VETreeNode((IVEDrillDownReadOnly)_LastFolderInfo);
|
tn = new VETreeNode((IVEDrillDownReadOnly)_LastFolderInfo);
|
||||||
if (newtype == MenuSelections.FolderBefore) SelectedNode.Parent.Nodes.Insert(SelectedNode.Index, tn);
|
if (newtype == MenuSelections.FolderBefore) SelectedNode.Parent.Nodes.Insert(SelectedNode.Index, tn);
|
||||||
if (newtype == MenuSelections.FolderAfter) SelectedNode.Parent.Nodes.Insert(SelectedNode.Index + 1, tn);
|
if (newtype == MenuSelections.FolderAfter) SelectedNode.Parent.Nodes.Insert(SelectedNode.Index + 1, tn);
|
||||||
@ -1106,7 +1106,7 @@ namespace Volian.Controls.Library
|
|||||||
SetLastValues(ProcedureInfo.Get(procedure.ItemID));
|
SetLastValues(ProcedureInfo.Get(procedure.ItemID));
|
||||||
if (OnNodeOpenProperty(this, new vlnTreePropertyEventArgs("New Procedure", procedure.ProcedureConfig)) == DialogResult.OK)
|
if (OnNodeOpenProperty(this, new vlnTreePropertyEventArgs("New Procedure", procedure.ProcedureConfig)) == DialogResult.OK)
|
||||||
{
|
{
|
||||||
procedure.Save().Dispose();
|
procedure.Save();
|
||||||
tn = new VETreeNode(_LastProcedureInfo);
|
tn = new VETreeNode(_LastProcedureInfo);
|
||||||
SelectedNode.Nodes.Add(tn); // add tree node to end of list.
|
SelectedNode.Nodes.Add(tn); // add tree node to end of list.
|
||||||
}
|
}
|
||||||
@ -1127,7 +1127,7 @@ namespace Volian.Controls.Library
|
|||||||
SetLastValues(ProcedureInfo.Get(procedure.ItemID));
|
SetLastValues(ProcedureInfo.Get(procedure.ItemID));
|
||||||
if (OnNodeOpenProperty(this, new vlnTreePropertyEventArgs("New Procedure", procedure.ProcedureConfig)) == DialogResult.OK)
|
if (OnNodeOpenProperty(this, new vlnTreePropertyEventArgs("New Procedure", procedure.ProcedureConfig)) == DialogResult.OK)
|
||||||
{
|
{
|
||||||
procedure.Save().Dispose();
|
procedure.Save();
|
||||||
tn = new VETreeNode(_LastProcedureInfo);
|
tn = new VETreeNode(_LastProcedureInfo);
|
||||||
TreeNode par = SelectedNode.Parent;
|
TreeNode par = SelectedNode.Parent;
|
||||||
par.Nodes.Insert(tvindex + ((newtype == MenuSelections.ProcedureBefore) ? 0 : 1), tn);
|
par.Nodes.Insert(tvindex + ((newtype == MenuSelections.ProcedureBefore) ? 0 : 1), tn);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user