예제 #1
0
        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
            Title = "Счета - LeadForce";

            access = Access.Check();

            //RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(ddlFilter, gridInvoices);

            RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(All, gridInvoices);
            RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(ToPay, gridInvoices);
            RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(Paid, gridInvoices);

            rbAddInvoice.NavigateUrl = UrlsData.AP_InvoiceAdd();
            gridInvoices.Where.Add(new GridWhere {
                CustomQuery = string.Format("(InvoiceStatusID = {0} OR InvoiceStatusID = {1})", (int)InvoiceStatus.PendingPayment, (int)InvoiceStatus.PartialPaid)
            });
            gridInvoices.SiteID = SiteId;
        }