/// <summary>
        /// Function to print report
        /// </summary>
        /// <param name="fromDate"></param>
        /// <param name="toDate"></param>
        public void Print(DateTime fromDate, DateTime toDate)
        {
            try
            {
                FinancialStatementSP spFinance      = new FinancialStatementSP();
                AccountGroupSP       spAccountGroup = new AccountGroupSP();
                DataSet   dsAccountGroup            = new DataSet();
                DataTable dtblAccountGroup          = spAccountGroup.AccountGroupReportFill(fromDate, toDate);
                string    strSum  = lblBalanceTotal.Text;
                DataTable dtblSum = new DataTable();
                dtblSum.Columns.Add("Sum", typeof(string));
                DataRow dr = dtblSum.NewRow();
                dr[0] = strSum;
                dtblSum.Rows.InsertAt(dr, 0);

                DataTable dtblCompany = spFinance.FundFlowReportPrintCompany(1);
                dsAccountGroup.Tables.Add(dtblAccountGroup);
                dsAccountGroup.Tables.Add(dtblCompany);
                dsAccountGroup.Tables.Add(dtblSum);
                frmReport frmReport = new frmReport();
                frmReport.MdiParent = formMDI.MDIObj;
                frmReport.AccountGroup(dsAccountGroup);
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "AGR1:" + ex.Message;
            }
        }
Exemple #2
0
        /// <summary>
        /// Function to get dataset for printing the report
        /// </summary>
        /// <returns></returns>
        public DataSet getdataset1()
        {
            DataSet dsFundFlow = new DataSet();

            try
            {
                FinancialStatementSP spfinancial = new FinancialStatementSP();
                DataTable            dtblFund    = dtblageing1();
                DataTable            dtblCompany = new DataTable();
                dtblCompany = spfinancial.FundFlowReportPrintCompany(1);//(PublicVariables._decCurrentCompanyId);
                dsFundFlow.Tables.Add(dtblFund);
                dsFundFlow.Tables.Add(dtblCompany);
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "AR7:" + ex.Message;
            }
            return(dsFundFlow);
        }
Exemple #3
0
        /// <summary>
        /// Function to create datasets
        /// </summary>
        /// <returns></returns>
        public DataSet getdataset()
        {
            FinancialStatementSP spfinancial = new FinancialStatementSP();
            DataSet dsBudget = new DataSet();

            try
            {
                DataTable dtblbudget  = GetDataTable();
                DataTable dtblCompany = new DataTable();
                dtblCompany = spfinancial.FundFlowReportPrintCompany(1);
                dsBudget.Tables.Add(dtblbudget);
                dsBudget.Tables.Add(dtblCompany);
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "BV:04" + ex.Message;
            }
            return(dsBudget);
        }
Exemple #4
0
        /// <summary>
        /// Function to get dataset
        /// </summary>
        /// <returns></returns>
        public DataSet getdataset()
        {
            DataSet dsFundFlow = new DataSet();

            try
            {
                FinancialStatementSP spfinancial = new FinancialStatementSP();
                DataTable            dtblFund    = dtblBalanceSheet();
                DataTable            dtblCompany = new DataTable();
                dtblCompany = spfinancial.FundFlowReportPrintCompany(1);
                dsFundFlow.Tables.Add(dtblFund);
                dsFundFlow.Tables.Add(dtblCompany);
                return(dsFundFlow);
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "BS3:" + ex.Message;
            }
            return(dsFundFlow);
        }
Exemple #5
0
        /// <summary>
        /// Function to Convert DataTable to DataSet
        /// </summary>
        /// <returns></returns>
        public DataSet GetdataSet()
        {
            FinancialStatementSP spfinancial = new FinancialStatementSP();
            DataSet dsFundFlow = new DataSet();

            try
            {
                DataTable dtblFund    = GetDataTable();
                DataTable dtblWC      = GetDatagrid2();
                DataTable dtblCompany = new DataTable();
                dtblCompany = spfinancial.FundFlowReportPrintCompany(1);
                dsFundFlow.Tables.Add(dtblFund);
                dsFundFlow.Tables.Add(dtblCompany);
                dsFundFlow.Tables.Add(dtblWC);
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "FF3:" + ex.Message;
            }
            return(dsFundFlow);
        }