示例#1
0
 public static void IsPosibleDelete(long oid)
 {
     QueryConditions conditions = new QueryConditions
     {
         RemesaNomina = RemesaNominaInfo.New(oid),
     };
 }
示例#2
0
        protected void CopyValues(RemesaNominaInfo source)
        {
            if (source == null)
            {
                return;
            }

            _base.CopyValues(source);
        }
示例#3
0
        internal void CopyValues(RemesaNominaInfo source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source.Base.Record);
        }
        /*private static void FormatReport(RemesaNominaRpt 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 RemesaNomina

        public RemesaNominaRpt GetDetailReport(RemesaNominaInfo item)
        {
            if (item == null)
            {
                return(null);
            }

            RemesaNominaRpt doc = new RemesaNominaRpt();

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

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



            //FormatReport(doc, empresa.Logo);

            return(doc);
        }
示例#5
0
        protected virtual void CopyFrom(RemesaNominaInfo source)
        {
            if (source == null)
            {
                return;
            }

            Oid            = source.Oid;
            Serial         = source.Serial;
            Codigo         = source.Codigo;
            Fecha          = source.Fecha;
            Descripcion    = source.Descripcion;
            Total          = source.Total;
            Irpf           = source.Irpf;
            SeguroEmpresa  = source.SeguroEmpresa;
            SeguroPersonal = source.SeguroPersonal;
            PrevisionPago  = source.PrevisionPago;
            Estado         = source.Estado;
            Observaciones  = source.Observaciones;
            BaseIrpf       = source.BaseIrpf;
            Descuentos     = source.Descuentos;
        }
示例#6
0
 internal static string SELECT(long oid, bool lockTable)
 {
     return(SELECT(new QueryConditions {
         RemesaNomina = RemesaNominaInfo.New(oid)
     }, lockTable));
 }