Beispiel #1
0
        public void InsertPago()
        {
            try
            {
                BLLNegocioFox hn = new BLLNegocioFox();
                var listneg = hn.NegociosFoxCRM();
                foreach (var item in listneg)
                {
                    //Lista de pagos por referencia o negocio
                    var listapag = listPagosFox(item.SUCURSAL + item.NEGOCIO);

                    foreach (var list in listapag)
                    {

                        InsertPago(list);

                    }

                }
            }
            catch (Exception ex) {

                eventLog1.WriteEntry(ex.ToString());
            }
        }
Beispiel #2
0
        public string InsertNegocio(List<NegociosFox> ac)
        {
            try
            {
                BLLNegocioFox hn = new BLLNegocioFox();
                return hn.Hojanegocio(ac);

            }catch(Exception ex){

                return ex.ToString();
            }
        }
Beispiel #3
0
        public string TODO()
        {
            try {

               InsertNegocio(fx.ConsulNegocio());
               InsertAcuerdo(fx.ConsulAcuerdoPago());

               BLLNegocioFox hn = new BLLNegocioFox();
               var listneg =  hn.NegociosFoxCRM();
               foreach (var item in listneg) {
                  //Lista de pagos por referencia o negocio
                  var listapag = listPagosFox(item.SUCURSAL + item.NEGOCIO);

                  foreach (var list in listapag) {

                      InsertPago(list);

                  }

               }

               return "1";
            }
            catch (Exception ex) {

              return ex.ToString();
            }
        }
Beispiel #4
0
 public void InsertNegocio(List<NegociosFox> ac)
 {
     BLLNegocioFox hn = new BLLNegocioFox();
     hn.Hojanegocio(ac);
 }
Beispiel #5
0
 public int ListaryActualizar()
 {
     BLLNegocioFox hn = new BLLNegocioFox();
     return hn.ListaryActualizar();
 }
Beispiel #6
0
 public List<VnegocioFox> lisNegoID(string c)
 {
     BLLNegocioFox hn = new BLLNegocioFox();
     return hn.ListaNegocioID(c);
 }
Beispiel #7
0
 public List<VnegocioFox> lisHoja()
 {
     BLLNegocioFox hn = new BLLNegocioFox();
     return hn.ListHojas();
 }
Beispiel #8
0
 public int ActualizarAdj(string CodCRM, string Documento)
 {
     BLLNegocioFox hn = new BLLNegocioFox();
     return hn.ActualizarDocumentoAdj(CodCRM, Documento);
 }