Don't use the EditItem for paste if it's parent is not expanded. This keeps the pasted step from being pasted in the wrong place.
Display the SQL Code Revision in the email that sends the Error Log
This commit is contained in:
parent
c2649727e1
commit
cc108f3c85
@ -505,7 +505,8 @@ namespace Volian.Controls.Library
|
|||||||
if (_MyDisplayTabItems.ContainsKey(key)) // If procedure page open use it
|
if (_MyDisplayTabItems.ContainsKey(key)) // If procedure page open use it
|
||||||
{
|
{
|
||||||
DisplayTabItem pg = _MyDisplayTabItems[key];
|
DisplayTabItem pg = _MyDisplayTabItems[key];
|
||||||
if (pg.MyStepTabPanel.MyStepPanel._LookupEditItems.ContainsKey(myItemInfo.ItemID))
|
if (pg.MyStepTabPanel.MyStepPanel._LookupEditItems.ContainsKey(myItemInfo.ItemID) &&
|
||||||
|
pg.MyStepTabPanel.MyStepPanel._LookupEditItems[myItemInfo.ItemID].Expanded)
|
||||||
{
|
{
|
||||||
EditItem edtitm = pg.MyStepTabPanel.MyStepPanel._LookupEditItems[myItemInfo.ItemID];
|
EditItem edtitm = pg.MyStepTabPanel.MyStepPanel._LookupEditItems[myItemInfo.ItemID];
|
||||||
switch (pasteType)
|
switch (pasteType)
|
||||||
|
@ -119,7 +119,7 @@ namespace Volian.Controls.Library
|
|||||||
Match mServer = Regex.Match(connectionString, ".*Data Source=([^;]*).*");
|
Match mServer = Regex.Match(connectionString, ".*Data Source=([^;]*).*");
|
||||||
string server = (mServer.Success) ? mServer.Groups[1].Value : "unknown";
|
string server = (mServer.Success) ? mServer.Groups[1].Value : "unknown";
|
||||||
if (server.StartsWith(@".\")) server = @"Local \ " + server.Substring(2);
|
if (server.StartsWith(@".\")) server = @"Local \ " + server.Substring(2);
|
||||||
string databaseName = Database.ActiveDatabase;
|
string databaseName = string.Format("{0}[SQL:{1:yyMM.ddHH}]", Database.ActiveDatabase, Database.RevDate);
|
||||||
sb.Append(string.Format("SQL Server: {0}", server));
|
sb.Append(string.Format("SQL Server: {0}", server));
|
||||||
//if (databaseName == null) databaseName = Regex.Replace(connectionString, "^.*Initial Catalog=([^;]*);.*$", "$1", RegexOptions.IgnoreCase);
|
//if (databaseName == null) databaseName = Regex.Replace(connectionString, "^.*Initial Catalog=([^;]*);.*$", "$1", RegexOptions.IgnoreCase);
|
||||||
sb.AppendLine(string.Format("\t\tDatabase: {0}", databaseName));
|
sb.AppendLine(string.Format("\t\tDatabase: {0}", databaseName));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user