This commit is contained in:
83
source/WBI/MasterEditPage.master.cs
Normal file
83
source/WBI/MasterEditPage.master.cs
Normal file
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using Telerik.Web.UI;
|
||||
|
||||
public partial class MasterEditPage : System.Web.UI.MasterPage
|
||||
{
|
||||
|
||||
|
||||
public string sDeletePrompt = "";
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
sDeletePrompt = Util.LocaleText("UI.Label.DeletePrompt");
|
||||
}
|
||||
protected void RadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(e.Item.Value))
|
||||
{
|
||||
if (e.Item.Value.StartsWith("PRINT"))
|
||||
messageToSend = new AYMessageEventArgs(AYMessageType.Print, e.Item.Value);
|
||||
else if (e.Item.Value == "SETALLPARTSUSED" || e.Item.Value == "CONVERTSCHEDUSERTOLABOR")
|
||||
messageToSend = new AYMessageEventArgs(AYMessageType.UpdateObject, e.Item.Value);
|
||||
else
|
||||
messageToSend = new AYMessageEventArgs(AYMessageType.ToolBarClick, e.Item.Value);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private AYMessageEventArgs messageToSend = null;
|
||||
public AYMessageEventArgs AyMessage
|
||||
{
|
||||
get { return messageToSend; }
|
||||
}
|
||||
|
||||
//form access to menu
|
||||
public Telerik.Web.UI.RadMenu Menu
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.RadMenu1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void SetErrors(string sErrors)
|
||||
{
|
||||
|
||||
if (sErrors == "")
|
||||
{
|
||||
this.divError.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
this.divError.Visible = true;
|
||||
this.phErrors.Controls.Add(new LiteralControl(Util.BrokenRuleCollectionLocalizer(sErrors).Replace("\r\n","<br>")));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
///// <summary>
|
||||
///// Helper method to redirect to stub form
|
||||
///// for items that aren't completed yet
|
||||
///// </summary>
|
||||
//public void GoStub()
|
||||
//{
|
||||
// Response.Redirect("stub.aspx");
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user