public string Gets()
 {
     mPlantillas o = new mPlantillas();
     List<vPL_PLANTILLA> lPlantillas = o.Gets();
     foreach (vPL_PLANTILLA item in lPlantillas)
     {
         item.lSecciones = new List<vPL_SECCIONES>();
     }
     return ByAUtil.convertListToXML(lPlantillas);
 }
 public List<vPL_PLANTILLA> GetsActivasJson()
 {
     mPlantillas o = new mPlantillas();
     List<vPL_PLANTILLA> lPlantillas = o.Gets();
     foreach (vPL_PLANTILLA item in lPlantillas)
     {
         item.lSecciones = new List<vPL_SECCIONES>();
     }
     List<vPL_PLANTILLA> lPlantillas2 = new List<vPL_PLANTILLA>();
     lPlantillas2 = lPlantillas.Where(t => t.EST_PLA == "AC").ToList();
     return lPlantillas2;
 }
 public string GetsActivas()
 {
     mPlantillas o = new mPlantillas();
     List<vPL_PLANTILLA> lPlantillas = o.Gets();
     foreach (vPL_PLANTILLA item in lPlantillas)
     {
         item.lSecciones = new List<vPL_SECCIONES>();
     }
     List<vPL_PLANTILLA> lPlantillas2 = new List<vPL_PLANTILLA>();
     lPlantillas2 = lPlantillas.Where(t => t.EST_PLA == "AC").ToList();
     return ByAUtil.convertListToXML(lPlantillas2);
 }
        public ByARpt Insert(decimal ID_PLA,string NUM_PROC)
        {
            mPlantillas oPlantilla = new mPlantillas();
            vPL_PLANTILLA Plantilla = oPlantilla.Get(ID_PLA);

            vDOC_PLANTILLA Reg = new vDOC_PLANTILLA();
            Mapper.Map(Plantilla, Reg);
            Reg.EST_DOC = "AC";
            Reg.FEC_DOC = DateTime.Now;
            Reg.NUM_PROC = NUM_PROC;
            Reg.ID_PLA = ID_PLA;
            Reg.COMPLETADO = "INI";

            cmdInsert o = new cmdInsert();
            o.oDto = Reg;
            return o.Enviar();
        }
 public ByARpt Update(vPL_PLANTILLA Reg)
 {
     mPlantillas o = new mPlantillas();
     return o.Update(Reg);
 }
 public ByARpt Insert(vPL_PLANTILLA Reg)
 {
     mPlantillas o = new mPlantillas();
     return o.Insert(Reg);
 }
 public List<vPLANTILLASXPROCESO> GetPlatillasPorProceso(string NUM_PROC, string Filtro)
 {
     mPlantillas o = new mPlantillas();
     return o.GetPlatillasPorProceso(NUM_PROC, Filtro);
 }
 public vPL_PLANTILLA Get(decimal ID)
 {
     mPlantillas o = new mPlantillas();
     return o.Get(ID);
 }