case 3823

This commit is contained in:
2020-10-15 19:28:11 +00:00
parent d52cfc013c
commit 6ce273b16b
4 changed files with 33 additions and 3 deletions

View File

@@ -1837,7 +1837,29 @@ namespace AyaNova
//Open workorder item instead
object o=e.Cell.Row.Cells["LT_WorkorderItem_Label_ID"].Value;
bRefreshGrid = Util.EditRecord(RootObjectTypes.WorkorderItem, (Guid)o);
}
}
else if (sCurrentListKey == "SearchResultList")//case 3823
{
//was just using else below but case 3823 requires opening directly client note if that is the search result type
object oType = e.Cell.Row.Cells["RootObjectType"].Value;
if (oType != null && oType is RootObjectTypes && ((RootObjectTypes)oType) == RootObjectTypes.ClientNote)
{
object oId = e.Cell.Row.Cells["RootObjectID"].Value;
if (oId != null && oId is Guid)
{
bRefreshGrid = Util.EditRecord(RootObjectTypes.ClientNote, (Guid)oId);
}
else
{
bRefreshGrid = Util.EditRecord(i.RootObjectType, i.Value);
}
}
else
{
bRefreshGrid = Util.EditRecord(i.RootObjectType, i.Value);
}
}
else
bRefreshGrid = Util.EditRecord(i.RootObjectType, i.Value);