public ByARpt Insert(vSL_LIQESTAMPILLAS Reg)
 {
     cmdInsert o = new cmdInsert();
     o.oDto = Reg;
     return o.Enviar();
 }
 public ByARpt Insert(vSL_LIQESTAMPILLAS Reg)
 {
     Reg.USUARIO = Usuario.UserName;
     mSL_LIQESTAMPILLAS oSL = new mSL_LIQESTAMPILLAS();
     return oSL.Insert(Reg);
 }
        public vSL_LIQESTAMPILLAS Get(decimal NRO_LIQ, string VIGENCIA)
        {
            using (ctx = new Entities())
            {
                short Vig = short.Parse(VIGENCIA);

                vSL_LIQESTAMPILLAS r = new vSL_LIQESTAMPILLAS();
                SL_LIQESTAMPILLAS o = ctx.SL_LIQESTAMPILLAS.Where(t => t.NRO_LIQ == NRO_LIQ && t.VIG_LIQ == Vig).FirstOrDefault();

                if (o != null)
                {

                    TERCEROS ter = ctx.TERCEROS.Where(t => t.TER_NIT == o.AGE_REC).FirstOrDefault();

                    List<BLL.SignusFacade.ImpuestosTarDto> lImp = new List<BLL.SignusFacade.ImpuestosTarDto>();
                    SignusFacade oSignusFacade = new SignusFacade();
                    lImp = oSignusFacade.GetImpuestos();

                    Mapper.Map(o, r);

                    r.NOM_AGE = ter.TER_NOM;

                    foreach (vSL_DETLIQ item in r.lDetallesLiquidacion)
                    {
                        item.NOM_IMP = lImp.Where(t => t.Cod_Imp == item.COD_IMP).FirstOrDefault().Nom_Imp;
                    }
                    return r;
                }
                else return null;
            }
        }