B2025-018 PROMS - Issues with folder order in tree view.
This commit is contained in:
@@ -769,6 +769,15 @@ namespace VEPROMS.CSLA.Library
|
||||
tmp.MyParent = myParent;
|
||||
tmp.Name = name;
|
||||
tmp.ShortName = shortName;
|
||||
|
||||
//B2025-018 Issues with folder order in tree view
|
||||
//if no manual order is set, add it at the end
|
||||
if (myParent != null)
|
||||
{
|
||||
using (FolderInfo parfolderinfo = FolderInfo.Get(myParent.FolderID))
|
||||
tmp.ManualOrder = parfolderinfo.NewManualOrder(9999);
|
||||
}
|
||||
|
||||
return tmp;
|
||||
}
|
||||
public static Folder New(Folder myParent, Connection myConnection, string name, string title, string shortName, Format myFormat, double? manualOrder, string config, DateTime dts, string usrID)
|
||||
@@ -784,6 +793,15 @@ namespace VEPROMS.CSLA.Library
|
||||
tmp.Config = config;
|
||||
tmp.DTS = dts;
|
||||
tmp.UsrID = usrID;
|
||||
|
||||
//B2025-018 Issues with folder order in tree view
|
||||
//if no manual order is set, add it at the end
|
||||
if (myParent != null && manualOrder == null)
|
||||
{
|
||||
using (FolderInfo parfolderinfo = FolderInfo.Get(myParent.FolderID))
|
||||
tmp.ManualOrder = parfolderinfo.NewManualOrder(9999);
|
||||
}
|
||||
|
||||
return tmp;
|
||||
}
|
||||
public static Folder MakeFolder(Folder myParent, Connection myConnection, string name, string title, string shortName, Format myFormat, double? manualOrder, string config, DateTime dts, string usrID)
|
||||
@@ -813,6 +831,15 @@ namespace VEPROMS.CSLA.Library
|
||||
tmp.MyFormat = myFormat;
|
||||
tmp.ManualOrder = manualOrder;
|
||||
tmp.Config = config;
|
||||
|
||||
//B2025-018 Issues with folder order in tree view
|
||||
//if no manual order is set, add it at the end
|
||||
if (myParent != null && manualOrder == null)
|
||||
{
|
||||
using (FolderInfo parfolderinfo = FolderInfo.Get(myParent.FolderID))
|
||||
tmp.ManualOrder = parfolderinfo.NewManualOrder(9999);
|
||||
}
|
||||
|
||||
return tmp;
|
||||
}
|
||||
public static Folder MakeFolder(Folder myParent, Connection myConnection, string name, string title, string shortName, Format myFormat, double? manualOrder, string config)
|
||||
|
Reference in New Issue
Block a user