Example #1
0
 public ByARpt Insert(vAdiciones Reg)
 {
     ADICIONES r = new ADICIONES();
     Mapper.Map(Reg, r);
     cmdInsert o = new cmdInsert { reg = r };
     return o.Enviar();
 }
Example #2
0
 public ByARpt Update(vAdiciones Reg)
 {
     ADICIONES r = new ADICIONES();
     Mapper.Map(Reg, r);
     cmdUpdate o = new cmdUpdate { reg = r };
     return o.Enviar();
 }   
Example #3
0
           protected override bool esValido()
           {
               found = ctx.ADICIONES.Where(t => t.COD_CON == reg.COD_CON).FirstOrDefault();
               if (found != null)
               {
                   found.EXENPOL = reg.EXENPOL;
                   found.FEC_APR_POL = reg.FEC_APR_POL;
                   found.RES_APR_POL = reg.RES_APR_POL;
                   found.LEGALIZADO = reg.LEGALIZADO;                  
                   return true;
               }
               else
               {
                   byaRpt.Mensaje = "No se encontro La Adicion";
                   byaRpt.Error = true;
                   return !byaRpt.Error;
               }


           }
Example #4
0
           protected override bool esValido()
           {
               found = ctx.ADICIONES.Where(t => t.COD_CON == reg.COD_CON && t.NRO_ADI==reg.NRO_ADI).FirstOrDefault();
               if (found != null)
               {
                   return true;
               }
               else
               {
                   byaRpt.Mensaje = "No se Encontro La Adicion";
                   byaRpt.Error = true;
                   return !byaRpt.Error;
               }

           }