public static string builNOMBRE(TERCEROS t) { if (t != null) { return (t.NOM1_TER == null ? "" : t.NOM1_TER.Trim()) + " " + (t.NOM2_TER == null ? "" : t.NOM2_TER.Trim()) + " " + t.APE1_TER.Trim() + " " + (t.APE2_TER == null ? "" : t.APE2_TER.Trim()).Trim(); } return ""; }
public static string buildNomTer(TERCEROS t) { if (t != null) { return t.NOM1_TER + " " + t.NOM2_TER + " " + t.APE1_TER + " " + t.APE2_TER; } return ""; }
private string GetTercero(TERCEROS t) { return (t.APE1_TER.Trim() + " " + (t.APE2_TER == null ? "" : t.APE2_TER.Trim()) + " " + (t.NOM1_TER == null ? "" : t.NOM1_TER.Trim()) + " " + (t.NOM2_TER == null ? "" : t.NOM2_TER.Trim())).Trim(); }
protected internal override bool esValido() { ter = ctx.TERCEROS.Where(t => t.IDE_TER==reg.IDE_TER).FirstOrDefault(); if (ter != null) { return true; } else { byaRpt.Mensaje = "No se encontró el tercero"; byaRpt.Error = true; return false; } }
protected internal override void Antes() { ter = new TERCEROS(); Mapper.Map(reg, ter); byaRpt.id = reg.IDE_TER; //ctx.TERCEROS.Add(r); ctx.Entry(ter).State = EntityState.Added; }