case 3816
This commit is contained in:
3
TODO.txt
3
TODO.txt
@@ -9,3 +9,6 @@
|
|||||||
Biz 7.6 patch 6
|
Biz 7.6 patch 6
|
||||||
case 3808 dupe client notification deliveries
|
case 3808 dupe client notification deliveries
|
||||||
|
|
||||||
|
|
||||||
|
winform app 7.6 patch 4
|
||||||
|
case 3816
|
||||||
@@ -62,4 +62,4 @@ using System.Runtime.InteropServices;
|
|||||||
[assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)]
|
[assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config",Watch=true)]
|
||||||
//[assembly: log4net.Config.XmlConfigurator(Watch=true)]
|
//[assembly: log4net.Config.XmlConfigurator(Watch=true)]
|
||||||
[assembly: ComVisibleAttribute(false)]
|
[assembly: ComVisibleAttribute(false)]
|
||||||
[assembly: AssemblyFileVersionAttribute("7.6.3.0")]
|
[assembly: AssemblyFileVersionAttribute("7.6.4.0")]
|
||||||
|
|||||||
@@ -1899,6 +1899,14 @@ namespace AyaNova
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//case 3816
|
||||||
|
if (uLoggingIn.IsAdministrator)
|
||||||
|
{
|
||||||
|
// uLoggingIn.LastView = "LT:Dashboard.Label.Dashboard,";//dashboard is too dangerous as it triggers a sql query inside workorder structure
|
||||||
|
//global settings is more neutral and less likely to cause an UI lockup or issue
|
||||||
|
uLoggingIn.LastView = "LT:UI.Go.Administration,LT:UI.Go.Administration.GlobalSettings";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Util.CurrentUserDefaultPartWarehouseID = uLoggingIn.DefaultWarehouseID;
|
Util.CurrentUserDefaultPartWarehouseID = uLoggingIn.DefaultWarehouseID;
|
||||||
//case 939
|
//case 939
|
||||||
@@ -2030,6 +2038,11 @@ namespace AyaNova
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//case 3816 potential fix for temp issue to fix Admin unable to login due to error on last view
|
||||||
|
//LT:Dashboard.Label.Dashboard,
|
||||||
|
//make sFormKey="LT:Dashboard.Label.Dashboard" and sSubFormKey="" if admin
|
||||||
|
//then admin always goes to dashboard
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//show form or if no match then show first visible form
|
//show form or if no match then show first visible form
|
||||||
@@ -5327,30 +5340,34 @@ namespace AyaNova
|
|||||||
#endregion generate serialized inventory
|
#endregion generate serialized inventory
|
||||||
|
|
||||||
|
|
||||||
|
#region delete a bunch of clients
|
||||||
|
//StringBuilder sbRet = new StringBuilder();
|
||||||
|
|
||||||
|
|
||||||
|
//ClientPickList cpl = ClientPickList.GetList();
|
||||||
|
|
||||||
|
//foreach (ClientPickList.ClientPickListInfo theClient in cpl)
|
||||||
|
//{
|
||||||
|
// try
|
||||||
|
// {
|
||||||
|
// sbRet.AppendLine("Attempting to delete client " + theClient.Name);
|
||||||
|
// sbRet.AppendLine("WORKORDERS");
|
||||||
|
// sbRet.AppendLine(Client.DeleteAllClientWorkorders(theClient.ID));
|
||||||
|
// sbRet.AppendLine("UNITS");
|
||||||
|
// Client.DeleteAllClientUnits(theClient.ID);
|
||||||
|
// sbRet.AppendLine("CLIENT RECORD");
|
||||||
|
// Client.DeleteItem(theClient.ID);
|
||||||
|
// }
|
||||||
|
// catch { }
|
||||||
|
|
||||||
|
//}
|
||||||
|
//CopyableMessageBox d = new CopyableMessageBox(sbRet.ToString());
|
||||||
|
//d.ShowDialog();
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
//============== START OF SCRIPT =========================
|
//============== START OF SCRIPT =========================
|
||||||
StringBuilder sbRet = new StringBuilder();
|
User.ClearLayout.Clear(User.AdministratorID);
|
||||||
|
|
||||||
|
|
||||||
ClientPickList cpl = ClientPickList.GetList();
|
|
||||||
|
|
||||||
foreach (ClientPickList.ClientPickListInfo theClient in cpl)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
sbRet.AppendLine("Attempting to delete client " + theClient.Name);
|
|
||||||
sbRet.AppendLine("WORKORDERS");
|
|
||||||
sbRet.AppendLine(Client.DeleteAllClientWorkorders(theClient.ID));
|
|
||||||
sbRet.AppendLine("UNITS");
|
|
||||||
Client.DeleteAllClientUnits(theClient.ID);
|
|
||||||
sbRet.AppendLine("CLIENT RECORD");
|
|
||||||
Client.DeleteItem(theClient.ID);
|
|
||||||
}
|
|
||||||
catch { }
|
|
||||||
|
|
||||||
}
|
|
||||||
CopyableMessageBox d = new CopyableMessageBox(sbRet.ToString());
|
|
||||||
d.ShowDialog();
|
|
||||||
|
|
||||||
|
|
||||||
//=============END OF SCRIPT ===============
|
//=============END OF SCRIPT ===============
|
||||||
|
|||||||
Reference in New Issue
Block a user