<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/WFAdmin/AdmMaster.Master" CodeBehind="Prioridades.aspx.vb" Inherits="WebFoundations.WFWorkflow.UI.Prioridades" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="wff" Namespace="WebFoundations.ServerControls" Assembly="WebFoundations.ServerControls" %>

<asp:Content ContentPlaceHolderID="TagHead" runat="server">
	<script type="text/javascript">
		var MySelectedItem = '';
		function ShowNewForm() {
			window.radopen("PrioridadeEdit.aspx", "EditDialog");
		}
		function postBackDelete(hiddenFieldID) {
			var hiddenField = $get(hiddenFieldID);
			if (hiddenField) {
				hiddenField.value = 'DELETE' + MySelectedItem;
				__doPostBack(hiddenFieldID, '');
			}
		}
		function postBackHiddenField(hiddenFieldID) {
			var hiddenField = $get(hiddenFieldID);
			if (hiddenField) {
				hiddenField.value = (new Date()).getTime();
				__doPostBack(hiddenFieldID, '');
			}
		}
	</script>
</asp:Content>

<asp:Content ContentPlaceHolderID="ActionContent" runat="server">
	<ul>
		<li>
			<asp:hyperlink id="lnkadd" runat="server" cssclass="add" />
		</li>
		<li>
			<asp:hyperlink id="lnkedit" runat="server" cssclass="edit" />
		</li>
		<li>
			<asp:hyperlink id="lnkdelete" runat="server" cssclass="delete" />
		</li>
		<li>
			<asp:hyperlink id="lnkrefresh" runat="server" cssclass="refresh" />
		</li>
	</ul>
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
	<asp:updatepanel id="updateform" runat="server" updatemode="Always">
	<ContentTemplate>
		<telerik:RadGrid id="grdPrioridade" runat="server" 
				AutoGenerateColumns="false"  AllowSorting="True" AllowPaging="True" EnablePostBackOnRowClick="true" AllowRowSelect="true" PageSize=15>
			<MasterTableView >
				<Columns>
					<telerik:GridBoundColumn DataField="Id" HeaderText="Id" UniqueName="Id"  ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="Justify" />
					<telerik:GridBoundColumn DataField="Titulo" HeaderText="Titulo" UniqueName="Titulo"  ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="Justify" />
					<telerik:GridBoundColumn DataField="Valor" HeaderText="Valor" UniqueName="Valor"  ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="Justify" />
				</Columns>
			</MasterTableView>
			<ClientSettings AllowColumnsReorder="false" AllowDragToGroup="false" 
				 AllowColumnHide="false" 
				Selecting-AllowRowSelect="true" Scrolling-AllowScroll="false" 
				Scrolling-UseStaticHeaders="true">
			</ClientSettings>
			<ExportSettings ExportOnlyData="True"  FileName="Modules" IgnorePaging="True" OpenInNewWindow="True" />
		</telerik:RadGrid>
		<asp:HiddenField id="PostBackHidden" runat="server"></asp:HiddenField>
	</ContentTemplate>
	</asp:updatepanel>
	<wff:WindowManager ID="EditWindow" runat="server">
		<windows>
			<telerik:RadWindow ID="EditDialog" runat="server" Height="300px" Width="450px" ReloadOnShow="true" Modal="true"  />
		</windows>
	</wff:WindowManager>
</asp:Content>
