Beispiel #1
0
        internal void CopyValues(PesajeInfo source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source._base.Record);
        }
Beispiel #2
0
        protected void CopyValues(PesajeInfo source)
        {
            if (source == null)
            {
                return;
            }

            Oid = source.Oid;
            _base.CopyValues(source);
        }
Beispiel #3
0
        protected virtual void CopyFrom(PesajeInfo source)
        {
            if (source == null)
            {
                return;
            }

            Oid           = source.Oid;
            Serial        = source.Serial;
            Codigo        = source.Codigo;
            Estado        = source.Estado;
            Fecha         = source.Fecha;
            Descripcion   = source.Descripcion;
            Bruto         = source.Bruto;
            Neto          = source.Neto;
            Tara          = source.Tara;
            Observaciones = source.Observaciones;
        }
Beispiel #4
0
        /*private static void FormatReport(PesajeRpt rpt, string logo)
         * {
         *  string path = Images.GetRootPath() + "\\" + Resources.Paths.LOGO_EMPRESAS + logo;
         *
         *  if (File.Exists(path))
         *  {
         *      Image image = Image.FromFile(path);
         *      int width = rpt.Section1.ReportObjects["Logo"].Width;
         *      int height = rpt.Section1.ReportObjects["Logo"].Height;
         *
         *      rpt.Section1.ReportObjects["Logo"].Width = 15 * image.Width;
         *      rpt.Section1.ReportObjects["Logo"].Height = 15 * image.Height;
         *      rpt.Section1.ReportObjects["Logo"].Left += (width - 15 * image.Width) / 2;
         *      rpt.Section1.ReportObjects["Logo"].Top += (height - 15 * image.Height) / 2;
         *  }
         * }*/

        #endregion

        #region Business Methods Pesaje

        public PesajeRpt GetDetailReport(PesajeInfo item)
        {
            if (item == null)
            {
                return(null);
            }

            PesajeRpt doc = new PesajeRpt();

            List <PesajePrint> pList = new List <PesajePrint>();

            pList.Add(PesajePrint.New(item));
            doc.SetDataSource(pList);
            doc.SetParameterValue("Empresa", Schema.Name);



            //FormatReport(doc, empresa.Logo);

            return(doc);
        }