private void LlenarListaBodegas() { try { var svBodegas = new WSWarehouse.SwiftExpressWSWarehouse(); var pResult = ""; var ds = svBodegas.GetWarehouseActive(Session["connectionString"].ToString(), ref pResult); //ds = objIncome.getSKU(Session["connectionString"].ToString()); if (pResult == "") { Session["UiListaBodega"] = ds; UiListaBodega.DataSource = ds; UiListaBodega.DataBind(); UiListaBodegaErp.DataSource = ds; UiListaBodegaErp.DataBind(); } else { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('" + pResult + "');", true); } svBodegas.Dispose(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
public void GetWarehousePreSale() { try { var pResult = ""; var objWarehousepresale = new WSWarehouse.SwiftExpressWSWarehouse(); _ds = objWarehousepresale.GetWarehousePreSale(Session["connectionString"].ToString(), ref pResult); if (pResult == "") { Session["DS_WAREHOUSE_PRESALE"] = _ds; if (_ds.Tables[0].Rows.Count > 0) { LookupWarehousePre.DataSource = _ds; LookupWarehousePre.DataBind(); } } else { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('" + pResult + "');", true); } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error en carga inicial: " + ex.Message + "');", true); } }
public void GetWarehouse() { try { var objWarehouse = new WSWarehouse.SwiftExpressWSWarehouse(); var pResult = ""; var ds = objWarehouse.GetWarehouse(Session["connectionString"].ToString(), ref pResult); if (pResult == "") { ASPxGridLookup2.DataSource = ds; ASPxGridLookup2.DataBind(); Session["WAREHOUSE"] = ds; } else { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('" + pResult + "');", true); } objWarehouse.Dispose(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }