示例#1
0
 private void SubPie_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     ((XRSubreport)sender).ReportSource.DataSource = lst_det;
 }
示例#2
0
 private void subReportDetail_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     this.DataSource = this._pcpgcDetail.Select(PCPGOnlineCheckId);
 }
示例#3
0
 private void ProductionMachineXtraReport_BeforePrint(System.Object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     // m_MinPerHour = If(MainXtraForm.MinPerHOur <> 0, MainXtraForm.MinPerHOur, 50)
     //Customer enters packers pay based on all breaks included
     m_PackersPay = (MainXtraForm.PackersPay != 0) ? MainXtraForm.PackersPay : 1;
 }
示例#4
0
 private void Q25_1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     this.DataSource = this.detailManager.Select("O", this.invoice);
 }
示例#5
0
 private void GroupFooter1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     xrtTong.Text = tong.ToString("#,#");
 }
示例#6
0
 private void printDocument1_EndPrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     printed = 0;
 }
示例#7
0
 private void crNgayCT_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     (sender as XRLabel).Text = String.Format("Từ ngày:{0} Đến ngày: {1}", Model.MTGlobal.MT_TUNGAY, Model.MTGlobal.MT_DENNGAY);
 }
示例#8
0
 private void ReportHeader_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
 }
示例#9
0
 private void RO1Details1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     this.DataSource = this.MMRSHeader.Details;
 }
        //handling Company Logo Image
        private void XrPictureBox8_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            var root = AppDomain.CurrentDomain.BaseDirectory;

            ((XRPictureBox)sender).Image = new Bitmap(root + "\\Content\\Logos\\3.png");
        }
 //handling empStatus picture box
 protected virtual void xrPictureBox2_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
 }
 private void Group_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     STT         = 1;
     xrtstt.Text = STT.ToString();
 }
 private void Detail_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     xrtstt.Text = STT.ToString();
     STT++;
 }
示例#14
0
        void xrLabel10_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            xrLabel10.ForeColor = Color.Blue;

            ((XRLabel)sender).Tag = GetCurrentRow();
        }
示例#15
0
 protected override void OnBeforePrint(System.Drawing.Printing.PrintEventArgs e)
 {
     base.OnBeforePrint(e);
     UpdateGroupSortingSummary();
 }
示例#16
0
 private void spicialReport_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
 }
示例#17
0
        private void XROL_Rpt002_rpt_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            try
            {
                XROL_Rpt002_Bus         oReporteBus = new XROL_Rpt002_Bus();
                List <XROL_Rpt002_Info> oListado    = new List <XROL_Rpt002_Info>();

                int    idEmpresa         = 0;
                int    idNominaTipo      = 0;
                int    idNominaTipoLiqui = 0;
                int    idPeriodo         = 0;
                int    idDivision        = 0;
                int    idArea            = 0;
                int    idDepartamento    = 0;
                string idCentroCosto     = "";
                string mensaje           = "";

                //string format = "dd/MM/yyyy";

                idEmpresa         = Convert.ToInt32(Parameters["s_idEmpresa"].Value);
                idNominaTipo      = Convert.ToInt32(Parameters["s_idNominaTipo"].Value);
                idNominaTipoLiqui = Convert.ToInt32(Parameters["s_idNominaTipoLiqui"].Value);
                idPeriodo         = Convert.ToInt32(Parameters["s_idPeriodo"].Value);
                idDivision        = Convert.ToInt32(Parameters["p_IdDivision"].Value);
                idCentroCosto     = Parameters["p_IdCentroCosto"].Value.ToString();
                idArea            = Convert.ToInt32(Parameters["p_IdArea"].Value);
                idDepartamento    = Convert.ToInt32(Parameters["p_IdDepartamento"].Value);
                lbruc.Text        = param.InfoEmpresa.em_ruc;
                //FILTROS


                if (idDivision == 0 && idDepartamento == 0)
                {
                    oListado                = oReporteBus.GetListConsultaGeneral(idEmpresa, idNominaTipo, idNominaTipoLiqui, idPeriodo);
                    this.DataSource         = oListado.ToArray();
                    lb_total_Registros.Text = "TOTAL DE REGISTROS: " + oListado.Select(v => v.secuencia).Max().ToString();
                    return;
                }



                if (idDepartamento != 0 && idDivision == 0)
                {
                    oListado                = oReporteBus.GetListConsultaGeneral(idEmpresa, idNominaTipo, idNominaTipoLiqui, idPeriodo, idDepartamento, ref mensaje);
                    this.DataSource         = oListado.ToArray();
                    lb_total_Registros.Text = "TOTAL DE REGISTROS: " + oListado.Select(v => v.secuencia).Max().ToString();
                    return;
                }


                if (idDepartamento != 0 && idDivision != 0)
                {
                    oListado                = oReporteBus.GetListConsultaGeneral(idEmpresa, idNominaTipo, idNominaTipoLiqui, idPeriodo, idDivision, idDepartamento, ref mensaje);
                    this.DataSource         = oListado.ToArray();
                    lb_total_Registros.Text = "TOTAL DE REGISTROS: " + oListado.Select(v => v.secuencia).Max().ToString();
                    return;
                }

                if (idDivision != 0)
                {
                    oListado                = oReporteBus.GetListConsultaGeneral(idEmpresa, idNominaTipo, idNominaTipoLiqui, idPeriodo, idDivision);
                    this.DataSource         = oListado.ToArray();
                    lb_total_Registros.Text = "TOTAL DE REGISTROS: " + oListado.Select(v => v.secuencia).Max().ToString();
                    return;
                }
            }
            catch (Exception ex)
            {
                oLog.Log_Error(ex.ToString());
                Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message);
                throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "XROL_Rpt001_rpt_BeforePrint", ex.Message), ex)
                      {
                          EntityType = typeof(XROL_Rpt001_rpt)
                      };
            }
        }
