예제 #1
0
        //通过该事件获取从表数据
        private void OnGetValueHandler()
        {
            dtSummary.OnGetValueHandler("SONO", out _CurrentDocNo);               //取主表当前记录的单据号码
            dtSummary.OnGetValueHandler("VerNo", out _CurrentContracTerms);       //取单个字段的值(用于演示)

            dtDetailView.RowFilter = string.Format("SONO='{0}' ", _CurrentDocNo); //设置明细表的外键,过滤明细表

            //处理多个明细
            //dtDetailView.RowFilter = string.Format("SONO='{0}' ", _CurrentDocNo); //过滤明细表
            //dtDetailView.RowFilter = string.Format("SONO='{0}' ", _CurrentDocNo); //过滤明细表
        }
예제 #2
0
 private void Report_OnBeforePrint(IfrxComponent Sender)
 {
     if (Sender is FastReport.IfrxView)
     {
         if (Sender.Name == "Memo10")
         {
             Object data;
             dtSummary.OnGetValueHandler("EMail", out data);
             (Sender as IfrxMemoView).Memo = data.ToString();
         }
     }
 }