示例#1
0
 /// <summary>
 /// Displays the report.
 /// </summary>
 /// <param name="dataSource">The data source.</param>
 /// <param name="reportList">The report list.</param>
 /// <param name="isVoucher">if set to <c>true</c> [b is voucher].</param>
 /// <param name="frmForm">The   form.</param>
 /// <param name="isShowDialog">if set to <c>true</c> [b show dialog].</param>
 /// <param name="isPrint">if set to <c>true</c> [is print].</param>
 /// <param name="voucherDate">The d voucher date.</param>
 public void DisplayReport(ref ICollection dataSource, ReportListModel reportList, bool isVoucher, XtraForm frmForm, bool isShowDialog, bool isPrint, DateTime voucherDate)
 {
     try
     {
         Cursor.Current = Cursors.WaitCursor;
         if (dataSource == null)
         {
             return;
         }
         CommonVariable = new GlobalVariable();
         var str     = CommonVariable.ReportPath + reportList.ReportFile;
         var oRsTool = ReportSharpTool;
         oRsTool.RssObject.VoucherDate = voucherDate;
         oRsTool.ListDataSource        = dataSource;
         oRsTool.DataMember            = reportList.TableName.Trim();
         oRsTool.LayoutReportPath      = CommonVariable.ReportPath;
         oRsTool.ReportFileName        = str;
         if (!AddParameter(ref dataSource))
         {
             return;
         }
         oRsTool.IsPrint            = isPrint;
         oRsTool.ReportTitle        = reportList.ReportName;
         oRsTool.ProductName        = CommonVariable.ProducName;
         oRsTool.DisplayProductName = false;
         _frmParentForm             = frmForm;
         var model = new TSD.AccountingSoft.Model.Model();
         CurrencyModels          = model.GetCurrencies();
         NumberToWord.Currencies = new List <Currency>();
         foreach (var currencyModel in CurrencyModels)
         {
             NumberToWord.Currencies.Add(new Currency
             {
                 CurrencyId   = currencyModel.CurrencyId,
                 CurrencyCode = currencyModel.CurrencyCode,
                 CurrencyName = currencyModel.CurrencyName,
                 Prefix       = currencyModel.Prefix,
                 Suffix       = currencyModel.Suffix
             });
         }
         oRsTool.RunReport(frmForm, isShowDialog);
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.ToString() + ex.InnerException, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     finally
     {
         Cursor.Current = Cursors.Default;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DictionaryReport"/> class.
 /// </summary>
 public DictionaryReport()
 {
     Model = new TSD.AccountingSoft.Model.Model();
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StockReport"/> class.
 /// </summary>
 public StockReport()
 {
     Model           = new TSD.AccountingSoft.Model.Model();
     _globalVariable = new GlobalVariable();
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DepositReport"/> class.
 /// </summary>
 public DepositReport()
 {
     Model = new TSD.AccountingSoft.Model.Model();
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportLedgerAccounting"/> class.
 /// </summary>
 public ReportLedgerAccounting()
 {
     Model           = new TSD.AccountingSoft.Model.Model();
     _globalVariable = new GlobalVariable();
 }
示例#6
0
 public SettlementReport()
 {
     _globalVariable = new GlobalVariable();
     Model           = new TSD.AccountingSoft.Model.Model();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="VoucherReport"/> class.
 /// </summary>
 public VoucherReport()
 {
     Model = new TSD.AccountingSoft.Model.Model();
 }