示例#18
0
 private void groupHeaderBand1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     counter++;
     xrLabel11.Text = counter.ToString();
 }
示例#19
0
 private void DocListReport_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     bindingSource1.DataSource = DB.SkladBase().Banks.ToList();
     bindingSource2.DataSource = DB.SkladBase().Kagent.ToList();
 }
示例#20
0
        private void XBAN_Rpt004_rpt_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            try
            {
                pictureBox1.Image = param.InfoEmpresa.em_logo_Image;

                XBAN_Rpt004_Bus repbus = new XBAN_Rpt004_Bus();


                List <XBAN_Rpt004_Info> ListDataRpt = new List <XBAN_Rpt004_Info>();

                int IdEmpresa = 0;

                int IdBancoIni = 0;
                int IdBancoFin = 0;

                string   idTipoCbte = "";
                string   girado_A   = "";
                bool     chkImpreso;
                bool     chkfacs;
                string   SchkImpreso = "";
                string   Schkfacs    = "CBTE_PAGO";
                DateTime Fch_Ini     = DateTime.Now;
                DateTime Fch_Fin     = DateTime.Now;

                decimal IdPersona_Girado = 0;


                IdEmpresa  = Convert.ToInt32(Parameters["IdEmpresa"].Value);
                IdBancoIni = Convert.ToInt32(Parameters["IdBanco"].Value);
                IdBancoFin = Convert.ToInt32(Parameters["IdBancoFin"].Value);

                IdPersona_Girado = Convert.ToDecimal(Parameters["IdPersona_Girado"].Value);

                idTipoCbte = Convert.ToString(Parameters["CodTipoCbteBan"].Value);

                Fch_Ini = Convert.ToDateTime(Parameters["Fch_Ini"].Value);
                Fch_Fin = Convert.ToDateTime(Parameters["Fch_Fin"].Value);

                girado_A   = Convert.ToString(Parameters["S_Chq_Girado_A"].Value);
                chkImpreso = Convert.ToBoolean(Parameters["Es_ChqImpreso"].Value);
                chkfacs    = Convert.ToBoolean(Parameters["Detallado"].Value);

                if (girado_A == "TODOS")
                {
                    girado_A = "";
                }

                lblchkImpreso.Text = "Todos";
                if (chkImpreso == true)
                {
                    SchkImpreso        = "Impreso";
                    lblchkImpreso.Text = "Solo Impresos";
                }

                lblchkDetalle.Text    = "";
                lblchkDetalle.Visible = false;
                if (chkfacs == true)
                {
                    Schkfacs              = "";
                    lblchkDetalle.Text    = "Detallado";
                    lblchkDetalle.Visible = true;

                    xrLabel39.Visible = false;
                    xrLabel40.Visible = false;
                    xrLabel41.Visible = false;
                }
                else
                {
                    xrLabel13.Visible = false;
                    xrLabel14.Visible = false;
                    xrLabel42.Visible = false;
                    xrLabel43.Visible = false;
                    xrLabel44.Visible = false;
                    xrLabel12.Visible = false;
                }

                ListDataRpt = repbus.Cargar_data(IdEmpresa, Fch_Ini, Fch_Fin, IdBancoIni, IdBancoFin, idTipoCbte, /*girado_A*/ IdPersona_Girado, SchkImpreso, Schkfacs);

                if (ListDataRpt.Count == 0)
                {
                    xrLmensaje.Visible = true;
                    xrLmensaje.Text    = "No hay datos encontrados para estos filtros";
                }
                else
                {
                    xrLmensaje.Visible = false;
                }

                this.DataSource = ListDataRpt.ToArray();
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
                Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message);
                throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "XBAN_Rpt004_rpt_BeforePrint", ex.Message), ex)
                      {
                          EntityType = typeof(XBAN_Rpt004_rpt)
                      };
            }
        }
示例#21
0
 private void crTienVAT_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     Model.MTGlobal.BlankZero(sender);
 }
 private void xrTableCell1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     xrTableCell1.ForeColor = Color.Blue;
 }
示例#23
0
 private void Report_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     UpdateFormattingRule();
 }
示例#24
0
        private void Lbtram_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            XRLabel label = (XRLabel)sender;

            label.Text = m_tram;
        }
示例#25
0
        private void subReportHD_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            subReportHD subHD = this.subReportHD.ReportSource as subReportHD;

            subHD._PCPGOnlineCheckDetailId = (this.GetCurrentRow() as Model.PCPGOnlineCheckDetail).PCPGOnlineCheckDetailId;
        }
示例#26
0
        private void Lbbangchu_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            XRLabel label = (XRLabel)sender;

            label.Text = PhatHanh.DocTienBangChu(System.Convert.ToInt32(GetCurrentColumnValue("t_tt")), " đồng");
        }
示例#27
0
文件: Q17.cs 项目: daobataotie/EDERP
        private void xrSubreport1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            Q17_1 subReport = this.xrSubreport1.ReportSource as Q17_1;

            subReport.Invoice = this.GetCurrentRow() as Model.InvoiceCT;
        }
 private void xrLabel3_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
 }
示例#29
0
 private void machineTotalMinutesXRLabel_BeforePrint(System.Object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     machineTotalMinutesXRLabel.Text = m_MachineMinutes.ToString("#.##");
     m_ItemMinutes += m_MachineMinutes;
     m_ItemHours   += m_MachineHours;
 }
示例#30
0
 private void ROL_002_Ingresos_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
 }