or
public partial class InvoicesScalingDefault : iConnect.Web.iConnect, IInvoicesScale { private InvoicesScalePresenter _presenter; public System.Collections.Generic.IList<Data.SapDocuments> SapDocuments { get; set; } protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { this._presenter.OnViewInitialized(); LoadData(); } this._presenter.OnViewLoaded(); } [CreateNew] public InvoicesScalePresenter Presenter { set { this._presenter = value; this._presenter.View = this; } } /// <summary> /// Carregar RadGrid1 com o objecto SapDocuments /// </summary> private void LoadData() { string user = Page.User.Identity.Name.Substring(Page.User.Identity.Name.IndexOf("\\") + 1); EscalonamentoFacturasEntities objectContx = new EscalonamentoFacturasEntities(); RadGrid1.DataSource = objectContx.ShowUnprocessedInvoices(user); //RadGrid1.DataBind(); } protected void RadGrid1_GridExporting(object sender, GridExportingArgs e) { e.ExportOutput = e.ExportOutput.Replace("\"\r\n\"", "\"\r\n\"'"); } protected void ShowProcessed_Click(object sender, EventArgs e) { string user = Page.User.Identity.Name.Substring(Page.User.Identity.Name.IndexOf("\\") + 1); EscalonamentoFacturasEntities objectContx = new EscalonamentoFacturasEntities(); RadGrid1.DataSource = objectContx.ShowProcessedInvoices(user); RadGrid1.DataBind(); } protected void ShowUnProcessed_Click(object sender, EventArgs e) { LoadData(); }| <telerik:GridTemplateColumn UniqueName="Delete" Display="true" HeaderText=" " ItemStyle-Width="20px" HeaderStyle-Width="40px" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"> |
| <ItemTemplate> |
| <asp:ImageButton CssClass="test" ImageUrl="~/images/silk/cancel.png" ID="btnDeleteItem" runat="server" CommandArgument='<%# Eval("Id") %>' onclick="btnDeleteItem_Click" /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main" %> <%@ Register TagPrefix="rad" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <style type="text/css"> .StdFont {FONT-SIZE: 11px; FONT-FAMILY: Arial; vertical-align: top;} .BoldFont {FONT-WEIGHT: bold; FONT-SIZE: 11px; FONT-FAMILY: Arial; vertical-align: top;} .TableBase { width: 100%;} .Textfont{FONT-FAMILY:Arial;FONT-SIZE:11px;} .ReqFont{FONT-SIZE: 0.9em; FONT-FAMILY: Arial; FONT-WEIGHT:Bold;} .VMSAjaxLoadingPanelBackground { height: 100%; background:#fff; } .VMSAjaxLoadingPanel { margin-top: 25px; } </style> <html xmlns="http://www.w3.org/1999/xhtml" style="height:100%"> <head runat="server"> <title>Main</title> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> </head> <body style="margin:0px;height:100%;overflow:hidden; cursor:default;" > <form id="form1" runat="server"> <rad:RadScriptManager runat="server" ID="radSM" AsyncPostBackTimeout="3600"></rad:RadScriptManager> <asp:Panel ID="pnlMain" runat="server"> <div> <rad:RadSplitter runat="server" id="RadSplitter1" Orientation="Vertical" width="98%" height="85%" LiveResize="True" > <rad:RadPane runat="server" id="LeftPane" width="2%" Collapsed="false"> <rad:RadSlidingZone ID="RadSlidingZone2" runat="server" ExpandedPaneId="RadSlidingPane1" DockedPaneId="RadSlidingPane1"> <rad:RadSlidingPane ID="RadSlidingPane1" runat="server" EnableDock="true" MinWidth="355" CollapseMode="Both" Title="Filter" TabView="TextOnly" Width="380px" > <asp:Panel ID="pnlHolder" runat="server"> <br /> <asp:Panel id="pnlSelection" Width="95%" HorizontalAlign="Center" Runat="server" GroupingText="Filter Criteria" CssClass="BoldFont"> <br /> <table cellspacing="0" cellpadding="0" width="100%"> <tr> <td valign="top" width="20%" align="left"></td> <td ></td> </tr> <tr> <td valign="top" width="20%" align="left"> <asp:Label id="lbl1" Runat="server" CssClass="BoldFont">Department:</asp:Label></td> <td valign="top" align="left"> <asp:dropdownlist ID="ddl1" runat="server" CssClass="StdFont"> </asp:dropdownlist></td> </tr> <tr> <td valign="top" align="left"> <asp:Label id="lbllist2" Runat="server" CssClass="BoldFont" >Branch:</asp:Label></td> <td valign="top" align="left"> <asp:Panel ID="List" runat="server" Width="95%" Height="150px" ScrollBars="Auto"> <asp:CheckBoxList ID="lblListSelection" runat="server" Width="93%" BorderWidth="1" BorderStyle="Solid" CssClass="StdFont" Font-Bold="false"> </asp:CheckBoxList> </asp:Panel> </td> </tr> <tr> <td valign="top" align="left"> </td> <td valign="top" align="left"> </td> </tr> </table> </asp:Panel> <br /> <asp:Panel ID="pnlFilter" Runat="server" Width="80%" HorizontalAlign="Center" GroupingText="Additional Filter Criteria" CssClass="BoldFont"> <br /> </asp:Panel> </asp:Panel> </rad:RadSlidingPane> </rad:RadSlidingZone> </rad:RadPane> <rad:RadSplitBar runat="server" id="RadSplitBar1" /> <rad:RadPane runat="server" id="RightPane" Width="100%"> <rad:RadSplitter runat="server" id="InnerSplitter" Orientation="Horizontal" LiveResize="true" > <rad:RadPane runat="server" id="TopPane" Height="30%" Width="98%"> <asp:Panel id="pnlGrid" Width="98%" HorizontalAlign="Center" Runat="server" borderwidth="0px" Height="98%"> <rad:RadGrid id="RadGrid1" ShowStatusBar="false" runat="server" AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="False" AutoGenerateColumns="false" EnableViewState="true" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemCommand="RadGrid1_ItemCommand" Width="100%" Height="100%" Skin="Windows7" AllowFilteringByColumn="true" EnableLinqExpressions="false"> <MasterTableView Width="98%" TableLayout="Fixed" EnableViewState="true" CommandItemDisplay="None" > <Columns> <rad:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" HeaderStyle-Width="3%" AllowFiltering="false" Resizable="false"> <ItemTemplate> <asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox> </ItemTemplate> </rad:GridTemplateColumn> </Columns> </MasterTableView> <ClientSettings EnableRowHoverStyle="true" Resizing-AllowColumnResize="true" Resizing-AllowRowResize="false" Resizing-EnableRealTimeResize ="false" Resizing-ClipCellContentOnResize ="false" AllowColumnsReorder="true" EnablePostBackOnRowClick="true" > <Scrolling AllowScroll ="true" UseStaticHeaders="true" /> </ClientSettings> <PagerStyle Mode="NextPrevAndNumeric" Height="10px" VerticalAlign="Bottom" Position="Bottom"></PagerStyle> </rad:RadGrid> </asp:Panel> </rad:RadPane> <rad:RadSplitBar runat="server" id="RadSplitBar2" EnableResize="true" /> <rad:RadPane runat="server" id="BottomPane" Width="98%" > <iframe id="frm1" runat="server" width="100%" height="100%" frameborder="0"></iframe> </rad:RadPane> </rad:RadSplitter> </rad:RadPane> </rad:RadSplitter> </div> </asp:Panel> </form> </body> </html>
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below. |
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.] System.Reflection.RuntimeAssembly.GetRawBytes(RuntimeAssembly assembly, ObjectHandleOnStack retRawBytes) +0 System.Reflection.RuntimeAssembly.GetRawBytes() +38 System.Security.Policy.Hash.GetRawData() +68 System.Security.Policy.Hash.GenerateHash(Type hashType) +75 System.Security.Policy.Hash.get_SHA1() +101 System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly) +68 System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly) +77 System.Web.Handlers.RuntimeScriptResourceHandler.GetScriptResourceUrlImpl(List`1 assemblyResourceLists, Boolean zip) +393 System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(List`1 assemblyResourceLists, Boolean zip) +677 System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip) +143 System.Web.UI.ScriptReference.GetUrlFromName(ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) +296 System.Web.UI.ScriptReference.GetUrlInternal(ScriptManager scriptManager, Boolean zip) +613 System.Web.UI.ScriptReference.GetUrl(ScriptManager scriptManager, Boolean zip) +213 System.Web.UI.ScriptManager.RegisterUniqueScripts(List`1 uniqueScripts) +203 System.Web.UI.ScriptManager.RegisterScripts() +443 System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +122 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8938218 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2716 |
<telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="100%" Skin="Black"> <Items> <telerik:RadPanelItem> <ItemTemplate> </ItemTemplate> </telerik:RadPanelItem> <telerik:RadPanelItem Text="Unassigned" Expanded="false"> <ContentTemplate> <div id="unassigned"> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid4"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid4" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadGrid2"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid2" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Black" /> <br /> <table> <tr> <td style="width: 271px"> </td> <td> <telerik:RadGrid ID="RadGrid3" runat="server" Skin="Black" CellSpacing="0" GridLines="None" Width="250px" Height="300px" AutoGenerateColumns="False" HorizontalAlign="Left" > <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="False" /> </ClientSettings> <MasterTableView HorizontalAlign="Left"> <Columns> <telerik:GridBoundColumn DataField="Unassigned" HeaderText="Unassigned Users" UniqueName="Unassigned" SortExpression="Unassigned" HeaderStyle-HorizontalAlign="Center"> </telerik:GridBoundColumn> </Columns> </MasterTableView> <FilterMenu EnableImageSprites="False"> </FilterMenu> </telerik:RadGrid> </td> <td style="width: 60px"> </td> <td> <telerik:RadGrid ID="RadGrid4" runat="server" Skin="Black" CellSpacing="0" HorizontalAlign="Left" GridLines="None" Width="350px" Height="300px" AllowSorting="True"> <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="False" /> </ClientSettings> <MasterTableView HorizontalAlign="Left"> </MasterTableView> <FilterMenu EnableImageSprites="False"> </FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Windows7"> </HeaderContextMenu> </telerik:RadGrid> </td> </tr> </table> <br /> </div> </ContentTemplate> </telerik:RadPanelItem> </Items> </telerik:RadPanelBar>EscalonamentoFacturasEntities objectContx = new EscalonamentoFacturasEntities(); RadGrid4.DataSource = objectContx.UnassignedInvoicesResume(); //RadGrid4.HorizontalAlign; RadGrid4.DataBind(); RadGrid3.DataSource = this.Unassigned; RadGrid3.DataBind();