This commit is contained in:
2009-01-27 15:31:59 +00:00
parent ec5874fb87
commit 36323b44a7
12 changed files with 315 additions and 71 deletions

View File

@@ -472,11 +472,12 @@ namespace DataLoader
#endregion
Dictionary<ushort, Plant> plntDic = new Dictionary<ushort, Plant>();
List<OldUser> userList = new List<OldUser>();
private string _VePromsPath = null;
private string optfilename;
private string[] prflags ={ "Vfw", "Prnt", "Prnt Drft", "Prnt Chgs", "Edit", "Srch", "St Stp", "App", "App Sel", "Lib", "AMD", "Clean", "Lock" };
private string[] sysflags ={ "NetworkLock", "SysMaint", "ROEditor", "SysAdmin" };
#region NewMig
public Security(string pathname)
public Security(string pathname, string vepromspath)
{
if (File.Exists(pathname) == false)
{
@@ -484,6 +485,7 @@ namespace DataLoader
optfilename = null;
return;
}
_VePromsPath = vepromspath;
optfilename = pathname;
}
public bool Migrate()
@@ -907,7 +909,7 @@ namespace DataLoader
User newusr = User.New();
newusr.UserID = sUser;
ConfigFile cfg = new ConfigFile();
cfg.LoadUsrCfg(newusr);
cfg.LoadUsrCfg(newusr, _VePromsPath);
Group tmpgrp = Group.Get(dicGroupIds[s]);
newusr.UserMemberships.Add(tmpgrp);
if (!newusr.IsSavable) ErrorRpt.ErrorReport(newusr);