/*private static void FormatReport(CobroREARpt 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 CobroREA

        public CobroREARpt GetDetailReport(CobroREAInfo item)
        {
            if (item == null)
            {
                return(null);
            }

            CobroREARpt doc = new CobroREARpt();

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

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


            List <IVChargePrint> pIVCharges = new List <IVChargePrint>();

            foreach (IVChargeInfo child in item.IVCharges)
            {
                pIVCharges.Add(IVChargePrint.New(child));
            }

            doc.Subreports["IVChargeSubRpt"].SetDataSource(pIVCharges);


            //FormatReport(doc, empresa.Logo);

            return(doc);
        }
        protected void CopyValues(CobroREAInfo source)
        {
            if (source == null)
            {
                return;
            }

            _base.CopyValues(source);
        }
Exemplo n.º 3
0
        internal void CopyValues(CobroREAInfo source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source.Base.Record);
        }
Exemplo n.º 4
0
        protected virtual void CopyFrom(CobroREAInfo source)
        {
            if (source == null)
            {
                return;
            }

            Oid              = source.Oid;
            OidCobro         = source.OidCobro;
            OidExpediente    = source.OidExpediente;
            Cantidad         = source.Cantidad;
            OidExpedienteRea = source.OidExpedienteRea;
        }
Exemplo n.º 5
0
        public static void IsPosibleDelete(long oid)
        {
            QueryConditions conditions = new QueryConditions
            {
                CobroREA = CobroREAInfo.New(oid),
            };


            ivchargesList ivcharges = ivchargesList.GetList(conditions, false);

            if (ivcharges.Count > 0)
            {
                throw new iQException(Resources.Messages.ASSOCIATED__IVCHARGE_INTERVALS);
            }
        }
Exemplo n.º 6
0
 internal static string SELECT(long oid, bool lockTable)
 {
     return(SELECT(new QueryConditions {
         CobroREA = CobroREAInfo.New(oid)
     }, lockTable));
 }