//public void act_presta_urbano(string ven_id,ref string error) //{ // Dat_PrestaShop action_presta = null; // error = ""; // try // { // string guia_presta = ""; string guia_urb = ""; // action_presta = new Dat_PrestaShop(); // action_presta.get_guia_presta_urba(ven_id, ref guia_presta, ref guia_urb); // if (guia_presta.Trim().Length>0) // { // Boolean valida = ActualizarReference(guia_presta); // if (valida) // { // action_presta.updestafac_prestashop(guia_presta); // } // } // } // catch (Exception exc) // { // error = exc.Message; // } //} /// <summary> /// actualizar estado prestashop por lista /// </summary> public void updateestadofac_presta() { DataTable dt = null; try { Dat_PrestaShop estadofac_presta = new Dat_PrestaShop(); dt = estadofac_presta.getestadofac(); if (dt != null) { if (dt.Rows.Count > 0) { foreach (DataRow fila in dt.Rows) { string guiaref_presta = fila["Ven_Pst_Ref"].ToString(); Boolean valida = ActualizarReference(guiaref_presta); if (valida) { //-----INICIO---SB-VTEX2020---20201222_12:57---- //estadofac_presta.updestafac_prestashop(guiaref_presta); estadofac_presta.updestafac_prestashop(guiaref_presta, ""); //-----FIN---SB-VTEX2020---20201222_12:57---- } } } } } catch (Exception) { throw; } }
//public void act_presta_urbano(string ven_id,ref string error) //{ // Dat_PrestaShop action_presta = null; // error = ""; // try // { // string guia_presta = ""; string guia_urb = ""; // action_presta = new Dat_PrestaShop(); // action_presta.get_guia_presta_urba(ven_id, ref guia_presta, ref guia_urb); // if (guia_presta.Trim().Length>0) // { // Boolean valida = ActualizarReference(guia_presta); // if (valida) // { // action_presta.updestafac_prestashop(guia_presta); // } // } // } // catch (Exception exc) // { // error = exc.Message; // } //} /// <summary> /// actualizar estado prestashop por lista /// </summary> public void updateestadofac_presta() { DataTable dt = null; try { Dat_PrestaShop estadofac_presta = new Dat_PrestaShop(); dt = estadofac_presta.getestadofac(); if (dt != null) { if (dt.Rows.Count > 0) { foreach (DataRow fila in dt.Rows) { string guiaref_presta = fila["Ven_Pst_Ref"].ToString(); Boolean valida = ActualizarReference(guiaref_presta); if (valida) { estadofac_presta.updestafac_prestashop(guiaref_presta); } } } } } catch (Exception) { throw; } }