Exemple #1
0
        void detailGridView_DataBinding(object sender, EventArgs e)
        { //Template
            CffGridView masterGrid = sender as CffGridView;
            object      kVal       = masterGrid.GetMasterRowKeyValue();

            AgedBalancesReportRecord dRow = masterGrid.GetRow(masterGrid.CurrentFocusedRow) as AgedBalancesReportRecord;

            if (dRow != null)
            {
                detailGridView.DataSource = dRow.CustNoteList;
            }

            //IList<AgedBalancesReportRecord> xABR = dataSource as IList<AgedBalancesReportRecord>;
            //detailGridView.DataSource = (xABR[0] as AgedBalancesReportRecord).CustNoteList;
        }
        public void Decorate()
        {
            string fieldName = parameter.FieldName;

            if (fieldName.Equals("Batch") && securityManager.CanViewReleaseTab())
            {
                BatchRecord record = grid.GetRow(parameter.RowIndex) as BatchRecord;
                if (record != null && record.IsInvoice)
                {
                    Decorate(Cff_WebResource.batchNumberLinkTooltip);
                }
            }
            else if (fieldName.Equals("ClientName") && securityManager.CanChangeSelectedClient())
            {
                Decorate(Cff_WebResource.clientNameLinkTooltip);
            }
            else if (fieldName.Equals("CustomerName") && securityManager.CanChangeSelectedCustomer())
            {
                Decorate(Cff_WebResource.customerNameLinkTooltip);
            }
        }
Exemple #3
0
 void detailGridView_BeforePerformDataSelect(object sender, EventArgs e)
 {//HttpContext.Current.Session[this.dtKeyFieldName] = (sender as ASPxGridView).GetMasterRowKeyValue();
     try
     {
         CffGridView masterGrid = sender as CffGridView;
         object      kVal       = masterGrid.GetMasterRowKeyValue();
         if (this.dataSource != null)
         {
             IList <AgedBalancesReportRecord> xABR = dataSource as IList <AgedBalancesReportRecord>;
             detailGridView.DataSource = (xABR[0] as AgedBalancesReportRecord).CustNoteList;
         }
         else
         {
             AgedBalancesReportRecord dRow = masterGrid.GetRow(masterGrid.FocusedRowIndex) as AgedBalancesReportRecord;
             detailGridView.DataSource = dRow.CustNoteList;
         }
         detailGridView.DataBind();
     }
     catch (Exception exc) {
         string Msg = exc.Message;
     }
 }
Exemple #4
0
        protected void ReportGridViewCustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
        {
            CallbackParameter        parameter            = CallbackParameter.Parse(e.Parameters);
            AgedBalancesReportRecord record               = (AgedBalancesReportRecord)reportGridView.GetRow(parameter.RowIndex);
            RedirectionParameter     redirectionParameter = new RedirectionParameter(parameter.FieldName,
                                                                                     record.ClientNumber, record.Id);

            ISecurityManager securityManager = SecurityManagerFactory.Create(Context.User as CffPrincipal, SessionWrapper.Instance.Scope);
            Redirector       redirector      = new Redirector(RedirectionService.Create(this, securityManager));

            redirector.Redirect(redirectionParameter);
        }