예제 #1
0
 public ByARpt Update(vEP_PAA Reg)
 {
     cmdUpdate o = new cmdUpdate();
     o.oDto = Reg;
     ByARpt res = o.Enviar();
     return res;
 }
예제 #2
0
 public ByARpt Insert(vEP_PAA Reg)
 {
     cmdInsert o = new cmdInsert();
     o.oDto = Reg;
     ByARpt res = o.Enviar();
     return res;
 }
예제 #3
0
 public vEP_PAA Get(int ID, string CodDep, int Vigencia)
 {
     using (ctx = new Entities())
     {
         EP_PAA obj = ctx.EP_PAA.Where(t => t.ID == ID && t.VIGENCIA == Vigencia && t.COD_DEP == CodDep).FirstOrDefault();
         if (obj == null) return null;
         else
         {
             vEP_PAA Robj = new vEP_PAA();
             Mapper.Map(obj, Robj);
             return Robj;
         }
     }
 }
예제 #4
0
 public vEP_PAA Get2(int ID)
 {
     using (ctx = new Entities())
     {
         EP_PAA obj = ctx.EP_PAA.Where(t => t.ID == ID).FirstOrDefault();
         if (obj == null) return null;
         else
         {
             vEP_PAA Robj = new vEP_PAA();
             Mapper.Map(obj, Robj);
             Robj.lCODIGOS_UNSPSC = GetProductosPAA(Robj.ID);
             return Robj;
         }
     }
 }
예제 #5
0
 public ByARpt Update(vEP_PAA Reg)
 {
     PaaBLL obj = new PaaBLL();
     return obj.Update(Reg);
 }
예제 #6
0
 public ByARpt Insert(vEP_PAA Reg)
 {
     PaaBLL obj = new PaaBLL();
     return obj.Insert(Reg);
 }