Пример #1
0
        public DataSet AccountLedgerReportPrinting(decimal decCompanyId, DateTime fromDate, DateTime toDate, decimal decAccountGroupId, decimal decLedgerId)
        {
            DataSet dSt = new DataSet();

            try
            {
                dSt = spAccountLedger.AccountLedgerReportPrinting(decCompanyId, fromDate, toDate, decAccountGroupId, decLedgerId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("AL37:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(dSt);
        }
Пример #2
0
        /// <summary>
        /// Function to print the report
        /// </summary>
        public void Print()
        {
            AccountLedgerSP SpAccountLedger = new AccountLedgerSP();

            try
            {
                DataSet dsAccountLedgerReport = SpAccountLedger.AccountLedgerReportPrinting(1, dtFromDate, dtTodate, decAccountGroupId, decLedgerId);
                ////frmReport //frmReport = new frmReport();
                //frmReport.MdiParent = formMDI.MDIObj;
                //    frmreport.AccountLedgerReportPrinting(dsAccountLedgerReport);
            }
            catch (Exception ex)
            {
                MessageBox.Show("ALREP5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Пример #3
0
        /// <summary>
        /// Function to print the report
        /// </summary>
        public void Print()
        {
            AccountLedgerSP SpAccountLedger = new AccountLedgerSP();

            try
            {
                DataSet   dsAccountLedgerReport = SpAccountLedger.AccountLedgerReportPrinting(1, dtFromDate, dtTodate, decAccountGroupId, decLedgerId);
                frmReport frmReport             = new frmReport();
                frmReport.MdiParent = formMDI.MDIObj;
                frmReport.AccountLedgerReportPrinting(dsAccountLedgerReport);
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "ALREP5:" + ex.Message;
            }
        }