public ByARpt AnularSS(vINT_PAGOSST Reg)
 {
     Reg.USAP = Usuario.UserName;
     CGContratistaBLL o = new CGContratistaBLL();
     ByARpt rpt = o.Anular(Reg);
     return rpt;
 }
 public string GetDocumentos(string CodCon, decimal Id_info)
 {
     CGContratistaBLL o = new CGContratistaBLL();
     return ByAUtil.convertListToXML(o.GetDocumentos(CodCon,Id_info));
 }
 public List<vDEPENDENCIA> GetDepContratos()
 {
     CGContratistaBLL o = new CGContratistaBLL();
     return o.GetDependencias(Usuario.UserName).ToList();
 }
 public IList<vContratosInt> GetConsultaContratosJS(short Vig_Con)
 {
     CGContratistaBLL o = new CGContratistaBLL();
     return o.GetContratos(Usuario.UserName, Vig_Con);
 }
 public string GetConsultaContratos(short Vig_Con)
 {
     CGContratistaBLL o = new CGContratistaBLL();
     return ByAUtil.convertListToXML(o.GetContratos(Usuario.UserName, Vig_Con));
 }
 public List<vACTASCONTRATO> GetActasJS(short Vig_Con)
 {
     CGContratistaBLL o = new CGContratistaBLL();
     string username = Usuario.UserName;
     return o.GetActas(Vig_Con, username);
 }
 public ByARpt UpdateInforme(vINT_INFOCONT Reg)
 {
     CGContratistaBLL o = new CGContratistaBLL();
     Reg.USAP = Usuario.UserName;
     ByARpt rpt = o.Update(Reg);
     return rpt;
 }
        public List<vINT_PAGOSST> GetSS(string CodCon, decimal? IdeInf)
        {
            CGContratistaBLL o = new CGContratistaBLL();

            string username = Usuario.UserName;
            return o.GetSS(CodCon, IdeInf);
        }
 public ByARpt InsDocActa(vGD_DOC_ACTAS Reg)
 {
     CGContratistaBLL o = new CGContratistaBLL();
     Reg.USAP = Usuario.UserName;
     ByARpt rpt = o.InsDocActa(Reg);
     return rpt;
 }
 public ByARpt InsLstDocActa(List<vGD_DOC_ACTAS> Reg, string COD_CON)
 {
     CGContratistaBLL o = new CGContratistaBLL();
     Reg.ForEach(t => t.USAP = Usuario.UserName);
     //Reg.USAP = Usuario.UserName;
     ByARpt rpt = o.InsLstDocActa(Reg,COD_CON);
     return rpt;
 }
 public List<vINTTIPO_ESS> GetTipoSS()
 {
     CGContratistaBLL o = new CGContratistaBLL();
     return o.GetTipoSS();
 }
        public string GetSS(string CodCon, decimal? IdeInf)
        {
            CGContratistaBLL o = new CGContratistaBLL();

            string username = Usuario.UserName;
            return ByAUtil.convertListToXML(o.GetSS(CodCon, IdeInf));
        }
 public List<vGD_DOC_ACTAS> GetDocumentos(string CodCon, decimal IdeInf)
 {
     CGContratistaBLL o = new CGContratistaBLL();
     return o.GetDocumentos(CodCon, IdeInf);
 }
        public string GetInformes(string CodCon)
        {
            CGContratistaBLL o = new CGContratistaBLL();

            string username = Usuario.UserName;
            return ByAUtil.convertListToXML(o.GetInformes(CodCon).OrderByDescending(t=> t.NUM_INF).ToList());
        }
 public ByARpt UpdateSS(vINT_PAGOSST Reg)
 {
     CGContratistaBLL o = new CGContratistaBLL();
     Reg.USAP = Usuario.UserName;
     ByARpt rpt = o.Update(Reg);
     return rpt;
 }
 public List<vINT_INFOCONT> GetInformesVigenciasJS(short Vig_Con)
 {
     CGContratistaBLL o = new CGContratistaBLL();
     string username = Usuario.UserName;
     return o.GetInformesV(Vig_Con, username);
 }
 public List<vINT_INFOCONT> GetInfoCon(string cod_con)
 {
     CGContratistaBLL o =new CGContratistaBLL();
     //solo los activos
     //anulados no , deberian ser los revisados.
     return o.GetInformes(cod_con).Where(t => t.EST_INF == "AC").ToList();
 }