Exemplo n.º 1
0
        public override void  MyPrint()
        {
            if (gridView1.RowCount > 0)
            {
                sDseqid = ((DataRowView)(gridView1.GetFocusedRow())).Row[0].ToString();
            }
            string[] _Parameters = new string[2] {
                "as_dseqid", "aors"
            };

            string[] _ParametersValue = new string[2] {
                sDseqid, ""
            };
            string[] _ParametersType = new string[2] {
                "Varchar2", "RefCursor"
            };
            string[] _ParametersDirection = new string[2] {
                "Input", "Output"
            };

            CommonInterface pObj_Comm = CommonFactory.CreateInstance(CommonData.Oracle);

            try
            {
                Print_DataSet = pObj_Comm.ExecuteSPSursor("NEIIP_REPORT.cur_receipt_note", _Parameters, _ParametersValue, _ParametersType, _ParametersDirection);
                pObj_Comm.Close();
            }
            catch (Exception ex)
            {
                pObj_Comm.Close();
                throw ex;
            }


            //Print_DataSet = EIIP.Common.uDao.getDataSet(mysql);
            string dir = Directory.GetCurrentDirectory() + @"\" + frmName + ".repx";

            if (File.Exists(dir))
            {
                EIIP.PrintReport.ReceiptReport report = new EIIP.PrintReport.ReceiptReport();
                report.LoadLayout(dir);
                report.Report.DataSource = Print_DataSet;
                report.BindFormData(Print_DataSet);
                report.sDseqid = sDseqid;

                report.PrintingSystem.EndPrint += new System.EventHandler(this.UpdatePrintCount);
                // DevExpress.XtraPrinting.Localization.PreviewLocalizer.Active = new Dxperience.LocalizationCHS.DxperienceXtraPrintingLocalizationCHS();
                report.ShowPreview();
            }
        }
Exemplo n.º 2
0
 public override void MyDesign()
 {
     EIIP.PrintReport.ReceiptReport report = new EIIP.PrintReport.ReceiptReport();
     report.ShowDesigner();
 }