Exemplo n.º 1
0
        /// <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 frmRepor = new frmReport();
                frmRepor.MdiParent = formMDI.MDIObj;
                frmRepor.AccountGroup(dsAccountGroup);
            }
            catch (Exception ex)
            {
                MessageBox.Show("AGR:1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
        public List <DataTable> FundFlowReportPrintCompany(decimal decCompanyId)
        {
            List <DataTable> list = new List <DataTable>();

            try
            {
                list = spFinancialStatement.FundFlowReportPrintCompany(decCompanyId);
            }

            catch (Exception ex)
            {
                MessageBox.Show("FS13:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(list);
        }
Exemplo n.º 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)
            {
                MessageBox.Show("BV:04" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(dsBudget);
        }
Exemplo n.º 4
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)
            {
                MessageBox.Show("AR7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(dsFundFlow);
        }
Exemplo n.º 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)
            {
                MessageBox.Show("FF:03" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(dsFundFlow);
        }