public ByARpt UpdatePSolicitud(vPSolicitudes Reg)
 {
     PSolicitudesBLL epBLL = new PSolicitudesBLL();
     //Reg.USAP = Usuario.UserName;
     ByARpt rpt = epBLL.Update(Reg);
     return rpt;
 }
 public ByARpt InsertPSolicitud(vPSolicitudes Reg)
 {
     PSolicitudesBLL epBLL = new PSolicitudesBLL();
     Reg.USAP = Usuario.UserName;
     ByARpt rpt = epBLL.Insert(Reg);
     return rpt;
 }
 public ByARpt Update(vPSolicitudes Reg)
 {
     PSOLICITUDES RegD = new PSOLICITUDES();
     Mapper.CreateMap<vPSolicitudes, PSOLICITUDES>();
     Mapper.Map(Reg, RegD);
     manager.reg = RegD;
     return EnviaDatos.EnviarUpdate(manager);
 }
Esempio n. 4
0
 internal Vistas.vPSolicitudes GetPK()
 {
     vPSolicitudes Reg = new vPSolicitudes();
     Mapper.CreateMap<PSOLICITUDES, vPSolicitudes>();
     using (ctx = new Entities())
     {
         PSOLICITUDES ep = ctx.PSOLICITUDES.Where(t => t.COD_SOL == reg.COD_SOL).FirstOrDefault();
         
         if (ep != null)
         {
             Mapper.Map(ep, Reg);
         }
         return Reg;
     }
 }