Example #1
0
        public void ReportarNetSuite()
        {
            if (DicDatosNetSuite.Count <= 0)
            {
                return;
            }
            var oStHelper = new StHelper();

            foreach (var dato in DicDatosNetSuite)
            {
                oStHelper.ActualizarCampos(dato.Value, dato.Key);
            }
        }
Example #2
0
        public void ReportarNetSuiteComplete(string asin)
        {
            var oStHelper = new StHelper();

            if (DicDatosNetSuite.Count <= 0)
            {
                return;
            }
            OBitacora.GuardarLinea($"{DateTime.Now:yyyy-MM-dd hh:mm:ss}|Comienza a reporte netsuite {asin}");
            OBitacora.GuardarLinea($"{DateTime.Now:yyyy-MM-dd hh:mm:ss}|Reportando general");
            foreach (var dato in DicDatosNetSuite)
            {
                try
                {
                    oStHelper.ActualizarHeaders(dato.Value, asin);
                }
                catch (Exception ex)
                {
                    OBitacora.GuardarLinea($"{DateTime.Now:yyyy-MM-dd hh:mm:ss}|Error|{ex.Message}/{ex.StackTrace}");
                }
            }
            oStHelper.ActualizarCamposCompleto(asin);
            OBitacora.GuardarLinea($"{DateTime.Now:yyyy-MM-dd hh:mm:ss}|Termina a reporte netsuite {asin}");
        }