Fixed bug in Item ID and Content ID lookup text box.
This commit is contained in:
parent
f453cab9b2
commit
7b540648a1
@ -798,7 +798,8 @@ namespace VEPROMS
|
|||||||
private System.Threading.Timer MyActivityTimer;
|
private System.Threading.Timer MyActivityTimer;
|
||||||
private DevComponents.DotNetBar.ButtonItem btnManageSecurity;
|
private DevComponents.DotNetBar.ButtonItem btnManageSecurity;
|
||||||
private DevComponents.DotNetBar.ButtonItem btnResetSecurity;
|
private DevComponents.DotNetBar.ButtonItem btnResetSecurity;
|
||||||
private TabItemsToClose _MyCloseTabList = new TabItemsToClose();
|
//private DevComponents.DotNetBar.ButtonItem btnBatchRefresh;
|
||||||
|
private TabItemsToClose _MyCloseTabList = new TabItemsToClose();
|
||||||
public TabItemsToClose MyCloseTabList
|
public TabItemsToClose MyCloseTabList
|
||||||
{
|
{
|
||||||
get { return _MyCloseTabList; }
|
get { return _MyCloseTabList; }
|
||||||
@ -828,6 +829,11 @@ namespace VEPROMS
|
|||||||
btnAdmin.SubItems.Add(btnResetSecurity);
|
btnAdmin.SubItems.Add(btnResetSecurity);
|
||||||
btnResetSecurity.Click += new EventHandler(btnResetSecurity_Click);
|
btnResetSecurity.Click += new EventHandler(btnResetSecurity_Click);
|
||||||
//end added by jcb
|
//end added by jcb
|
||||||
|
//batch refresh transitions
|
||||||
|
//btnBatchRefresh = new ButtonItem("btnBatchRefresh", "Batch Refresh");
|
||||||
|
//btnBatchRefresh.Click += new EventHandler(btnBatchRefresh_Click);
|
||||||
|
//btnAdmin.SubItems.Add(btnBatchRefresh);
|
||||||
|
//end batch refresh transitions
|
||||||
UserInfo ui = null;
|
UserInfo ui = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -944,6 +950,11 @@ namespace VEPROMS
|
|||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//void btnBatchRefresh_Click(object sender, EventArgs e)
|
||||||
|
//{
|
||||||
|
// MessageBox.Show("The method or operation is not implemented.");
|
||||||
|
//}
|
||||||
|
|
||||||
void txtSearch_KeyDown(object sender, KeyEventArgs e)
|
void txtSearch_KeyDown(object sender, KeyEventArgs e)
|
||||||
{
|
{
|
||||||
if(e.KeyCode == Keys.Enter)
|
if(e.KeyCode == Keys.Enter)
|
||||||
@ -952,14 +963,19 @@ namespace VEPROMS
|
|||||||
ContentInfo ci = null;
|
ContentInfo ci = null;
|
||||||
if(txtSearch.Text.Length > 0)
|
if(txtSearch.Text.Length > 0)
|
||||||
{
|
{
|
||||||
|
int id = 0;
|
||||||
if (txtSearch.Text.ToUpper().StartsWith("C="))
|
if (txtSearch.Text.ToUpper().StartsWith("C="))
|
||||||
{
|
{
|
||||||
ci = ContentInfo.Get(int.Parse(txtSearch.Text.Substring(2)));
|
if (int.TryParse(txtSearch.Text.Substring(2), out id))
|
||||||
if(ci != null)
|
ci = ContentInfo.Get(id);
|
||||||
|
if (ci != null)
|
||||||
ii = ci.ContentItems[0];
|
ii = ci.ContentItems[0];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ii = ItemInfo.Get(int.Parse(txtSearch.Text));
|
{
|
||||||
|
if(int.TryParse(txtSearch.Text,out id))
|
||||||
|
ii = ItemInfo.Get(id);
|
||||||
|
}
|
||||||
if (ii != null)
|
if (ii != null)
|
||||||
{
|
{
|
||||||
tc.OpenItem(ii);
|
tc.OpenItem(ii);
|
||||||
@ -967,7 +983,6 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
MessageBox.Show("No item found");
|
MessageBox.Show("No item found");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2174,7 +2189,7 @@ namespace VEPROMS
|
|||||||
displayTags.IsVisible = true;
|
displayTags.IsVisible = true;
|
||||||
}
|
}
|
||||||
infotabHistory.Visible = true;
|
infotabHistory.Visible = true;
|
||||||
if (args.MyItemInfo.MyDocVersion.MultiUnitCount > 1 && !args.MyItemInfo.IsProcedure)
|
if (args.MyItemInfo.MyDocVersion.MultiUnitCount > 1 && !args.MyItemInfo.IsProcedure )
|
||||||
{
|
{
|
||||||
infotabApplicability.Visible = true;
|
infotabApplicability.Visible = true;
|
||||||
displayApplicability.MyItemInfo = args.MyEditItem.MyItemInfo;
|
displayApplicability.MyItemInfo = args.MyEditItem.MyItemInfo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user