public CronogramaPrint GetPrintObject(CompanyInfo empresa) { PromocionInfo promocion = PromocionInfo.Get(this.OidPromocion, false); PlanEstudiosInfo plan = PlanEstudiosInfo.Get(this.OidPlan, false); return(CronogramaPrint.New(this, empresa, plan, promocion)); }
public void CopyValues(PlanEstudiosInfo source) { if (source == null) { return; } _record.CopyValues(source.Base.Record); }
protected virtual void CopyFrom(PlanEstudiosInfo source) { if (source == null) { return; } Oid = source.Oid; Nombre = source.Nombre; Fecha = source.Fecha; Observaciones = source.Observaciones; OidProducto = source.OidProducto; OidSerie = source.OidSerie; }
/// <summary> /// Copia los atributos del objeto /// </summary> /// <param name="source">Objeto origen</param> protected void CopyValues(CronogramaInfo source, CompanyInfo empresa, PlanEstudiosInfo plan, PromocionInfo promocion) { if (source == null) { return; } Oid = source.Oid; _base.Record.OidPlan = source.OidPlan; _base.Record.OidPromocion = source.OidPromocion; _base.Record.FechaCreacion = source.FechaCreacion; _base.Record.Observaciones = source.Observaciones; if (plan != null) { _plan = plan.Nombre; } if (promocion != null) { _promocion = promocion.Nombre; } if (empresa == null) { return; } string path = CompanyInfo.GetLogoPath(AppContext.ActiveSchema.Oid); // Cargamos la imagen en el buffer if (File.Exists(path)) { //Declaramos fs para poder abrir la imagen. FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read); // Declaramos un lector binario para pasar la imagen a bytes BinaryReader br = new BinaryReader(fs); _logo_emp = new byte[(int)fs.Length]; br.Read(LogoEmp, 0, (int)fs.Length); br.Close(); fs.Close(); } }
internal static string SELECT(long oid, bool lockTable) { return(SELECT(new QueryConditions { PlanEstudios = PlanEstudiosInfo.New(oid) }, lockTable)); }