當前位置: 首頁>>代碼示例>>C#>>正文


C# Open_Miracle.frmReport類代碼示例

本文整理匯總了C#中Open_Miracle.frmReport的典型用法代碼示例。如果您正苦於以下問題:C# frmReport類的具體用法?C# frmReport怎麽用?C# frmReport使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


frmReport類屬於Open_Miracle命名空間,在下文中一共展示了frmReport類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Print

 /// <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)
     {
         MessageBox.Show("AGR:1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:jsoques,項目名稱:openmiracle,代碼行數:33,代碼來源:frmAccountGroupReport.cs

示例2: Print

 public void Print()
 {
     try
     {
         PaymentMasterSP SpPaymentMaster = new PaymentMasterSP();
         DataSet dsPaymentReport = SpPaymentMaster.PaymentReportPrinting(Convert.ToDateTime(dtpFromDate.Value.ToString()), Convert.ToDateTime(dtpToDate.Value.ToString()), Convert.ToDecimal(cmbLedger.SelectedValue), Convert.ToDecimal(cmbVoucherType.SelectedValue), Convert.ToDecimal(cmbBankOrCash.SelectedValue), 1);
         frmReport frmReport = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         frmReport.PaymentReportPrinting(dsPaymentReport);
     }
     catch (Exception ex)
     {
         MessageBox.Show("PRP1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:jsoques,項目名稱:openmiracle,代碼行數:15,代碼來源:frmPaymentReport.cs

示例3: Print

 /// <summary>
 /// Print function
 /// </summary>
 /// <param name="decMasterId"></param>
 public void Print(decimal decMasterId)
 {
     try
     {
         PurchaseOrderBll BllPurchaseOrder = new PurchaseOrderBll();
         DataSet dsPurchaseOrder = BllPurchaseOrder.PurchaseOrderPrinting(decMasterId);
         frmReport frmReport = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         frmReport.PurchaseOrderPrinting(dsPurchaseOrder);
     }
     catch (Exception ex)
     {
         MessageBox.Show("PO14:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:JaseelAM,項目名稱:OpenMiracle-Three-Tier,代碼行數:19,代碼來源:frmPurchaseOrder.cs

示例4: btnPrint_Click

 /// <summary>
 /// On 'Print' button click to print
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvPayHead.RowCount > 0)
         {
             DataSet ds = new DataSet();
             PayHeadBll BllPayHead = new PayHeadBll();
             List<DataTable> listObj = BllPayHead.PayHeadViewAllForPayHeadReport(cmbPayHead.Text, cmbType.Text);
             //CompanySP spCompany = new CompanySP();
             CompanyCreationBll bllCompanyCreation = new CompanyCreationBll();
             List<DataTable> listObjCompany = bllCompanyCreation.CompanyViewDataTable(1);
             frmReport frmreport = new frmReport();
             frmreport.MdiParent = formMDI.MDIObj;
             ds.Tables.Add(listObj[0]);
             ds.Tables.Add(listObjCompany[0]);
             frmreport.PayHeadReport(ds);
         }
         else
         {
             Messages.InformationMessage("No data found");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PHR:7 " + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:JaseelAM,項目名稱:OpenMiracle-Three-Tier,代碼行數:33,代碼來源:frmPayHeadReport.cs

示例5: Print

 /// <summary>
 /// Function to Print
 /// </summary>
 /// <param name="decDeliveryNoteMasterId"></param>
 public void Print(decimal decDeliveryNoteMasterId)
 {
     try
     {
         DeliveryNoteMasterInfo infoDeliveryNoteMaster = new DeliveryNoteMasterInfo();
         //DeliveryNoteMasterSP spDeliveryNoteMaster = new DeliveryNoteMasterSP();
         DeliveryNoteBll bllDeliveryNote = new DeliveryNoteBll();
         DataSet dsDeliveryNote = bllDeliveryNote.DeliveryNotePrinting(decDeliveryNoteMasterId, 1, infoDeliveryNoteMaster.OrderMasterId, infoDeliveryNoteMaster.QuotationMasterId);
         frmReport frmReport = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         frmReport.DeliveryNotePrinting(dsDeliveryNote);
     }
     catch (Exception ex)
     {
         MessageBox.Show("DN40:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:JaseelAM,項目名稱:OpenMiracle-Three-Tier,代碼行數:21,代碼來源:frmDeliveryNote.cs

示例6: Print

 /// <summary>
 /// Function for Print
 /// </summary>
 /// <param name="fromDate"></param>
 /// <param name="todate"></param>
 public void Print(DateTime fromDate, DateTime todate)
 {
     try
     {
         FinancialStatementBll bllFinancialStatement = new FinancialStatementBll();
         DataSet dsTrail = getdataset();
         frmReport frmReport = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         frmReport.TrailBalanceReportPrinting(dsTrail);
     }
     catch (Exception ex)
     {
         MessageBox.Show("TB:5" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:JaseelAM,項目名稱:OpenMiracle-Three-Tier,代碼行數:20,代碼來源:frmTrialBalance.cs

示例7: btnPrint_Click

 /// <summary>
 /// On print button click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         DateTime FromDate = this.dtpFromDate.Value;
         DateTime ToDate = this.dtpToDate.Value;
         DataSet ds = new DataSet();
         CompanySP spcompany = new CompanySP();
         DataTable dtblProduct = dtbl.Copy();
         DataTable dtblCompany = spcompany.CompanyViewDataTable(1);
         if (dgvProductBatch.Rows.Count > 0)
         {
             DataTable dtblNew = dtbl.Copy();
             ds.Tables.Add(dtblCompany);
             ds.Tables.Add(dtblProduct);
             frmReport frmReport = new frmReport();
             frmReport.MdiParent = formMDI.MDIObj;
             frmReport.ProductBatchReportPrinting(ds);
         }
         else
         {
             Messages.InformationMessage("No data found");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(" PVSBR:9" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:jsoques,項目名稱:openmiracle,代碼行數:34,代碼來源:frmProductVsBatchReport.cs

示例8: btnPrint_Click

        /// <summary>
        /// On 'Print' button click to print the data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnPrint_Click(object sender, EventArgs e)
        {
            try
            {
                if (dgvPurchaseReturnReport.Rows.Count > 0)
                {
                    if (dgvPurchaseReturnReport.Rows.Count > 0)
                    {
                        DataSet dsPurchaseReturnReport = new DataSet();
                        CompanySP spCompany = new CompanySP();
                        DataTable dtblGrid = dtblReg.Copy();
                        DataTable dtblCompany = spCompany.CompanyViewDataTable(1);
                        dsPurchaseReturnReport.Tables.Add(dtblGrid);
                        dsPurchaseReturnReport.Tables.Add(dtblCompany);
                        frmReport frmReport = new frmReport();
                        frmReport.MdiParent = formMDI.MDIObj;
                        frmReport.PurchaseReturnReportPrinting(dsPurchaseReturnReport, txtTotalAmount.Text);
                    }
                }
                else
                {
                    Messages.InformationMessage("No data found");
                }
           
            }
            catch (Exception ex)
            {

                MessageBox.Show("PRRT:13" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
         
            }
            
        }
開發者ID:jsoques,項目名稱:openmiracle,代碼行數:38,代碼來源:frmPurchaseReturnReport.cs

示例9: Print

        /// <summary>
        /// Function to print the voucher
        /// </summary>
        /// <param name="decMasterId"></param>
        public void Print(decimal decMasterId)
        {
            try
            {
                JournalMasterSP SpJournalMaster = new JournalMasterSP();
                DataSet dsJournalVoucher = SpJournalMaster.JournalVoucherPrinting(decMasterId, 1);
                frmReport frmReport = new frmReport();
                frmReport.MdiParent = formMDI.MDIObj;
                frmReport.JournalVoucherPrinting(dsJournalVoucher);
            }
            catch (Exception ex)
            {
                MessageBox.Show("JV27:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }


        }
開發者ID:jsoques,項目名稱:openmiracle,代碼行數:21,代碼來源:frmJournalVoucher.cs

示例10: Print

 /// <summary>
 /// Function for Print
 /// </summary>
 /// <param name="fromDate"></param>
 /// <param name="toDate"></param>
 public void Print(DateTime fromDate, DateTime toDate)
 {
     try
     {
         DataSet dsProfit = GetDataSet();
         frmReport frmReport = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         frmReport.ProfitAndLossReportPrinting(dsProfit);
     }
     catch (Exception ex)
     {
         MessageBox.Show("PAL :04" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:JaseelAM,項目名稱:OpenMiracle-Three-Tier,代碼行數:19,代碼來源:frmProfitAndLoss.cs

示例11: Print

 /// <summary>
 /// Print function in crystal report
 /// </summary>
 /// <param name="decSalesMasterId"></param>
 public void Print(decimal decSalesMasterId)
 {
     SalesMasterSP spSalesMaster = new SalesMasterSP();
     SalesMasterInfo InfoSalesMaster = new SalesMasterInfo();
     try
     {
         DataSet dsSalesInvoice = spSalesMaster.salesInvoicePrintAfterSave(decSalesMasterId, 1, InfoSalesMaster.OrderMasterId, InfoSalesMaster.DeliveryNoteMasterId, InfoSalesMaster.QuotationMasterId);
         frmReport frmReport = new frmReport();
         frmReport.MdiParent = formMDI.MDIObj;
         frmReport.SalesInvoicePrinting(dsSalesInvoice);
     }
     catch (Exception ex)
     {
         MessageBox.Show("SI: 73" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:jsoques,項目名稱:openmiracle,代碼行數:20,代碼來源:frmSalesInvoice.cs

示例12: btnPrint_Click

 /// <summary>
 /// Print button click, to print the selected details
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     decimal decVoucherTypeId = 0;
     try
     {
         string strDeliveryMode = cmbDeliveryMode.Text;
         string strInvoiceNo = cmbOrderNo.Text;
         //DeliveryNoteMasterSP spDeliveryNoteMaster = new DeliveryNoteMasterSP();
         DeliveryNoteBll bllDeliveryNote = new DeliveryNoteBll();
         if (dgvDeliveryNoteReport.RowCount > 0)
         {
             if (cmbVoucherType.Text == "All")
             {
                 decVoucherTypeId = 0;
             }
             else
             {
                 decVoucherTypeId = Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString());
             }
             DataSet dsDeliveryNoteReport = bllDeliveryNote.DeliveryNoteReportPrinting(1, Convert.ToDecimal(cmbCashOrParty.SelectedValue.ToString()), decVoucherTypeId, this.dtpFromDate.Value, this.dtpToDate.Value, cmbStatus.Text, strDeliveryMode, strInvoiceNo);
             frmReport frmReport = new frmReport();
             frmReport.MdiParent = formMDI.MDIObj;
             frmReport.DeliveryNoteReportPrinting(dsDeliveryNoteReport);
         }
         else
         {
             Messages.InformationMessage("No data found");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("DNREP10:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:JaseelAM,項目名稱:OpenMiracle-Three-Tier,代碼行數:39,代碼來源:frmDeliveryNoteReport.cs

示例13: btnPrint_Click

 /// <summary>
 /// On 'Print' button click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvContraReport.RowCount > 0)
         {
             DataSet ds = new DataSet();
             //CompanySP spCompany = new CompanySP();
             CompanyCreationBll bllCompanyCreation = new CompanyCreationBll();
             frmReport reportobj = new frmReport();
             //ContraMasterSP spContraMaster = new ContraMasterSP();
             ContraVoucherDetailsBll bllContraVoucherDetails = new ContraVoucherDetailsBll();
             List<DataTable> listObjCompany = bllCompanyCreation.CompanyViewDataTable(1);
             List<DataTable> listObjCotraReport = bllContraVoucherDetails.ContraReport(Convert.ToDateTime(dtpFromDate.Value.ToString()), Convert.ToDateTime(dtpToDate.Value.ToString()), cmbVoucherType.Text, cmbCashOrBank.Text, strType);
             ds.Tables.Add(listObjCompany[0]);
             ds.Tables.Add(listObjCotraReport[0]);
             reportobj.MdiParent = formMDI.MDIObj;
             reportobj.ContraVoucherReport(ds);
         }
         else
         {
             MessageBox.Show("No data found", "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("CRT:12" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:JaseelAM,項目名稱:OpenMiracle-Three-Tier,代碼行數:34,代碼來源:frmContraReport.cs

示例14: btnPrint_Click

 /// <summary>
 /// On 'Print' button click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvDailyAttendanceReport.RowCount > 0)
         {
             DataSet ds = new DataSet();
             //CompanySP spCompany = new CompanySP();
             CompanyCreationBll bllCompanyCreation = new CompanyCreationBll();
             List<DataTable> listObjCompany = bllCompanyCreation.CompanyViewDataTable(1);
             ds.Tables.Add(listObjCompany[0]);
             AttendanceBll BllAttendanceMaster = new AttendanceBll();
            List<DataTable> ListAttendance = BllAttendanceMaster.DailyAttendanceViewForDailyAttendanceReport(dtpDate.Text.Trim(), cmbStatus.Text.Trim(), cmbEmployee.Text.Trim(), cmbDesignation.Text.Trim());
            ds.Tables.Add(ListAttendance[0]);
             frmReport frmReportObj = new frmReport();
             frmReportObj.MdiParent = formMDI.MDIObj;
             frmReportObj.DailyAttendanceReportPrinting(ds);
         }
         else
         {
             Messages.InformationMessage("No data found");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("DAR:8" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:JaseelAM,項目名稱:OpenMiracle-Three-Tier,代碼行數:33,代碼來源:frmDailyAttendanceReport.cs

示例15: btnPrint_Click

 /// <summary>
 /// On 'Print' button click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPrint_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvBonusDeductionReport.RowCount > 0)
         {
             DataSet ds = new DataSet();
             CompanySP spCompany = new CompanySP();
             DataTable dtblCompany = spCompany.CompanyViewDataTable(1);
             ds.Tables.Add(dtblCompany);
             BonusDedutionSP spBonusDeduction = new BonusDedutionSP();
             DataTable dtblBonusDeduction = spBonusDeduction.BonusDeductionReportGridFill(dtpFromDate.Text, dtpToDate.Text, dtpSalaryMonth.Text, cmbDesignation.Text, cmbEmployee.Text, strBonusOrDeduction);
             ds.Tables.Add(dtblBonusDeduction);
             frmReport frmReportObj = new frmReport();
             frmReportObj.MdiParent = formMDI.MDIObj;
             frmReportObj.BonusDeductionReportPrinting(ds);
         }
         else
         {
             Messages.InformationMessage("No data found");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("BDR:8" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
開發者ID:jsoques,項目名稱:openmiracle,代碼行數:32,代碼來源:frmBonusDeductionReport.cs


注:本文中的Open_Miracle.frmReport類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。