protected void TransactionGridViewCustomCallback(object sender, ReportGridViewCustomCallbackEventArgs e)
        {
            CallbackParameter   parameter   = CallbackParameter.Parse(e.Parameters);
            ArchivedTransaction transaction = (ArchivedTransaction)TransactionGridView.GetRow(parameter.RowIndex);

            var redirectionParameter = new RedirectionParameter(parameter.FieldName, SessionWrapper.Instance.Get.ClientFromQueryString.Id, SessionWrapper.Instance.Get.CustomerFromQueryString.Id, transaction.Batch);

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

            redirector.Redirect(redirectionParameter);
        }
コード例 #2
0
        void detailGridView_DataBinding(object sender, EventArgs e)
        { //Template
            CffGenGridView masterGrid = sender as CffGenGridView;
            //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;
        }
コード例 #3
0
 void detailGridView_BeforePerformDataSelect(object sender, EventArgs e)
 {//HttpContext.Current.Session[this.dtKeyFieldName] = (sender as ASPxGridView).GetMasterRowKeyValue();
     try
     {
         CffGenGridView masterGrid = sender as CffGenGridView;
         //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.CurrentFocusedRow) as AgedBalancesReportRecord;
             detailGridView.DataSource = dRow.CustNoteList;
         }
         detailGridView.DataBind();
     }
     catch (Exception exc) {
         string Msg = exc.Message;
     }
 }
 private RetentionSchedule BuildRetentionItemFromGrid()
 {
     return((RetentionSchedule)RetentionGridView.GetRow(RetentionGridView.FocusedRowIndex));
 }